/* =====================================================================
   Amazing Meds — Divi child theme
   ---------------------------------------------------------------------
   Only what Divi's global settings cannot express lives here.
   Fonts, colours, sizes, header height, footer columns, button styling
   are all set in Divi > Theme Options / Customizer.
   ===================================================================== */

/* ---------- Design tokens (mirrors design/index.html :root) ---------- */
:root {
  --ama-ink: #2f2a25;
  --ama-ink-2: #26251f;
  --ama-heading: #312c21;
  --ama-body: #5a5a5a;
  --ama-muted: #8a8172;
  --ama-cream: #f9f7f3;
  --ama-cream-2: #f5efe6;
  --ama-sand: #ebe4d7;
  --ama-sand-2: #e8decd;
  --ama-gold: #bfa568;
  --ama-gold-d: #a98f56;
  --ama-tan: #b29b81;
  --ama-line: #e8e0d3;
  --ama-serif: 'Playfair Display', Georgia, serif;
  --ama-brand: 'Bodoni Moda', Georgia, serif;
  --ama-sans: 'Open Sans', Arial, sans-serif;
  --ama-pill: 999px;
  --ama-radius: 14px;
  --ama-shadow: 0 14px 44px rgba(49, 44, 33, .09);
  --ama-shadow-sm: 0 6px 20px rgba(49, 44, 33, .07);
  --ama-wrap: 1200px;
  /* Header height comes from Divi (Customizer > Header & Navigation > Menu
     Height); enqueue.php re-publishes it as --ama-menu-height. */
  --ama-menu-height: 78px;
  --ama-menu-height-fixed: 62px;
  /* Gap between the nav text and the header edge, i.e. the dropdown offset. */
  --ama-nav-gap: calc((var(--ama-menu-height) - 20px) / 2);
}

/* =====================================================================
   1. BASE
   ===================================================================== */
.ama-design h1,
.ama-design h2,
.ama-design h3,
.ama-design h4,
.ama-design h5,
.ama-design h6 {
  letter-spacing: -.01em;
}

/* Divi's container is 80% wide by default; the design uses a fixed max width. */
.ama-design .container {
  width: 90%;
  max-width: var(--ama-wrap);
}

/* =====================================================================
   2. TOP BAR  (#top-header — Divi "secondary" nav)
   Content comes from Divi > Theme Options: phone number + email.
   ===================================================================== */
.ama-design #top-header {
  font-family: var(--ama-sans);
  font-weight: 400;
  line-height: 1.6;
  padding: 9px 0;
  box-shadow: none;
}

.ama-design #top-header .container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  gap: 0;
  flex-wrap: wrap;
}

.ama-design #top-header .container:before,
.ama-design #top-header .container:after {
  display: none;
}

.ama-design #top-header #et-info {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  float: none;
  gap: 0;
}

.ama-design #top-header #et-info-phone,
.ama-design #top-header #et-info-email {
  padding: 0;
  font-size: 13.5px;
  font-weight: 400;
  /* Divi ships the top bar at 600 */
}

/* Leading icons, matching the design's 📞 / ✉ affordances. */
.ama-design #top-header #et-info-phone:before {
  content: "\260E";
  margin-right: 8px;
  opacity: .85;
}

.ama-design #top-header #et-info-email:before {
  content: "\2709";
  margin-right: 8px;
  opacity: .85;
}

/* Divider between phone and email. */
.ama-design #top-header #et-info-phone+a {
  margin-left: 0;
}

.ama-design #top-header #et-info-phone+a:before {
  content: "|";
  opacity: .4;
  margin: 0 10px;
}

.ama-design #top-header #et-info a,
.ama-design #top-header #et-info a:hover {
  text-decoration: none;
}

.ama-design #top-header #et-secondary-menu {
  float: none;
}

/* =====================================================================
   3. HEADER  (#main-header)
   ===================================================================== */

/* ---------- Space for the overlay header, reserved before Divi's JS ----
   The header is absolutely positioned over the top of the page, so Divi
   measures it after load and pushes the first block of content down to
   clear it. That runs after first paint, so every page dropped its content
   140-200px in front of the visitor: it was most of the CLS on the home,
   contact, shop and product pages alike (0.17 to 0.25).

   Divi does it two different ways, so this is fixed two different ways.

   Builder pages: it *adds* the header height to the first section's
   padding-top (70px becomes 214px on the homepage). Because it reads the
   computed padding and adds to it, declaring the settled value here would
   just get 144px added on top of that. So the space is held on a ::before,
   which Divi does not measure, and assets/js/hero-header-space.js drops it
   in the same frame Divi writes its padding.

   WooCommerce pages (shop, product, archives - no builder layout): it
   *sets* #main-content .container's padding-top to the header height
   outright, without reading what is there, so simply declaring the same
   value wins and no script is involved.

   144px and 200px are both fixed in this header design - checked from
   390px to 1440px wide. If the header's height changes, re-measure: load a
   page of each kind and compare getComputedStyle paddingTop on the target
   element before and after Divi's script runs. */
.ama-design.et_transparent_nav.et_pb_pagebuilder_layout .et_pb_section_0::before {
  content: "";
  display: block;
  height: 144px;
}

.ama-design.et_transparent_nav.ama-header-space-released .et_pb_section_0::before {
  display: none;
}

.ama-design.et_transparent_nav:not(.et_pb_pagebuilder_layout) #main-content .container {
  padding-top: 200px;
}

/* Sit the main header below the top bar from the first paint.
   Divi ships `body.et_fixed_nav.et_secondary_nav_enabled #main-header
   { top: 30px }` - 30px being its own secondary nav's height. This top bar
   carries two lines of contact details and is 67.5px, so Divi's script
   corrected the header's position after load and the header visibly jumped
   38px down. On the Cart page, where little else is above the fold, that
   one move was the whole 0.15 CLS.

   67.5px is #top-header's height, which is the same at every width here
   (it is padding plus one block of contact text). It only governs the
   first paint: once Divi takes over it writes `top` inline, including the
   shrink to 0 when the header becomes fixed on scroll. */
.ama-design.et_fixed_nav.et_secondary_nav_enabled #main-header {
  top: 67.5px;
}

.ama-design #main-header {
  border-bottom: 1px solid var(--ama-line);
  box-shadow: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.ama-design #main-header.et-fixed-header,
.ama-design.et-fixed-header #main-header {
  box-shadow: var(--ama-shadow-sm);
  border-bottom: 1px solid var(--ama-line);
}

.ama-design #main-header .et_menu_container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--ama-menu-height);
  transition: min-height .4s ease-in-out;
}

/* Divi shrinks the header once the page scrolls. */
.ama-design #main-header.et-fixed-header .et_menu_container {
  min-height: var(--ama-menu-height-fixed);
}

.ama-design #main-header .et_menu_container:before,
.ama-design #main-header .et_menu_container:after {
  display: none;
}

/* ---------- Wordmark ---------- */
.ama-design .logo_container {
  float: none;
  width: auto;
  height: auto;
  position: static;
  display: flex;
  align-items: center;
}

.ama-design .ama-brand {
  display: inline-block;
  line-height: 1;
  text-decoration: none;
}

.ama-design .ama-wordmark {
  font-family: var(--ama-brand);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  color: var(--ama-tan);
  letter-spacing: .01em;
  white-space: nowrap;
}

.ama-design .ama-wordmark em {
  font-style: italic;
}

/* ---------- Navigation ---------- */
.ama-design #et-top-navigation {
  display: flex;
  align-items: center;
  gap: 18px;
  float: none;
  padding: 0 !important;
  margin: 0;
}

.ama-design #top-menu-nav {
  float: none;
}

.ama-design #top-menu {
  display: flex;
  align-items: center;
  gap: 34px;
  float: none;
}

.ama-design #top-menu>li {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
}

/* Divi pads top-level anchors by ~39px to bridge the gap to their dropdown.
   That padding would push the underline far below the text, so the padding is
   removed here and the bridge is rebuilt as a pseudo-element on the <li>. */
.ama-design #top-menu>li>a {
  font-family: var(--ama-sans);
  font-weight: 600;
  text-transform: uppercase;
  padding: 0 !important;
  position: relative;
  opacity: 1;
}

/* Gold underline that grows on hover / for the current page. */
.ama-design #top-menu>li>a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--ama-gold);
  transition: width .25s ease;
}

/* Invisible hover bridge so the cursor can travel into a dropdown. */
.ama-design #top-menu>li.menu-item-has-children:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: var(--ama-nav-gap);
}

/* Drop submenus clear of the header now that the anchor padding is gone. */
.ama-design #top-menu>li>ul.sub-menu {
  top: 100%;
  margin-top: var(--ama-nav-gap);
}

.ama-design #top-menu>li>a:hover:after,
.ama-design #top-menu>li.current-menu-item>a:after,
.ama-design #top-menu>li.current_page_item>a:after,
.ama-design #top-menu>li.current-menu-ancestor>a:after {
  width: 100%;
}

/* Divi dims the hovered link by default; the design keeps it solid. */
.ama-design #top-menu li a:hover {
  opacity: 1;
}

/* Dropdowns */
.ama-design #top-menu li ul {
  border-top: 2px solid var(--ama-gold);
  border-radius: 0 0 var(--ama-pill) var(--ama-pill);
  border-radius: 0 0 10px 10px;
  box-shadow: var(--ama-shadow);
  padding: 10px 0;
}

.ama-design #top-menu li li a {
  font-family: var(--ama-sans);
  font-weight: 500;
  font-size: 14px;
  padding: 9px 20px;
  width: 220px;
}

/* ---------- Header call-to-action ---------- */
.ama-design .ama-header-cta {
  display: flex;
  align-items: center;
}

.ama-design .ama-header-cta .et_pb_button.ama-btn-dark {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--ama-sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  padding: 12px 24px;
  border-radius: var(--ama-pill);
  border: 2px solid var(--ama-ink);
  background: var(--ama-ink);
  color: #fff;
  white-space: nowrap;
  transition: .25s;
}

.ama-design .ama-header-cta .et_pb_button.ama-btn-dark:hover {
  background: #000;
  border-color: #000;
  color: #fff;
  transform: translateY(-2px);
  padding: 12px 24px;
}

.ama-design .ama-header-cta .et_pb_button:after,
.ama-design .ama-header-cta .et_pb_button:before {
  display: none !important;
}

/* ---------- Cart icon (renders once WooCommerce is active) ---------- */
.ama-design #et-top-navigation .et-cart-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 2px solid var(--ama-line);
  border-radius: var(--ama-pill);
  background: #fff;
  color: var(--ama-ink);
  transition: .2s;
}

.ama-design #et-top-navigation .et-cart-info:hover {
  border-color: var(--ama-ink);
}

/* ---------- Mobile menu ---------- */
.ama-design .et_mobile_menu {
  border-top: 3px solid var(--ama-gold);
  box-shadow: var(--ama-shadow);
  padding: 8px 0;
}

.ama-design .et_mobile_menu li a {
  font-family: var(--ama-sans);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--ama-line);
}

.ama-design .mobile_menu_bar:before {
  color: var(--ama-ink);
}

/* =====================================================================
   4. GLOBAL BUTTONS
   Colours, radius and size come from Divi > Customizer > Buttons.
   Divi's toggle only offers 400/700, so the design's 600 is set here.
   ===================================================================== */
.ama-design .et_pb_button {
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: .55em;
  transition: .25s;
}

.ama-design .et_pb_button:hover {
  transform: translateY(-2px);
}

/* =====================================================================
   5. FOOTER  (#main-footer)
   Colours and column count come from Divi > Customizer > Footer.
   ===================================================================== */
.ama-design #main-footer {
  font-family: var(--ama-sans);
  font-size: 14.5px;
}

.ama-design #footer-widgets {
  padding: 70px 0 0;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.ama-design #footer-widgets .footer-widget {
  width: auto !important;
  margin: 0 !important;
  float: none;
  padding: 0;
}

.ama-design #footer-widgets .footer-widget .fwidget {
  margin-bottom: 0;
}

.ama-design #footer-widgets h3.title,
.ama-design #footer-widgets h4.title {
  font-family: var(--ama-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 0;
}

.ama-design #footer-widgets ul {
  display: grid;
  gap: 11px;
  list-style: none;
  padding: 0;
}

.ama-design #footer-widgets ul li {
  padding: 0;
  margin: 0;
  list-style: none;
}

.ama-design #footer-widgets ul li:before {
  display: none;
}

.ama-design #footer-widgets a {
  transition: color .2s;
}

.ama-design #footer-widgets a:hover {
  color: var(--ama-gold);
}

/* ---------- Footer brand column ---------- */
.ama-design .ama-foot-brand {
  margin-bottom: 16px;
}

.ama-design .ama-foot-tagline {
  max-width: 300px;
  padding-bottom: 0;
}

/* ---------- Footer social icons ---------- */
.ama-design .ama-social {
  display: flex !important;
  gap: 12px;
  margin-top: 18px;
  list-style: none;
}

.ama-design .ama-social li {
  margin: 0;
  padding: 0;
}

.ama-design .ama-social li a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .15);
  color: #cfc7b8;
  transition: .2s;
}

.ama-design .ama-social li a:hover {
  background: var(--ama-gold);
  border-color: var(--ama-gold);
  color: #2b2415;
}

/* Visually hidden labels — the glyph carries the meaning. */
.ama-design .ama-social li a span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Glyphs from Divi's bundled ETmodules icon font. The colour is set on
   the glyph itself, not the link: the Customizer's footer link colour
   (#footer-widgets .footer-widget li a:hover) outranks any class rule on
   the <a>, and inherited from there the icon vanished into the gold
   hover disc. */
.ama-design .ama-social li a:before {
  font-family: 'ETmodules';
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  font-style: normal;
  color: #cfc7b8;
  speak: none;
  -webkit-font-smoothing: antialiased;
  transition: color .2s;
}

.ama-design .ama-social li a:hover:before {
  color: #2b2415;
}

.ama-design .ama-social-facebook a:before {
  content: "\e093";
}

.ama-design .ama-social-twitter a:before {
  content: "\e094";
}

.ama-design .ama-social-instagram a:before {
  content: "\e09a";
}

/* ---------- Footer bottom row ---------- */
.ama-design #footer-bottom {
  padding: 24px 0 28px;
}

.ama-design #footer-bottom .container {
  padding: 0;
}

.ama-design #footer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  float: none;
  width: 100%;
  padding: 0;
}

/* Divi bolds footer credit links; the design keeps them at body weight. */
.ama-design #footer-info a {
  color: inherit;
  font-weight: 400;
}

.ama-design #footer-info a:hover {
  color: var(--ama-gold);
}

/* ---------- Compliance disclaimer ---------- */
.ama-design .ama-disclaimer {
  background: #1d1c17;
  color: #7a7261;
  font-family: var(--ama-sans);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  padding: 16px 0;
}

.ama-design .ama-disclaimer .container {
  width: 90%;
  max-width: var(--ama-wrap);
  padding: 0;
}

/* =====================================================================
   6. HOMEPAGE  (page "Home", built with Divi — see design/index.md)
   Structure, copy, colours and spacing live in the Divi Builder. Only the
   design details Divi's UI can't express are here, hooked onto the
   module_class names set on each module in the builder.
   ===================================================================== */

/* ---------- Shared section heading ---------- */
.ama-design .ama-home-sechead .ama-eyebrow,
.ama-design .ama-eyebrow {
  display: block;
  color: var(--ama-gold-d);
  font-family: var(--ama-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.ama-design .ama-home-sechead h2 {
  margin: 14px 0;
  padding: 0;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
}

.ama-design .ama-home-sechead p {
  padding-bottom: 0;
  font-size: 1.05rem;
}

.ama-design .ama-home-lead p {
  padding-bottom: 0;
  font-size: 1.08rem;
}

/* ---------- 1. Hero ---------- */
.ama-design .ama-home-hero .et_pb_row {
  display: flex;
  align-items: center;
}

.ama-design .ama-home-rating .et_pb_text_inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 10px;
  background: #fff;
  border: 1px solid var(--ama-line);
  border-radius: var(--ama-pill);
  box-shadow: var(--ama-shadow-sm);
}

.ama-design .ama-home-rating .ama-rating-avatars {
  display: flex;
}

.ama-design .ama-home-rating .ama-rating-avatars i {
  display: inline-block;
  width: 26px;
  height: 26px;
  margin-left: -8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--ama-sand-2) center / cover no-repeat;
}

/* The reviewer photos from amazing-meds.com's .review-avs (which shows
   the first one twice), cropped to the face. */
.ama-design .ama-home-rating .ama-rating-avatars i:nth-child(1),
.ama-design .ama-home-rating .ama-rating-avatars i:nth-child(2) {
  background-image: url("../images/review-avatar-1.jpg");
}

.ama-design .ama-home-rating .ama-rating-avatars i:nth-child(3) {
  background-image: url("../images/review-avatar-2.jpg");
}

.ama-design .ama-home-rating .ama-rating-stars {
  color: var(--ama-gold);
  font-size: 14px;
  letter-spacing: 2px;
}

.ama-design .ama-home-rating b {
  color: var(--ama-heading);
  font-family: var(--ama-sans);
  font-size: 14px;
}

.ama-design .ama-home-hero-title h1 {
  padding: 0;
  font-size: clamp(2.6rem, 5.2vw, 4.1rem);
  line-height: 1.15;
}

.ama-design .ama-home-hero-title h1 em {
  color: var(--ama-gold-d);
  font-style: normal;
}

.ama-design .ama-home-hero .ama-home-lead .et_pb_text_inner {
  max-width: 520px;
}

.ama-design .ama-home-feats ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 26px;
  max-width: 520px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ama-design .ama-home-feats li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  color: var(--ama-heading);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
}

.ama-design .ama-home-feats svg {
  flex: none;
  color: var(--ama-gold-d);
}

/* Divi stacks button modules; the design sets them side by side. */
.ama-design .ama-home-hero .et_pb_button_module_wrapper {
  display: inline-block;
  margin: 0 14px 14px 0;
}

/* ---------- 2. Trust bar ---------- */
.ama-design .ama-home-trust .et_pb_text_inner span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #cfc7b8;
  font-family: var(--ama-serif);
  font-size: 15px;
  letter-spacing: .03em;
}

.ama-design .ama-home-trust svg {
  flex: none;
  color: var(--ama-gold);
}

.ama-design .ama-home-trust .et_pb_column {
  margin-bottom: 0;
}

/* ---------- 3. Category tiles ---------- */
.ama-design .ama-home-cat {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  box-shadow: var(--ama-shadow-sm);
  transition: .3s;
}

.ama-design .ama-home-cat:hover {
  transform: translateY(-5px);
  box-shadow: var(--ama-shadow);
}

.ama-design .ama-home-cat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(38, 37, 31, .12), rgba(38, 37, 31, .72));
}

.ama-design .ama-home-cat>.et_pb_module {
  position: relative;
  z-index: 2;
  height: 100%;
  margin-bottom: 0;
}

/* Pushes the copy to the bottom of the tile, as in the design. */
.ama-design .ama-home-cat .et_pb_text_inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ama-design .ama-home-cat .ama-cat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: auto;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  backdrop-filter: blur(4px);
}

.ama-design .ama-home-cat h3 {
  margin-bottom: 4px;
  padding: 24px 0 0;
  color: #fff;
  font-size: 1.35rem;
}

.ama-design .ama-home-cat p {
  padding-bottom: 0;
  color: rgba(255, 255, 255, .85);
  font-size: 13.5px;
}

.ama-design .ama-home-cat .ama-cat-go {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  color: #fff;
  font-family: var(--ama-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* Makes the whole tile clickable while keeping the copy editable in Divi. */
.ama-design .ama-home-cat .ama-cat-go::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* ---------- 5. Why peptides ---------- */
.ama-design .ama-home-checklist ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ama-design .ama-home-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 0;
  color: var(--ama-heading);
  font-size: 15.5px;
}

.ama-design .ama-home-checklist .ama-ck {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  background: var(--ama-sand);
  color: var(--ama-gold-d);
  border-radius: 50%;
}

/* ---------- 6. Stats band ---------- */
.ama-design .ama-home-stats .et_pb_text_inner b {
  display: block;
  color: var(--ama-gold);
  font-family: var(--ama-serif);
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1;
}

.ama-design .ama-home-stats .et_pb_text_inner span {
  display: block;
  margin-top: 8px;
  color: #cfc7b8;
  font-size: 13.5px;
  letter-spacing: .04em;
}

/* ---------- 7. How it works ---------- */
.ama-design .ama-home-step .ama-step-n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  background: var(--ama-ink);
  color: #fff;
  border-radius: 50%;
  font-family: var(--ama-serif);
  font-size: 1.1rem;
}

.ama-design .ama-home-step h3 {
  margin-bottom: 8px;
  padding: 0;
  font-size: 1.28rem;
}

.ama-design .ama-home-step p {
  padding-bottom: 0;
  font-size: 14.5px;
}

/* ---------- 9. Closing CTA ---------- */
.ama-design .ama-home-cta {
  position: relative;
  overflow: hidden;
}

/* Divi's .et_pb_row:after clearfix sets visibility: hidden and clear: both,
   which took the second circle with it. */
.ama-design .ama-home-cta::before,
.ama-design .ama-home-cta::after {
  content: "";
  position: absolute;
  clear: none;
  visibility: visible;
  border-radius: 50%;
}

.ama-design .ama-home-cta::before {
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: rgba(191, 165, 104, .14);
}

.ama-design .ama-home-cta::after {
  bottom: -80px;
  left: -40px;
  width: 220px;
  height: 220px;
  background: rgba(191, 165, 104, .08);
}

.ama-design .ama-home-cta>.et_pb_column {
  position: relative;
  z-index: 2;
}

.ama-design .ama-home-cta-text .ama-eyebrow {
  color: var(--ama-gold);
}

.ama-design .ama-home-cta-text h2 {
  margin-bottom: 14px;
  padding: 14px 0 0;
  color: #fff;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
}

.ama-design .ama-home-cta-text p {
  max-width: 560px;
  margin: 0 auto;
  padding-bottom: 28px;
  color: #d6cebd;
}

/* =====================================================================
   7. RESPONSIVE
   ===================================================================== */
@media (max-width: 980px) {
  .ama-design #footer-widgets {
    grid-template-columns: 1fr 1fr;
    gap: 34px 24px;
  }

  .ama-design .ama-home-hero .et_pb_row {
    display: block;
  }
}

@media (max-width: 980px) {

  /* The selectors above are id+class, so they outrank Divi's own breakpoint
     rules - hand the nav back to Divi's mobile menu explicitly. */
  .ama-design #top-menu-nav,
  .ama-design #top-menu {
    display: none;
  }

  .ama-design #et_mobile_nav_menu {
    display: block;
  }

  .ama-design #et-top-navigation {
    gap: 12px;
  }
}

@media (max-width: 767px) {
  .ama-design #top-header .container {
    flex-direction: column;
    text-align: center;
  }

  .ama-design #top-header #et-info {
    flex-direction: column;
    gap: 2px;
  }

  .ama-design #top-header #et-info-phone+a:before {
    display: none;
  }

  .ama-design #footer-widgets {
    grid-template-columns: 1fr;
    padding-top: 50px;
  }

  .ama-design .ama-header-cta {
    display: none;
  }

  .ama-design #footer-info {
    justify-content: center;
    text-align: center;
  }

  .ama-design .ama-home-feats ul {
    grid-template-columns: 1fr;
  }

  .ama-design .ama-home-cta {
    padding: 44px 24px !important;
  }
}

/* =====================================================================
   8. SINGLE PRODUCT  (WooCommerce product page — see design/product.md)

   Self-contained, including its own breakpoints, because it styles
   WooCommerce's markup rather than the Divi chrome §1–§7 cover. Structure
   comes from WooCommerce's templates and the hooks in
   includes/woocommerce-single.php; this only carries the design.
   ===================================================================== */

/* The related-products band bleeds to the viewport edges, so clip any
   sub-pixel overflow its 100vw width can create. */
.ama-design.single-product #et-main-area {
  overflow-x: hidden;
}

/* Divi opens the content area with 58px of padding; the design starts with
   the cream breadcrumb strip flush under the header instead. */
.ama-design.single-product #main-content .container {
  padding-top: 0;
}

.ama-design.single-product #left-area {
  padding-bottom: 0;
  width: 100%;
}

/* The mini cart (assets/js/mini-cart.js) is now the design's
   feedback for a successful add, so the default wrapper's usual empty box
   is hidden rather than left as dead space. Only :empty - not a blanket
   `display: none` - because this same wrapper is how WooCommerce reports a
   real failure (e.g. requesting more than is in stock), which redirects
   back to this page with the wrapper populated and has no toast equivalent
   yet; that case still needs to be seen. */
.ama-design.single-product .woocommerce-notices-wrapper:empty {
  display: none;
}

/* ...and give the populated case the design's voice. Divi paints these
   solid gold with white 18px text and keeps the <ul>'s bullets, all
   !important, which reads as a banner rather than as something gone wrong.
   Same treatment as the account pages' notices (§14), re-stated here
   because that rule is scoped to .ama-account. --ama-radius-sm is scoped to
   .ama-wc-page, so the radius is the literal §8 uses elsewhere. */
.ama-design.single-product .woocommerce-notices-wrapper .woocommerce-message,
.ama-design.single-product .woocommerce-notices-wrapper .woocommerce-info,
.ama-design.single-product .woocommerce-notices-wrapper .woocommerce-error {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 28px;
  padding: 14px 18px !important;
  background: var(--ama-cream) !important;
  color: var(--ama-heading) !important;
  border: 1px solid var(--ama-line);
  border-radius: 9px;
  font-family: var(--ama-sans);
  font-size: 14.5px !important;
  line-height: 1.6;
  list-style: none;
}

/* A notice is a <ul>, so its items need the bullets and indent taken off -
   the flex parent above does the layout. */
.ama-design.single-product .woocommerce-notices-wrapper li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ama-design.single-product .woocommerce-notices-wrapper .woocommerce-error {
  background: #fbf1ee !important;
  border-color: #e6c4bb;
  color: #8a3b2a !important;
}

.ama-design.single-product .woocommerce-notices-wrapper .woocommerce-message {
  background: #f4f7f2 !important;
  border-color: #cfdcc6;
  color: #3f5c36 !important;
}

.ama-design.single-product .woocommerce-notices-wrapper a:not(.button) {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

/* The notice's inline button ("View cart"): outline pill, pushed to the end
   of the flex row so the sentence keeps the left edge. */
.ama-design.single-product .woocommerce-notices-wrapper a.button {
  order: 2;
  margin-left: auto;
  padding: 10px 20px !important;
  background: #fff !important;
  color: var(--ama-ink) !important;
  border: 1.5px solid var(--ama-ink) !important;
  border-radius: var(--ama-pill);
  font-size: 13.5px !important;
  font-weight: 600;
  line-height: 1;
}

/* ---------- Breadcrumb strip ---------- */
.ama-design.single-product .woocommerce-breadcrumb {
  margin: 0 calc(50% - 50vw) 40px;
  padding: 20px calc(50vw - 50%);
  background: var(--ama-cream);
  color: var(--ama-muted);
  font-family: var(--ama-sans);
  font-size: 14px;
}

.ama-design.single-product .woocommerce-breadcrumb a {
  color: var(--ama-muted);
  transition: .2s;
}

.ama-design.single-product .woocommerce-breadcrumb a:hover {
  color: var(--ama-gold-d);
}

/* ---------- Two-column PDP ----------
   Divi wraps the gallery and summary in a .clearfix (et_divi_output_product_wrapper),
   which makes a convenient grid container; WooCommerce's own float/width rules
   on the two children have to be unset for it to take effect. */
.ama-design.single-product div.product>.clearfix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.woocommerce.ama-design.single-product div.product div.images,
.woocommerce.ama-design.single-product div.product div.summary {
  float: none;
  width: auto;
  margin: 0;
}

/* ---------- Gallery ---------- */
.ama-design.single-product .woocommerce-product-gallery {
  position: sticky;
  top: calc(var(--ama-menu-height-fixed) + 24px);
  /* WooCommerce ships the gallery at opacity 0 and fades it in from JS.
     Pin it visible so the image never depends on that script arriving. */
  opacity: 1 !important;
}

.ama-design.single-product .woocommerce-product-gallery__wrapper {
  overflow: hidden;
  border: 1px solid var(--ama-line);
  border-radius: var(--ama-radius);
  background: linear-gradient(160deg, #f6f1e8, #ece3d5);
}

.ama-design.single-product .woocommerce-product-gallery__image img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Thumbnail strip (only rendered once a product has gallery images). */
.woocommerce.ama-design.single-product .flex-control-thumbs {
  display: flex;
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
}

.woocommerce.ama-design.single-product .flex-control-thumbs li {
  width: 84px;
  margin: 0;
  list-style: none;
}

.woocommerce.ama-design.single-product .flex-control-thumbs img {
  width: 84px;
  height: 84px;
  border: 2px solid var(--ama-line);
  border-radius: 9px;
  background: var(--ama-sand);
  object-fit: cover;
  opacity: 1;
  transition: .2s;
}

.woocommerce.ama-design.single-product .flex-control-thumbs img.flex-active,
.woocommerce.ama-design.single-product .flex-control-thumbs img:hover {
  border-color: var(--ama-gold);
}

/* ---------- Summary column ---------- */
.ama-design.single-product .summary .ama-pdp-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--ama-gold-d);
  font-family: var(--ama-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ama-design.single-product .summary .ama-pdp-kicker a {
  color: inherit;
}

.ama-design.single-product .summary .ama-pdp-kicker a:hover {
  color: var(--ama-ink);
}

.ama-design.single-product .summary .ama-pdp-sep {
  opacity: .55;
}

.ama-design.single-product .summary h1.product_title {
  margin: 0 0 12px;
  padding: 0;
  color: var(--ama-heading);
  font-family: var(--ama-serif);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
}

/* Rating row — WooCommerce only renders this once a product has reviews. */
.woocommerce.ama-design.single-product .summary .woocommerce-product-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--ama-muted);
  font-size: 14px;
}

