/* AM Packaging v5.8.5 - public typography and content presentation.
   Scoped to public templates; no admin/editor or cart logic changes. */
body.am-packaging-site {
  --amp-home-title: clamp(2.75rem, calc(1.75rem + 1.9vw), 3.875rem);
  --amp-page-title: clamp(2.625rem, calc(1.5rem + 1.8vw), 3.5rem);
  --amp-article-title: clamp(2.125rem, calc(1.3rem + 1.35vw), 2.875rem);
  --amp-section-title: clamp(2rem, calc(1.3rem + 1.2vw), 2.625rem);
}

/* Overrule old mobile !important sizing without changing unrelated h1s. */
body.am-packaging-site #home.hero h1,
body.am-packaging-site .product-detail-copy h1,
body.am-packaging-site .am-blog-hero__copy h1,
body.am-packaging-site .am-blog-single__heading h1,
body.am-packaging-site .store-checkout-hero h1,
body.am-packaging-site .more-products-hero__copy h1 {
  font-family: var(--am-font-body);
  font-size: var(--amp-page-title) !important;
  font-weight: 800;
  line-height: 1.12 !important;
  letter-spacing: -.035em;
  max-width: 100%;
  height: auto;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  text-wrap: balance;
}
body.am-packaging-site #home.hero h1 {
  font-size: var(--amp-home-title) !important;
  margin: 0;
}
body.am-packaging-site .am-blog-single__heading h1 {
  font-size: var(--amp-article-title) !important;
  line-height: 1.18 !important;
  margin: 12px 0 18px;
}
body.am-packaging-site .am-blog-hero__copy h1,
body.am-packaging-site .more-products-hero__copy h1 {
  margin: 14px 0 20px;
}
body.am-packaging-site .store-checkout-hero h1 { margin: 8px 0 18px; }

/* The large listing title in the screenshot and matching section titles. */
body.am-packaging-site .section-heading h2,
body.am-packaging-site .gallery-heading h2,
body.am-packaging-site .about-copy h2,
body.am-packaging-site .value-copy h2,
body.am-packaging-site .faq-intro h2,
body.am-packaging-site .contact-card__copy h2,
body.am-packaging-site .am-blog-section-heading h2,
body.am-packaging-site .am-blog-bottom-cta h2,
body.am-packaging-site .more-products-custom-cta h2 {
  font-family: var(--am-font-body);
  font-size: var(--amp-section-title) !important;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.03em;
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: normal;
}
body.am-packaging-site .am-blog-section-heading h2 {
  max-width: 24ch;
  margin: 12px 0 0;
}
body.am-packaging-site .am-blog-section-heading {
  align-items: center;
  gap: 28px 40px;
  margin-bottom: 32px;
}
body.am-packaging-site .am-blog-section-heading > p {
  margin: 0;
  max-width: 410px;
}

/* Reduce excess space around the now-smaller titles, keeping height fluid. */
body.am-packaging-site #home.hero {
  min-height: 0;
  padding-top: clamp(40px, 3.4vw, 56px);
}
body.am-packaging-site #home .hero__content { padding-bottom: 32px; }
body.am-packaging-site #home .hero__lead { margin-top: 22px; }
body.am-packaging-site #home .hero__actions { margin-top: 26px; }
body.am-packaging-site .am-blog-hero,
body.am-packaging-site .more-products-hero,
body.am-packaging-site .store-checkout-hero {
  padding-top: clamp(38px, 4vw, 64px);
  padding-bottom: clamp(42px, 4vw, 64px);
}
body.am-packaging-site .am-blog-hero__copy,
body.am-packaging-site .more-products-hero__copy { min-width: 0; }
body.am-packaging-site .am-blog-hero__visual { min-height: 280px; }
body.am-packaging-site .am-blog-hero__card {
  min-height: 216px;
  width: min(290px, 86%);
  padding: 30px;
  border-radius: 28px;
}
body.am-packaging-site .am-blog-hero__card strong { font-size: 1.4rem; }
body.am-packaging-site .more-products-hero__visual {
  min-height: clamp(260px, 23vw, 330px);
}
body.am-packaging-site .store-product-page .product-detail-hero {
  padding-top: clamp(32px, 3vw, 48px);
  padding-bottom: clamp(38px, 4vw, 60px);
}
body.am-packaging-site .store-product-page .product-breadcrumb {
  margin-bottom: clamp(22px, 2vw, 30px);
}
body.am-packaging-site .am-blog-single__hero {
  padding-top: 36px;
  padding-bottom: 44px;
}
body.am-packaging-site .am-blog-single__hero-inner { row-gap: 24px; }
body.am-packaging-site .am-blog-single__hero-inner.has-no-featured-image {
  grid-template-columns: minmax(0, 1fr);
}
body.am-packaging-site .has-no-featured-image .am-blog-single__heading {
  max-width: 850px;
}
body.am-packaging-site .am-blog-single__heading > p {
  font-size: 1.0625rem;
  line-height: 1.7;
}
body.am-packaging-site .am-blog-single__meta { margin-top: 20px; }
body.am-packaging-site .am-blog-listing.section { padding-block: clamp(42px, 5vw, 72px); }

