@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;600;700&display=swap');

/* Product page layout; these selectors do not affect the editor iframe. */
.product-detail {
  align-items: start;
  padding-bottom: 32px;
}
.product-summary { min-width: 0; }
.product-summary .pd-title {
  font-size: clamp(27px, 3vw, 34px);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.product-summary .pd-price {
  background: #e6f0de;
  padding: 16px 20px;
  border-radius: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.product-summary .pd-price .now { font-size: 28px; }
.product-summary .pd-cta {
  margin-top: 20px;
  display: block;
}
.pd-quantity-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
.product-summary .pd-qty-row { display: flex; gap: 12px; }
.product-summary .pd-qty-row .btn-primary { min-width: 160px; }
.pd-details-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.pd-details-link:hover { color: #5c8f4a; }
.product-details-section {
  padding-top: 0;
  padding-bottom: 32px;
  scroll-margin-top: 110px;
}
.product-details-card {
  background: #fff;
  border: 1px solid rgba(47, 74, 58, .14);
  border-radius: 16px;
  overflow: hidden;
}
.product-details-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 30px;
  border-bottom: 1px solid rgba(47, 74, 58, .12);
  background: #edf4e7;
}
.product-details-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff;
  color: #3d5a42;
  flex-shrink: 0;
}
.product-details-icon svg { width: 23px; height: 23px; }
.product-details-heading h2 { font-size: 24px; }
.product-description-content {
  padding: 28px 32px 32px;
  overflow-x: auto;
}
.pd-desc.product-copy { margin: 0; }
.product-details-section + .reviews-section { padding-top: 20px; }

/* Shared rich-text styles: TinyMCE and the storefront use these same rules. */
.product-copy,
body.product-description-body {
  font-family: 'Work Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  color: #3f4a3a;
  overflow-wrap: anywhere;
  text-align: left;
}
body.product-description-body { margin: 20px; background: #fff; }
:is(.product-copy, .product-description-body) * { box-sizing: border-box; }
:is(.product-copy, .product-description-body) :is(h1, h2, h3, h4, h5, h6) {
  font-family: inherit;
  font-weight: 600;
  line-height: 1.4;
  color: #2f4a3a;
  margin: 1.5em 0 .6em;
}
:is(.product-copy, .product-description-body) h1 { font-size: 28px; }
:is(.product-copy, .product-description-body) h2 { font-size: 24px; }
:is(.product-copy, .product-description-body) h3 { font-size: 20px; }
:is(.product-copy, .product-description-body) h4 { font-size: 18px; }
:is(.product-copy, .product-description-body) :is(h5, h6) { font-size: 16px; }
:is(.product-copy, .product-description-body) p { margin: 0 0 .85em; }
:is(.product-copy, .product-description-body) :is(ul, ol) {
  margin: 0 0 1em;
  padding-left: 1.6em;
}
:is(.product-copy, .product-description-body) li { padding-left: .2em; margin: .35em 0; }
:is(.product-copy, .product-description-body) li > p { margin: 0; }
:is(.product-copy, .product-description-body) li > :is(ul, ol) { margin: .35em 0; }
:is(.product-copy, .product-description-body) li::marker { color: #5c8f4a; }
:is(.product-copy, .product-description-body) a {
  color: #416f35;
  text-decoration: underline;
  text-underline-offset: 3px;
}
:is(.product-copy, .product-description-body) blockquote {
  margin: 1.25em 0;
  padding: 14px 20px;
  border-left: 3px solid #7fae5f;
  background: #f3f8ef;
}
:is(.product-copy, .product-description-body) table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 1.25em 0;
  font-size: inherit;
}
:is(.product-copy, .product-description-body) :is(th, td) {
  border: 1px solid #d9e3d3;
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
}
:is(.product-copy, .product-description-body) th {
  background: #edf4e7;
  color: #2f4a3a;
  font-weight: 600;
}
:is(.product-copy, .product-description-body) :is(th, td) > p { margin: 0; }
:is(.product-copy, .product-description-body) img { display: inline-block; max-width: 100%; height: auto; vertical-align: middle; }
:is(.product-copy, .product-description-body) figure { max-width: 100%; margin: 1.25em 0; }
:is(.product-copy, .product-description-body) figcaption { font-size: .85em; color: #65745d; }
:is(.product-copy, .product-description-body) hr { border: 0; border-top: 1px solid #d9e3d3; margin: 1.5em 0; }
:is(.product-copy, .product-description-body) pre { white-space: pre-wrap; padding: 16px; background: #f3f8ef; }
:is(.product-copy, .product-description-body) > :first-child { margin-top: 0; }
:is(.product-copy, .product-description-body) > :last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  .product-summary .pd-title { font-size: 28px; }
  .product-details-heading { padding: 18px 20px; }
  .product-details-heading h2 { font-size: 21px; }
  .product-description-content { padding: 22px 20px 24px; }
  .product-details-section { scroll-margin-top: 90px; }
}