.woocommerce.ama-design.single-product .summary .star-rating {
  margin: 0;
  color: var(--ama-gold);
  letter-spacing: 1px;
}

.woocommerce.ama-design.single-product .summary .woocommerce-review-link {
  color: var(--ama-muted);
}

/* Price. The struck-through "was" figure is WooCommerce's own sale markup;
   flex order puts the current price first, as the design has it. */
.woocommerce.ama-design.single-product .summary p.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 6px;
  padding: 0;
  color: var(--ama-heading);
  font-family: var(--ama-serif);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.1;
}

.woocommerce.ama-design.single-product .summary p.price ins {
  order: 1;
  background: none;
  text-decoration: none;
  font-weight: 600;
}

.woocommerce.ama-design.single-product .summary p.price del {
  order: 2;
  color: var(--ama-muted);
  font-size: 1.3rem;
  font-weight: 400;
  opacity: 1;
}

.woocommerce.ama-design.single-product .summary p.price .ama-pdp-price-suffix {
  order: 3;
  color: var(--ama-muted);
  font-family: var(--ama-sans);
  font-size: 14px;
  font-weight: 400;
}

.ama-design.single-product .summary .ama-pdp-subscribe {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 22px;
  padding: 0;
  color: var(--ama-gold-d);
  font-family: var(--ama-sans);
  font-size: 13.5px;
  font-weight: 600;
}

.ama-design.single-product .summary .woocommerce-product-details__short-description {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ama-line);
  color: var(--ama-body);
  font-size: 15.5px;
}

.ama-design.single-product .summary .woocommerce-product-details__short-description p:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Benefits checklist. */
.ama-design.single-product .summary .ama-pdp-benefits {
  display: grid;
  gap: 12px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.ama-design.single-product .summary .ama-pdp-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0;
  color: var(--ama-heading);
  font-size: 14.5px;
  line-height: 1.5;
}

.ama-design.single-product .ama-ck {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ama-sand);
  color: var(--ama-gold-d);
}

/* Dose/size chips. Informational, so they carry no hover or pressed state. */
.ama-design.single-product .summary .ama-pdp-opt-label,
.woocommerce.ama-design.single-product .summary .variations th.label label {
  display: block;
  margin-bottom: 10px;
  color: var(--ama-heading);
  font-family: var(--ama-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ama-design.single-product .summary .ama-pdp-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.ama-design.single-product .summary .ama-pdp-opt {
  padding: 10px 18px;
  border: 1.5px solid var(--ama-ink);
  border-radius: 9px;
  background: var(--ama-cream);
  color: var(--ama-ink);
  font-family: var(--ama-sans);
  font-weight: 600;
  font-size: 14px;
}

/* Variable products keep WooCommerce's real variation controls; give them the
   same visual language as the chips above. */
.woocommerce.ama-design.single-product .summary .variations {
  margin-bottom: 24px;
}

.woocommerce.ama-design.single-product .summary .variations td,
.woocommerce.ama-design.single-product .summary .variations th {
  display: block;
  padding: 0;
  border: 0;
}

.woocommerce.ama-design.single-product .summary .variations select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--ama-line);
  border-radius: 9px;
  background-color: #fff;
  color: var(--ama-ink);
  font-family: var(--ama-sans);
  font-size: 14px;
}

/* ---------- "Choose an option" prompt ----------
   Raised when the customer arrives from a shop card (whose "Add to cart" can
   only ever be a link on a variable product) and when Add to Cart or Buy Now
   is pressed with nothing chosen. One class on <body> drives both, set by
   includes/woocommerce-variation-prompt.php or by
   assets/js/variation-prompt.js; see those for why WooCommerce's own
   window.alert() is suppressed. Shape follows .ama-review-note (§20), the
   other in-summary note, in the brand gold rather than its clinical amber. */
.ama-design.single-product .summary .ama-pdp-choose {
  display: none;
}

.ama-design.single-product.ama-choose-prompt .summary .ama-pdp-choose {
  display: flex;
  gap: 10px;
  margin: 0 0 16px;
  padding: 14px 16px;
  background: #fdf9f0;
  border: 1px solid var(--ama-gold);
  border-radius: 12px;
  color: #6b5526;
  font-family: var(--ama-sans);
  font-size: 13px;
  line-height: 1.7;
  animation: ama-choose-in .22s ease-out both;
}

.ama-design.single-product .summary .ama-pdp-choose__ic {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--ama-gold-d);
  line-height: 1;
}

@keyframes ama-choose-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* The ring on the control the prompt is pointing at. Border colour as well
   as the ring, because a 3px gold glow on a pale border reads as a shadow
   rather than as "this one". */
.ama-design.single-product.ama-choose-prompt .summary .variations select {
  border-color: var(--ama-gold);
  box-shadow: 0 0 0 3px rgba(191, 165, 104, .22);
}

/* ...and it pulses twice when the prompt is first raised, which is what
   carries the eye down to the select after the page has scrolled to it.
   Twice, not infinite: a control that never stops throbbing stops reading
   as "do this" and starts reading as "something is wrong". The class is put
   on by assets/js/variation-prompt.js and taken off again so a second
   refused press can replay it. */
.ama-design.single-product.ama-choose-prompt .summary .variations.is-flash select {
  animation: ama-choose-pulse 1.1s ease-out 2;
}

/* Ends on the resting ring above, so the last frame and the static state
   are the same thing and the pulse settles instead of snapping. */
@keyframes ama-choose-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(191, 165, 104, .5);
  }

  70% {
    box-shadow: 0 0 0 11px rgba(191, 165, 104, 0);
  }

  100% {
    box-shadow: 0 0 0 3px rgba(191, 165, 104, .22);
  }
}


/* The label is deliberately NOT recoloured to match the ring: --ama-gold-d
   on white is 3.11:1, and at 12px/700 it is small text, so it would fail the
   4.5:1 §22 holds the rest of the page to. The prompt does not need it - it
   names the control in words, the script moves focus there and points the
   select at the prompt with aria-describedby, so nothing here rests on
   colour alone. */

/* Both the entrance and the pulse are decoration; the prompt, the ring and
   the scroll all still do their job without them. assets/js/variation-prompt.js
   checks the same query before it animates or smooth-scrolls. */
@media (prefers-reduced-motion: reduce) {

  .ama-design.single-product.ama-choose-prompt .summary .ama-pdp-choose,
  .ama-design.single-product.ama-choose-prompt .summary .variations.is-flash select {
    animation: none;
  }
}

/* ---------- Buy row ---------- */
.woocommerce.ama-design.single-product .summary form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 24px;
}

/* The variations table has to span the row above the buttons. */
.woocommerce.ama-design.single-product .summary form.cart.variations_form {
  display: block;
}

.woocommerce.ama-design.single-product .summary form.cart.variations_form .woocommerce-variation-add-to-cart {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
}

.woocommerce.ama-design.single-product .summary form.cart .quantity {
  display: inline-flex;
  align-items: center;
  float: none;
  margin: 0;
  border: 1.5px solid var(--ama-line);
  border-radius: var(--ama-pill);
  background: #fff;
}

.ama-design.single-product .summary .ama-qty-btn {
  width: 46px;
  height: 52px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ama-ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: .2s;
}

.ama-design.single-product .summary .ama-qty-btn:hover {
  color: var(--ama-gold-d);
}

.woocommerce.ama-design.single-product .summary form.cart .quantity input.qty {
  width: 38px;
  height: 52px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ama-heading);
  font-family: var(--ama-sans);
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

.ama-design.single-product .summary form.cart .quantity input.qty::-webkit-outer-spin-button,
.ama-design.single-product .summary form.cart .quantity input.qty::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}

/* Beats Divi's and WooCommerce's own button rules, which otherwise override
   colour, radius and padding — the same fight as .ama-pb-btn in the plugin. */
.woocommerce.ama-design.single-product .summary form.cart .single_add_to_cart_button,
.woocommerce.ama-design.single-product .summary form.cart .ama-pdp-buynow {
  flex: 1;
  min-width: 150px;
  height: auto;
  padding: 16px 30px !important;
  border: 1.5px solid transparent !important;
  border-radius: var(--ama-pill) !important;
  font-family: var(--ama-sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transition: .25s;
}

.woocommerce.ama-design.single-product .summary form.cart .single_add_to_cart_button {
  background: var(--ama-gold) !important;
  color: #2b2415 !important;
}

.woocommerce.ama-design.single-product .summary form.cart .single_add_to_cart_button:hover {
  background: var(--ama-gold-d) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

.woocommerce.ama-design.single-product .summary form.cart .ama-pdp-buynow {
  background: var(--ama-ink) !important;
  color: #fff !important;
  cursor: pointer;
}

.woocommerce.ama-design.single-product .summary form.cart .ama-pdp-buynow:hover {
  background: #000 !important;
  transform: translateY(-2px);
}

/* Divi appends a pseudo-element arrow to buttons on hover. */
.ama-design.single-product .summary form.cart .single_add_to_cart_button::after,
.ama-design.single-product .summary form.cart .single_add_to_cart_button::before,
.ama-design.single-product .summary form.cart .ama-pdp-buynow::after,
.ama-design.single-product .summary form.cart .ama-pdp-buynow::before {
  display: none !important;
}

/* WooCommerce's own AddToCartHandler (add-to-cart.js) appends a plain
   "View cart" text link straight after the button on every successful add -
   the same handler that product-add-to-cart.js's 'added_to_cart' trigger
   feeds into, so it fires here too, once per page since the handler never
   removes a link it already added. The mini cart (mini-cart.js) is the
   design's "view cart" affordance now, so this would just be a second,
   plain-text one sitting beside a styled button. Matches
   ama-shop-modules.css's identical rule for the shop-grid card. */
.ama-design.single-product .summary form.cart .added_to_cart {
  display: none;
}

/* ---------- External/affiliate buy row ---------- */
/* An external product has no cart form, so its call-to-action links (lifted
   out of the short description by woocommerce-external.php) are laid out
   here with the same geometry as Add to Cart + Buy Now above. Labels can be
   several words, so these wrap rather than nowrap, and align-items: stretch
   keeps a wrapped button the same height as its neighbour. */
.woocommerce.ama-design.single-product .summary .ama-pdp-extcart {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 24px;
}

.woocommerce.ama-design.single-product .summary .ama-pdp-extcart .ama-pdp-extbtn {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 16px 24px !important;
  border: 1.5px solid transparent !important;
  border-radius: var(--ama-pill) !important;
  font-family: var(--ama-sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  transition: .25s;
}

.woocommerce.ama-design.single-product .summary .ama-pdp-extcart .ama-pdp-extbtn-primary {
  background: var(--ama-gold) !important;
  color: #2b2415 !important;
}

.woocommerce.ama-design.single-product .summary .ama-pdp-extcart .ama-pdp-extbtn-primary:hover {
  background: var(--ama-gold-d) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

.woocommerce.ama-design.single-product .summary .ama-pdp-extcart .ama-pdp-extbtn-alt {
  background: var(--ama-ink) !important;
  color: #fff !important;
}

.woocommerce.ama-design.single-product .summary .ama-pdp-extcart .ama-pdp-extbtn-alt:hover {
  background: #000 !important;
  color: #fff !important;
  transform: translateY(-2px);
}

/* Divi appends a pseudo-element arrow to buttons on hover. */
.ama-design.single-product .summary .ama-pdp-extcart .ama-pdp-extbtn::after,
.ama-design.single-product .summary .ama-pdp-extcart .ama-pdp-extbtn::before {
  display: none !important;
}

/* ---------- Trust badges ---------- */
.ama-design.single-product .summary .ama-pdp-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--ama-line);
}

.ama-design.single-product .ama-pdp-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ama-body);
  font-size: 12.5px;
  line-height: 1.4;
}

.ama-design.single-product .ama-pdp-badge-ic {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ama-cream);
  color: var(--ama-gold-d);
}

.ama-design.single-product .ama-pdp-badge-t b {
  display: block;
  color: var(--ama-heading);
  font-family: var(--ama-sans);
  font-size: 13px;
}

/* ---------- Tabs ---------- */
.ama-design.single-product .woocommerce-tabs {
  margin-top: 70px;
  padding-top: 44px;
  /* Divi boxes the whole tab panel (body.woocommerce .woocommerce-tabs);
     the design has a single rule above the pills instead. */
  border: 0;
  border-top: 1px solid var(--ama-line);
}

/* Divi's tab rules are scoped through #content-area and flagged !important
   (body.woocommerce #content-area div.product .woocommerce-tabs ul.tabs).
   Nothing built from classes alone can outrank an id, so these selectors
   carry #content-area too - that is the whole reason for their length. */
.ama-design.single-product #content-area div.product .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 30px !important;
  padding: 0 !important;
  border: 0;
  background: none !important;
  overflow: visible;
}

.ama-design.single-product #content-area div.product .woocommerce-tabs ul.tabs::before,
.ama-design.single-product #content-area div.product .woocommerce-tabs ul.tabs li::before,
.ama-design.single-product #content-area div.product .woocommerce-tabs ul.tabs li::after {
  display: none;
}

.ama-design.single-product #content-area div.product .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--ama-pill);
  background: none !important;
  box-shadow: none;
  transition: .2s;
}

/* Divi flags the tab link's colour and padding !important as well. */
.ama-design.single-product #content-area div.product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 11px 22px !important;
  color: var(--ama-muted) !important;
  font-family: var(--ama-sans);
  font-weight: 600;
  font-size: 15px;
  text-shadow: none;
}

.ama-design.single-product #content-area div.product .woocommerce-tabs ul.tabs li:hover a {
  color: var(--ama-heading) !important;
}

.ama-design.single-product #content-area div.product .woocommerce-tabs ul.tabs li.active {
  border-radius: var(--ama-pill) !important;
  background: var(--ama-ink) !important;
}

.ama-design.single-product #content-area div.product .woocommerce-tabs ul.tabs li.active a {
  color: #fff !important;
}

.ama-design.single-product #content-area div.product .woocommerce-tabs .woocommerce-Tabs-panel {
  max-width: 820px;
  margin: 0;
  padding: 0;
  color: var(--ama-body);
  font-size: 15.5px;
  line-height: 1.85;
}

/* Every panel repeats the tab's name as an H2; the pill row already says it. */
.ama-design.single-product .woocommerce-tabs .woocommerce-Tabs-panel>h2:first-child {
  display: none;
}

.ama-design.single-product .woocommerce-tabs .woocommerce-Tabs-panel h3 {
  margin: 0 0 14px;
  padding: 0;
  color: var(--ama-heading);
  font-family: var(--ama-serif);
  font-size: 1.4rem;
  font-weight: 600;
}

.ama-design.single-product .woocommerce-tabs .woocommerce-Tabs-panel p {
  margin-bottom: 16px;
  padding: 0;
}

.ama-design.single-product .woocommerce-tabs .ama-pdp-tab-list {
  display: grid;
  gap: 9px;
  margin: 0 0 16px 20px;
  padding: 0;
  list-style: disc;
}

/* ---------- FAQ accordion ---------- */
.ama-design.single-product .ama-faq-item {
  border-bottom: 1px solid var(--ama-line);
}

.ama-design.single-product .ama-faq-q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 18px 0;
  border: 0;
  background: none;
  color: var(--ama-heading);
  font-family: var(--ama-serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.ama-design.single-product .ama-faq-pm {
  flex: none;
  color: var(--ama-gold-d);
  font-family: var(--ama-sans);
  font-size: 1.4rem;
  line-height: 1;
}

/* The mock keeps a static "+"; rotating it into an "×" costs nothing and
   makes the open/closed state visible. */
.ama-design.single-product .ama-faq-q[aria-expanded="true"] .ama-faq-pm {
  display: inline-block;
  transform: rotate(45deg);
}

.ama-design.single-product .ama-faq-a {
  padding-bottom: 18px;
}

.ama-design.single-product .ama-faq-a p {
  margin: 0;
  padding: 0;
  color: var(--ama-body);
}

/* ---------- Related Treatments ---------- */
.woocommerce.ama-design.single-product .ama-related {
  margin: 70px calc(50% - 50vw) 0;
  padding: 88px calc(50vw - 50%);
  background: var(--ama-cream);
}

.ama-design.single-product .ama-related .ama-sec-head {
  max-width: 680px;
  margin: 0 auto 52px;
  text-align: center;
}

.ama-design.single-product .ama-related .ama-eyebrow {
  display: block;
  color: var(--ama-gold-d);
  font-family: var(--ama-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.woocommerce.ama-design.single-product .ama-related .ama-sec-head h2 {
  margin: 14px 0 0;
  padding: 0;
  color: var(--ama-heading);
  font-family: var(--ama-serif);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  text-align: center;
}

.ama-design.single-product .ama-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .ama-design.single-product div.product>.clearfix {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  /* WooCommerce's own `div.images { position: relative }` outranks a plain
     class reset, and the sticky `top` offset still applies to a relative
     box - which pushed the gallery down over the summary. Clearing `top`
     fixes it whichever position ends up winning. */
  .woocommerce.ama-design.single-product .woocommerce-product-gallery {
    position: static;
    top: auto;
  }

  .woocommerce.ama-design.single-product .ama-related {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .ama-design.single-product .ama-related-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .ama-design.single-product .summary .ama-pdp-badges {
    grid-template-columns: 1fr;
  }

  .woocommerce.ama-design.single-product .summary form.cart .single_add_to_cart_button,
  .woocommerce.ama-design.single-product .summary form.cart .ama-pdp-buynow {
    flex: 1 1 100%;
  }

  .woocommerce.ama-design.single-product .summary .ama-pdp-extcart .ama-pdp-extbtn {
    flex: 1 1 100%;
  }

  .ama-design.single-product .ama-related-grid {
    grid-template-columns: 1fr;
  }

  .ama-design.single-product .woocommerce-tabs {
    margin-top: 48px;
    padding-top: 32px;
  }
}

/* =====================================================================
   9. SHOP ARCHIVE  (WooCommerce product archive — see design/shop.html)

   Self-contained like §8, and shared by the shop page and product
   category/tag archives. Structure comes from WooCommerce's templates and
   the hooks in includes/woocommerce-archive.php; the cards themselves are
   styled by ama-shop-essentials (styles/ama-shop-modules.css), which owns
   `.ama-pb` for every place that card appears.
   ===================================================================== */

/* ---------- Page chrome ---------- */

/* The header is a transparent fixed bar, so the hero band runs underneath it
   and carries its own clearance - the same arrangement as the homepage hero,
   which hard-codes the equivalent padding in the builder. --ama-menu-height
   is Divi's own Menu Height, republished by includes/enqueue.php; the top bar
   is sized by Divi from its font settings rather than by an option, so its
   height is a token here. */
.ama-design.ama-shop {
  --ama-topbar-height: 42px;
}

/* Divi's JS writes that clearance as an inline padding-top on the content
   container - correct for a page whose content starts below the header, but
   here it would open a gap between the hero and the grid. !important is what
   it takes to outrank an inline style. */
.ama-design.ama-shop #main-content .container {
  padding-top: 46px !important;
}

.ama-design.ama-shop #left-area {
  width: 100%;
  padding-bottom: 0;
}

/* Divi's own script (js/custom.js) pushes the notices wrapper down by the
   fixed header's height on any .et_transparent_nav.et_full_width_page, so a
   notice cannot hide behind the header - which this archive became when the
   sidebar was dropped. The hero already supplies that clearance here, so the
   push only opens ~78px of blank space between the hero and the toolbar; it
   is written inline, hence !important. Kept alongside the :empty rule below
   in case this wrapper is ever populated here. */
.ama-design.ama-shop #left-area>.woocommerce-notices-wrapper {
  margin-top: 0 !important;
}

/* Same reasoning as the single-product page's identical rule in §8: the
   "Added to cart" toast covers the success case, so only hide the wrapper's
   usual empty box, not a real notice. */
.ama-design.ama-shop #left-area>.woocommerce-notices-wrapper:empty {
  display: none;
}

/* Divi's sidebar divider rule, which has nothing to divide here. */
.ama-design.ama-shop #main-content .container:before {
  display: none;
}

/* The centred column the full-bleed bands share with #left-area. */
.ama-design.ama-shop .ama-shop-wrap {
  width: 90%;
  max-width: var(--ama-wrap);
  margin: 0 auto;
}

/* ---------- Hero ---------- */
.ama-design.ama-shop .ama-shop-hero {
  padding: calc(var(--ama-topbar-height) + var(--ama-menu-height) + 54px) 0 48px;
  background: linear-gradient(180deg, var(--ama-cream), var(--ama-cream-2));
  border-bottom: 1px solid var(--ama-line);
}

/* Beats WooCommerce's own .woocommerce-breadcrumb block styling. */
.ama-design.ama-shop .ama-shop-hero .ama-shop-crumbs {
  margin: 0 0 14px;
  padding: 0;
  color: var(--ama-muted);
  font-family: var(--ama-sans);
  font-size: 13px;
  font-weight: 600;
}

.ama-design.ama-shop .ama-shop-crumbs a {
  color: var(--ama-muted);
  transition: .2s;
}

.ama-design.ama-shop .ama-shop-crumbs a:hover {
  color: var(--ama-gold-d);
}

.ama-design.ama-shop .ama-shop-crumb-sep {
  margin: 0 8px;
  opacity: .5;
}

.ama-design.ama-shop .ama-shop-title {
  margin: 0 0 12px;
  padding: 0;
  color: var(--ama-heading);
  font-family: var(--ama-serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.ama-design.ama-shop .ama-shop-lead {
  max-width: 560px;
  color: var(--ama-body);
  font-size: 1.08rem;
}

.ama-design.ama-shop .ama-shop-lead p:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ---------- Toolbar ---------- */
.ama-design.ama-shop .ama-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--ama-line);
}