/* Article subheadings stay below the page title in the type hierarchy. */
body.am-packaging-site .am-blog-single__content h2 {
  font-size: clamp(1.625rem, calc(1.1rem + .7vw), 2rem);
  line-height: 1.25;
  letter-spacing: -.02em;
}
body.am-packaging-site .am-blog-single__content h3 {
  font-size: clamp(1.1875rem, calc(1rem + .35vw), 1.375rem);
  line-height: 1.3;
}

/* Text-bearing artwork must not be cropped or zoomed behind a mask. */
body.am-packaging-site .am-blog-card__media { aspect-ratio: 16 / 9; }
body.am-packaging-site .am-blog-card__media img { object-fit: contain; }
body.am-packaging-site .am-blog-card:hover .am-blog-card__media img { transform: none; }
body.am-packaging-site .am-blog-empty > .button { margin-top: 24px; }

@media (max-width: 900px) {
  body.am-packaging-site .am-blog-hero__inner { gap: 28px; }
  body.am-packaging-site .am-blog-hero__visual { min-height: 220px; }
  body.am-packaging-site .am-blog-hero__card { min-height: 190px; }
  body.am-packaging-site .more-products-hero__grid { gap: 30px; }
  body.am-packaging-site .am-blog-single__hero-inner { row-gap: 24px; }
}
@media (max-width: 760px) {
  body.am-packaging-site {
    --amp-home-title: clamp(2rem, 8.5vw, 2.375rem);
    --amp-page-title: clamp(1.875rem, 7.6vw, 2.125rem);
    --amp-article-title: clamp(1.75rem, 7vw, 2rem);
    --amp-section-title: clamp(1.625rem, 6.4vw, 1.875rem);
  }
  body.am-packaging-site #home.hero { padding: 26px 0 28px; }
  body.am-packaging-site #home .hero__content { padding-bottom: 0; }
  body.am-packaging-site #home .hero__actions { margin-top: 20px; }
  body.am-packaging-site .am-blog-hero,
  body.am-packaging-site .more-products-hero,
  body.am-packaging-site .store-checkout-hero { padding: 32px 0 38px; }
  body.am-packaging-site .am-blog-single__hero { padding: 26px 0 34px; }
  body.am-packaging-site .store-product-page .product-detail-hero { padding: 28px 0 36px; }
  body.am-packaging-site .product-detail-grid { gap: 24px; }
  body.am-packaging-site .am-blog-section-heading { gap: 16px; }
  body.am-packaging-site .am-blog-section-heading > p { max-width: none; }
  body.am-packaging-site .am-blog-single__heading > p,
  body.am-packaging-site .am-blog-hero__copy > p,
  body.am-packaging-site .more-products-hero__copy > p,
  body.am-packaging-site .product-detail-lead { font-size: 1rem; line-height: 1.7; }
  body.am-packaging-site .more-products-hero__visual { min-height: 220px; }
  body.am-packaging-site .am-blog-listing.section { padding-block: 40px; }
  body.am-packaging-site .am-blog-single__content h2 { font-size: clamp(1.5rem, 6.2vw, 1.625rem); }
}


/* v5.9.1 - slim Why Us image frames.
   The legacy .value-photo rules combined a 7px white border, 14px padding
   and white contain gutters. Only this collage is changed here.
   Images retain their native ratio, so there is no crop or white matting. */
body.am-packaging-site #process.value-section .value-photo {
  display: block;
  height: auto;
  aspect-ratio: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 18px;
  background: var(--am-deep);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .20);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

body.am-packaging-site #process.value-section .value-photo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

body.am-packaging-site #process.value-section .value-photo:hover {
  border-color: rgba(255, 255, 255, .42);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .24);
}

/* Retain the entire product at hover; the old zoom cropped image edges. */
body.am-packaging-site #process.value-section .value-photo:hover img {
  transform: none;
}

body.am-packaging-site #process.value-section .value-photo:focus-visible {
  outline: 2px solid var(--am-yellow);
  outline-offset: 5px;
}

@media (max-width: 760px) {
  body.am-packaging-site #process.value-section .value-media {
    align-items: start;
  }
  body.am-packaging-site #process.value-section .value-photo {
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.am-packaging-site #process.value-section .value-photo {
    transition: none;
  }
}