.ama-design.ama-shop .ama-shop-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ama-design.ama-shop .ama-shop-chip {
  padding: 9px 18px;
  background: #fff;
  color: var(--ama-ink);
  border: 1.5px solid var(--ama-line);
  border-radius: var(--ama-pill);
  font-family: var(--ama-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: .2s;
}

.ama-design.ama-shop .ama-shop-chip:hover {
  border-color: var(--ama-ink);
  color: var(--ama-ink);
}

.ama-design.ama-shop .ama-shop-chip.is-active {
  background: var(--ama-ink);
  border-color: var(--ama-ink);
  color: #fff;
}

.ama-design.ama-shop .ama-shop-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ama-design.ama-shop .ama-shop-count {
  color: var(--ama-muted);
  font-size: 14px;
}

/* WooCommerce floats this form and gives the select its own chrome. */
.woocommerce.ama-design.ama-shop .ama-shop-tools .woocommerce-ordering {
  float: none;
  margin: 0;
}

.woocommerce.ama-design.ama-shop .ama-shop-tools .woocommerce-ordering select.orderby {
  max-width: 100%;
  padding: 9px 34px 9px 14px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%238a8172' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  color: var(--ama-ink);
  border: 1.5px solid var(--ama-line);
  border-radius: var(--ama-pill);
  font-family: var(--ama-sans);
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.woocommerce.ama-design.ama-shop .ama-shop-tools .woocommerce-ordering select.orderby:focus {
  outline: 2px solid var(--ama-gold);
  outline-offset: 2px;
}

/* ---------- Grid ---------- */
.ama-design.ama-shop .ama-shop-results {
  position: relative;
}

.ama-design.ama-shop .ama-shop-results:focus {
  outline: none;
}

.ama-design.ama-shop .ama-shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

/* While a swap is in flight the old cards stay in place, dimmed, rather than
   collapsing the page to nothing under the toolbar. */
.ama-design.ama-shop .ama-shop-results.is-loading .ama-shop-grid {
  opacity: .55;
  transition: opacity .2s;
  pointer-events: none;
}

.ama-design.ama-shop .ama-shop-empty {
  padding: 60px;
  color: var(--ama-muted);
  font-size: 15px;
  text-align: center;
}

/* ---------- Load more ---------- */
.ama-design.ama-shop .ama-shop-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
}

.ama-design.ama-shop .ama-shop-progress {
  margin: 0;
  padding: 0;
  color: var(--ama-muted);
  font-size: 14px;
}

.ama-design.ama-shop .ama-shop-more-btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: 14px 30px;
  background: transparent;
  color: var(--ama-ink);
  border: 1.5px solid var(--ama-ink);
  border-radius: var(--ama-pill);
  font-family: var(--ama-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: .25s;
}

.ama-design.ama-shop .ama-shop-more-btn:hover {
  background: var(--ama-ink);
  color: #fff;
}

.ama-design.ama-shop .ama-shop-more-btn.is-loading {
  opacity: .6;
  pointer-events: none;
}

/* ---------- Promo panel ---------- */
.ama-design.ama-shop .ama-shop-promo {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  margin-top: 56px;
  overflow: hidden;
  background: var(--ama-ink-2);
  color: #e8e0d3;
  border-radius: var(--ama-radius);
}

.ama-design.ama-shop .ama-shop-promo-text {
  padding: 48px;
}

.ama-design.ama-shop .ama-shop-promo-text .ama-eyebrow {
  color: var(--ama-gold);
}

.ama-design.ama-shop .ama-shop-promo-text h2 {
  margin: 12px 0 12px;
  padding: 0;
  color: #fff;
  font-family: var(--ama-serif);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.15;
}

.ama-design.ama-shop .ama-shop-promo-text p {
  margin: 0 0 22px;
  padding: 0;
  color: #cfc7b8;
}

.ama-design.ama-shop .ama-shop-promo-img {
  min-height: 260px;
  background-color: var(--ama-sand);
  background-position: center;
  background-size: cover;
}

/* ---------- Closing CTA ---------- */
.ama-design.ama-shop .ama-shop-cta-section {
  padding: 88px 0;
  background: #fff;
}

.ama-design.ama-shop .ama-shop-cta {
  position: relative;
  overflow: hidden;
  padding: 64px;
  background: linear-gradient(135deg, #312c21, #26251f);
  color: #e8e0d3;
  border-radius: calc(var(--ama-radius) + 6px);
  text-align: center;
}

.ama-design.ama-shop .ama-shop-cta::before,
.ama-design.ama-shop .ama-shop-cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.ama-design.ama-shop .ama-shop-cta::before {
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: rgba(191, 165, 104, .14);
}

.ama-design.ama-shop .ama-shop-cta::after {
  bottom: -80px;
  left: -40px;
  width: 220px;
  height: 220px;
  background: rgba(191, 165, 104, .08);
}

.ama-design.ama-shop .ama-shop-cta>* {
  position: relative;
  z-index: 2;
}

.ama-design.ama-shop .ama-shop-cta .ama-eyebrow {
  color: var(--ama-gold);
}

.ama-design.ama-shop .ama-shop-cta h2 {
  margin: 14px 0;
  padding: 0;
  color: #fff;
  font-family: var(--ama-serif);
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.ama-design.ama-shop .ama-shop-cta p {
  max-width: 560px;
  margin: 0 auto 28px;
  padding: 0;
  color: #d6cebd;
}

/* ---------- Gold pill button (promo + CTA) ---------- */
.ama-design.ama-shop .ama-btn-gold {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: 14px 30px;
  background: var(--ama-gold);
  color: #2b2415;
  border: 1.5px solid transparent;
  border-radius: var(--ama-pill);
  font-family: var(--ama-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transition: .25s;
}

.ama-design.ama-shop .ama-btn-gold:hover {
  background: var(--ama-gold-d);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .ama-design.ama-shop .ama-shop-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ama-design.ama-shop .ama-shop-cta-section {
    padding: 60px 0;
  }
}

@media (max-width: 767px) {
  .ama-design.ama-shop .ama-shop-hero {
    padding-bottom: 32px;
  }

  .ama-design.ama-shop .ama-shop-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .ama-design.ama-shop .ama-shop-grid {
    grid-template-columns: 1fr;
  }

  .ama-design.ama-shop .ama-shop-promo {
    grid-template-columns: 1fr;
  }

  .ama-design.ama-shop .ama-shop-promo-text {
    padding: 34px 24px;
  }

  .ama-design.ama-shop .ama-shop-cta {
    padding: 44px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .ama-design.ama-shop .ama-shop-more-btn,
  .ama-design.ama-shop .ama-btn-gold {
    transition: none;
  }

  .ama-design.ama-shop .ama-btn-gold:hover {
    transform: none;
  }
}

/* =====================================================================
   10. MINI CART

   Bottom-right panel opened by any WooCommerce "Add to cart" click and by
   the header cart icon. Shell printed by includes/mini-cart.php in the
   footer; contents re-rendered server-side as a cart fragment; behaviour in
   assets/js/mini-cart.js. Not gated behind .ama-design: it belongs to
   WooCommerce's cart flow itself, so it works the same on every page that
   flow reaches. Item rows follow the cart drawer in design/index.html.
   ===================================================================== */
.ama-mini-cart {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  width: min(400px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  background: #fff;
  color: var(--ama-body);
  border-radius: var(--ama-radius);
  box-shadow: var(--ama-shadow), 0 0 0 1px var(--ama-line);
  font-family: var(--ama-sans);
  font-size: 14px;
  line-height: 1.4;
  overflow: hidden;
  transform: translateY(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* visibility flips instantly on open (so focus() can land inside at once)
     and only after the fade on close. */
  transition: transform .3s ease, opacity .3s ease, visibility 0s linear .3s;
}

/* The shell is printed with [hidden]; visibility (below) does the real hiding
   so the exit transition can play. */
.ama-mini-cart[hidden] {
  display: flex;
}

.ama-mini-cart.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.ama-mini-cart:focus {
  outline: none;
}

.ama-mini-cart:focus-visible {
  box-shadow: var(--ama-shadow), 0 0 0 2px var(--ama-gold);
}

/* ---------- Minimised pill ---------- */
.ama-mini-cart-pill {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 300;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 18px 0 16px;
  background: var(--ama-ink);
  color: #fff;
  border-radius: var(--ama-pill);
  box-shadow: var(--ama-shadow);
  font-family: var(--ama-sans);
  text-decoration: none;
  transform: translateY(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .3s ease, opacity .3s ease, visibility 0s linear .3s;
}

.ama-mini-cart-pill[hidden] {
  display: inline-flex;
}

.ama-mini-cart-pill.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.ama-mini-cart-pill:hover,
.ama-mini-cart-pill:focus-visible {
  color: #fff;
  background: #000;
}

.ama-mini-cart-pill.is-visible:hover {
  transform: translateY(-2px);
}

.ama-mini-cart-pill:focus-visible {
  outline: 2px solid var(--ama-gold);
  outline-offset: 2px;
}

.ama-mini-cart-pill svg {
  flex: none;
  color: var(--ama-gold);
}

.ama-mini-cart-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: var(--ama-pill);
  background: var(--ama-gold);
  color: #2b2415;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

/* ---------- Head (the original toast strip) ---------- */
.ama-mini-cart-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 14px 18px;
  background: var(--ama-ink);
  color: #fff;
}

.ama-mini-cart-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(191, 165, 104, .18);
  color: var(--ama-gold);
}

.ama-mini-cart-title {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ama-mini-cart-close {
  flex: none;
  padding: 0;
  width: 26px;
  height: 26px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, .55);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: color .2s;
}

.ama-mini-cart-close:hover,
.ama-mini-cart-close:focus-visible {
  color: #fff;
}

/* ---------- Error notice (quantity request refused) ---------- */
.ama-mini-cart-notice {
  flex: none;
  margin: 0;
  padding: 10px 20px;
  background: #fbefe9;
  color: #8a3b1c;
  font-size: 13px;
  border-bottom: 1px solid #f1d9cc;
}

/* ---------- Content (the fragment) ---------- */
.ama-mini-cart-content {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ama-mini-cart.is-busy .ama-mini-cart-content {
  pointer-events: none;
}

.ama-mini-cart-items {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 46vh;
  margin: 0;
  padding: 0 20px;
  list-style: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.ama-mini-cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  margin: 0;
  border-bottom: 1px solid var(--ama-line);
  transition: opacity .2s, background-color .6s;
}

.ama-mini-cart-item:last-child {
  border-bottom: 0;
}

/* Dimmed while its own request is in flight - WooCommerce's remove handler
   blocks the row itself, this covers our quantity request. */
.ama-mini-cart-item.is-updating {
  opacity: .5;
}

/* The line that just came in from an Add to Cart click. */
.ama-mini-cart-item.is-just-added {
  animation: ama-mini-cart-flash 1.4s ease-out;
}

@keyframes ama-mini-cart-flash {

  0%,
  30% {
    background-color: var(--ama-cream-2);
    box-shadow: 0 0 0 8px var(--ama-cream-2);
  }

  100% {
    background-color: transparent;
    box-shadow: 0 0 0 8px transparent;
  }
}

.ama-mini-cart-thumb {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: var(--ama-sand);
  overflow: hidden;
}

.ama-mini-cart-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ama-mini-cart-item-body {
  flex: 1;
  min-width: 0;
}

.ama-mini-cart-item-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.ama-mini-cart-name {
  font-family: var(--ama-serif);
  font-size: 15px;
  line-height: 1.3;
  color: var(--ama-heading);
  text-decoration: none;
}

.ama-mini-cart-name:hover {
  color: var(--ama-gold-d);
}

/* Reset WooCommerce's default red circled "x" - the class is only there so
   wc-add-to-cart.js handles the click. */
.ama-mini-cart .ama-mini-cart-remove,
.woocommerce .ama-mini-cart .ama-mini-cart-remove.remove_from_cart_button {
  flex: none;
  display: inline;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--ama-muted);
  font-family: var(--ama-sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  text-align: right;
  text-decoration: underline;
  cursor: pointer;
  transition: color .2s;
}

.ama-mini-cart .ama-mini-cart-remove:hover,
.woocommerce .ama-mini-cart .ama-mini-cart-remove.remove_from_cart_button:hover {
  background: none;
  color: #a2311d;
}

/* Variation attributes (WooCommerce's <dl class="variation">). */
.ama-mini-cart-item dl.variation {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--ama-muted);
}

.ama-mini-cart-item dl.variation dt,
.ama-mini-cart-item dl.variation dd {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: 400;
}

.ama-mini-cart-item dl.variation dd p {
  display: inline;
  margin: 0;
}

.ama-mini-cart-item dl.variation dd::after {
  content: " ";
  display: block;
}

.ama-mini-cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.ama-mini-cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--ama-line);
  border-radius: var(--ama-pill);
  background: #fff;
}

.ama-mini-cart .ama-mini-cart-qty-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ama-ink);
  font-family: var(--ama-sans);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: color .2s;
}

.ama-mini-cart .ama-mini-cart-qty-btn:hover {
  color: var(--ama-gold-d);
}

.ama-mini-cart .ama-mini-cart-qty-btn:focus-visible {
  outline: 2px solid var(--ama-gold);
  outline-offset: -2px;
}

.ama-mini-cart .ama-mini-cart-qty-btn[disabled] {
  color: var(--ama-line);
  cursor: default;
}

.ama-mini-cart-qty-value {
  min-width: 26px;
  text-align: center;
  color: var(--ama-heading);
  font-size: 13px;
  font-weight: 600;
}

.ama-mini-cart-qty-fixed {
  color: var(--ama-muted);
  font-size: 13px;
}

.ama-mini-cart-price {
  color: var(--ama-gold-d);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.ama-mini-cart-price .woocommerce-Price-amount {
  color: inherit;
  font-weight: inherit;
}

/* ---------- Foot: subtotal + actions ---------- */
.ama-mini-cart-foot {
  flex: none;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--ama-line);
  background: var(--ama-cream);
}

.ama-mini-cart-subtotal {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  font-family: var(--ama-serif);
  font-size: 18px;
  color: var(--ama-heading);
}

.ama-mini-cart-subtotal-label small {
  margin-left: 6px;
  font-family: var(--ama-sans);
  font-size: 12px;
  color: var(--ama-muted);
}

.ama-mini-cart-subtotal-amount .woocommerce-Price-amount {
  color: inherit;
  font-weight: 600;
}

.ama-mini-cart-actions {
  display: flex;
  gap: 10px;
}

.ama-mini-cart .ama-mini-cart-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 2px solid var(--ama-ink);
  border-radius: var(--ama-pill);
  font-family: var(--ama-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: .25s;
}

.ama-mini-cart .ama-mini-cart-btn-dark {
  background: var(--ama-ink);
  color: #fff;
}

.ama-mini-cart .ama-mini-cart-btn-dark:hover {
  background: #000;
  border-color: #000;
  color: #fff;
  transform: translateY(-2px);
}

.ama-mini-cart .ama-mini-cart-btn-ghost {
  background: transparent;
  color: var(--ama-ink);
}

.ama-mini-cart .ama-mini-cart-btn-ghost:hover {
  background: #fff;
  color: var(--ama-ink);
  transform: translateY(-2px);
}

/* ---------- Empty state ---------- */
.ama-mini-cart-empty {
  padding: 32px 20px 24px;
  text-align: center;
  color: var(--ama-muted);
}

.ama-mini-cart-empty p {
  margin: 0 0 14px;
  padding: 0;
}

.ama-mini-cart-empty .ama-mini-cart-btn {
  flex: none;
  display: inline-flex;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .ama-mini-cart-pill {
    right: 16px;
    bottom: 16px;
  }

  .ama-mini-cart {
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: auto;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
  }

  .ama-mini-cart-title {
    white-space: normal;
  }

  .ama-mini-cart-items {
    max-height: 40vh;
  }
}

@media (prefers-reduced-motion: reduce) {

  .ama-mini-cart,
  .ama-mini-cart-pill {
    transition: opacity .2s;
    transform: none;
  }

  .ama-mini-cart.is-visible,
  .ama-mini-cart-pill.is-visible,
  .ama-mini-cart-pill.is-visible:hover {
    transform: none;
  }

  .ama-mini-cart-item.is-just-added {
    animation: none;
  }

  .ama-mini-cart .ama-mini-cart-btn:hover {
    transform: none;
  }
}

/* =====================================================================
   11. CART, CHECKOUT & MY ACCOUNT — shared chrome  (see design/checkout.html)

   Self-contained like §8 and §9. The Cart and Checkout pages are
   WooCommerce blocks - React renders everything inside
   .wp-block-woocommerce-cart / -checkout from its own class names, so the
   rules in §12 and §13 style that markup rather than any template of ours.
   My Account (§14) is the classic shortcode. includes/woocommerce-pages.php
   supplies the body classes, the hero band and the trust strip, and makes
   the three pages full width; this only carries the design.
   ===================================================================== */

/* ---------- Page chrome ---------- */

/* Same arrangement as the shop hero (§9): the transparent fixed header runs
   over the band, which carries its own clearance. */
.ama-design.ama-wc-page {
  --ama-topbar-height: 42px;
  --ama-radius-sm: 9px;
  --ama-focus: 0 0 0 3px rgba(191, 165, 104, .18);
}

/* Divi's JS writes the header clearance as inline padding on this container;
   the hero already supplies it. !important is what it takes to outrank an
   inline style (the same fight as §9). */
.ama-design.ama-wc-page #main-content .container {
  padding-top: 44px !important;
  padding-bottom: 80px;
}

/* Divi's sidebar divider rule, which has nothing to divide now. */
.ama-design.ama-wc-page #main-content .container:before {
  display: none;
}

.ama-design.ama-wc-page #left-area {
  float: none;
  width: 100%;
  padding-bottom: 0;
}

/* The hero band carries the page's one H1; Divi's in-column title is
   hidden rather than removed, since page.php prints it unconditionally. */
.ama-design.ama-wc-page h1.entry-title {
  display: none;
}

/* Divi styles every table and list inside .entry-content / #left-area
   (borders, cell padding, disc bullets); the blocks and the account
   templates bring their own structure. */
.ama-design.ama-wc-page .entry-content table,
.ama-design.ama-wc-page .entry-content tr td,
.ama-design.ama-wc-page .entry-content tr th {
  border: 0;
  padding: 0;
}

.ama-design.ama-wc-page #left-area ul,
.ama-design.ama-wc-page .entry-content ul {
  list-style: none;
  padding: 0;
  line-height: inherit;
}

/* The centred column the full-bleed band shares with #left-area. */
.ama-design.ama-wc-page .ama-wc-wrap {
  width: 90%;
  max-width: var(--ama-wrap);
  margin: 0 auto;
}

/* ---------- Hero ---------- */
.ama-design.ama-wc-page .ama-wc-hero {
  padding: calc(var(--ama-topbar-height) + var(--ama-menu-height) + 44px) 0 40px;
  background: linear-gradient(180deg, var(--ama-cream), var(--ama-cream-2));
  border-bottom: 1px solid var(--ama-line);
}

.ama-design.ama-wc-page .ama-wc-crumbs {
  margin: 0 0 14px;
  color: var(--ama-muted);
  font-family: var(--ama-sans);
  font-size: 13px;
  font-weight: 600;
}

.ama-design.ama-wc-page .ama-wc-crumbs a {
  color: var(--ama-muted);
  transition: .2s;
}

.ama-design.ama-wc-page .ama-wc-crumbs a:hover {
  color: var(--ama-gold-d);
}

.ama-design.ama-wc-page .ama-wc-crumb-sep {
  margin: 0 8px;
  opacity: .5;
}

.ama-design.ama-wc-page .ama-wc-title {
  margin: 0 0 10px;
  padding: 0;
  color: var(--ama-heading);
  font-family: var(--ama-serif);
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.ama-design.ama-wc-page .ama-wc-lead {
  max-width: 620px;
  margin: 0;
  padding: 0;
  color: var(--ama-body);
  font-size: 1.05rem;
}

.ama-design.ama-wc-page .ama-wc-continue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--ama-ink);
  font-family: var(--ama-sans);
  font-size: 14px;
  font-weight: 600;
  transition: .2s;
}

.ama-design.ama-wc-page .ama-wc-continue:hover {
  color: var(--ama-gold-d);
}

/* ---------- Trust strip (under the cart and checkout blocks) ---------- */
/* Carries #left-area so it outranks the list reset above and Divi's own
   #left-area ul rule. */
.ama-design.ama-wc-page #left-area ul.ama-wc-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 40px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--ama-line);
  list-style: none;
}

.ama-design.ama-wc-page .ama-wc-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ama-body);
  font-size: 13px;
  line-height: 1.45;
}

.ama-design.ama-wc-page .ama-wc-badge-ic {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ama-cream);
  color: var(--ama-gold-d);
}

.ama-design.ama-wc-page .ama-wc-badge-t b {
  display: block;
  color: var(--ama-heading);
  font-family: var(--ama-sans);
  font-size: 13.5px;
}

/* ---------- Block components shared by the cart and checkout ----------
   WooCommerce draws its dividers from this one property. */
.ama-design.ama-wc-page .wp-block-woocommerce-cart,
.ama-design.ama-wc-page .wp-block-woocommerce-checkout {
  --wc-separator-color: var(--ama-line);
  color: var(--ama-body);
  font-family: var(--ama-sans);
}

/* Two-column layout in place of the block's 65/35 flex split. The block
   also flips to one column through a container query at 700px; the grid
   here takes precedence and the breakpoint at the end of §13 handles it. */
.ama-design.ama-wc-page .wc-block-components-sidebar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr);
  gap: 48px;
  align-items: start;
  margin: 0;
}

.ama-design.ama-wc-page .wc-block-components-sidebar-layout .wc-block-components-main,
.ama-design.ama-wc-page .wc-block-components-sidebar-layout .wc-block-components-sidebar {
  width: auto;
  margin: 0;
}

.ama-design.ama-wc-page .wc-block-components-sidebar-layout .wc-block-components-main {
  padding: 0;
}

/* The order summary column: the mock's sticky cream panel. */
.ama-design.ama-wc-page .wc-block-components-sidebar-layout .wc-block-components-sidebar {
  position: sticky;
  top: calc(var(--ama-menu-height-fixed) + 24px);
  padding: 28px;
  background: var(--ama-cream);
  border: 1px solid var(--ama-line);
  border-radius: var(--ama-radius);
}

/* WooCommerce indents every totals row inside the sidebar by 16px through a
   container query; the panel's own padding does that job here. */
.ama-design.ama-wc-page .wc-block-components-sidebar .wc-block-components-panel,
.ama-design.ama-wc-page .wc-block-components-sidebar .wc-block-components-totals-coupon,
.ama-design.ama-wc-page .wc-block-components-sidebar .wc-block-components-totals-item {
  padding-left: 0;
  padding-right: 0;
}

/* Totals rows */
.ama-design.ama-wc-page .wc-block-components-totals-wrapper {
  padding: 10px 0;
  border-top: 1px solid var(--ama-line);
}

/* Fee, discount and shipping rows print an empty wrapper when they have
   nothing to say; WooCommerce collapses those and so does this. */
.ama-design.ama-wc-page .wc-block-components-totals-wrapper:empty,
.ama-design.ama-wc-page .wc-block-components-totals-wrapper:has(> :only-child:empty) {
  padding: 0;
  border-width: 0;
}

.ama-design.ama-wc-page .wc-block-components-totals-item {
  padding: 4px 0;
  color: var(--ama-body);
  font-size: 14.5px;
}

.ama-design.ama-wc-page .wc-block-components-totals-item__label {
  font-weight: 400;
}

.ama-design.ama-wc-page .wc-block-components-totals-item__value {
  color: var(--ama-heading);
  font-weight: 600;
}

.ama-design.ama-wc-page .wc-block-components-totals-item__description {
  color: var(--ama-muted);
  font-size: 12.5px;
}

/* The grand total, in the mock's serif. */
.ama-design.ama-wc-page .wc-block-components-totals-footer-item {
  padding-top: 12px;
}

.ama-design.ama-wc-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.ama-design.ama-wc-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  color: var(--ama-heading);
  font-family: var(--ama-serif);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
}

/* Coupon panel: the mock's .promo row. */
.ama-design.ama-wc-page .wc-block-components-totals-coupon .wc-block-components-panel__button {
  color: var(--ama-gold-d);
  font-family: var(--ama-sans);
  font-size: 14px;
  font-weight: 600;
  padding-bottom: .375em;
}

.ama-design.ama-wc-page .wc-block-components-totals-coupon__form {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 6px;
}

.ama-design.ama-wc-page .wc-block-components-totals-coupon__input {
  flex: 1;
  margin: 0;
}

/* Same specificity as the shared input rule further down, so the pill
   radius wins here. */
.ama-design.ama-wc-page .wc-block-components-totals-coupon__input input:is([type="text"]) {
  border-radius: var(--ama-pill);
  padding-left: 18px;
}

.ama-design.ama-wc-page .wc-block-components-totals-coupon__input label {
  left: 18px;
}

/* Outline pill beside the input. The primary button rule further down
   would otherwise make this full width and dark; repeating the button's
   own class chain is what outranks it. */
.ama-design.ama-wc-page .wc-block-components-totals-coupon__form .wc-block-components-button.wp-element-button.wc-block-components-totals-coupon__button:not(.is-link) {
  width: auto;
  flex: none;
  height: 52px;
  margin: 0;
  padding: 0 22px;
  background: #fff;
  color: var(--ama-ink);
  border: 1.5px solid var(--ama-ink);
  border-radius: var(--ama-pill);
  font-size: 14px;
}

.ama-design.ama-wc-page .wc-block-components-totals-coupon__form .wc-block-components-button.wp-element-button.wc-block-components-totals-coupon__button:not(.is-link):hover:not(:disabled) {
  background: var(--ama-ink);
  color: #fff;
  transform: none;
}

.ama-design.ama-wc-page .wc-block-components-totals-coupon__form .wc-block-components-button.wp-element-button.wc-block-components-totals-coupon__button:not(.is-link):disabled {
  opacity: .45;
}

/* Applied coupon chips */
.ama-design.ama-wc-page .wc-block-components-chip {
  background: var(--ama-sand);
  color: var(--ama-heading);
  border-radius: var(--ama-pill);
  font-weight: 600;
}

/* Text inputs and selects: the mock's .field controls. WooCommerce keeps its
   floating labels; only the chrome changes. :is() lifts the specificity
   above WooCommerce's own per-type rules. */
.ama-design.ama-wc-page .wc-block-components-text-input input:is([type="text"], [type="email"], [type="tel"], [type="number"], [type="password"], [type="url"]),
.ama-design.ama-wc-page .wc-blocks-components-select .wc-blocks-components-select__select {
  height: 52px;
  padding: 20px 15px 6px;
  background-color: #fff;
  color: var(--ama-ink);
  border: 1.5px solid var(--ama-line);
  border-radius: var(--ama-radius-sm);
  font-family: var(--ama-sans);
  font-size: 15px;
  line-height: 1.4;
  transition: border-color .2s, box-shadow .2s;
}

.ama-design.ama-wc-page .wc-blocks-components-select .wc-blocks-components-select__select {
  padding-right: 40px;
}

.ama-design.ama-wc-page .wc-block-components-text-input input:is([type="text"], [type="email"], [type="tel"], [type="number"], [type="password"], [type="url"]):focus,
.ama-design.ama-wc-page .wc-blocks-components-select .wc-blocks-components-select__select:focus {
  border: 1.5px solid var(--ama-gold);
  box-shadow: var(--ama-focus);
  outline: none;
}

.ama-design.ama-wc-page .wc-block-components-text-input label,
.ama-design.ama-wc-page .wc-blocks-components-select .wc-blocks-components-select__label {
  left: 15px;
  color: var(--ama-muted);
  font-family: var(--ama-sans);
  font-size: 15px;
}

.ama-design.ama-wc-page .wc-block-components-text-input label {
  top: 26px;
}

.ama-design.ama-wc-page .wc-block-components-text-input.is-active label,
.ama-design.ama-wc-page .wc-block-components-text-input input:-webkit-autofill+label,
.ama-design.ama-wc-page .wc-blocks-components-select .wc-blocks-components-select__label {
  top: 8px;
  transform: scale(.8);
}

.ama-design.ama-wc-page .wc-blocks-components-select .wc-blocks-components-select__container svg {
  right: 12px;
  color: var(--ama-muted);
}

.ama-design.ama-wc-page .wc-block-components-text-input.has-error input:is([type="text"], [type="email"], [type="tel"], [type="number"], [type="password"], [type="url"]),
.ama-design.ama-wc-page .has-error .wc-blocks-components-select .wc-blocks-components-select__select {
  border-color: #b5573f;
}

.ama-design.ama-wc-page .wc-block-components-validation-error {
  color: #b5573f;
  font-size: 13px;
}

.ama-design.ama-wc-page .wc-block-components-textarea {
  padding: 14px 15px;
  background: #fff;
  color: var(--ama-ink);
  border: 1.5px solid var(--ama-line);
  border-radius: var(--ama-radius-sm);
  font-family: var(--ama-sans);
  font-size: 15px;
}

.ama-design.ama-wc-page .wc-block-components-textarea:focus {
  border: 1.5px solid var(--ama-gold);
  box-shadow: var(--ama-focus);
}

/* Checkboxes */
.ama-design.ama-wc-page .wc-block-components-checkbox label {
  color: var(--ama-heading);
  font-size: 14px;
}

.ama-design.ama-wc-page .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
  border: 1.5px solid var(--ama-tan);
  border-radius: 5px;
  transition: .2s;
}

.ama-design.ama-wc-page .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked {
  background: var(--ama-ink);
  border-color: var(--ama-ink);
}

.ama-design.ama-wc-page .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:focus {
  outline: none;
  box-shadow: var(--ama-focus);
}

.ama-design.ama-wc-page .wc-block-components-checkbox .wc-block-components-checkbox__mark {
  fill: #fff;
}

/* Radios (shipping rates, payment methods) */
.ama-design.ama-wc-page .wc-block-components-radio-control .wc-block-components-radio-control__input {
  border: 1.5px solid var(--ama-tan);
  transition: .2s;
}

.ama-design.ama-wc-page .wc-block-components-radio-control .wc-block-components-radio-control__input:checked {
  border-color: var(--ama-ink);
}

.ama-design.ama-wc-page .wc-block-components-radio-control .wc-block-components-radio-control__input:checked:before {
  background: var(--ama-ink);
}

.ama-design.ama-wc-page .wc-block-components-radio-control .wc-block-components-radio-control__input:focus {
  outline: none;
  box-shadow: var(--ama-focus);
}

.ama-design.ama-wc-page .wc-block-components-radio-control__label {
  color: var(--ama-heading);
  font-weight: 600;
}

.ama-design.ama-wc-page .wc-block-components-radio-control__secondary-label {
  color: var(--ama-heading);
  font-weight: 600;
}

.ama-design.ama-wc-page .wc-block-components-radio-control__description,
.ama-design.ama-wc-page .wc-block-components-radio-control__secondary-description {
  color: var(--ama-muted);
  font-size: 13px;
}

/* Primary block buttons: Proceed to Checkout, Place Order. Beats the
   .wp-element-button styling WordPress applies to them. */
.ama-design.ama-wc-page .wc-block-components-button.wp-element-button:not(.is-link) {
  width: 100%;
  min-height: 0;
  padding: 17px 30px;
  background: var(--ama-ink);
  color: #fff;
  border: 1.5px solid var(--ama-ink);
  border-radius: var(--ama-pill);
  font-family: var(--ama-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
  transition: .25s;
}

.ama-design.ama-wc-page .wc-block-components-button.wp-element-button:not(.is-link):hover:not(:disabled) {
  background: #000;
  border-color: #000;
  color: #fff;
  transform: translateY(-2px);
}

.ama-design.ama-wc-page .wc-block-components-button.wp-element-button:not(.is-link):focus {
  box-shadow: var(--ama-focus);
  outline: none;
}

.ama-design.ama-wc-page .wc-block-components-button.wp-element-button:not(.is-link):disabled {
  opacity: .6;
  cursor: default;
}

/* Notices (errors, "coupon applied", stock changes) */

/* When a notice or an invalid field appears, WooCommerce scrolls it into
   view - to the very top of the viewport, which is under Divi's fixed top
   bar + header, so the error stays hidden. scroll-margin-top keeps the
   scroll target clear of the fixed chrome (top bar ~42px + fixed header)
   for scrollIntoView, focus() and assets/js/checkout-notices.js alike. */
.ama-design.ama-wc-page .wc-block-components-notices,
.ama-design.ama-wc-page .wc-block-components-notice-banner,
.ama-design.ama-wc-page .wc-block-components-checkout-step,
.ama-design.ama-wc-page .with-scroll-to-top__scroll-point {
  scroll-margin-top: calc(var(--ama-menu-height) + 42px + 24px);
}

/* Invalid fields get extra room so the step heading above them shows too. */
.ama-design.ama-wc-page .has-error,
.ama-design.ama-wc-page :is(.wp-block-woocommerce-checkout, .wp-block-woocommerce-cart) :is(input, select, textarea) {
  scroll-margin-top: calc(var(--ama-menu-height) + 42px + 80px);
}

.ama-design.ama-wc-page .wc-block-components-notice-banner {
  padding: 14px 16px !important;
  background: var(--ama-cream);
  color: var(--ama-heading);
  border: 1px solid var(--ama-line);
  border-radius: var(--ama-radius-sm);
  font-size: 14px;
}

.ama-design.ama-wc-page .wc-block-components-notice-banner>svg {
  background: var(--ama-gold-d);
}

.ama-design.ama-wc-page .wc-block-components-notice-banner.is-error {
  background: #fbf1ee;
  border-color: #e6c4bb;
  color: #8a3b2a;
}

.ama-design.ama-wc-page .wc-block-components-notice-banner.is-error>svg {
  background: #b5573f;
}

.ama-design.ama-wc-page .wc-block-components-notice-banner.is-success {
  background: #f3f6ee;
  border-color: #cfdcbd;
  color: #4a5f33;
}

.ama-design.ama-wc-page .wc-block-components-notice-banner.is-success>svg {
  background: #7f8a72;
}

.ama-design.ama-wc-page .wc-block-components-notice-banner.is-info,
.ama-design.ama-wc-page .wc-block-components-notice-banner.is-warning {
  background: var(--ama-cream);
  border-color: var(--ama-sand-2);
}

.ama-design.ama-wc-page .wc-block-components-notice-banner.is-info>svg,
.ama-design.ama-wc-page .wc-block-components-notice-banner.is-warning>svg {
  background: var(--ama-gold-d);
}

/* Product names and prices inside either block */
.ama-design.ama-wc-page .wc-block-components-product-name {
  color: var(--ama-heading);
  font-family: var(--ama-serif);
  font-weight: 600;
  text-decoration: none;
}

.ama-design.ama-wc-page a.wc-block-components-product-name:hover {
  color: var(--ama-gold-d);
}

.ama-design.ama-wc-page .wc-block-components-product-metadata {
  color: var(--ama-muted);
  font-size: 13px;
  line-height: 1.5;
}

.ama-design.ama-wc-page .wc-block-components-product-metadata__description p {
  margin: 0;
  padding: 0;
}

.ama-design.ama-wc-page .wc-block-components-product-details {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.ama-design.ama-wc-page .wc-block-components-sale-badge {
  background: rgba(255, 255, 255, .92);
  color: var(--ama-gold-d);
  border: 0;
  border-radius: var(--ama-pill);
  font-family: var(--ama-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* =====================================================================
   12. CART  (WooCommerce cart block)
   ===================================================================== */

/* ---------- Line items ---------- */

/* The items table becomes a white card; rows follow the cart drawer in
   design/index.html. Border-spacing is what the table would otherwise add
   between the card's padding and the first row. */
.ama-design.ama-cart table.wc-block-cart-items {
  width: 100%;
  margin: 0;
  padding: 6px 26px;
  background: #fff;
  border: 1px solid var(--ama-line);
  border-radius: var(--ama-radius);
  border-collapse: separate;
  border-spacing: 0;
}

/* The mock's drawer has no column headings, and the row itself reads
   clearly without them. */
.ama-design.ama-cart .wc-block-cart-items__header {
  display: none;
}

/* WooCommerce lays each row out as a grid (image | details) and lets the
   total fall where it may; this names all three columns. Being a grid, the
   <tr> takes a border of its own. */
.ama-design.ama-cart table.wc-block-cart-items .wc-block-cart-items__row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  column-gap: 0;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--ama-line);
}

.ama-design.ama-cart table.wc-block-cart-items .wc-block-cart-items__row:last-child {
  border-bottom: 0;
}

.ama-design.ama-cart table.wc-block-cart-items .wc-block-cart-items__row td {
  padding: 0;
  border: 0;
  vertical-align: top;
}

.ama-design.ama-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image {
  grid-column: 1;
  grid-row: 1;
  width: 92px;
  padding-right: 18px;
}

.ama-design.ama-cart table.wc-block-cart-items .wc-block-cart-item__image img {
  width: 92px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--ama-sand);
  border: 1px solid var(--ama-line);
  border-radius: var(--ama-radius-sm);
}

.ama-design.ama-cart .wc-block-cart-item__product {
  padding-right: 18px;
}

.ama-design.ama-cart .wc-block-cart-item__wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ama-design.ama-cart .wc-block-cart-item__product .wc-block-components-product-name {
  font-size: 17px;
  line-height: 1.3;
}

.ama-design.ama-cart .wc-block-cart-item__prices .wc-block-components-product-price {
  color: var(--ama-gold-d);
  font-family: var(--ama-sans);
  font-size: 14px;
  font-weight: 600;
}

.ama-design.ama-cart .wc-block-cart-item__prices del {
  color: var(--ama-muted);
  font-weight: 400;
}

/* Stepper + Remove, in one row under the text. */
.ama-design.ama-cart .wc-block-cart-item__quantity {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.ama-design.ama-cart .wc-block-components-quantity-selector {
  display: inline-flex;
  align-items: center;
  width: auto;
  height: 40px;
  margin: 0;
  background: #fff;
  border: 1.5px solid var(--ama-line);
  border-radius: var(--ama-pill);
  box-shadow: none;
  overflow: hidden;
}

/* WooCommerce draws the stepper's frame with a pseudo-element. */
.ama-design.ama-cart .wc-block-components-quantity-selector:after {
  display: none;
}

.ama-design.ama-cart .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
  min-width: 36px;
  height: 100%;
  color: var(--ama-ink);
  font-size: 18px;
  opacity: 1;
  transition: .2s;
}

.ama-design.ama-cart .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover:not(:disabled) {
  color: var(--ama-gold-d);
}

.ama-design.ama-cart .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:disabled {
  opacity: .35;
}

.ama-design.ama-cart .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
  min-width: 36px;
  height: 100%;
  color: var(--ama-heading);
  font-family: var(--ama-sans);
  font-size: 14px;
  font-weight: 600;
}

.ama-design.ama-cart .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input:focus {
  box-shadow: none;
}

.ama-design.ama-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link {
  display: inline-flex;
  align-items: center;
  height: auto;
  color: var(--ama-muted);
  font-family: var(--ama-sans);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: .2s;
}

.ama-design.ama-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link:hover {
  color: #b5573f;
}

.ama-design.ama-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total {
  grid-column: 3;
  grid-row: 1;
  padding-top: 2px;
  text-align: right;
}

.ama-design.ama-cart .wc-block-cart-item__total .wc-block-components-product-price {
  color: var(--ama-heading);
  font-family: var(--ama-serif);
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Totals ---------- */
/* WooCommerce hides this title in narrow containers (a container query on
   .wc-block-cart .wc-block-components-sidebar); the panel keeps it. */
.ama-design.ama-cart .wc-block-cart .wc-block-components-sidebar .wc-block-cart__totals-title {
  display: block;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  color: var(--ama-heading);
  font-family: var(--ama-serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -.01em;
  text-align: left;
  text-transform: none;
}

.ama-design.ama-cart .wp-block-woocommerce-cart-order-summary-coupon-form-block {
  border-top: 0;
  padding-top: 0;
}

/* Shipping calculator link and rates, when shipping is on. */
.ama-design.ama-cart .wc-block-components-totals-shipping__change-address-button,
.ama-design.ama-cart .wc-block-components-totals-shipping-address-summary,
.ama-design.ama-cart .wc-block-components-shipping-calculator-address__button {
  color: var(--ama-gold-d);
  font-size: 13px;
  font-weight: 600;
}

.ama-design.ama-cart .wc-block-cart__submit {
  margin-top: 20px;
}

.ama-design.ama-cart .wc-block-cart__submit-container {
  padding: 0;
}

/* WooCommerce docks a second copy of the button to the bottom of small
   screens; the sidebar sits right under the items here, so one is enough. */
.ama-design.ama-cart .wc-block-cart__submit-container--sticky {
  display: none;
}

.ama-design.ama-cart .wc-block-cart__payment-method-icons,
.ama-design.ama-cart .wc-block-components-payment-method-icons {
  justify-content: center;
  margin-top: 16px;
  opacity: .7;
}

/* ---------- Empty state ---------- */
.ama-design.ama-cart .wp-block-woocommerce-empty-cart-block {
  max-width: 520px;
  margin: 20px auto 0;
  padding: 60px 20px;
  text-align: center;
}

.ama-design.ama-cart .wp-block-woocommerce-empty-cart-block h2 {
  margin: 0 0 10px;
  padding: 0;
  color: var(--ama-heading);
  font-family: var(--ama-serif);
  font-size: 1.8rem;
  font-weight: 600;
}

/* The block's default heading carries a cart glyph above it. */
.ama-design.ama-cart .wp-block-woocommerce-empty-cart-block .with-empty-cart-icon:before {
  display: none;
}

.ama-design.ama-cart .wp-block-woocommerce-empty-cart-block p {
  margin: 0 0 22px;
  padding: 0;
  color: var(--ama-muted);
}

.ama-design.ama-cart .wp-block-woocommerce-empty-cart-block .wp-block-buttons {
  justify-content: center;
}

.ama-design.ama-cart .wp-block-woocommerce-empty-cart-block .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  padding: 15px 30px;
  background: var(--ama-ink);
  color: #fff;
  border: 1.5px solid var(--ama-ink);
  border-radius: var(--ama-pill);
  font-family: var(--ama-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transition: .25s;
}

.ama-design.ama-cart .wp-block-woocommerce-empty-cart-block .wp-block-button__link:hover {
  background: #000;
  border-color: #000;
  transform: translateY(-2px);
}

/* =====================================================================
   13. CHECKOUT  (WooCommerce checkout block)
   ===================================================================== */

/* ---------- Steps ---------- */

/* Each titled step becomes one of the mock's white .co-block cards. The
   order-notes and terms "steps" have no heading and stay plain, so they
   read as part of the payment card's tail rather than boxes of their own. */
.ama-design.ama-checkout .wc-block-components-checkout-step:has(> .wc-block-components-checkout-step__heading-container) {
  margin: 0 0 22px;
  padding: 28px 28px 30px;
  background: #fff;
  border: 1px solid var(--ama-line);
  border-radius: var(--ama-radius);
}

.ama-design.ama-checkout .wc-block-checkout__form {
  counter-reset: ama-step;
}

.ama-design.ama-checkout .wc-block-components-checkout-step__heading-container {
  gap: 6px;
  margin-bottom: 20px;
}

.ama-design.ama-checkout .wc-block-components-checkout-step__heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.ama-design.ama-checkout .wc-block-components-title.wc-block-components-checkout-step__title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--ama-heading);
  font-family: var(--ama-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

/* The mock's numbered circle. */
.ama-design.ama-checkout .wc-block-components-checkout-step__title:before {
  counter-increment: ama-step;
  content: counter(ama-step);
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--ama-ink);
  color: #fff;
  border-radius: 50%;
  font-family: var(--ama-sans);
  font-size: 14px;
  font-weight: 700;
}

.ama-design.ama-checkout .wc-block-components-checkout-step__heading-content {
  color: var(--ama-muted);
  font-size: 13.5px;
}

.ama-design.ama-checkout .wc-block-components-checkout-step__heading-content a {
  color: var(--ama-gold-d);
  font-weight: 600;
}

.ama-design.ama-checkout .wc-block-components-checkout-step__description {
  color: var(--ama-muted);
  font-size: 13.5px;
}

/* Two fields per row for the pairs the mock puts side by side. WooCommerce
   itself already does this for first/last name and city/state on wide
   forms via a container query; this matches the rest of the mock's grid. */
.ama-design.ama-checkout .wc-block-components-address-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ama-design.ama-checkout .wc-block-components-address-form>* {
  margin: 0;
}

.ama-design.ama-checkout .wc-block-components-address-form>.wc-block-components-address-form__email,
.ama-design.ama-checkout .wc-block-components-address-form>.wc-block-components-address-form__company,
.ama-design.ama-checkout .wc-block-components-address-form>.wc-block-components-address-form__country,
.ama-design.ama-checkout .wc-block-components-address-form>.wc-block-components-address-form__address_1,
.ama-design.ama-checkout .wc-block-components-address-form>.wc-block-components-address-form__address_2,
.ama-design.ama-checkout .wc-block-components-address-form>.wc-block-components-address-form__address_2-toggle,
.ama-design.ama-checkout .wc-block-components-address-form>.wc-block-components-address-form__address_2-hidden-input,
.ama-design.ama-checkout .wc-block-components-address-form>.wc-block-components-checkbox,
.ama-design.ama-checkout .wc-block-components-address-form>.wc-block-components-address-form__extra-fields,
.ama-design.ama-checkout .wc-block-components-address-form>.wc-block-components-additional-fields {
  grid-column: 1 / -1;
}

.ama-design.ama-checkout .wc-block-components-address-form__address_2-toggle {
  margin: 0;
  color: var(--ama-gold-d);
  font-family: var(--ama-sans);
  font-size: 13.5px;
  font-weight: 600;
}

.ama-design.ama-checkout .wc-block-components-address-form__address_2-toggle:hover {
  color: var(--ama-ink);
}

/* The saved-address card a returning customer sees instead of the form. */
.ama-design.ama-checkout .wc-block-components-address-card {
  padding: 18px 20px;
  background: var(--ama-cream);
  color: var(--ama-heading);
  border: 1px solid var(--ama-line);
  border-radius: var(--ama-radius-sm);
  font-size: 14.5px;
  line-height: 1.6;
}

.ama-design.ama-checkout .wc-block-components-address-card__edit {
  color: var(--ama-gold-d);
  font-weight: 600;
}

.ama-design.ama-checkout .wc-block-components-address-card__edit:hover {
  color: var(--ama-ink);
}

/* "Use same address for billing" and the other in-step checkboxes. */
.ama-design.ama-checkout .wc-block-components-checkout-step .wc-block-components-checkbox {
  margin-top: 8px;
}

/* ---------- Shipping and pickup rates ---------- */
.ama-design.ama-checkout .wc-block-components-shipping-rates-control__package,
.ama-design.ama-checkout .wc-block-components-local-pickup-rates-control {
  border: 0;
}

.ama-design.ama-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option,
.ama-design.ama-checkout .wc-block-components-shipping-rates-control .wc-block-components-radio-control__option,
.ama-design.ama-checkout .wc-block-checkout__shipping-method-option {
  margin-bottom: 10px;
  padding: 16px 16px 16px 48px;
  background: #fff;
  border: 1.5px solid var(--ama-line);
  border-radius: var(--ama-radius-sm);
  transition: .2s;
}

.ama-design.ama-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option:hover,
.ama-design.ama-checkout .wc-block-components-shipping-rates-control .wc-block-components-radio-control__option:hover {
  border-color: var(--ama-tan);
}

.ama-design.ama-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option-checked,
.ama-design.ama-checkout .wc-block-components-shipping-rates-control .wc-block-components-radio-control__option-checked,
.ama-design.ama-checkout .wc-block-checkout__shipping-method-option--selected {
  background: var(--ama-cream);
  border-color: var(--ama-ink);
}

/* WooCommerce draws the highlighted option's frame with pseudo-elements;
   the borders above replace them. */
.ama-design.ama-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option:after,
.ama-design.ama-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option:after,
.ama-design.ama-checkout .wc-block-components-radio-control--highlight-checked:after {
  display: none;
}

/* ---------- Payment methods ---------- */

/* Each gateway is an accordion: the option row, then its content. The
   card border sits on the accordion so both stay inside it. */
.ama-design.ama-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option {
  margin-bottom: 10px;
  background: #fff;
  border: 1.5px solid var(--ama-line);
  border-radius: var(--ama-radius-sm);
  overflow: hidden;
  transition: .2s;
}

.ama-design.ama-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option:hover {
  border-color: var(--ama-tan);
}

.ama-design.ama-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option--checked-option-highlighted {
  border-color: var(--ama-ink);
  box-shadow: none;
}

.ama-design.ama-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__option {
  margin: 0;
  padding: 16px 16px 16px 48px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.ama-design.ama-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__option-checked {
  background: var(--ama-cream);
}

.ama-design.ama-checkout .wc-block-components-payment-method-label {
  color: var(--ama-heading);
  font-weight: 600;
}

.ama-design.ama-checkout .wc-block-components-payment-method-icons {
  margin: 0;
}

.ama-design.ama-checkout .wc-block-components-radio-control-accordion-content {
  padding: 16px 20px 18px;
  border-top: 1px solid var(--ama-line);
  color: var(--ama-body);
  font-size: 14px;
  line-height: 1.6;
}

.ama-design.ama-checkout .wc-block-components-radio-control-accordion-content p:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Saved cards, when a gateway offers them. */
.ama-design.ama-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control:not(.wc-block-components-radio-control--highlight-checked) .wc-block-components-radio-control__option {
  padding: 14px 16px 14px 48px;
}

/* ---------- Order note, terms, Place Order ---------- */
.ama-design.ama-checkout .wc-block-checkout__order-notes {
  margin-top: 4px;
}

.ama-design.ama-checkout .wc-block-checkout__add-note .wc-block-components-textarea {
  margin-top: 12px;
}

.ama-design.ama-checkout .wc-block-checkout__terms {
  margin: 20px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--ama-line);
  color: var(--ama-muted);
  font-size: 13px;
  line-height: 1.6;
}

.ama-design.ama-checkout .wc-block-checkout__terms a {
  color: var(--ama-gold-d);
  font-weight: 600;
}

.ama-design.ama-checkout .wc-block-checkout__actions {
  margin-top: 20px;
}

.ama-design.ama-checkout .wc-block-checkout__actions_row {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.ama-design.ama-checkout .wc-block-components-checkout-return-to-cart-button {
  align-self: flex-start;
  color: var(--ama-muted);
  font-family: var(--ama-sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: .2s;
}

.ama-design.ama-checkout .wc-block-components-checkout-return-to-cart-button:hover {
  color: var(--ama-gold-d);
}

/* The "must be logged in" prompt shown when guest checkout is off. */
.ama-design.ama-checkout .wc-block-must-login-prompt {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--ama-line);
  border-radius: var(--ama-radius);
  color: var(--ama-heading);
  font-size: 15px;
}

.ama-design.ama-checkout .wc-block-must-login-prompt a {
  color: var(--ama-gold-d);
  font-weight: 600;
}

/* ---------- Order summary ---------- */
/* WooCommerce frames the summary block; the cream panel is the frame here. */
.ama-design.ama-checkout .wp-block-woocommerce-checkout-order-summary-block {
  padding: 0;
  border: 0;
  background: transparent;
}

.ama-design.ama-checkout .wc-block-components-checkout-order-summary__title {
  margin: 0 0 6px;
  padding: 0 0 16px;
  border-top: 0;
  border-bottom: 1px solid var(--ama-line);
  cursor: default;
}

.ama-design.ama-checkout .wc-block-components-checkout-order-summary__title-text {
  margin: 0;
  padding: 0;
  color: var(--ama-heading);
  font-family: var(--ama-serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

.ama-design.ama-checkout .wc-block-components-checkout-order-summary__title-price {
  color: var(--ama-heading);
  font-family: var(--ama-serif);
  font-weight: 600;
}

.ama-design.ama-checkout .wp-block-woocommerce-checkout-order-summary-cart-items-block {
  border-top: 0;
  padding-top: 4px;
}

.ama-design.ama-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--ama-line);
}

.ama-design.ama-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item:last-child {
  border-bottom: 0;
}

.ama-design.ama-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__image {
  width: 64px;
  margin-top: 0;
  padding-bottom: 0;
}

.ama-design.ama-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__image>img {
  width: 64px;
  max-width: 64px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--ama-sand);
  border: 1px solid var(--ama-line);
  border-radius: var(--ama-radius-sm);
}

/* The quantity bubble on the thumbnail's corner. WooCommerce paints it
   with currentColor and inverts the digit, so both are set explicitly. */
.ama-design.ama-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__quantity {
  background: var(--ama-gold);
  color: #2b2415;
  border: 2px solid #fff;
  box-shadow: none;
  font-family: var(--ama-sans);
  font-weight: 700;
}

.ama-design.ama-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__quantity span {
  color: #2b2415;
}

.ama-design.ama-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__description {
  padding: 2px 12px 0 16px;
}

.ama-design.ama-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-product-name {
  font-size: 15px;
  line-height: 1.3;
}

.ama-design.ama-checkout .wc-block-components-order-summary-item__individual-prices {
  color: var(--ama-muted);
  font-size: 12.5px;
}

.ama-design.ama-checkout .wc-block-components-order-summary-item__total-price {
  margin-left: auto;
  padding-left: 12px;
  color: var(--ama-heading);
  font-family: var(--ama-serif);
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Order received (classic thank-you template) ---------- */
.ama-design.ama-order-received .woocommerce-order {
  max-width: 760px;
  margin: 0 auto;
}

/* The mock's circled checkmark above the confirmation. */
.ama-design.ama-order-received .woocommerce-order:before {
  content: "";
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
  background: var(--ama-sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='42' viewBox='0 0 24 24' fill='none' stroke='%23a98f56' stroke-width='2.2'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 42px no-repeat;
  border-radius: 50%;
}

.ama-design.ama-order-received .woocommerce-thankyou-order-received,
.ama-design.ama-order-received .woocommerce-thankyou-order-failed {
  margin: 0 0 28px;
  padding: 0;
  color: var(--ama-heading);
  font-size: 1.1rem;
  text-align: center;
}

.ama-design.ama-order-received .woocommerce-thankyou-order-received strong {
  color: var(--ama-gold-d);
}

/* The order facts as a row of cream tiles. */
.ama-design.ama-order-received ul.woocommerce-order-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

/* WooCommerce's clearfix pseudo-elements would each take a grid cell. */
.ama-design.ama-order-received ul.woocommerce-order-overview:before,
.ama-design.ama-order-received ul.woocommerce-order-overview:after {
  display: none;
}

.ama-design.ama-order-received ul.woocommerce-order-overview li {
  margin: 0;
  padding: 16px 18px;
  background: var(--ama-cream);
  border: 1px solid var(--ama-line);
  border-radius: var(--ama-radius-sm);
  color: var(--ama-muted);
  font-family: var(--ama-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.4;
}

.ama-design.ama-order-received ul.woocommerce-order-overview li strong {
  display: block;
  margin-top: 6px;
  color: var(--ama-heading);
  font-family: var(--ama-serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: anywhere;
}

/* Order details and the address block as cards, sharing §14's table and
   address rules. */
.ama-design.ama-order-received .woocommerce-order-details,
.ama-design.ama-order-received .woocommerce-customer-details {
  margin: 0 0 22px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--ama-line);
  border-radius: var(--ama-radius);
}

/* Matches the specificity of §14's shared table rule, which sets the margin
   with !important to beat Divi's own. */
.ama-design :is(.ama-order-received .woocommerce-order-details, .ama-account .woocommerce-order-details) table.shop_table {
  margin-bottom: 0 !important;
}

.ama-design.ama-order-received .woocommerce-customer-details .woocommerce-column__title {
  margin-bottom: 10px;
}

/* Gateway instructions ("please send a check to…"). */
.ama-design.ama-order-received .woocommerce-order>p:not(.woocommerce-thankyou-order-received),
.ama-design.ama-order-received .woocommerce-bacs-bank-details {
  margin: 0 0 28px;
  padding: 18px 22px;
  background: var(--ama-cream);
  border: 1px solid var(--ama-line);
  border-radius: var(--ama-radius-sm);
  color: var(--ama-body);
  font-size: 14.5px;
}

.ama-design.ama-order-received .woocommerce-bacs-bank-details h2,
.ama-design.ama-order-received .woocommerce-bacs-bank-details h3 {
  margin-top: 0;
}

/* =====================================================================
   14. MY ACCOUNT  (classic [woocommerce_my_account] shortcode)
   ===================================================================== */

/* WooCommerce floats the navigation and content at 30/68%. */
.ama-design.ama-account .woocommerce-MyAccount-navigation,
.ama-design.ama-account .woocommerce-MyAccount-content {
  float: none;
  width: auto;
}

.ama-design.ama-account #left-area>.woocommerce,
.ama-design.ama-account .entry-content>.woocommerce {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  color: var(--ama-body);
  font-family: var(--ama-sans);
}

/* WooCommerce's clearfix pseudo-elements on the wrapper would each take a
   grid cell. */
.ama-design.ama-account #left-area>.woocommerce:before,
.ama-design.ama-account #left-area>.woocommerce:after,
.ama-design.ama-account .entry-content>.woocommerce:before,
.ama-design.ama-account .entry-content>.woocommerce:after {
  display: none;
}

/* Logged out, there is no navigation: the login form alone, centred. */
.ama-design.ama-account .entry-content>.woocommerce:not(:has(> .woocommerce-MyAccount-navigation)) {
  display: block;
}

/* ---------- Navigation ---------- */
.ama-design.ama-account .woocommerce-MyAccount-navigation {
  position: sticky;
  top: calc(var(--ama-menu-height-fixed) + 24px);
  padding: 10px;
  background: #fff;
  border: 1px solid var(--ama-line);
  border-radius: var(--ama-radius);
}

.ama-design.ama-account .woocommerce-MyAccount-navigation ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ama-design.ama-account .woocommerce-MyAccount-navigation li {
  margin: 0;
  padding: 0;
}

.ama-design.ama-account .woocommerce-MyAccount-navigation a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: var(--ama-heading);
  border-radius: var(--ama-radius-sm);
  font-family: var(--ama-sans);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: .2s;
}

.ama-design.ama-account .woocommerce-MyAccount-navigation a:hover {
  background: var(--ama-cream);
  color: var(--ama-heading);
}

.ama-design.ama-account .woocommerce-MyAccount-navigation .is-active a {
  background: var(--ama-ink);
  color: #fff;
}

.ama-design.ama-account .woocommerce-MyAccount-navigation-link--customer-logout {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--ama-line);
}

.ama-design.ama-account .woocommerce-MyAccount-navigation-link--customer-logout a {
  color: var(--ama-muted);
}

/* ---------- Content column ---------- */
.ama-design.ama-account .woocommerce-MyAccount-content {
  min-width: 0;
  font-size: 15px;
}

.ama-design.ama-account .woocommerce-MyAccount-content>p,
.ama-design.ama-account .woocommerce-MyAccount-content>form,
.ama-design.ama-account .woocommerce-MyAccount-content>table,
.ama-design.ama-account .woocommerce-MyAccount-content>.woocommerce-Addresses,
.ama-design.ama-account .woocommerce-MyAccount-content>.woocommerce-order-details,
.ama-design.ama-account .woocommerce-MyAccount-content>.woocommerce-customer-details,
.ama-design.ama-account .woocommerce-MyAccount-content>.woocommerce-notices-wrapper:not(:empty),
.ama-design.ama-account .woocommerce-MyAccount-content>.woocommerce-info,
.ama-design.ama-account .woocommerce-MyAccount-content>.woocommerce-message,
.ama-design.ama-account .woocommerce-MyAccount-content>.woocommerce-error {
  margin-bottom: 22px;
}

.ama-design.ama-account .woocommerce-MyAccount-content>p,
.ama-design.ama-account .woocommerce-MyAccount-content>.woocommerce-order-details,
.ama-design.ama-account .woocommerce-MyAccount-content>.woocommerce-customer-details,
.ama-design.ama-account .woocommerce-MyAccount-content>form:not(.woocommerce-form-track-order),
.ama-design.ama-account .woocommerce-MyAccount-content>table,
.ama-design.ama-account .woocommerce-MyAccount-content>.woocommerce-pagination {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--ama-line);
  border-radius: var(--ama-radius);
}

/* Dashboard: the two intro paragraphs share one card. */
.ama-design.ama-account .woocommerce-MyAccount-content>p {
  margin-bottom: 0;
  line-height: 1.7;
}

.ama-design.ama-account .woocommerce-MyAccount-content>p+p {
  padding-top: 0;
  border-top: 0;
  border-radius: 0 0 var(--ama-radius) var(--ama-radius);
}

.ama-design.ama-account .woocommerce-MyAccount-content>p:has(+ p) {
  border-bottom: 0;
  border-radius: var(--ama-radius) var(--ama-radius) 0 0;
}

.ama-design.ama-account .woocommerce-MyAccount-content>p:last-child {
  margin-bottom: 22px;
}

.ama-design.ama-account .woocommerce-MyAccount-content a:not(.button) {
  color: var(--ama-gold-d);
  font-weight: 600;
}

.ama-design.ama-account .woocommerce-MyAccount-content a:not(.button):hover {
  color: var(--ama-ink);
}

.ama-design.ama-account .woocommerce-MyAccount-content h2,
.ama-design.ama-account .woocommerce-MyAccount-content h3,
.ama-design.ama-account .woocommerce-MyAccount-content legend,
.ama-design.ama-order-received .woocommerce-order h2 {
  margin: 0 0 16px;
  padding: 0;
  color: var(--ama-heading);
  font-family: var(--ama-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

/* ---------- Notices ----------
   Divi paints these solid blue with white 18px text, all !important. */
.ama-design.ama-account .woocommerce-message,
.ama-design.ama-account .woocommerce-info,
.ama-design.ama-account .woocommerce-error {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 22px;
  padding: 14px 18px !important;
  background: var(--ama-cream) !important;
  color: var(--ama-heading) !important;
  border: 1px solid var(--ama-line);
  border-radius: var(--ama-radius-sm);
  font-family: var(--ama-sans);
  font-size: 14.5px !important;
  line-height: 1.6;
}

.ama-design.ama-account .woocommerce-error {
  background: #fbf1ee !important;
  border-color: #e6c4bb;
  color: #8a3b2a !important;
}

.ama-design.ama-account .woocommerce-error li {
  margin: 0;
  padding: 0;
}

.ama-design.ama-account .woocommerce-message a:not(.button),
.ama-design.ama-account .woocommerce-info a:not(.button) {
  color: var(--ama-gold-d);
  font-weight: 600;
}

/* The notice's inline button ("Browse products", "Go shop"): outline pill. */
.ama-design.ama-account .woocommerce-message a.button,
.ama-design.ama-account .woocommerce-info a.button,
.ama-design.ama-account .woocommerce-message a.button.wc-forward,
.ama-design.ama-account .woocommerce-info a.button.wc-forward {
  order: 2;
  margin-left: auto;
  padding: 10px 20px !important;
  background: #fff !important;
  color: var(--ama-ink) !important;
  border: 1.5px solid var(--ama-ink) !important;
  border-radius: var(--ama-pill);
  font-size: 13.5px !important;
  font-weight: 600;
  line-height: 1;
}

.ama-design.ama-account .woocommerce-message a.button:hover,
.ama-design.ama-account .woocommerce-info a.button:hover {
  background: var(--ama-ink) !important;
  color: #fff !important;
}

/* ---------- Buttons ----------
   Divi's own WooCommerce button rules (.woocommerce-page a.button etc.)
   set colour, radius, size and padding; the !important flags here are what
   it takes to beat them. */
.ama-design.ama-account .woocommerce-MyAccount-content .button:not(.wc-forward),
.ama-design.ama-account .woocommerce-form-login .button,
.ama-design:is(.ama-account, .ama-order-received) .woocommerce-form-register .button,
.ama-design.ama-account .woocommerce-ResetPassword .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: 14px 28px !important;
  background: var(--ama-ink) !important;
  color: #fff !important;
  border: 1.5px solid var(--ama-ink) !important;
  border-radius: var(--ama-pill) !important;
  font-family: var(--ama-sans);
  font-size: 14.5px !important;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: .25s;
}

.ama-design.ama-account .woocommerce-MyAccount-content .button:not(.wc-forward):hover,
.ama-design.ama-account .woocommerce-form-login .button:hover,
.ama-design:is(.ama-account, .ama-order-received) .woocommerce-form-register .button:hover,
.ama-design.ama-account .woocommerce-ResetPassword .button:hover {
  background: #000 !important;
  border-color: #000 !important;
  transform: translateY(-2px);
  padding: 14px 28px !important;
}

.ama-design.ama-account .woocommerce-MyAccount-content .button:after,
.ama-design.ama-account .woocommerce-MyAccount-content .button:before,
.ama-design.ama-account .woocommerce-form-login .button:after,
.ama-design.ama-account .woocommerce-form-login .button:before,
.ama-design:is(.ama-account, .ama-order-received) .woocommerce-form-register .button:after,
.ama-design:is(.ama-account, .ama-order-received) .woocommerce-form-register .button:before,
.ama-design.ama-account .woocommerce-ResetPassword .button:after,
.ama-design.ama-account .woocommerce-ResetPassword .button:before,
.ama-design.ama-account .woocommerce-message .button:after,
.ama-design.ama-account .woocommerce-info .button:after {
  display: none !important;
}

/* Row-level actions in tables ("View", "Pay", "Cancel", "Download"). */
.ama-design :is(.ama-account .woocommerce-MyAccount-content, .ama-order-received .woocommerce-order) table .button:not(.wc-forward) {
  padding: 9px 18px !important;
  background: #fff !important;
  color: var(--ama-ink) !important;
  font-size: 13px !important;
}

.ama-design :is(.ama-account .woocommerce-MyAccount-content, .ama-order-received .woocommerce-order) table .button:not(.wc-forward):hover {
  background: var(--ama-ink) !important;
  color: #fff !important;
  padding: 9px 18px !important;
  transform: none;
}

/* ---------- Tables (orders, downloads, order details) ---------- */
.ama-design :is(.ama-account .woocommerce-MyAccount-content, .ama-order-received .woocommerce-order) table.shop_table {
  width: 100%;
  margin: 0 0 22px !important;
  border: 1px solid var(--ama-line);
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14.5px;
}

.ama-design :is(.ama-account .woocommerce-MyAccount-content, .ama-order-received .woocommerce-order) table.shop_table th,
.ama-design :is(.ama-account .woocommerce-MyAccount-content, .ama-order-received .woocommerce-order) table.shop_table td {
  padding: 16px 12px;
  border: 0;
  border-bottom: 1px solid var(--ama-line);
  text-align: left;
  vertical-align: middle;
}

.ama-design :is(.ama-account .woocommerce-MyAccount-content, .ama-order-received .woocommerce-order) table.shop_table thead th {
  padding-top: 0;
  color: var(--ama-muted);
  font-family: var(--ama-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ama-design :is(.ama-account .woocommerce-MyAccount-content, .ama-order-received .woocommerce-order) table.shop_table tbody tr:last-child th,
.ama-design :is(.ama-account .woocommerce-MyAccount-content, .ama-order-received .woocommerce-order) table.shop_table tbody tr:last-child td {
  border-bottom: 0;
}

.ama-design :is(.ama-account .woocommerce-MyAccount-content, .ama-order-received .woocommerce-order) table.shop_table tfoot th,
.ama-design :is(.ama-account .woocommerce-MyAccount-content, .ama-order-received .woocommerce-order) table.shop_table tfoot td {
  border-bottom: 0;
  border-top: 1px solid var(--ama-line);
  color: var(--ama-heading);
  font-weight: 600;
}

.ama-design.ama-account .woocommerce-orders-table__cell-order-number a {
  font-family: var(--ama-sans);
}

/* Status with a gold dot. Wide screens only: below 640px the same
   pseudo-element carries the column label (see the breakpoint below). */
.ama-design.ama-account .woocommerce-orders-table__cell-order-status {
  color: var(--ama-heading);
  white-space: nowrap;
}

@media (min-width: 641px) {
  .ama-design.ama-account .woocommerce-orders-table__cell-order-status:before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    background: var(--ama-gold);
    border-radius: 50%;
    vertical-align: middle;
  }
}

.ama-design.ama-account .woocommerce-orders-table__cell-order-total {
  color: var(--ama-heading);
  font-weight: 600;
}

.ama-design.ama-account .woocommerce-orders-table__cell-order-actions {
  text-align: right;
}

.ama-design.ama-account .woocommerce-orders-table__cell-order-actions .button+.button {
  margin-left: 6px;
}

.ama-design :is(.ama-account .woocommerce-MyAccount-content, .ama-order-received .woocommerce-order) table.shop_table .woocommerce-Price-amount {
  color: inherit;
}

.ama-design.ama-account .woocommerce-pagination {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
}

/* ---------- Addresses ---------- */
.ama-design.ama-account .woocommerce-Addresses.col2-set,
.ama-design.ama-account .woocommerce-customer-details .col2-set,
.ama-design.ama-order-received .woocommerce-customer-details .col2-set {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 0 0 22px;
}

.ama-design.ama-account .woocommerce-Addresses.col2-set .col-1,
.ama-design.ama-account .woocommerce-Addresses.col2-set .col-2,
.ama-design.ama-account .woocommerce-customer-details .col2-set .col-1,
.ama-design.ama-account .woocommerce-customer-details .col2-set .col-2,
.ama-design.ama-order-received .woocommerce-customer-details .col2-set .col-1,
.ama-design.ama-order-received .woocommerce-customer-details .col2-set .col-2 {
  float: none;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 26px 28px;
  background: #fff;
  border: 1px solid var(--ama-line);
  border-radius: var(--ama-radius);
}

/* Both address tiles come from the same partial and WooCommerce also
   renders them inside the (already carded) customer details block. */
.ama-design.ama-account .woocommerce-customer-details .col2-set .col-1,
.ama-design.ama-account .woocommerce-customer-details .col2-set .col-2,
.ama-design.ama-order-received .woocommerce-customer-details .col2-set .col-1,
.ama-design.ama-order-received .woocommerce-customer-details .col2-set .col-2 {
  padding: 0;
  border: 0;
  border-radius: 0;
}

/* Clearfix pseudo-elements again (see the wrapper rule above). */
.ama-design.ama-account .col2-set:before,
.ama-design.ama-account .col2-set:after,
.ama-design.ama-order-received .col2-set:before,
.ama-design.ama-order-received .col2-set:after,
.ama-design.ama-account .woocommerce-Address-title:before,
.ama-design.ama-account .woocommerce-Address-title:after {
  display: none;
}

.ama-design.ama-account .woocommerce-Address-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ama-design.ama-account .woocommerce-Address-title h2,
.ama-design.ama-account .woocommerce-Address-title h3 {
  margin: 0;
  font-size: 1.15rem;
}

.ama-design.ama-account .woocommerce-Address-title .edit {
  font-size: 13.5px;
}

.ama-design.ama-account .woocommerce-MyAccount-content address,
.ama-design.ama-order-received .woocommerce-order address {
  color: var(--ama-body);
  font-style: normal;
  line-height: 1.75;
}

/* WooCommerce boxes the address and draws phone/email icons; only the box
   goes, the icons keep their indent. */
.ama-design :is(.woocommerce-MyAccount-content, .woocommerce-order) .woocommerce-customer-details address {
  padding: 0;
  border: 0;
  border-radius: 0;
}

.ama-design :is(.woocommerce-MyAccount-content, .woocommerce-order) address .woocommerce-customer-details--phone,
.ama-design :is(.woocommerce-MyAccount-content, .woocommerce-order) address .woocommerce-customer-details--email {
  margin: 0;
  padding: 0 0 0 1.5em;
}

/* ---------- Forms (account details, addresses, login) ---------- */

/* The rule above the "Change password" fieldset. Excludes WPForms, whose
   multi-input fields (Name, Address) are fieldsets too and would each pick
   up a stray rule - see the intake questionnaire in §17. */
.ama-design.ama-account .woocommerce-MyAccount-content form:not(.wpforms-form) fieldset {
  margin: 28px 0 0;
  padding: 24px 0 0;
  border: 0;
  border-top: 1px solid var(--ama-line);
}

.ama-design:is(.ama-account, .ama-order-received) .form-row,
.ama-design:is(.ama-account, .ama-order-received) .woocommerce-form-row {
  float: none;
  width: auto;
  margin: 0 0 16px;
  padding: 0;
}

.ama-design:is(.ama-account, .ama-order-received) .form-row-first,
.ama-design:is(.ama-account, .ama-order-received) .form-row-last {
  width: calc(50% - 8px);
  float: left;
}

.ama-design:is(.ama-account, .ama-order-received) .form-row-last {
  float: right;
}

.ama-design:is(.ama-account, .ama-order-received) .form-row label {
  display: block;
  margin-bottom: 7px;
  color: var(--ama-heading);
  font-family: var(--ama-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.ama-design:is(.ama-account, .ama-order-received) .form-row label .required {
  color: var(--ama-gold-d);
  text-decoration: none;
}

.ama-design:is(.ama-account, .ama-order-received) .form-row .optional {
  color: var(--ama-muted);
  font-weight: 400;
}

.ama-design:is(.ama-account, .ama-order-received) .form-row .input-text,
.ama-design:is(.ama-account, .ama-order-received) .form-row select,
.ama-design:is(.ama-account, .ama-order-received) .form-row .select2-container--default .select2-selection--single {
  width: 100%;
  height: 50px;
  padding: 12px 15px;
  background: #fff;
  color: var(--ama-ink);
  border: 1.5px solid var(--ama-line);
  border-radius: var(--ama-radius-sm);
  font-family: var(--ama-sans);
  font-size: 15px;
  line-height: 1.4;
  transition: border-color .2s, box-shadow .2s;
}

.ama-design:is(.ama-account, .ama-order-received) .form-row .input-text:focus,
.ama-design:is(.ama-account, .ama-order-received) .form-row select:focus {
  border-color: var(--ama-gold);
  box-shadow: var(--ama-focus);
  outline: none;
}

.ama-design:is(.ama-account, .ama-order-received) .form-row textarea.input-text {
  height: auto;
  min-height: 120px;
}

.ama-design:is(.ama-account, .ama-order-received) .form-row select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%238a8172' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  -webkit-appearance: none;
  appearance: none;
}

.ama-design:is(.ama-account, .ama-order-received) .form-row .select2-container--default .select2-selection--single {
  display: flex;
  align-items: center;
}

.ama-design:is(.ama-account, .ama-order-received) .form-row .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0;
  color: var(--ama-ink);
  line-height: 1.4;
}

.ama-design:is(.ama-account, .ama-order-received) .form-row .select2-container--default .select2-selection--single .select2-selection__arrow {
  right: 10px;
  height: 100%;
}

.ama-design:is(.ama-account, .ama-order-received) .form-row .password-input {
  display: block;
  position: relative;
}

.ama-design:is(.ama-account, .ama-order-received) .form-row .show-password-input {
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--ama-muted);
}

.ama-design:is(.ama-account, .ama-order-received) .woocommerce-password-strength,
.ama-design:is(.ama-account, .ama-order-received) .woocommerce-password-hint {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ama-muted);
}

.ama-design:is(.ama-account, .ama-order-received) .woocommerce-password-strength {
  padding: 6px 0 0;
  background: none;
  border: 0;
  text-align: left;
}

/* Login card (logged out). WooCommerce only prints the two-column
   #customer_login wrapper when registration is on; either way the login
   form gets the same card. */
.ama-design.ama-account form.woocommerce-form-login,
.ama-design.ama-account form.woocommerce-form-register,
.ama-design.ama-account form.woocommerce-ResetPassword {
  max-width: 480px;
  margin: 0 auto;
  padding: 34px 32px 32px;
  background: #fff;
  border: 1px solid var(--ama-line);
  border-radius: var(--ama-radius);
}

.ama-design.ama-account #customer_login.col2-set {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.ama-design.ama-account #customer_login.col2-set .col-1,
.ama-design.ama-account #customer_login.col2-set .col-2 {
  float: none;
  width: auto;
  max-width: none;
}