/* v5.10.0: accessible FAQ action and call-number states. */
body.am-packaging-site #faq .faq-intro a.button--dark,
body.am-packaging-site #faq .faq-intro a.button--dark:link,
body.am-packaging-site #faq .faq-intro a.button--dark:visited {
  background: #0d2b2f !important;
  border-color: #0d2b2f !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
body.am-packaging-site #faq .faq-intro a.button--dark:hover,
body.am-packaging-site #faq .faq-intro a.button--dark:focus,
body.am-packaging-site #faq .faq-intro a.button--dark:active {
  background: #0e6970 !important;
  border-color: #0e6970 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
body.am-packaging-site #faq .faq-intro a.button--dark i,
body.am-packaging-site #faq .faq-intro a.button--dark span {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
body.am-packaging-site #contact a.contact-phone,
body.am-packaging-site #contact a.contact-phone:visited,
body.am-packaging-site #contact a.contact-phone strong {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
body.am-packaging-site #contact a.contact-phone small {
  color: #c3d6d7 !important;
  -webkit-text-fill-color: #c3d6d7 !important;
}
body.am-packaging-site #contact a.contact-phone:hover,
body.am-packaging-site #contact a.contact-phone:focus,
body.am-packaging-site #contact a.contact-phone:active,
body.am-packaging-site #contact a.contact-phone:hover strong,
body.am-packaging-site #contact a.contact-phone:focus strong,
body.am-packaging-site #contact a.contact-phone:active strong {
  color: #ffce43 !important;
  -webkit-text-fill-color: #ffce43 !important;
}
body.am-packaging-site #contact a.contact-phone > span,
body.am-packaging-site #contact a.contact-phone i {
  color: #0d2b2f !important;
  -webkit-text-fill-color: #0d2b2f !important;
}
body.am-packaging-site #contact a.contact-page-link,
body.am-packaging-site #contact a.contact-page-link:visited { display: inline-flex; gap: 10px; align-items: center; color: #ffe29a !important; margin: 0 0 20px; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
body.am-packaging-site #contact a.contact-page-link:hover { color: #ffffff !important; }
body.am-packaging-site #faq .faq-intro a.button--dark:focus-visible,
body.am-packaging-site #contact a.contact-phone:focus-visible,
body.am-packaging-site #contact a.contact-page-link:focus-visible { outline: 2px solid #fdbb18; outline-offset: 5px; }
.am-packet-update { padding: 14px 16px; margin: 16px 0; border: 1px solid #e9d6a4; background: #fff9e9; border-radius: 12px; color: #4e471f; font-size: 14px; line-height: 1.7; }
.am-packet-update[hidden] { display: none !important; }

/* v5.12.0 – honest tier tables, savings and warehouse-weight notes. */
.amp-tier-table{border-collapse:collapse;width:100%;font-size:13px;table-layout:fixed;margin:12px 0 15px;color:#213b3f}
.amp-tier-table th,.amp-tier-table td{padding:10px 5px;text-align:left;border-bottom:1px solid #d8e6e7;vertical-align:middle;overflow-wrap:anywhere}
.amp-tier-table thead th{font-weight:800;color:#0b626c;font-size:11px;white-space:normal}
.amp-tier-table tbody th{font-weight:750}
.amp-tier-table tbody td{font-weight:700;font-variant-numeric:tabular-nums}
.amp-tier-live{margin:12px 0;padding:12px 14px;border-left:4px solid #28b5bb;border-radius:8px;background:#eaf7f6;color:#10424a;font-size:13px;font-weight:650;line-height:1.6}
.amp-tier-live:empty{display:none}
.amp-weight-warning{background:#fff9e7;border:1px solid #f3d68a;border-radius:10px;padding:12px 14px;color:#4b410f;font-size:13px;line-height:1.65;margin:12px 0}
.amp-block-check{display:flex;gap:12px;align-items:flex-start;padding:13px 14px;margin:14px 0;background:#eefaf8;border:1px solid #c6e6e4;border-radius:10px;font-size:13px;line-height:1.6;color:#173b3e;cursor:pointer}
.amp-block-check input{margin-top:4px;flex:none;width:18px;height:18px;accent-color:#087783}
.amp-block-check span{flex:1}
.amp-rate-comparison{font-size:12px;line-height:1.5;padding:8px 10px;background:#eef6f6;border-radius:7px}
.amp-checkout-fee{margin:7px 0;font-size:12px;font-weight:650;color:#0f6973;line-height:1.5}
.store-checkout-page.has-weight-estimate .store-checkout-total small::after{content:" • actual kg to be confirmed";font-size:11px;font-weight:600}
@media (max-width:600px){.amp-tier-table{font-size:12px}.amp-tier-table th,.amp-tier-table td{padding:8px 4px}.amp-tier-live,.amp-weight-warning{font-size:12px}}