.ama-design.ama-account #customer_login h2,
.ama-design.ama-account .entry-content>.woocommerce>h2 {
  margin: 0 auto 16px;
  max-width: 480px;
  color: var(--ama-heading);
  font-family: var(--ama-serif);
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
}

.ama-design.ama-account form.woocommerce-form-login .form-row:last-child,
.ama-design.ama-account form.woocommerce-form-login .woocommerce-LostPassword {
  margin-bottom: 0;
}

.ama-design.ama-account form.woocommerce-form-login .woocommerce-form-login__submit {
  width: 100%;
  margin-top: 6px;
}

.ama-design.ama-account form.woocommerce-form-login .woocommerce-form-login__rememberme {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--ama-body);
  font-size: 14px;
  font-weight: 400;
}

.ama-design.ama-account form.woocommerce-form-login .woocommerce-form-login__rememberme input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ama-ink);
}

.ama-design.ama-account .woocommerce-LostPassword {
  margin-top: 16px;
  text-align: center;
  font-size: 13.5px;
}

.ama-design.ama-account .woocommerce-LostPassword a,
.ama-design.ama-account .ama-account-switch a,
.ama-design.ama-account .woocommerce-privacy-policy-text a {
  color: var(--ama-gold-d);
  font-weight: 600;
}

.ama-design.ama-account .woocommerce-privacy-policy-text {
  margin: 0 0 16px;
  color: var(--ama-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Lost / reset password card. WooCommerce wraps the single "Username or
   email" field in .form-row-first (and the reset form's two password fields
   in first/last), which the two-up rule above makes half the card wide;
   every row here fills it. */
.ama-design.ama-account form.woocommerce-ResetPassword .form-row-first,
.ama-design.ama-account form.woocommerce-ResetPassword .form-row-last {
  float: none;
  width: auto;
}

.ama-design.ama-account form.woocommerce-ResetPassword>p:first-child {
  margin: 0 0 20px;
  padding: 0;
  color: var(--ama-body);
  font-size: 14.5px;
  line-height: 1.65;
}

.ama-design.ama-account form.woocommerce-ResetPassword .form-row:last-of-type {
  margin-bottom: 0;
}

.ama-design.ama-account form.woocommerce-ResetPassword .form-row:last-of-type .button {
  width: 100%;
  margin-top: 6px;
}

/* Create Account card (/my-account/register/ - see
   includes/woocommerce-register.php). The h2 above it is styled with the
   login heading; the form shares the login card. */
.ama-design:is(.ama-account, .ama-order-received) form.woocommerce-form-register .ama-register-note {
  margin: -6px 0 16px;
  padding: 0;
  color: var(--ama-muted);
  font-size: 13px;
  line-height: 1.6;
}

.ama-design:is(.ama-account, .ama-order-received) form.woocommerce-form-register .ama-register-submit {
  margin-bottom: 0;
}

.ama-design:is(.ama-account, .ama-order-received) form.woocommerce-form-register .woocommerce-form-register__submit {
  width: 100%;
  margin-top: 6px;
}

/* The email field is the order's and read-only; the hint under it. */
.ama-design:is(.ama-account, .ama-order-received) form.woocommerce-form-register .form-row .ama-register-note {
  display: block;
  margin: 6px 0 0;
}

.ama-design:is(.ama-account, .ama-order-received) form.woocommerce-form-register .input-text[readonly] {
  background: var(--ama-cream);
  color: var(--ama-body);
  cursor: default;
}

.ama-design:is(.ama-account, .ama-order-received) form.woocommerce-form-register .input-text[readonly]:focus {
  border-color: var(--ama-line);
  box-shadow: none;
}

/* Locked register page (no order in the URL, or the order already has an
   account) - the same card as the form, with a message and one button. */
.ama-design.ama-account .ama-register-locked {
  max-width: 480px;
  margin: 0 auto;
  padding: 34px 32px 32px;
  background: #fff;
  border: 1px solid var(--ama-line);
  border-radius: var(--ama-radius);
  text-align: center;
}

.ama-design.ama-account .ama-register-locked h3 {
  margin: 0 0 10px;
  padding: 0;
  color: var(--ama-heading);
  font-family: var(--ama-serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.ama-design.ama-account .ama-register-locked p {
  margin: 0 0 20px;
  padding: 0;
  color: var(--ama-body);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ---------- Account card on the thank-you page ----------
   Between the order tiles and the order details (see
   divi_child_register_thankyou_card()): the pitch on the left, the
   pre-filled form on the right. The form's field rules are shared with
   §14 via the :is(.ama-account, .ama-order-received) selectors above. */
.ama-design.ama-order-received .ama-register-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 32px 36px;
  align-items: start;
  margin: 0 0 22px;
  padding: 32px;
  background: var(--ama-cream-2);
  border: 1px solid var(--ama-sand);
  border-radius: var(--ama-radius);
}

.ama-design.ama-order-received .ama-register-card h2 {
  margin: 0 0 10px;
  padding: 0;
  color: var(--ama-heading);
  font-family: var(--ama-serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
}

.ama-design.ama-order-received .ama-register-card__intro p {
  margin: 0 0 16px;
  padding: 0;
  color: var(--ama-body);
  font-size: 14.5px;
  line-height: 1.65;
}

.ama-design.ama-order-received .ama-register-card__intro a:not(.button) {
  color: var(--ama-gold-d);
  font-weight: 600;
}

/* Divi's #left-area ul rules need the id to be overridden. */
.ama-design.ama-order-received #left-area .ama-register-card__perks {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.5;
}

.ama-design.ama-order-received #left-area .ama-register-card__perks li {
  position: relative;
  margin: 0 0 8px;
  padding: 0 0 0 26px;
  color: var(--ama-heading);
  font-size: 14px;
  font-weight: 600;
}

.ama-design.ama-order-received #left-area .ama-register-card__perks li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  background: var(--ama-sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23a98f56' stroke-width='3'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
  border-radius: 50%;
}

/* Inside the card the form is bare (no white box) and every field is a
   full row - the column is too narrow for first/last side by side. */
.ama-design.ama-order-received .ama-register-card form.woocommerce-form-register {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
}

.ama-design.ama-order-received .ama-register-card .form-row-first,
.ama-design.ama-order-received .ama-register-card .form-row-last {
  float: none;
  width: auto;
}

.ama-design.ama-order-received .ama-register-card .woocommerce-privacy-policy-text {
  margin: 0 0 16px;
  color: var(--ama-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Account created - the same card, one column, with a button. */
.ama-design.ama-order-received .ama-register-card--created {
  grid-template-columns: 1fr;
  text-align: center;
}

.ama-design.ama-order-received .ama-register-card--created p {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.ama-design.ama-order-received .ama-register-card .button,
.ama-design.ama-account .ama-register-locked .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px !important;
  background: var(--ama-ink) !important;
  color: #fff !important;
  border: 1.5px solid var(--ama-ink) !important;
  border-radius: var(--ama-pill) !important;
  font-family: var(--ama-sans);
  font-size: 14.5px !important;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: .25s;
}

.ama-design.ama-order-received .ama-register-card .button:hover,
.ama-design.ama-account .ama-register-locked .button:hover {
  background: #000 !important;
  border-color: #000 !important;
  transform: translateY(-2px);
  padding: 14px 28px !important;
}

.ama-design.ama-order-received .ama-register-card .button:before,
.ama-design.ama-order-received .ama-register-card .button:after,
.ama-design.ama-account .ama-register-locked .button:before,
.ama-design.ama-account .ama-register-locked .button:after {
  display: none !important;
}

/* "This email already has an account - sign in" under the tiles. */
.ama-design.ama-order-received .ama-register-signin {
  margin: 0 0 28px;
  padding: 16px 22px;
  background: var(--ama-cream);
  border: 1px solid var(--ama-line);
  border-radius: var(--ama-radius-sm);
  color: var(--ama-body);
  font-size: 14.5px;
  text-align: center;
}

.ama-design.ama-order-received .ama-register-signin a {
  color: var(--ama-gold-d);
  font-weight: 600;
}

@media (max-width: 700px) {
  .ama-design.ama-order-received .ama-register-card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px 20px;
  }
}

/* "New here? Create an account" / "Already have an account? Sign in" -
   the same footnote as "Lost your password?". */
.ama-design.ama-account .ama-account-switch {
  margin: 12px 0 0;
  padding: 0;
  color: var(--ama-body);
  font-size: 13.5px;
  text-align: center;
}

.ama-design.ama-account form.woocommerce-form-login .woocommerce-LostPassword+.ama-account-switch {
  margin-top: 8px;
}

/* The logged-out page's notices sit above the card at the same width. */
.ama-design.ama-account .entry-content>.woocommerce>.woocommerce-notices-wrapper:not(:empty),
.ama-design.ama-account .entry-content>.woocommerce>.woocommerce-error,
.ama-design.ama-account .entry-content>.woocommerce>.woocommerce-message,
.ama-design.ama-account .entry-content>.woocommerce>.woocommerce-info {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Responsive (§11–§14) ---------- */
@media (max-width: 980px) {

  .ama-design.ama-account #left-area>.woocommerce,
  .ama-design.ama-account .entry-content>.woocommerce {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 26px;
  }
}

@media (max-width: 860px) {
  .ama-design.ama-wc-page .wc-block-components-sidebar-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .ama-design.ama-wc-page .wc-block-components-sidebar {
    position: static;
  }

  /* The mock puts the summary above the form on small screens, where
     WooCommerce also collapses it behind its title. */
  .ama-design.ama-checkout .wc-block-checkout__sidebar {
    order: -1;
  }

  .ama-design.ama-checkout .wc-block-components-checkout-order-summary__title {
    cursor: pointer;
  }

  .ama-design.ama-wc-page #left-area ul.ama-wc-trust {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ama-design.ama-account #left-area>.woocommerce,
  .ama-design.ama-account .entry-content>.woocommerce {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .ama-design.ama-account .woocommerce-MyAccount-navigation {
    min-width: 0;
  }

  /* Navigation becomes a scrolling row of chips. */
  .ama-design.ama-account .woocommerce-MyAccount-navigation {
    position: static;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
  }

  .ama-design.ama-account .woocommerce-MyAccount-navigation ul {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .ama-design.ama-account .woocommerce-MyAccount-navigation a {
    padding: 9px 16px;
    background: #fff;
    border: 1.5px solid var(--ama-line);
    border-radius: var(--ama-pill);
    font-size: 14px;
    white-space: nowrap;
  }

  .ama-design.ama-account .woocommerce-MyAccount-navigation .is-active a {
    border-color: var(--ama-ink);
  }

  .ama-design.ama-account .woocommerce-MyAccount-navigation-link--customer-logout {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .ama-design.ama-account .woocommerce-Addresses.col2-set,
  .ama-design.ama-account .woocommerce-customer-details .col2-set,
  .ama-design.ama-account #customer_login.col2-set {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ama-design.ama-wc-page .ama-wc-hero {
    padding-bottom: 30px;
  }

  .ama-design.ama-wc-page #main-content .container {
    padding-top: 30px !important;
    padding-bottom: 56px;
  }

  .ama-design.ama-wc-page .wc-block-components-sidebar {
    padding: 22px 20px;
  }

  .ama-design.ama-cart table.wc-block-cart-items {
    padding: 4px 16px;
  }

  .ama-design.ama-cart table.wc-block-cart-items .wc-block-cart-item__image {
    width: 72px;
    padding-right: 14px;
  }

  .ama-design.ama-cart table.wc-block-cart-items .wc-block-cart-item__image img {
    width: 72px;
  }

  /* No room beside the name for the line total: it drops under the
     details, still on the right. */
  .ama-design.ama-cart table.wc-block-cart-items .wc-block-cart-items__row {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .ama-design.ama-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total {
    grid-column: 2;
    grid-row: 2;
    padding-top: 10px;
  }

  .ama-design.ama-cart .wc-block-cart-item__product {
    padding-right: 0;
  }

  .ama-design.ama-checkout .wc-block-components-checkout-step:has(> .wc-block-components-checkout-step__heading-container) {
    padding: 22px 18px 24px;
  }

  .ama-design.ama-checkout .wc-block-components-address-form {
    grid-template-columns: 1fr;
  }

  .ama-design.ama-account .woocommerce-MyAccount-content>p,
  .ama-design.ama-account .woocommerce-MyAccount-content>.woocommerce-order-details,
  .ama-design.ama-account .woocommerce-MyAccount-content>.woocommerce-customer-details,
  .ama-design.ama-account .woocommerce-MyAccount-content>form:not(.woocommerce-form-track-order),
  .ama-design.ama-account .woocommerce-MyAccount-content>table,
  .ama-design.ama-account .woocommerce-Addresses.col2-set .col-1,
  .ama-design.ama-account .woocommerce-Addresses.col2-set .col-2,
  .ama-design.ama-account form.woocommerce-form-login,
  .ama-design.ama-account form.woocommerce-form-register,
  .ama-design.ama-account form.woocommerce-ResetPassword {
    padding: 22px 18px;
  }

  .ama-design:is(.ama-account, .ama-order-received) .form-row-first,
  .ama-design:is(.ama-account, .ama-order-received) .form-row-last {
    float: none;
    width: auto;
  }

  .ama-design :is(.ama-account .woocommerce-MyAccount-content, .ama-order-received .woocommerce-order) table.shop_table th,
  .ama-design :is(.ama-account .woocommerce-MyAccount-content, .ama-order-received .woocommerce-order) table.shop_table td {
    padding: 12px 8px;
  }

  .ama-design.ama-order-received .woocommerce-order-details,
  .ama-design.ama-order-received .woocommerce-customer-details {
    padding: 22px 18px;
  }

  /* Orders and downloads (WooCommerce's .shop_table_responsive tables)
     collapse to stacked label/value rows. Order details is a plain two-
     column table and stays one. */
  .ama-design :is(.ama-account .woocommerce-MyAccount-content, .ama-order-received .woocommerce-order) table.shop_table_responsive,
  .ama-design :is(.ama-account .woocommerce-MyAccount-content, .ama-order-received .woocommerce-order) table.shop_table_responsive tbody {
    display: block;
  }

  .ama-design :is(.ama-account .woocommerce-MyAccount-content, .ama-order-received .woocommerce-order) table.shop_table_responsive thead {
    display: none;
  }

  .ama-design :is(.ama-account .woocommerce-MyAccount-content, .ama-order-received .woocommerce-order) table.shop_table_responsive tbody tr {
    display: block;
    padding: 6px 0;
    border-bottom: 1px solid var(--ama-line);
  }

  .ama-design :is(.ama-account .woocommerce-MyAccount-content, .ama-order-received .woocommerce-order) table.shop_table_responsive tbody tr:last-child {
    border-bottom: 0;
  }

  /* WooCommerce's own small-screen rules hide the row's <th> (the order
     number) and float a label into each <td>; both cells become one
     label/value line here instead. */
  .ama-design :is(.ama-account .woocommerce-MyAccount-content, .ama-order-received .woocommerce-order) table.shop_table_responsive tbody th,
  .ama-design :is(.ama-account .woocommerce-MyAccount-content, .ama-order-received .woocommerce-order) table.shop_table_responsive tbody td {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px 16px;
    padding: 8px 0;
    border: 0;
    text-align: right;
  }

  .ama-design :is(.ama-account .woocommerce-MyAccount-content, .ama-order-received .woocommerce-order) table.shop_table_responsive tbody th[data-title]:before,
  .ama-design :is(.ama-account .woocommerce-MyAccount-content, .ama-order-received .woocommerce-order) table.shop_table_responsive tbody td[data-title]:before {
    content: attr(data-title);
    float: none;
    margin-right: auto;
    color: var(--ama-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-align: left;
  }

  .ama-design :is(.ama-account .woocommerce-MyAccount-content, .ama-order-received .woocommerce-order) table.shop_table_responsive tbody td.woocommerce-orders-table__cell-order-actions:before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  .ama-design.ama-wc-page .wc-block-components-button.wp-element-button:not(.is-link):hover:not(:disabled),
  .ama-design.ama-cart .wp-block-woocommerce-empty-cart-block .wp-block-button__link:hover,
  .ama-design.ama-account .woocommerce-MyAccount-content .button:hover,
  .ama-design.ama-account .woocommerce-form-login .button:hover,
  .ama-design.ama-account .woocommerce-form-register .button:hover,
  .ama-design.ama-account .woocommerce-ResetPassword .button:hover {
    transform: none;
  }
}

/* =====================================================================
   15. CONTACT  (page "Contact", built with Divi — see design/contact.html)
   Same arrangement as §6: structure, copy and spacing live in the Divi
   Builder on page 9, hooked by module_class. The form is Contact Form 7
   ("Contact Page", id 0342ad9) dropped into a Text module, so the field
   rules below style CF7's own markup; the FAQ is four Toggle modules.
   ===================================================================== */

/* ---------- Hero ---------- */
.ama-design .ama-contact-hero {
  border-bottom: 1px solid var(--ama-line);
}

.ama-design .ama-contact-hero-text h1 {
  max-width: 620px;
  margin: 14px auto 12px;
  padding: 0;
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
}

.ama-design .ama-contact-hero-text p {
  max-width: 540px;
  margin: 0 auto;
  padding: 0;
  font-size: 1.1rem;
}

/* ---------- Details column ---------- */
.ama-design .ama-contact-sechead h2 {
  margin: 12px 0 4px;
  font-size: 1.9rem;
}

.ama-design .ama-contact-details .et_pb_text_inner {
  display: grid;
  gap: 18px;
  margin: 26px 0 30px;
}

.ama-design .ama-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--ama-line);
  border-radius: var(--ama-radius);
}

.ama-design .ama-contact-item-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  background: var(--ama-sand);
  color: var(--ama-gold-d);
  border-radius: 50%;
}

.ama-design .ama-contact-item h3 {
  margin: 0 0 3px;
  padding: 0;
  font-size: 1.05rem;
}

.ama-design .ama-contact-item p {
  padding: 0;
  color: var(--ama-body);
  font-size: 14px;
  line-height: 1.6;
}

.ama-design .ama-contact-item a {
  color: var(--ama-body);
  transition: color .2s;
}

.ama-design .ama-contact-item a:hover {
  color: var(--ama-gold-d);
}

/* Support hours: the dark panel. Gradient, padding and radius are module
   settings; this is the list inside. */
.ama-design .ama-contact-hours {
  color: #e8e0d3;
}

.ama-design .ama-contact-hours h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  color: #fff;
  font-size: 1.15rem;
}

.ama-design .ama-contact-hours h3 svg {
  color: var(--ama-gold);
}

.ama-design .ama-contact-hr {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-size: 14px;
}

.ama-design .ama-contact-hr:last-child {
  border-bottom: 0;
}

.ama-design .ama-contact-hr span:last-child {
  color: #cfc7b8;
}

/* ---------- Form card ----------
   Background, padding, border and radius are module settings. */
.ama-design .ama-contact-form {
  box-shadow: var(--ama-shadow-sm);
}

.ama-design .ama-contact-form h2 {
  margin: 0 0 6px;
  padding: 0;
  font-size: 1.6rem;
}

.ama-design .ama-contact-form .ama-contact-form-lead {
  margin: 0;
  padding: 0 0 24px;
  font-size: 14.5px;
}

/* CF7 form: two-up rows and stacked fields, matching the mock's .field */
.ama-design .ama-contact-form .wpcf7 {
  --ama-radius-sm: 9px;
  --ama-focus: 0 0 0 3px rgba(191, 165, 104, .15);
}

.ama-design .ama-contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ama-design .ama-contact-form .ama-contact-field {
  margin: 0;
  padding: 0 0 18px;
}

.ama-design .ama-contact-form .ama-contact-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--ama-heading);
  font-family: var(--ama-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.ama-design .ama-contact-form .ama-contact-opt {
  color: var(--ama-muted);
  font-weight: 400;
}

.ama-design .ama-contact-form .wpcf7-form-control-wrap {
  display: block;
  position: relative;
}

/* Divi styles form inputs site-wide (background, padding, colour); the
   full chain is what outranks it. */
.ama-design .ama-contact-form .wpcf7-form-control-wrap .wpcf7-form-control:not(.wpcf7-submit) {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 13px 15px;
  background: #fff;
  color: var(--ama-ink);
  border: 1.5px solid var(--ama-line);
  border-radius: var(--ama-radius-sm);
  font-family: var(--ama-sans);
  font-size: 15px;
  line-height: 1.4;
  box-shadow: none;
  transition: border-color .2s, box-shadow .2s;
}

.ama-design .ama-contact-form .wpcf7-form-control-wrap .wpcf7-form-control::placeholder {
  color: var(--ama-muted);
  opacity: .8;
}

.ama-design .ama-contact-form .wpcf7-form-control-wrap .wpcf7-form-control:focus {
  border-color: var(--ama-gold);
  box-shadow: var(--ama-focus);
  outline: none;
}

.ama-design .ama-contact-form .wpcf7-form-control-wrap .wpcf7-textarea {
  height: auto;
  min-height: 130px;
  resize: vertical;
}

.ama-design .ama-contact-form .wpcf7-form-control-wrap .wpcf7-select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%238a8172' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  -webkit-appearance: none;
  appearance: none;
}

/* Validation: the field goes terracotta and CF7's tip sits under it. */
.ama-design .ama-contact-form .wpcf7-form-control-wrap .wpcf7-form-control.wpcf7-not-valid {
  border-color: #b5573f;
}

.ama-design .ama-contact-form .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #b5573f;
  font-size: 13px;
}

/* Submit: the site's dark pill, full width like the mock. */
.ama-design .ama-contact-form .ama-contact-submit {
  position: relative;
  margin: 0;
  padding: 6px 0 0;
}

.ama-design .ama-contact-form .wpcf7-submit {
  width: 100%;
  margin: 0;
  padding: 15px 30px;
  background: var(--ama-ink);
  color: #fff;
  border: 1.5px solid var(--ama-ink);
  border-radius: var(--ama-pill);
  font-family: var(--ama-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: .25s;
}

.ama-design .ama-contact-form .wpcf7-submit:hover {
  background: #000;
  border-color: #000;
  transform: translateY(-2px);
}

.ama-design .ama-contact-form .wpcf7-submit:focus-visible {
  box-shadow: var(--ama-focus);
  outline: none;
}

.ama-design .ama-contact-form .wpcf7-form.submitting .wpcf7-submit {
  opacity: .7;
  cursor: default;
}

/* CF7 draws its spinner as a following sibling of the submit. */
.ama-design .ama-contact-form .wpcf7-spinner {
  position: absolute;
  top: 50%;
  right: 18px;
  margin: 0;
  transform: translateY(-50%);
}

/* Response ("Thanks for reaching out" / validation summary): the same
   notice as the account pages, inside the card. */
.ama-design .ama-contact-form .wpcf7-response-output {
  margin: 18px 0 0;
  padding: 14px 18px;
  background: var(--ama-cream);
  color: var(--ama-heading);
  border: 1px solid var(--ama-line);
  border-radius: var(--ama-radius-sm);
  font-size: 14.5px;
  line-height: 1.6;
}

.ama-design .ama-contact-form .wpcf7-form.sent .wpcf7-response-output {
  background: #f3f6ee;
  border-color: #cfdcbd;
  color: #4a5f33;
}

.ama-design .ama-contact-form .wpcf7-form.invalid .wpcf7-response-output,
.ama-design .ama-contact-form .wpcf7-form.failed .wpcf7-response-output,
.ama-design .ama-contact-form .wpcf7-form.aborted .wpcf7-response-output,
.ama-design .ama-contact-form .wpcf7-form.spam .wpcf7-response-output {
  background: #fbf1ee;
  border-color: #e6c4bb;
  color: #8a3b2a;
}

/* ---------- FAQ (Toggle modules) ----------
   Divi boxes each toggle with a grey border and background; the mock is
   a plain list with hairlines. */
.ama-design .ama-contact-faq .ama-contact-faq-item {
  margin: 0;
  padding: 20px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--ama-line);
}

.ama-design .ama-contact-faq .ama-contact-faq-item .et_pb_toggle_title {
  padding-right: 40px;
  color: var(--ama-heading);
  font-family: var(--ama-serif);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}

.ama-design .ama-contact-faq .ama-contact-faq-item .et_pb_toggle_title:before {
  display: block;
  content: "+";
  top: 50%;
  margin-top: -.5em;
  color: var(--ama-gold-d);
  font-family: var(--ama-sans) !important;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  transition: transform .2s;
}

/* The same static "+" the product FAQ turns into an "×" when open. */
.ama-design .ama-contact-faq .ama-contact-faq-item.et_pb_toggle_open .et_pb_toggle_title:before {
  transform: rotate(45deg);
}

.ama-design .ama-contact-faq .ama-contact-faq-item .et_pb_toggle_content {
  padding-top: 12px;
  color: var(--ama-body);
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .ama-design .ama-contact-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ama-design .ama-contact-form {
    padding: 24px 20px !important;
  }
}

/* =====================================================================
   16. ABOUT  (page "About", built with Divi — layout copied from the
   parent site amazing-meds.com/about-us/)
   Same arrangement as §6 and §15: structure and copy live in the Divi
   Builder on page 8, hooked by module_class; everything visual is here.
   Typography is deliberately NOT set — headings inherit Playfair Display
   600 and body text Open Sans 400 from Divi > Theme Options, so the page
   reads in this site's voice rather than the parent's Bodoni Moda.

   The page alternates cream and white bands; each band overlaps the one
   above it with a large rounded top (.ama-about-rounded).
   ===================================================================== */

.ama-design .ama-about-hero,
.ama-design .ama-about-values,
.ama-design .ama-about-story,
.ama-design .ama-about-team,
.ama-design .ama-about-statsec,
.ama-design .ama-about-why,
.ama-design .ama-about-payment,
.ama-design .ama-about-safety,
.ama-design .ama-about-ctasec {
  position: relative;
}

/* The rounded lip each band lifts over the previous one. A radius on the
   section itself would only expose the page container's white, so each
   band paints the PREVIOUS band's colour and overlays its own as a
   rounded ::before — the same trick the parent site uses. */
.ama-design .ama-about-rounded {
  margin-top: -1px;
}

.ama-design .ama-about-rounded::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 120px 120px 0 0;
  z-index: 0;
}

.ama-design .ama-about-band-white::before {
  background: #fff;
}

.ama-design .ama-about-band-cream::before {
  background: var(--ama-sand-2);
}

/* Keep the rows above the overlay. */
.ama-design .ama-about-rounded>.et_pb_row {
  position: relative;
  z-index: 1;
}

/* ---------- Shared section heading ---------- */
.ama-design .ama-about-sechead h2 {
  margin: 0 0 18px;
  padding: 0;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--ama-heading);
}

.ama-design .ama-about-sechead p {
  margin: 0;
  padding: 0;
  color: #676158;
  font-size: 1.25rem;
  line-height: 1.55;
}

.ama-design .ama-about-sechead-left {
  text-align: left;
}

.ama-design .ama-about-sechead-left p {
  margin-bottom: 1.1em;
  font-size: 1.1rem;
  line-height: 1.65;
}

.ama-design .ama-about-sechead-left p:last-child {
  margin-bottom: 0;
}

/* ---------- Shared round icon chip ---------- */
.ama-design .ama-about-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 56px;
  height: 56px;
  background: var(--ama-sand-2);
  border-radius: 50%;
}

.ama-design .ama-about-ic img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.ama-design .ama-about-ic-lg {
  width: 80px;
  height: 80px;
}

.ama-design .ama-about-ic-lg img {
  width: 28px;
  height: 28px;
}

/* The compliance icons are drawn light, so they need the dark chip. */
.ama-design .ama-about-ic-dark {
  background: #302c21;
}

/* ---------- Shared pill buttons ---------- */
.ama-design .ama-about-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 212px;
  padding: 20px 34px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-family: var(--ama-sans);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  transition: transform .25s, background-color .25s, color .25s;
}

.ama-design .ama-about-btn:hover {
  transform: translateY(-2px);
}

.ama-design .ama-about-btn-dark {
  background: var(--ama-heading);
  border-color: var(--ama-heading);
  color: #fff;
}

.ama-design .ama-about-btn-light {
  background: #fff;
  border-color: #fff;
  color: var(--ama-heading);
}

.ama-design .ama-about-btn-gold {
  background: var(--ama-gold);
  border-color: var(--ama-gold);
  color: var(--ama-heading);
}

.ama-design .ama-about-btn-ghost {
  background: #242119;
  border-color: rgba(255, 255, 255, .24);
  color: #fff;
}

/* =====================================================================
   16.1 Hero
   The model shot is a background image so the headline can sit over it;
   ::after fades it into the cream so the type stays readable.
   ===================================================================== */
.ama-design .ama-about-hero {
  min-height: 800px;
  display: flex;
  align-items: flex-end;
}

.ama-design .ama-about-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: 580px;
  background: linear-gradient(180deg, rgba(232, 222, 205, 0) 0%, #e8decd 100%);
  z-index: 1;
}

/* This site's header is transparent and sits over the hero, so the copy is
   pushed low enough to clear the models' faces and land on the fade. */
.ama-design .ama-about-hero .et_pb_row {
  position: relative;
  z-index: 2;
  padding-top: 0 !important;
  padding-bottom: 14px !important;
}

.ama-design .ama-about-hero-text h1 {
  margin: 0 0 10px;
  padding: 0;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.05;
  color: var(--ama-heading);
}

.ama-design .ama-about-hero-text .et_pb_text:first-child p {
  max-width: 480px;
  margin: 0 auto;
  padding: 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* Both hero buttons sit on one centred line. */
.ama-design .ama-about-btns .et_pb_text_inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
}

/* =====================================================================
   16.2 Mission & Values
   Two grids — three cards then two — matching the parent's row split.
   ===================================================================== */
.ama-design .ama-about-vgrid .et_pb_text_inner {
  display: grid;
  gap: 30px;
}

.ama-design .ama-about-vgrid-3 .et_pb_text_inner {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 36px;
}

.ama-design .ama-about-vgrid-2 .et_pb_text_inner {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 30px;
}

.ama-design .ama-about-vcard {
  padding: 25px;
  background: #f5f4f1;
  border-radius: 20px;
  transition: background-color .3s ease-in-out, color .3s ease-in-out;
}

.ama-design .ama-about-vcard h3 {
  margin: 44px 0 5px;
  padding: 0;
  font-size: 1.25rem;
  color: var(--ama-heading);
  transition: color .3s ease-in-out;
}

.ama-design .ama-about-vcard p {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  line-height: 1.6;
  transition: color .3s ease-in-out;
}

.ama-design .ama-about-vcard:hover {
  background: var(--ama-heading);
}

.ama-design .ama-about-vcard:hover h3 {
  color: #fff;
}

.ama-design .ama-about-vcard:hover p {
  color: rgba(255, 255, 255, .8);
}

/* =====================================================================
   16.3 Our Story & Approach
   ===================================================================== */
.ama-design .ama-about-story-grid {
  display: flex;
  align-items: center;
}

/* The numbered step cards; the badge hangs off the card's left edge. */
.ama-design .ama-about-steps .et_pb_text_inner {
  display: grid;
  gap: 30px;
}

.ama-design .ama-about-step {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 27px 40px 20px 0;
  margin-left: 40px;
  background: #f5f4f1;
  border-radius: 32px;
  box-shadow: 0 8px 0 0 #dcccb2;
}

.ama-design .ama-about-step-n {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 80px;
  height: 80px;
  margin-left: -40px;
  background: var(--ama-heading);
  border-radius: 50%;
  color: #fff;
  font-family: var(--ama-serif);
  font-size: 2rem;
  line-height: 1;
}

.ama-design .ama-about-step h3 {
  margin: 0 0 2px;
  padding: 0;
  font-size: 1.4rem;
  color: var(--ama-heading);
}

.ama-design .ama-about-step p {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  line-height: 1.55;
}

/* =====================================================================
   16.4 Meet Our Expert Team
   Each card is a two-up split: a tan photo panel and a text panel. The
   portrait is taller than the panel on purpose and overflows the top.
   ===================================================================== */
.ama-design .ama-about-provider .et_pb_text_inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f5f4f1;
  border-radius: 50px;
  margin-top: 90px;
}

/* The portrait is taken out of flow so it cannot stretch the card, then
   made a fixed amount taller than its panel — that constant difference is
   the overhang above the card, whatever the text beside it comes to.
   object-fit keeps the crop anchored on the face. */
.ama-design .ama-about-provider-photo {
  position: relative;
  align-self: stretch;
  min-height: 240px;
  background: #c3baa7;
  border-radius: 50px;
}

.ama-design .ama-about-provider-photo img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: calc(100% + 90px);
  object-fit: cover;
  object-position: center top;
  border-radius: 0 0 50px 50px;
}

.ama-design .ama-about-provider-body {
  padding: 30px 30px 40px;
}

.ama-design .ama-about-provider-body h3 {
  margin: 20px 0 10px;
  padding: 0;
  font-size: 2rem;
  color: var(--ama-heading);
}

.ama-design .ama-about-provider-body h4 {
  margin: 24px 0 3px;
  padding: 0;
  font-size: 1.25rem;
  color: var(--ama-heading);
}

.ama-design .ama-about-provider-body p {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.ama-design .ama-about-provider-cred {
  margin-bottom: 6px !important;
}

.ama-design .ama-about-provider-spec {
  color: #b4a583;
}

.ama-design .ama-about-rule {
  width: 40px;
  height: 0;
  margin: 18px 0;
  border: 0;
  border-top: 1px solid #c9c2b4;
}

/* The lead card runs full width; Rachel and Lynn share a row below it. */
.ama-design .ama-about-provider-lead .et_pb_text_inner {
  margin-top: 134px;
}

.ama-design .ama-about-provider-lead .ama-about-provider-photo img {
  height: calc(100% + 134px);
}

.ama-design .ama-about-provider-lead .ama-about-provider-body {
  padding: 0 40px 40px;
}

.ama-design .ama-about-team .et_pb_column>.ama-about-provider:not(.ama-about-provider-lead) {
  display: inline-block;
  width: calc(50% - 15px);
  vertical-align: top;
}

.ama-design .ama-about-team .et_pb_column>.ama-about-provider:not(.ama-about-provider-lead):first-of-type {
  margin-right: 26px;
}



/* =====================================================================
   16.5 Stats band
   ===================================================================== */
.ama-design .ama-about-stats .et_pb_text_inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 40px 20px;
  background: #302c21;
  border-radius: 50px;
}

.ama-design .ama-about-stat {
  text-align: center;
}

.ama-design .ama-about-stat span {
  display: block;
}

.ama-design .ama-about-stat-n {
  font-family: var(--ama-serif);
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  line-height: 1.1;
  color: var(--ama-gold);
}

.ama-design .ama-about-stat-l {
  margin-top: 4px;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.3;
}

.ama-design .ama-about-stat-s {
  margin-top: 4px;
  color: #a79e8c;
  font-size: .95rem;
}

/* =====================================================================
   16.6 Why Patients Choose Us
   A single centred column of wide cards, as the parent lays them out.
   ===================================================================== */
.ama-design .ama-about-wgrid .et_pb_text_inner {
  display: grid;
  gap: 30px;
  max-width: 630px;
  margin: 40px auto 0;
}

.ama-design .ama-about-wcard {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 27px 30px 20px 20px;
  background: #f5f4f1;
  border-radius: 32px;
  box-shadow: 0 8px 0 0 #dcccb2;
}

.ama-design .ama-about-wcard h3 {
  margin: 0 0 10px;
  padding: 0;
  font-size: 1.5rem;
  color: var(--ama-heading);
}

.ama-design .ama-about-wcard p {
  margin: 0 0 18px;
  padding: 0;
  font-size: 1rem;
  line-height: 1.55;
}

.ama-design .ama-about-pill {
  display: inline-block;
  padding: 10px 15px;
  background: var(--ama-sand-2);
  border-radius: 50px;
  font-size: .9rem;
  line-height: 1;
  color: var(--ama-body);
}

/* =====================================================================
   16.7 Payment & Coverage
   ===================================================================== */
.ama-design .ama-about-pgrid .et_pb_text_inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.ama-design .ama-about-pcard {
  padding: 30px;
  background: #f5f4f1;
  border-radius: 24px;
  transition: background-color .3s ease-in-out;
}

.ama-design .ama-about-pcard h3 {
  margin: 20px 0 5px;
  padding: 0;
  font-size: 1.5rem;
  color: var(--ama-heading);
  transition: color .3s ease-in-out;
}

.ama-design .ama-about-pcard p {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  line-height: 1.6;
  transition: color .3s ease-in-out;
}

.ama-design .ama-about-pcard ul {
  margin: 20px 0 0;
  padding: 0 0 0 18px;
  list-style: disc;
}

.ama-design .ama-about-pcard li {
  margin-bottom: 2px;
  font-size: 1rem;
  transition: color .3s ease-in-out;
}

.ama-design .ama-about-pcard:hover {
  background: var(--ama-heading);
}

.ama-design .ama-about-pcard:hover h3 {
  color: #fff;
}

.ama-design .ama-about-pcard:hover p,
.ama-design .ama-about-pcard:hover li {
  color: rgba(255, 255, 255, .8);
}

/* =====================================================================
   16.8 Safety & Compliance
   ===================================================================== */
.ama-design .ama-about-sgrid .et_pb_text_inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.ama-design .ama-about-scard {
  padding: 30px;
  background: #f5f4f1;
  border-radius: 24px;
  text-align: center;
}

.ama-design .ama-about-scard h3 {
  margin: 30px 0 5px;
  padding: 0;
  font-size: 1.5rem;
  color: var(--ama-heading);
}

.ama-design .ama-about-scard p {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* =====================================================================
   16.9 Closing CTA
   The dark panel sits on a tan "shelf" — that is the offset box-shadow.
   ===================================================================== */
.ama-design .ama-about-cta .et_pb_text_inner {
  padding: 100px 15px;
  background: #242119;
  border-radius: 80px;
  box-shadow: 0 56px 0 -40px #d2be9d;
  text-align: center;
}

.ama-design .ama-about-cta h2 {
  margin: 0 0 30px;
  padding: 0;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.1;
  color: var(--ama-gold);
}

.ama-design .ama-about-cta-lead {
  margin: 0;
  padding: 0;
  color: var(--ama-sand-2);
  font-size: 1.5rem;
  line-height: 1.8;
}

.ama-design .ama-about-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 60px;
  justify-content: center;
  margin-top: 40px;
}

.ama-design .ama-about-trust span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ama-sand-2);
  font-size: 1.1rem;
}

.ama-design .ama-about-trust img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.ama-design .ama-about-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 60px;
}

/* =====================================================================
   16.10 Responsive
   ===================================================================== */
@media (max-width: 980px) {
  .ama-design .ama-about-rounded::before {
    border-radius: 50px 50px 0 0;
  }

  .ama-design .ama-about-hero {
    min-height: 620px;
  }

  .ama-design .ama-about-vgrid-3 .et_pb_text_inner,
  .ama-design .ama-about-sgrid .et_pb_text_inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .ama-design .ama-about-story-grid {
    display: block;
  }

  /* Divi stacks its columns here, so the provider split has to follow. */
  .ama-design .ama-about-team .et_pb_column>.ama-about-provider:not(.ama-about-provider-lead) {
    display: block;
    width: 100%;
  }

  .ama-design .ama-about-team .et_pb_column>.ama-about-provider:not(.ama-about-provider-lead):first-of-type {
    margin-right: 0;
  }

  .ama-design .ama-about-provider-lead .ama-about-provider-body {
    padding: 0 30px 30px;
  }

  .ama-design .ama-about-cta .et_pb_text_inner {
    padding: 70px 20px;
    border-radius: 50px;
  }
}

@media (max-width: 767px) {
  .ama-design .ama-about-rounded::before {
    border-radius: 40px 40px 0 0;
  }

  .ama-design .ama-about-hero {
    min-height: 520px;
  }

  .ama-design .ama-about-vgrid-3 .et_pb_text_inner,
  .ama-design .ama-about-vgrid-2 .et_pb_text_inner,
  .ama-design .ama-about-pgrid .et_pb_text_inner,
  .ama-design .ama-about-sgrid .et_pb_text_inner,
  .ama-design .ama-about-stats .et_pb_text_inner {
    grid-template-columns: 1fr;
  }

  /* Photo above text once the card is too narrow to split. */
  .ama-design .ama-about-provider .et_pb_text_inner {
    grid-template-columns: 1fr;
    border-radius: 40px;
  }

  .ama-design .ama-about-provider-photo,
  .ama-design .ama-about-provider-lead .ama-about-provider-photo {
    position: static;
    min-height: 0;
    border-radius: 40px 40px 0 0;
  }

  .ama-design .ama-about-provider-photo img,
  .ama-design .ama-about-provider-lead .ama-about-provider-photo img {
    position: static;
    height: auto;
    border-radius: 40px 40px 0 0;
  }

  .ama-design .ama-about-provider .et_pb_text_inner,
  .ama-design .ama-about-provider-lead .et_pb_text_inner {
    margin-top: 30px;
  }

  .ama-design .ama-about-provider-lead .ama-about-provider-body,
  .ama-design .ama-about-provider-body {
    padding: 20px 24px 30px;
  }

  .ama-design .ama-about-step {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    margin-left: 0;
  }

  .ama-design .ama-about-step-n {
    width: 60px;
    height: 60px;
    margin-left: 0;
    font-size: 1.6rem;
  }

  .ama-design .ama-about-wcard {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .ama-design .ama-about-btn {
    min-width: 0;
    width: 100%;
    padding: 18px 26px;
  }

  .ama-design .ama-about-trust {
    gap: 14px;
    flex-direction: column;
    align-items: center;
  }

  .ama-design .ama-about-cta .et_pb_text_inner {
    padding: 56px 18px;
    border-radius: 40px;
  }
}

/* =====================================================================
   17. INTAKE QUESTIONNAIRE  (/my-account/intake/ — see
   includes/woocommerce-intake.php)

   The layout of the reference page at /intake-questionnaire/: a dotted
   cream field, a white rounded card, and WPForms inside it with the stock
   blue swapped for the brand's ink and gold.

   WPForms' modern markup is themed through CSS custom properties, so most
   of this is a variable block rather than a pile of overrides. The ones it
   prints on `:root` are what the colours below replace; the *size*
   variables it prints on `#wpforms-<id>` are left alone deliberately -
   form 413 is already on WPForms' "medium" sizing, which is what the
   reference uses, and an ID selector would be needed to beat them.

   Everything is scoped to `.ama-intake`, so the account area's other
   endpoints and the Contact page's CF7 form (§15) are untouched.
   ===================================================================== */

/* ---------- 17.1 The page ---------- */

/* The reference's dotted cream field, behind the card only - the hero band
   above keeps the account chrome's own gradient (§11). */
.ama-design.ama-intake #main-content {
  background-color: #faf6f0;
  background-image: radial-gradient(rgba(36, 33, 25, .05) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: 0 0;
}

/* ---------- 17.2 The card ---------- */
.ama-design.ama-intake .ama-intake-card {
  padding: 30px;
  background: #fff;
  border: 1px solid #ece4d4;
  border-radius: 15px;
}

/* The reference's standfirst: the rule under it separates the preamble
   from the questionnaire proper. */
.ama-design.ama-intake .ama-intake-note {
  margin: 0 0 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(138, 130, 117, .18);
  color: var(--ama-muted);
  font-family: var(--ama-sans);
  font-size: 17px;
  line-height: 1.8;
}

/* ---------- 17.3 Form theme ---------- */

/* WPForms sets these on :root (0,1,0); this selector outranks it without
   !important. Sizing variables are inherited from the form's own settings. */
.ama-design.ama-intake .wpforms-container {
  --wpforms-field-border-radius: 3px;
  --wpforms-field-border-style: solid;
  --wpforms-field-border-size: 1px;
  --wpforms-field-background-color: #ffffff;
  --wpforms-field-border-color: rgba(0, 0, 0, .25);
  --wpforms-field-border-color-spare: rgba(0, 0, 0, .25);
  --wpforms-field-text-color: rgba(0, 0, 0, .7);
  --wpforms-field-menu-color: #ffffff;
  --wpforms-label-color: rgba(0, 0, 0, .85);
  --wpforms-label-sublabel-color: rgba(0, 0, 0, .55);
  --wpforms-label-error-color: #d63637;
  --wpforms-button-background-color: var(--ama-ink-2);
  --wpforms-button-border-color: var(--ama-ink-2);
  --wpforms-button-text-color: #ffffff;
  --wpforms-button-border-radius: 5px;
  --wpforms-page-break-color: var(--ama-ink-2);
  margin: 0;
  font-family: var(--ama-sans);
}

/* Divi's #left-area rules reach the form's lists and paragraphs. */
.ama-design.ama-intake .wpforms-container p {
  padding-bottom: 0;
}

/* ---------- 17.4 Progress indicator ---------- */
.ama-design.ama-intake .wpforms-page-indicator {
  margin: 0 0 28px;
  padding: 0;
  background: none;
  color: rgba(0, 0, 0, .85);
  font-family: var(--ama-sans);
  font-size: 16px;
  font-weight: 600;
}

.ama-design.ama-intake .wpforms-page-indicator-page-title {
  margin-bottom: 10px;
}

.ama-design.ama-intake .wpforms-page-indicator-page-progress-wrap {
  height: 18px;
  background: #dcdcde;
  border-radius: 10px;
  overflow: hidden;
}

/* WPForms writes the bar's colour inline from the page-break field's
   `indicator_color` (set to the brand ink on form 413) and rewrites it on
   every page change, so !important is what holds the brand colour if that
   setting is ever reset in the form builder. */
.ama-design.ama-intake .wpforms-page-indicator-page-progress {
  height: 18px;
  background-color: var(--ama-ink-2) !important;
  border-radius: 0;
  transition: width .3s ease;
}

/* ---------- 17.5 Fields ---------- */
/* Multi-input fields (Name, Address) label their group with a <legend>,
   which Divi styles as a heading - hence the #left-area weight here, to
   bring those back in line with the plain <label> fields. */
.ama-design.ama-intake #left-area .wpforms-field-label,
.ama-design.ama-intake .entry-content .wpforms-field-label {
  padding: 0;
  border: 0;
  color: var(--wpforms-label-color);
  font-family: var(--ama-sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 19px;
  letter-spacing: 0;
}

.ama-design.ama-intake #left-area .wpforms-field-sublabel,
.ama-design.ama-intake .entry-content .wpforms-field-sublabel {
  color: var(--wpforms-label-sublabel-color);
  font-family: var(--ama-sans);
  font-size: 14px;
  font-weight: 400;
}

/* Divi styles inputs globally (border, radius, padding, background); these
   hand the field back to WPForms' own variables. `:is()` keeps the rule at
   one class's weight per type, the way §13 does for the checkout block. */
.ama-design.ama-intake .wpforms-field input:is([type="text"], [type="email"], [type="tel"], [type="url"], [type="number"], [type="password"], [type="date"], [type="datetime-local"], [type="search"]),
.ama-design.ama-intake .wpforms-field select,
.ama-design.ama-intake .wpforms-field textarea {
  width: 100%;
  background-color: var(--wpforms-field-background-color);
  border: var(--wpforms-field-border-size) var(--wpforms-field-border-style) var(--wpforms-field-border-color);
  border-radius: var(--wpforms-field-border-radius);
  color: var(--wpforms-field-text-color);
  font-family: var(--ama-sans);
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}

/* The brand's gold focus ring, the same one the account forms use (§14). */
.ama-design.ama-intake .wpforms-field input:focus,
.ama-design.ama-intake .wpforms-field select:focus,
.ama-design.ama-intake .wpforms-field textarea:focus {
  outline: none;
  border-color: var(--ama-gold);
  box-shadow: var(--ama-focus);
}

.ama-design.ama-intake .wpforms-field textarea {
  min-height: 120px;
  padding: 12px 14px;
  line-height: 1.6;
}

/* Height: the feet input and the inches select, drawn as one control.

   Form 413 asks for height as two fields in one layout row (feet | inches |
   weight - see the intake questionnaire notes). Left alone they read as two
   unrelated questions stacked beside each other, so the column gutter
   between them is closed and their facing corners squared off, which is all
   it takes for the pair to read as one field with two parts.

   Scoped by the form's own ids rather than `.ama-intake` like the rest of
   §17: this row exists only in form 413 and should look the same wherever
   that form is rendered - the questionnaire endpoint, a WPForms preview, or
   anywhere it is embedded later. */
/* The pair keeps the half-row the single Height field used to have, split
   three-to-one. Half a row is 50%, so the columns are 37.5% and 12.5% - but
   each column also carries one of the row's 10px gutters outside its input -
   the feet column on its left, the inches column on its right - so a
   straight 37.5/12.5 leaves the *boxes* at about 3.2:1. Moving 5px across
   the seam cancels the two gutters and puts the boxes at 3:1 at any width.

   Set here rather than in the layout field's own column widths because
   WPForms rounds those to whole percents (`(int) $column['width_custom']`),
   which cannot express either number. */
#wpforms-413-field_8-container .wpforms-layout-column:first-child {
  width: calc(37.5% - 5px);
  padding-right: 0;
}

#wpforms-413-field_8-container .wpforms-layout-column:nth-child(2) {
  width: calc(12.5% + 5px);
  padding-left: 0;
}

/* WPForms pads every field box by 1px horizontally. On the two facing edges
   that 1px is what the seam would fall into - and because the column widths
   are percentages, it lands differently at different form widths, showing as
   a hairline gap on narrow screens. Dropped on the inner edges only; the
   outer ones keep it. */
#wpforms-413-field_4-container {
  padding-right: 0;
}

#wpforms-413-field_45-container {
  padding-left: 0;
}

#wpforms-413-field_4-container input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

/* The negative margin collapses the two 1px borders into the single seam a
   one-piece control would have. */
/* The extra pixel is the one the negative margin pulls off the right edge;
   WPForms' own `max-width: 100%` would otherwise clamp it straight back. */
#wpforms-413-field_45-container select {
  width: calc(100% + 1px);
  max-width: none;
  margin-left: -1px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Either half's focus ring has to sit above the other half's border, or the
   seam cuts through it. */
#wpforms-413-field_4-container input:focus,
#wpforms-413-field_45-container select:focus {
  position: relative;
  z-index: 1;
}

/* "Height" (on the feet half) labels the pair. The inches label is still a
   real <label> - the select would otherwise have no accessible name - but
   it is taken out of sight while keeping its line, so the select stays
   level with the feet input. `text-indent` rather than the usual absolute
   positioning precisely because the empty line is wanted here. */
#wpforms-413-field_45-container .wpforms-field-label {
  overflow: hidden;
  white-space: nowrap;
  text-indent: -9999px;
}

/* An eighth of a phone-width row is not enough for "11 in" and a dropdown
   arrow. WPForms stacks every column below 600px (the row turns
   `flex-direction: column`), which would also pull the two halves apart, so
   the row is put back into a wrapping row here: the pair keeps its 3:1 split
   across the full width and weight wraps underneath at full width. Kept with
   the rest of this control rather than in 17.12, which holds the page's own
   responsive rules. */
@media (max-width: 600px) {
  #wpforms-413-field_8-container .wpforms-layout-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  #wpforms-413-field_8-container .wpforms-layout-column:first-child {
    width: calc(75% + 2.5px);
  }

  #wpforms-413-field_8-container .wpforms-layout-column:nth-child(2) {
    width: calc(25% - 2.5px);
  }

  /* Full width on its own line - and its gutter is left alone, because the
     row sits in a -10px margin and the column padding is what brings a
     field's edge back in line with the rest of the form. */
  #wpforms-413-field_8-container .wpforms-layout-column:nth-child(3) {
    width: 100%;
  }
}

/* ---------- 17.6 Choices ---------- */
.ama-design.ama-intake .wpforms-field-radio ul,
.ama-design.ama-intake .wpforms-field-checkbox ul,
.ama-design.ama-intake .wpforms-field-payment-multiple ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ama-design.ama-intake .wpforms-field-radio li,
.ama-design.ama-intake .wpforms-field-checkbox li {
  margin: 0 0 10px;
  padding: 0;
  line-height: 1.5;
}

.ama-design.ama-intake .wpforms-field-radio input[type="radio"],
.ama-design.ama-intake .wpforms-field-checkbox input[type="checkbox"] {
  accent-color: var(--ama-gold);
}

.ama-design.ama-intake .wpforms-field-radio label,
.ama-design.ama-intake .wpforms-field-checkbox label {
  color: var(--ama-body);
  font-family: var(--ama-sans);
}

/* ---------- 17.7 File upload (insurance card scans) ---------- */
.ama-design.ama-intake .wpforms-uploader {
  background: #faf6f0;
  border: 1px dashed #d9cdb6;
  border-radius: 10px;
  color: var(--ama-muted);
}

.ama-design.ama-intake .wpforms-uploader:hover,
.ama-design.ama-intake .wpforms-uploader.dz-drag-hover {
  border-color: var(--ama-gold);
}

/* ---------- 17.8 Buttons ---------- */

/* Next / Previous / Submit. Divi styles bare <button> elements in the
   content, so these are set outright rather than left to the variables. */
.ama-design.ama-intake .wpforms-form button.wpforms-page-button,
.ama-design.ama-intake .wpforms-form button.wpforms-submit,
.ama-design.ama-intake .wpforms-form input[type="submit"] {
  min-height: 41px;
  margin-top: 10px;
  padding: 0 24px;
  background: var(--ama-ink-2);
  border: 0;
  border-radius: 5px;
  color: #fff;
  font-family: var(--ama-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 41px;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: .25s;
  cursor: pointer;
}

.ama-design.ama-intake .wpforms-form button.wpforms-page-button:hover,
.ama-design.ama-intake .wpforms-form button.wpforms-submit:hover,
.ama-design.ama-intake .wpforms-form input[type="submit"]:hover {
  background: var(--ama-gold-d);
  transform: translateY(-2px);
}

.ama-design.ama-intake .wpforms-form button.wpforms-page-button:focus-visible,
.ama-design.ama-intake .wpforms-form button.wpforms-submit:focus-visible {
  outline: none;
  box-shadow: var(--ama-focus);
}

/* "Previous" is the secondary of the pair. */
.ama-design.ama-intake .wpforms-form button.wpforms-page-button[data-action="prev"] {
  background: transparent;
  border: 1px solid var(--ama-line);
  color: var(--ama-heading);
}

.ama-design.ama-intake .wpforms-form button.wpforms-page-button[data-action="prev"]:hover {
  background: var(--ama-cream);
  border-color: var(--ama-gold);
  color: var(--ama-heading);
}

/* ---------- 17.9 Confirmation and receipt ---------- */
.ama-design.ama-intake .wpforms-confirmation-container-full {
  margin: 0;
  padding: 24px;
  background: var(--ama-cream);
  border: 1px solid var(--ama-line);
  border-radius: var(--ama-radius);
  color: var(--ama-body);
}

.ama-design.ama-intake .ama-intake-done {
  text-align: center;
}

.ama-design.ama-intake .ama-intake-done-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  background: var(--ama-cream-2);
  border-radius: 50%;
  color: var(--ama-gold-d);
}

.ama-design.ama-intake .ama-intake-done-t {
  margin: 0 0 10px;
  padding: 0;
  color: var(--ama-heading);
  font-family: var(--ama-serif);
  font-size: 28px;
  font-weight: 500;
}

.ama-design.ama-intake .ama-intake-done-d {
  margin: 0 auto 8px;
  max-width: 44ch;
  padding: 0;
  color: var(--ama-muted);
  font-family: var(--ama-sans);
  font-size: 15.5px;
  line-height: 1.7;
}

.ama-design.ama-intake .ama-intake-done-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 0 26px;
  background: var(--ama-ink-2);
  border: 0;
  border-radius: 5px;
  color: #fff;
  font-family: var(--ama-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 44px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: .25s;
}

.ama-design.ama-intake .ama-intake-done-btn:hover {
  background: var(--ama-gold-d);
  transform: translateY(-2px);
}

/* Nothing outstanding and nothing ever answered: the same card with the
   tick swapped for a clipboard, so it does not read as a congratulation.
   Neutral rather than gold - there is nothing to celebrate, only to
   explain. */
.ama-design.ama-intake .ama-intake-done--none .ama-intake-done-ic {
  background: var(--ama-cream);
  color: var(--ama-muted);
}

/* The screens a stale questionnaire link lands on. A link lives in an
   inbox forever and gets clicked long after its order is done, so the
   endpoint reports on the order the link actually named rather than
   opening a different order's form - see divi_child_intake_resolve_request().
   Same card either way, with the icon saying which of the three it is:
   gold tick for "already completed" (the receipt's own styling, inherited),
   neutral for an order that is simply not waiting, and neutral for a link
   that matched nothing. */
.ama-design.ama-intake .ama-intake-done--closed .ama-intake-done-ic,
.ama-design.ama-intake .ama-intake-done--unmatched .ama-intake-done-ic {
  background: var(--ama-cream);
  color: var(--ama-muted);
}

/* The quiet second way out, under the primary button. */
.ama-design.ama-intake .ama-intake-done-alt {
  margin: 16px 0 0;
  padding: 0;
  font-family: var(--ama-sans);
  font-size: 14.5px;
}

.ama-design.ama-intake .ama-intake-done-alt a {
  color: var(--ama-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: .25s;
}

.ama-design.ama-intake .ama-intake-done-alt a:hover {
  color: var(--ama-gold-d);
}

/* ---------- 17.10 Other orders waiting ---------- */

/* The orders a customer still owes a questionnaire for, offered by name.
   Links, never a redirect: being moved onto another order unasked is the
   bug this list exists to replace, so the choice is theirs and whichever
   they pick is the order the form, the hidden order field and the
   submission all name. Ruled off from whatever the card said above it, so
   picking one reads as a separate decision rather than as a correction. */
.ama-design.ama-intake .ama-intake-others {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--ama-line);
  text-align: left;
}

.ama-design.ama-intake .ama-intake-others-t {
  margin: 0 0 6px;
  padding: 0;
  color: var(--ama-heading);
  font-family: var(--ama-serif);
  font-size: 20px;
  font-weight: 500;
}

.ama-design.ama-intake .ama-intake-others-d {
  margin: 0 0 14px;
  padding: 0;
  color: var(--ama-muted);
  font-family: var(--ama-sans);
  font-size: 15px;
  line-height: 1.7;
}

.ama-design.ama-intake .ama-intake-others-l {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Divi's #left-area list rules put a marker and an indent on any li in
   page content, so both are turned off on the item itself. */
.ama-design.ama-intake .ama-intake-others-i {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.ama-design.ama-intake .ama-intake-others-i:last-child {
  margin-bottom: 0;
}

.ama-design.ama-intake .ama-intake-others-i a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 14px 16px;
  background: var(--ama-cream);
  border: 1px solid var(--ama-line);
  border-radius: 10px;
  color: var(--ama-heading);
  text-decoration: none;
  transition: .25s;
}

.ama-design.ama-intake .ama-intake-others-i a:hover {
  background: var(--ama-cream-2);
  border-color: var(--ama-gold);
}

.ama-design.ama-intake .ama-intake-others-n {
  font-family: var(--ama-sans);
  font-size: 15.5px;
  font-weight: 600;
}

.ama-design.ama-intake .ama-intake-others-m {
  color: var(--ama-muted);
  font-family: var(--ama-sans);
  font-size: 14px;
}

/* ---------- 17.11 The navigation item ---------- */

/* A gold dot while the questionnaire is outstanding, so the account
   navigation says which item is waiting without any extra markup. */
/* .ama-design.ama-account .woocommerce-MyAccount-navigation li.ama-intake-nav--due>a:after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: auto;
  background: var(--ama-gold);
  border-radius: 50%;
  flex: none;
} */

/* ---------- 17.12 Responsive ---------- */
@media (max-width: 980px) {
  .ama-design.ama-intake .ama-intake-card {
    padding: 22px;
    border-radius: 12px;
  }

  .ama-design.ama-intake .ama-intake-note {
    margin-bottom: 22px;
    padding-bottom: 22px;
    font-size: 16px;
  }

  .ama-design.ama-intake .wpforms-form button.wpforms-page-button,
  .ama-design.ama-intake .wpforms-form button.wpforms-submit {
    width: 100%;
  }

  .ama-design.ama-intake .wpforms-form .wpforms-page-button+.wpforms-page-button {
    margin-top: 10px;
  }
}

/* §14 turns the account navigation into a scrolling row of chips here, so
   the "due" dot sits beside its label instead of being pushed to the far
   edge of a column that no longer exists. */
@media (max-width: 860px) {
  .ama-design.ama-account .woocommerce-MyAccount-navigation li.ama-intake-nav--due>a:after {
    margin-left: 8px;
  }
}

/* =====================================================================
   18. CHECKOUT ACCOUNT REGISTRATION  (the "Create your account" step a
   signed-out shopper fills in after Payment options — see
   includes/woocommerce-checkout-register.php and
   assets/js/checkout-register.js)

   The section renders WooCommerce's own checkout-step and text-input
   markup, so §13 already gives it the white card, the numbered circle and
   the heading type, and §11 the fields, the floating labels and the error
   text. Only what is this section's own is here.
   ===================================================================== */

/* The two password fields side by side, like the name pair above them.
   WooCommerce's own margin between stacked inputs would fight the grid. */
.ama-design.ama-checkout .ama-checkout-register__passwords {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ama-design.ama-checkout .ama-checkout-register__passwords>.wc-block-components-text-input {
  margin: 0;
}

/* The hint under the email field ("your order updates and your sign-in
   both use this address"), and its equivalent under the password. */
.ama-design.ama-checkout .ama-checkout-register__step .wc-block-components-text-input__help {
  margin: 6px 0 0;
  padding: 0;
  color: var(--ama-muted);
  font-family: var(--ama-sans);
  font-size: 12.5px;
  line-height: 1.5;
}

/* Shown when the address already has an account: the way out of an
   otherwise required form, so it reads as the next thing to do rather
   than as a footnote. */
.ama-design.ama-checkout .ama-checkout-register__signin {
  margin: 10px 0 0;
  padding: 0;
  font-family: var(--ama-sans);
  font-size: 13.5px;
}

.ama-design.ama-checkout .ama-checkout-register__signin a {
  color: var(--ama-gold-d);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The all-clear once the availability check comes back. */
.ama-design.ama-checkout .ama-checkout-register__available {
  margin: 8px 0 0;
  padding: 0;
  color: #4f7d52;
  font-family: var(--ama-sans);
  font-size: 13px;
}

/* ---------- Responsive (§18) ---------- */

/* Same breakpoint §13 uses to unstack the checkout's own field pairs. */
@media (max-width: 640px) {
  .ama-design.ama-checkout .ama-checkout-register__passwords {
    grid-template-columns: 1fr;
  }
}

/* =====================================================================
   19. PEPTIDE QUESTIONNAIRE PROMPTS  (the modal, and the "on hold" flags
   in My Account > Orders — see includes/woocommerce-intake-modal.php)

   Three things, all saying the same sentence at different volumes:

     .ama-intake-modal   the interrupt, up to five times a browser session
     .ama-intake-hold    the panel on a single order's page
     .ama-intake-flag    the line under the status in the orders table

   The modal is printed in the footer on every account page where it
   applies and starts with the `hidden` attribute set, so a customer with
   JavaScript off never sees a dialog they cannot dismiss — they get the
   notice box and the two flags instead. `[hidden]` is honoured explicitly
   because `display:flex` below would otherwise beat the UA sheet's
   `display:none`.

   Not scoped to `.ama-design`: the modal lives in the footer, outside the
   body class's reach on some Divi layouts, and it has to look right
   regardless.
   ===================================================================== */

/* ---------- 19.1 The modal ---------- */
.ama-intake-modal[hidden] {
  display: none;
}

.ama-intake-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  opacity: 0;
  transition: opacity .2s ease;
}

.ama-intake-modal.is-open {
  opacity: 1;
}

.ama-intake-modal__veil {
  position: absolute;
  inset: 0;
  background: rgba(27, 24, 19, .62);
}

/* Divi's header sits at a high z-index and the page can still scroll
   behind a fixed overlay on iOS; the body class is what stops it. */
body.ama-intake-modal-open {
  overflow: hidden;
}

.ama-intake-modal__box {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 40px 40px 32px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 24px 60px rgba(27, 24, 19, .28);
  text-align: center;
  transform: translateY(10px) scale(.98);
  transition: transform .2s ease;
}

.ama-intake-modal.is-open .ama-intake-modal__box {
  transform: none;
}

.ama-intake-modal__x {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--ama-muted);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}

.ama-intake-modal__x:hover,
.ama-intake-modal__x:focus-visible {
  background: #f4efe6;
  color: var(--ama-ink);
}

/* The gold ring the rest of the account area uses for an alert mark. */
.ama-intake-modal__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 0 20px;
  background: #faf6f0;
  border: 1px solid #ece4d4;
  border-radius: 50%;
  color: var(--ama-gold-d);
}

.ama-intake-modal__eyebrow {
  margin: 0 0 8px;
  color: var(--ama-gold-d);
  font-family: var(--ama-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ama-intake-modal__t {
  margin: 0 0 14px;
  padding: 0;
  color: var(--ama-ink);
  font-family: var(--ama-serif);
  font-size: 30px;
  line-height: 1.2;
}

.ama-intake-modal__d {
  margin: 0 0 28px;
}

.ama-intake-modal__d p {
  margin: 0 0 12px;
  padding: 0;
  color: var(--ama-muted);
  font-family: var(--ama-sans);
  font-size: 16px;
  line-height: 1.75;
}

.ama-intake-modal__d p:last-child {
  margin-bottom: 0;
}

.ama-intake-modal__d strong {
  color: var(--ama-ink);
}

.ama-intake-modal__fine {
  padding-top: 12px !important;
  border-top: 1px solid rgba(138, 130, 117, .18);
  font-size: 14px !important;
}

/* Full width, so the way forward is unmistakably the primary action. */
.ama-intake-modal__go.button,
.ama-intake-modal .button.ama-intake-modal__go {
  display: block;
  width: 100%;
  margin: 0;
  text-align: center;
}

.ama-intake-modal__later {
  display: block;
  width: 100%;
  margin: 14px 0 0;
  padding: 6px 0;
  background: transparent;
  border: 0;
  color: var(--ama-muted);
  font-family: var(--ama-sans);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.ama-intake-modal__later:hover,
.ama-intake-modal__later:focus-visible {
  color: var(--ama-ink);
}

/* ---------- 19.2 The flag in the orders table ---------- */

/* Sits under the status WooCommerce prints in the same cell, so the two
   read as one line of state rather than two competing ones. */
.ama-design .ama-intake-flag {
  display: block;
  margin-top: 6px;
  color: #a4603b;
  font-family: var(--ama-sans);
  font-size: 12px;
  line-height: 1.5;
}

.ama-design .ama-intake-flag__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  background: #c8732f;
  border-radius: 50%;
  vertical-align: middle;
}

.ama-design .ama-intake-flag__go {
  display: block;
  margin-top: 2px;
  color: var(--ama-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- 19.3 The panel on a single order ---------- */
.ama-design .ama-intake-hold {
  display: flex;
  gap: 16px;
  margin: 0 0 30px;
  padding: 24px;
  background: #fdf7f1;
  border: 1px solid #f0dcc8;
  border-radius: 15px;
}

.ama-design .ama-intake-hold__ic {
  flex: 0 0 auto;
  color: #c8732f;
  line-height: 1;
}

.ama-design .ama-intake-hold__body {
  flex: 1 1 auto;
  min-width: 0;
}

.ama-design .ama-intake-hold__t {
  margin: 0 0 6px;
  padding: 0;
  color: var(--ama-ink);
  font-family: var(--ama-serif);
  font-size: 20px;
  line-height: 1.3;
}

.ama-design .ama-intake-hold__d {
  margin: 0 0 16px;
  padding: 0;
  color: var(--ama-muted);
  font-family: var(--ama-sans);
  font-size: 15px;
  line-height: 1.7;
}

.ama-design .ama-intake-hold__go.button {
  margin: 0;
}

/* ---------- 19.4 Responsive ---------- */
@media (max-width: 640px) {
  .ama-intake-modal__box {
    padding: 32px 22px 24px;
  }

  .ama-intake-modal__t {
    font-size: 25px;
  }

  .ama-intake-modal__d p {
    font-size: 15px;
  }

  .ama-design .ama-intake-hold {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
  }
}

/* ---------- 19.5 Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {

  .ama-intake-modal,
  .ama-intake-modal__box {
    transition: none;
  }

  .ama-intake-modal__box {
    transform: none;
  }
}

/* ---------- 19.6 The hidden order field ---------- */

/* WPForms renders a hidden field as a wrapper with a hidden input inside;
   the wrapper still takes the form's field margin, which leaves a gap at
   the top of page one of the questionnaire. */
.ama-design .wpforms-container .ama-intake-order-field {
  display: none !important;
}

/* =====================================================================
   20. PHYSICIAN REVIEW  (the products whose questionnaire a physician is
   paid to read — see includes/woocommerce-product-review.php and
   includes/woocommerce-review-checkout.php)

   The same disclosure at four volumes, as the customer gets closer to
   paying for it:

     .ama-review-note        a line under the price on the product page
     .ama-review-line        a line on the cart row
     .ama-review-checkout    the panel above Place Order
     .ama-intake-note--review  the terms again, on the questionnaire itself

   All of them use the warm amber the "on hold" prompts in §19 use rather
   than the brand gold: this is a condition on the purchase, and gold reads
   as a benefit here.
   ===================================================================== */

/* ---------- 20.1 On the product page ---------- */
.ama-design .ama-review-note {
  display: flex;
  gap: 10px;
  /* The top margin is the gap to the price above, which carries only 6px of
     its own and butts the box straight up against the figure. .summary is
     block flow, so these two margins collapse rather than add: the gap is
     max(6, 16) = 16px, not 22. Raising the number raises the gap 1:1 while
     it stays above 6. */
  margin: 16px 0 22px;
  padding: 20px !important;
  background: #fdf7f1;
  border: 1px solid #f0dcc8;
  border-radius: 12px;
  color: #7d5a3c;
  font-family: var(--ama-sans);
  font-size: 13px;
  line-height: 1.7;
}

.ama-design .ama-review-note__ic {
  flex: 0 0 auto;
  margin-top: 1px;
  color: #c8732f;
  line-height: 1;
}

/* ---------- 20.2 On a cart row ---------- */
.ama-design .ama-review-line {
  display: block;
  margin-top: 4px;
  color: #a4603b;
  font-family: var(--ama-sans);
  font-size: 12px;
  line-height: 1.5;
}

/* ---------- 20.3 The panel above Place Order ---------- */

/* Not scoped to `.ama-design`: the Checkout block mounts this and the body
   class is not guaranteed to be in scope on every Divi layout — the same
   reason §19's modal is unscoped. */
.ama-review-checkout {
  margin: 0 0 24px;
  padding: 22px 24px;
  background: #fdf7f1;
  border: 1px solid #f0dcc8;
  border-radius: 15px;
}

.ama-review-checkout__head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 8px;
  padding: 0;
}

.ama-review-checkout__ic {
  display: inline-flex;
  color: #c8732f;
  line-height: 1;
}

.ama-review-checkout__eyebrow {
  color: #a4603b;
  font-family: var(--ama-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ama-review-checkout__t {
  margin: 0 0 10px;
  padding: 0;
  color: var(--ama-ink);
  font-family: var(--ama-serif);
  font-size: 21px;
  line-height: 1.3;
}

.ama-review-checkout__d {
  margin: 0 0 10px;
  padding: 0;
  color: #6f6354;
  font-family: var(--ama-sans);
  font-size: 14px;
  line-height: 1.75;
}

.ama-review-checkout__d:last-child {
  margin-bottom: 0;
}

/* The "what happens next" paragraph is the reassuring one, so it is set
   apart from the three that are conditions. */
.ama-review-checkout__d--next {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f0dcc8;
  color: #8a7d6c;
  font-size: 13px;
}

/* One row per questionnaire, shown only when an order needs more than one. */
.ama-review-checkout__items {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.ama-review-checkout__item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(240, 220, 200, .8);
  color: var(--ama-ink);
  font-family: var(--ama-sans);
  font-size: 14px;
  line-height: 1.5;
}

.ama-review-checkout__item:last-child {
  border-bottom: 0;
}

.ama-review-checkout__item-fee {
  flex: 0 0 auto;
  font-weight: 600;
}

/* ---------- 20.4 On the questionnaire ---------- */

/* §17 gives every .ama-intake-note a rule under it to separate it from the
   form. With a review note and a "questionnaire 1 of 2" note the page can
   now carry three of them, so only the last keeps the rule. */
.ama-design.ama-intake .ama-intake-note:not(:last-of-type) {
  margin-bottom: 16px;
  padding-bottom: 0;
  border-bottom: 0;
}

.ama-design.ama-intake .ama-intake-note--review {
  padding: 16px 18px;
  background: #fdf7f1;
  border: 1px solid #f0dcc8;
  border-radius: 12px;
  color: #7d5a3c;
  font-size: 15px;
}

/* ---------- 20.5 Responsive ---------- */
@media (max-width: 640px) {
  .ama-review-checkout {
    padding: 20px;
  }

  .ama-review-checkout__t {
    font-size: 19px;
  }

  .ama-review-checkout__item {
    flex-direction: column;
    gap: 2px;
  }
}

/* =====================================================================
   21. TREATMENT LIMIT  (at most three distinct treatments per order — see
   includes/woocommerce-treatment-limit.php)

   Three things: the modal that opens when an add is refused (21.1), one
   warning in the mini cart, and the spent state of the Checkout button
   beside it. The Cart and Checkout blocks raise the same message through
   the Store API and style it themselves, so there is nothing to write for
   those.

   Warm amber again, matching §19 and §20: this is a condition on the
   purchase, not a failure.
   ===================================================================== */

.ama-mini-cart-limit {
  flex: none;
  margin: 0;
  padding: 12px 20px;
  border-top: 1px solid #f1d9cc;
  background: #fbefe9;
  color: #8a3b1c;
  font-family: var(--ama-sans);
  font-size: 13px;
  line-height: 1.45;
}

/* Not a link while the cart is over the limit: the Store API refuses the
   order anyway, so the button is there to be read, not pressed. */
.ama-mini-cart .ama-mini-cart-btn-disabled {
  background: #d9d6d1;
  border-color: #d9d6d1;
  color: #6f6a64;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- 21.1 The modal ---------- */

/* Shown when an add-to-cart is refused for the limit — see
   assets/js/treatment-limit.js. Deliberately the same dialog as §19's
   questionnaire interrupt (same box, veil, timing and close affordances):
   two different-looking modals in one store would read as two different
   kinds of problem, and these are both "something has to change before
   this order can go ahead". The rules are repeated rather than shared
   because the two have no markup in common and nothing should couple the
   account area's interrupt to the shop's. */

.ama-limit-modal[hidden] {
  display: none;
}

.ama-limit-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  opacity: 0;
  transition: opacity .2s ease;
}

.ama-limit-modal.is-open {
  opacity: 1;
}

.ama-limit-modal__veil {
  position: absolute;
  inset: 0;
  background: rgba(27, 24, 19, .62);
}

body.ama-limit-modal-open {
  overflow: hidden;
}

.ama-limit-modal__box {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 40px 40px 32px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 24px 60px rgba(27, 24, 19, .28);
  text-align: center;
  transform: translateY(10px) scale(.98);
  transition: transform .2s ease;
}

.ama-limit-modal.is-open .ama-limit-modal__box {
  transform: none;
}

.ama-limit-modal__x {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--ama-muted);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}

.ama-limit-modal__x:hover,
.ama-limit-modal__x:focus-visible {
  background: #f4efe6;
  color: var(--ama-ink);
}

/* Amber rather than §19's gold ring: this is the same condition-on-the-
   purchase colour the cart row and the mini cart warning use. */
.ama-limit-modal__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 0 20px;
  background: #fbefe9;
  border: 1px solid #f1d9cc;
  border-radius: 50%;
  color: #8a3b1c;
}

.ama-limit-modal__eyebrow {
  margin: 0 0 8px;
  color: #8a3b1c;
  font-family: var(--ama-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ama-limit-modal__t {
  margin: 0 0 14px;
  padding: 0;
  color: var(--ama-ink);
  font-family: var(--ama-serif);
  font-size: 30px;
  line-height: 1.2;
}

.ama-limit-modal__d {
  margin: 0 0 28px;
}

.ama-limit-modal__d p {
  margin: 0 0 12px;
  padding: 0;
  color: var(--ama-muted);
  font-family: var(--ama-sans);
  font-size: 16px;
  line-height: 1.75;
}

.ama-limit-modal__d p:last-child {
  margin-bottom: 0;
}

/* Empty until the script fills it from the refusal, and it must not leave a
   12px gap in the meantime. */
.ama-limit-modal__d p[data-ama-limit-message]:empty {
  display: none;
}

.ama-limit-modal__fine {
  padding-top: 12px !important;
  border-top: 1px solid rgba(138, 130, 117, .18);
  font-size: 14px !important;
}

.ama-limit-modal__go.button,
.ama-limit-modal .button.ama-limit-modal__go {
  display: block;
  width: 100%;
  margin: 0;
  text-align: center;
}

.ama-limit-modal__later {
  display: block;
  width: 100%;
  margin: 14px 0 0;
  padding: 6px 0;
  background: transparent;
  border: 0;
  color: var(--ama-muted);
  font-family: var(--ama-sans);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.ama-limit-modal__later:hover,
.ama-limit-modal__later:focus-visible {
  color: var(--ama-ink);
}

@media (max-width: 600px) {
  .ama-limit-modal__box {
    padding: 32px 22px 24px;
  }

  .ama-limit-modal__t {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .ama-limit-modal,
  .ama-limit-modal__box {
    transition: none;
  }

  .ama-limit-modal__box {
    transform: none;
  }
}

/* =====================================================================
   22. ACCESSIBILITY — WCAG AA text contrast
   ---------------------------------------------------------------------
   The design's two muted tones fall below 4.5:1 at the small sizes used
   for eyebrows, kickers, price suffixes and footer legal text. The
   --ama-muted / --ama-gold-d tokens are left alone: they also colour
   borders, icons and SVG strokes where contrast does not apply and a
   darker value would visibly change the design. Only the failing text
   is restated here, at the nearest compliant shade of the same hue.

   Measured against #ffffff and --ama-cream (#f9f7f3):
     #826e42  gold text   4.93 / 4.61
     #776f62  muted text  4.96 / 4.63
   Against --ama-ink-2 (#26251f), the footer bar:
     #948c7d  muted text  4.61
   ===================================================================== */

.ama-design .ama-home-sechead .ama-eyebrow,
.ama-design .ama-eyebrow,
.ama-design .ama-home-cta-text .ama-eyebrow,
.ama-design.ama-shop .ama-shop-promo-text .ama-eyebrow,
.ama-design.ama-shop .ama-shop-cta .ama-eyebrow,
.ama-design.single-product .ama-related .ama-eyebrow {
  color: #826e42;
}

.ama-pb .ama-pb-kicker,
.ama-pb .ama-pb-price small,
.ama_shop_testimonial_box .ama-tb-location {
  color: #776f62;
}

/* The footer bar inverts: the same tone has to go lighter, not darker. */
.ama-design #footer-info .ama-copyright,
.ama-design #footer-info .ama-legal,
.ama-design #footer-info .ama-legal a {
  color: #948c7d;
}

/* =====================================================================
   23. LEGAL PAGES  (Privacy Policy, Prescribing Standards, Telehealth
       Consent, Refund Policy)
   ---------------------------------------------------------------------
   The only pages on the site that are plain post content rather than a
   Divi layout, so this section carries their typography as well as their
   chrome: measure, heading scale, list and link styling, the notice and
   contact blocks in the copy. includes/legal-pages.php supplies the body
   classes, the hero band, the contents list and the related row, and
   makes the pages full width.

   Arranged like §11: a full-bleed band under the transparent fixed header
   that carries its own clearance, then a centred column.
   ===================================================================== */

.ama-design.ama-legal {
  --ama-topbar-height: 42px;
  /* Narrower than the site's 1200px wrap: a page of running text reads at a
     measure, and the hero, the copy and the related row all line up on it.
     A page short enough to go without a contents list (.ama-legal-narrow,
     set in includes/legal-pages.php) loses the column that needs the extra
     width, so it narrows again to the measure itself. */
  --ama-legal-wrap: 1000px;
}

.ama-design.ama-legal.ama-legal-narrow {
  --ama-legal-wrap: 760px;
}

.ama-design.ama-legal.ama-legal-narrow .ama-legal-lead {
  max-width: none;
}

/* Divi's JS writes the header clearance as inline padding on this
   container; the hero already supplies it. !important is what it takes to
   outrank an inline style (the same fight as §9 and §11). */
.ama-design.ama-legal #main-content .container {
  padding-top: 0 !important;
  padding-bottom: 0;
}

/* Divi's sidebar divider rule, which has nothing to divide now. */
.ama-design.ama-legal #main-content .container:before {
  display: none;
}

.ama-design.ama-legal #left-area {
  float: none;
  width: 100%;
  max-width: var(--ama-legal-wrap);
  margin: 0 auto;
  padding: 56px 0 90px;
}

/* The hero band carries the page's one H1; Divi's in-column title is
   hidden rather than removed, since page.php prints it unconditionally. */
.ama-design.ama-legal h1.entry-title {
  display: none;
}

.ama-design.ama-legal .ama-legal-wrap {
  width: 90%;
  max-width: var(--ama-legal-wrap);
  margin: 0 auto;
}

/* ---------- Hero ---------- */
.ama-design.ama-legal .ama-legal-hero {
  padding: calc(var(--ama-topbar-height) + var(--ama-menu-height) + 44px) 0 44px;
  background: linear-gradient(180deg, var(--ama-cream), var(--ama-cream-2));
  border-bottom: 1px solid var(--ama-line);
}

.ama-design.ama-legal .ama-legal-crumbs {
  margin: 0 0 14px;
  color: var(--ama-muted);
  font-family: var(--ama-sans);
  font-size: 13px;
  font-weight: 600;
}

.ama-design.ama-legal .ama-legal-crumbs a {
  color: var(--ama-muted);
  transition: .2s;
}

.ama-design.ama-legal .ama-legal-crumbs a:hover {
  color: var(--ama-gold-d);
}

.ama-design.ama-legal .ama-legal-crumb-sep {
  margin: 0 8px;
  opacity: .5;
}

.ama-design.ama-legal .ama-legal-title {
  max-width: 20ch;
  margin: 0 0 14px;
  padding: 0;
  color: var(--ama-heading);
  font-family: var(--ama-serif);
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 600;
  line-height: 1.12;
}

.ama-design.ama-legal .ama-legal-lead {
  /* The hero wrap is already a measure on the narrow pages; a second cap
     here only made the last line break early. */
  max-width: 64ch;
  margin: 0;
  padding: 0;
  color: var(--ama-body);
  font-size: 17px;
  line-height: 1.7;
}

.ama-design.ama-legal .ama-legal-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
}

.ama-design.ama-legal .ama-legal-date {
  padding: 7px 15px;
  border: 1px solid var(--ama-sand);
  border-radius: var(--ama-pill);
  background: #fff;
  color: var(--ama-body);
  font-family: var(--ama-sans);
  font-size: 13px;
  letter-spacing: .01em;
}

.ama-design.ama-legal .ama-legal-date b {
  margin-right: 6px;
  color: var(--ama-heading);
  font-weight: 700;
}

/* ---------- Layout: contents beside the copy ---------- */
.ama-design.ama-legal .ama-legal-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.ama-design.ama-legal .ama-legal-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

/* The grid's own column is the measure on the pages that have a contents
   list; without one the wrap above already is. */
.ama-design.ama-legal .ama-legal-grid--single .ama-legal-copy {
  max-width: none;
}

.ama-design.ama-legal .ama-legal-toc {
  position: sticky;
  top: calc(var(--ama-menu-height-fixed) + 24px);
  padding: 22px 22px 24px;
  border: 1px solid var(--ama-line);
  border-radius: var(--ama-radius);
  background: var(--ama-cream);
}

.ama-design.ama-legal .ama-legal-toc-t {
  margin: 0 0 12px;
  padding: 0;
  color: var(--ama-heading);
  font-family: var(--ama-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Divi styles every list inside #left-area (disc bullets, its own line
   height); the contents list is numbered by its own counter instead, so
   long entries hang correctly under their number. */
.ama-design.ama-legal #left-area .ama-legal-toc ol {
  counter-reset: ama-legal-toc;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ama-design.ama-legal #left-area .ama-legal-toc li {
  position: relative;
  margin: 0;
  padding: 7px 0 7px 26px;
  line-height: 1.45;
  list-style: none;
}

.ama-design.ama-legal .ama-legal-toc li:before {
  position: absolute;
  left: 0;
  color: var(--ama-gold-d);
  counter-increment: ama-legal-toc;
  content: counter(ama-legal-toc) ".";
  font-family: var(--ama-sans);
  font-size: 12px;
  font-weight: 700;
  line-height: inherit;
}

.ama-design.ama-legal .ama-legal-toc a {
  color: var(--ama-body);
  font-family: var(--ama-sans);
  font-size: 14px;
  transition: color .2s;
}

.ama-design.ama-legal .ama-legal-toc a:hover {
  color: var(--ama-gold-d);
}

/* ---------- Copy ---------- */
.ama-design.ama-legal .ama-legal-copy p,
.ama-design.ama-legal .ama-legal-copy li {
  color: var(--ama-body);
  font-size: 16.5px;
  line-height: 1.75;
}

.ama-design.ama-legal .ama-legal-copy p {
  margin: 0 0 18px;
  padding: 0;
}

.ama-design.ama-legal .ama-legal-copy h2 {
  margin: 56px 0 16px;
  padding: 18px 0 0;
  border-top: 1px solid var(--ama-line);
  color: var(--ama-heading);
  font-family: var(--ama-serif);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.25;
  /* Divi's fixed header would otherwise cover a heading jumped to from the
     contents list - the same clearance §11 gives the checkout's notices. */
  scroll-margin-top: calc(var(--ama-menu-height-fixed) + 28px);
}

/* The first section follows the lead paragraphs, not another section. */
.ama-design.ama-legal .ama-legal-copy>h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.ama-design.ama-legal .ama-legal-copy h3 {
  margin: 30px 0 10px;
  padding: 0;
  color: var(--ama-heading);
  font-family: var(--ama-sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.4;
}

.ama-design.ama-legal .ama-legal-copy b,
.ama-design.ama-legal .ama-legal-copy strong {
  color: var(--ama-heading);
  font-weight: 700;
}

.ama-design.ama-legal .ama-legal-copy a {
  color: var(--ama-gold-d);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}

.ama-design.ama-legal .ama-legal-copy a:hover {
  color: var(--ama-heading);
}

/* Divi's #left-area ul rule has ID specificity, so the bullets have to be
   restated here rather than set on the class alone (§11 hits the same). */
.ama-design.ama-legal #left-area .ama-legal-copy ul {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.ama-design.ama-legal #left-area .ama-legal-copy ul li {
  position: relative;
  margin: 0;
  padding: 0 0 10px 24px;
  list-style: none;
}

.ama-design.ama-legal .ama-legal-copy ul li:before {
  position: absolute;
  top: .65em;
  left: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ama-gold);
  content: "";
}

/* Ordered lists - the shipping page's "what happens after you order" steps.
   Divi's #left-area ol sets inside decimals on its own line-height, so the
   counter is rebuilt here to hang in the same 24px gutter as the bullets. */
.ama-design.ama-legal #left-area .ama-legal-copy ol {
  margin: 0 0 22px;
  padding: 0;
  counter-reset: ama-legal-step;
  list-style: none;
}

.ama-design.ama-legal #left-area .ama-legal-copy ol li {
  position: relative;
  margin: 0;
  padding: 0 0 10px 30px;
  list-style: none;
  counter-increment: ama-legal-step;
}

.ama-design.ama-legal .ama-legal-copy ol li:before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--ama-gold-d);
  font-family: var(--ama-sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 2.2;
  content: counter(ama-legal-step) ".";
}

/* ---------- Notices in the copy ---------- */

/* The HIPAA "please review carefully" notice. */
.ama-design.ama-legal .ama-legal-copy .ama-legal-callout {
  margin: 0 0 28px;
  padding: 20px 24px;
  border-left: 3px solid var(--ama-gold);
  border-radius: 0 var(--ama-radius) var(--ama-radius) 0;
  background: var(--ama-cream);
  color: var(--ama-heading);
  font-family: var(--ama-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.65;
}

/* The closing attestation, set apart from the numbered sections. */
.ama-design.ama-legal .ama-legal-copy .ama-legal-note {
  margin: 0 0 14px;
  color: var(--ama-muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.ama-design.ama-legal .ama-legal-copy .ama-legal-note:first-of-type {
  margin-top: 36px;
}

.ama-design.ama-legal .ama-legal-copy .ama-legal-note strong {
  color: var(--ama-body);
}

/* ---------- Contact cards (the privacy policy's last section) ---------- */
.ama-design.ama-legal .ama-legal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 0 0 10px;
}

.ama-design.ama-legal .ama-legal-card {
  padding: 24px 26px;
  border: 1px solid var(--ama-line);
  border-radius: var(--ama-radius);
  background: #fff;
  box-shadow: var(--ama-shadow-sm);
}

.ama-design.ama-legal .ama-legal-copy .ama-legal-card h3 {
  margin: 0 0 10px;
}

.ama-design.ama-legal .ama-legal-copy .ama-legal-card p {
  margin: 0 0 10px;
  font-size: 15px;
}

.ama-design.ama-legal .ama-legal-copy .ama-legal-card p:last-child {
  margin-bottom: 0;
}

/* ---------- Related documents ---------- */
.ama-design.ama-legal .ama-legal-related {
  margin: 64px 0 0;
  padding: 30px 32px 34px;
  border: 1px solid var(--ama-line);
  border-radius: var(--ama-radius);
  background: var(--ama-cream);
}

.ama-design.ama-legal .ama-legal-copy .ama-legal-related h2 {
  margin: 0 0 18px;
  padding: 0;
  border-top: 0;
  font-family: var(--ama-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* These three carry .ama-legal-copy as well, so they outrank the copy's own
   list rules above - which would otherwise indent the cards by the bullet
   hang and leave them out of line with the heading over them. */
.ama-design.ama-legal #left-area .ama-legal-copy .ama-legal-related ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ama-design.ama-legal #left-area .ama-legal-copy .ama-legal-related ul li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ama-design.ama-legal #left-area .ama-legal-copy .ama-legal-related ul li:before {
  display: none;
}

/* The cards only - the "questions about this policy" line under them keeps
   the copy's own inline link styling. */
.ama-design.ama-legal .ama-legal-copy .ama-legal-related ul a {
  display: block;
  height: 100%;
  padding: 16px 18px;
  border: 1px solid var(--ama-line);
  border-radius: var(--ama-radius-sm, 10px);
  background: #fff;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.ama-design.ama-legal .ama-legal-copy .ama-legal-related ul a:hover {
  border-color: var(--ama-gold);
  box-shadow: var(--ama-shadow-sm);
  transform: translateY(-2px);
}

.ama-design.ama-legal .ama-legal-related a b {
  display: block;
  margin-bottom: 4px;
  color: var(--ama-heading);
  font-family: var(--ama-sans);
  font-size: 15px;
  font-weight: 700;
}

.ama-design.ama-legal .ama-legal-related a span {
  display: block;
  color: var(--ama-body);
  font-size: 13.5px;
  line-height: 1.55;
}

.ama-design.ama-legal .ama-legal-copy .ama-legal-ask {
  margin: 22px 0 0;
  color: var(--ama-body);
  font-size: 15px;
}

/* ---------- Responsive (§23) ---------- */

/* The contents list stops being a column of its own before it gets too
   narrow to read; it stays at the top of the page as a plain list. */
@media (max-width: 980px) {
  .ama-design.ama-legal .ama-legal-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .ama-design.ama-legal .ama-legal-toc {
    position: static;
  }

  .ama-design.ama-legal #left-area .ama-legal-toc ol {
    columns: 2;
    column-gap: 28px;
  }
}

@media (max-width: 767px) {
  .ama-design.ama-legal .ama-legal-hero {
    padding-bottom: 34px;
  }

  .ama-design.ama-legal .ama-legal-title {
    max-width: none;
  }

  .ama-design.ama-legal #left-area {
    padding: 38px 0 64px;
  }

  .ama-design.ama-legal #left-area .ama-legal-toc ol {
    columns: 1;
  }

  .ama-design.ama-legal .ama-legal-copy h2 {
    margin-top: 42px;
    font-size: 23px;
  }

  .ama-design.ama-legal .ama-legal-related {
    padding: 24px 22px 26px;
  }
}

/* =====================================================================
   24. QUESTIONNAIRE THANK YOU  (page 598, /thank-you-peptide-questionnaire/
       — where WPForms form 413 sends people after they submit)
   ---------------------------------------------------------------------
   Layout copied from the parent site's
   /intake-questionnaire/thank-you-skip-consultation/: one white card on
   the page background, 760px wide, with a gold eyebrow, a serif H1 and
   hairline-separated blocks inside it. The reference's own colours are
   this site's tokens to within a shade or two (#BCA367 is --ama-gold,
   #8a8275 is --ama-muted, #ece4d4 is --ama-line), so the tokens are used
   rather than the reference's literals, and the body font stays the
   site's Open Sans instead of the reference's Inter.

   The card is the Divi *row*, not a module, so the row's own padding is
   what the border wraps — hence the !important on it, which is the same
   fight as §15: Divi writes row padding from the builder as an inline-
   level rule of its own.

   The card's width and padding are declared *here* rather than as row
   settings in the builder, on purpose. Divi writes a module's design
   settings into wp-content/et-cache/<id>/et-core-unified-<id>.min.css,
   and that file is only rebuilt when Divi decides it is stale - this page
   was cached while it was empty, so settings made from WP-CLI rendered as
   a full-width row with no card at all. Everything visual for this page
   is in this section, and the layout carries structure only.
   ===================================================================== */

.ama-design .ama-qthanks.et_pb_section {
  padding: 60px 0 90px;
  background: transparent;
}

.ama-design .ama-qthanks .ama-qthanks-card.et_pb_row {
  width: 90%;
  max-width: 760px;
  padding: 40px !important;
  background: #fff;
  border: 1px solid var(--ama-line);
  border-radius: var(--ama-radius);
  box-shadow: var(--ama-shadow-sm);
}

/* Each block but the last is closed by a hairline. :not(:last-child) would
   catch the button wrapper too, which sits outside the ruled part of the
   card, so the blocks name themselves. */
.ama-design .ama-qthanks .ama-qthanks-lead,
.ama-design .ama-qthanks .ama-qthanks-order,
.ama-design .ama-qthanks .ama-qthanks-steps,
.ama-design .ama-qthanks .ama-qthanks-terms {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(138, 129, 114, .18);
}

/* Which order these answers were filed against, added by
   divi_child_intake_confirmation_content() from the order the submission
   actually went to. It is the one line on this page that is specific to
   the customer, so it is set apart from the prose around it. */
.ama-design .ama-qthanks .ama-qthanks-order {
  color: var(--ama-heading);
  font-size: 16px;
}

.ama-design .ama-qthanks .ama-qthanks-order strong {
  font-weight: 600;
}

.ama-design .ama-qthanks .et_pb_text {
  color: var(--ama-muted);
  font-family: var(--ama-sans);
  font-size: 17px;
  line-height: 1.8;
}

.ama-design .ama-qthanks .et_pb_text p {
  padding-bottom: 0;
}

.ama-design .ama-qthanks .et_pb_text p+p {
  margin-top: 1em;
}

.ama-design .ama-qthanks .ama-qthanks-eyebrow {
  margin-bottom: 12px;
  color: var(--ama-gold);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

/* Divi's #left-area heading rules outrank a class on the module, so the
   headings in here are addressed through the section the same way §17
   does it. */
.ama-design .ama-qthanks .ama-qthanks-lead h1 {
  margin-bottom: 14px;
  padding-bottom: 0;
  color: var(--ama-heading);
  font-family: var(--ama-serif);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
}

.ama-design .ama-qthanks .ama-qthanks-terms h3 {
  margin-bottom: 10px;
  padding-bottom: 0;
  color: var(--ama-heading);
  font-family: var(--ama-serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
}

/* The steps are numbered because they happen in order. The counter is
   drawn by hand: Divi's list styling puts the marker outside the text
   column, and a three-line step then hangs under its own number. */
.ama-design .ama-qthanks .ama-qthanks-steps ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ama-qthanks-step;
}

.ama-design .ama-qthanks .ama-qthanks-steps ol li {
  position: relative;
  margin: 0 0 18px;
  padding: 0 0 0 46px;
  line-height: 1.8;
  counter-increment: ama-qthanks-step;
}

.ama-design .ama-qthanks .ama-qthanks-steps ol li:last-child {
  margin-bottom: 0;
}

.ama-design .ama-qthanks .ama-qthanks-steps ol li::before {
  content: counter(ama-qthanks-step);
  position: absolute;
  top: 4px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--ama-cream-2);
  border-radius: 50%;
  color: var(--ama-gold-d);
  font-family: var(--ama-sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.ama-design .ama-qthanks .ama-qthanks-steps ol li strong {
  color: var(--ama-heading);
  font-weight: 600;
}

.ama-design .ama-qthanks .ama-qthanks-contact {
  margin-bottom: 25px;
  font-size: 15px;
}

.ama-design .ama-qthanks .et_pb_text a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

.ama-design .ama-qthanks .et_pb_text a:hover {
  color: var(--ama-gold-d);
}

/* Divi's button rules are themselves written at
   `#page-container .et_pb_section .et_pb_button`, so matching that
   specificity is what it takes, as in §4. */
.ama-design #page-container .ama-qthanks .ama-qthanks-btn.et_pb_button {
  padding: 12px 30px !important;
  background: var(--ama-gold);
  border: 0;
  border-radius: 3px;
  color: #fff !important;
  font-family: var(--ama-sans);
  font-size: 17px;
  font-weight: 500;
}

.ama-design #page-container .ama-qthanks .ama-qthanks-btn.et_pb_button:hover {
  background: var(--ama-gold-d);
}

/* Divi draws a sliding arrow in the button's ::after; §4 drops it site
   wide, and this repeats it in case the preset is reset in the builder. */
.ama-design #page-container .ama-qthanks .ama-qthanks-btn.et_pb_button:before,
.ama-design #page-container .ama-qthanks .ama-qthanks-btn.et_pb_button:after {
  display: none !important;
}

/* There are two ways on now that the confirmation names its order - the
   order's own receipt, and the account - and Divi gives each button a
   block-level wrapper of its own, which would stack them. Laid inline
   instead, which leaves the single-button case (a confirmation reached
   without an order on the URL) exactly as it was. */
.ama-design .ama-qthanks .et_pb_button_module_wrapper {
  display: inline-block;
  margin-right: 10px;
}

.ama-design .ama-qthanks .et_pb_button_module_wrapper:last-child {
  margin-right: 0;
}

/* Both buttons keep the section's gold. Making the second one quieter
   would mean telling the two apart in CSS, and Divi puts `module_class`
   on the button rather than on the wrapper that would have to be
   matched - so the distinction would have to come from the page content,
   which is not worth a visual hierarchy this card does not need. */

@media only screen and (max-width: 767px) {
  .ama-design .ama-qthanks.et_pb_section {
    padding: 40px 0 64px;
  }

  .ama-design .ama-qthanks .ama-qthanks-card.et_pb_row {
    padding: 30px 25px !important;
  }

  .ama-design .ama-qthanks .ama-qthanks-lead h1 {
    font-size: 30px;
  }

  .ama-design .ama-qthanks .ama-qthanks-steps ol li {
    padding-left: 40px;
  }

  .ama-design .ama-qthanks .ama-qthanks-steps ol li::before {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }
}

/* =====================================================================
   25. COLD SHIPPING  (the line under the shipping options on the Checkout
   block — see includes/woocommerce-cold-shipping.php)

   $24.99 flat per order is only reasonable once the customer knows it
   buys insulation, cold packs and an expedited tracked service, so this
   sits directly under the rate, where the price is.

   One line, on the page's own cream rather than in a bordered panel: the
   physician-review panel in §20 is switched off because a large notice at
   the checkout was costing conversions, and this is reassurance about a
   charge rather than a condition on the purchase. The brand gold is right
   here for the same reason — it reads as something included, which is
   exactly what it is.

   Not scoped to `.ama-design`: the Checkout block mounts it and the body
   class is not guaranteed to be in scope on every Divi layout — the same
   reason §20.3 is unscoped.
   ===================================================================== */
.ama-cold-ship {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  /* Pulled up under the shipping options, which carry their own bottom
     margin; the negative top closes the gap the rate list leaves. */
  margin: -6px 0 4px;
  /* The horizontal padding is the checkout step's own inner padding, so the
     icon lines up with the left edge of the rate box above it rather than
     with the card's border. */
  padding: 13px 30px;
  background: var(--ama-cream-2, #f5efe6);
  border-radius: 10px;
  color: #6f6354;
  font-family: var(--ama-sans);
  font-size: 13px;
  line-height: 1.6;
}

.ama-cold-ship__ic {
  /* Baseline alignment puts an inline-flex box on its own bottom edge, so
     the icon needs nudging down to sit with the first line of text. */
  position: relative;
  top: 3px;
  flex: 0 0 auto;
  display: inline-flex;
  color: var(--ama-gold-d, #a98f56);
  line-height: 1;
}

.ama-cold-ship__t {
  flex: 1 1 220px;
}

.ama-cold-ship__link {
  flex: 0 0 auto;
  color: var(--ama-gold-d, #a98f56);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ama-cold-ship__link:hover,
.ama-cold-ship__link:focus {
  color: var(--ama-ink, #2f2a25);
}

@media (max-width: 480px) {
  .ama-cold-ship {
    padding: 12px 20px;
  }
}