/* Checkout v2 (preview) - loaded only when inc/checkout-v2.php is on, after
   checkout.css, and only on the cart and checkout. Everything is scoped to
   body.hmd-v2 so nothing here can reach a normal visitor's page.

   One visual idea: each step is a white card on the page ground, the order is
   a tinted panel beside them, and the brand green is spent on exactly three
   things - the active choice, the completed step and the pay button. */

body.hmd-v2{
  --v2-card:#FFFFFF;
  --v2-line:#E1E6DA;
  --v2-field:#C8D0BF;
  --v2-ok:#2F7A22;
  --v2-err:#C2291D;
  --v2-focus:rgba(61,148,38,.20);
  --v2-chosen:#F5F9F0;
  --v2-r:16px;
  --v2-r-sm:11px;
  --v2-shadow:0 1px 2px rgba(20,37,26,.04),0 10px 28px -12px rgba(20,37,26,.10);
}

/* ---- chrome: the checkout carries the brand and nothing else ---------- */
body.hmd-v2.hmd-lean--checkout .d-announce{display:none}
/* One way to log in: the link in the Contact card. */
body.hmd-v2 .c-login__toggle{display:none}
/* The discount code lives in the summary. */
body.hmd-v2.hmd-lean--checkout .woocommerce-form-coupon-toggle,
body.hmd-v2.hmd-lean--checkout form.checkout_coupon{display:none !important}
/* "N fields still needed" only after someone has tried to pay. */
body.hmd-v2 [data-c-express-note]{display:none}
body.hmd-v2.v2-tried [data-c-express-note]{display:block}

/* WooCommerce's login form, opened by "Log in", as a card above the steps. */
body.hmd-v2 form.woocommerce-form-login{max-width:760px;margin:0 0 20px;
  padding:clamp(18px,2.2vw,26px);background:var(--v2-card);
  border:1px solid var(--v2-line);border-radius:var(--v2-r);box-shadow:var(--v2-shadow)}
body.hmd-v2 form.woocommerce-form-login .form-row .input-text{height:50px;border:1.5px solid var(--v2-field);
  border-radius:var(--v2-r-sm);padding:0 14px;font-size:16px;width:100%}
body.hmd-v2 form.woocommerce-form-login .button{height:50px;padding:0 24px;border:0;
  border-radius:var(--v2-r-sm);background:var(--d-ink);color:#fff;font-weight:600}

/* ---- layout ------------------------------------------------------------ */
.c-co2 .c-co__grid{gap:clamp(20px,3vw,44px)}

/* ---- the step cards ---------------------------------------------------- */
.c-co2 .c-sec{background:var(--v2-card);border:1px solid var(--v2-line);
  border-radius:var(--v2-r);padding:clamp(18px,2.2vw,28px);box-shadow:var(--v2-shadow)}
.c-co2 .c-sec + .c-sec{margin-top:16px}
.c-co2 .c-sec__head{display:flex;align-items:center;gap:12px;margin:0 0 18px}
.c-co2 .c-sec__ico{flex:none;display:grid;place-items:center;width:38px;height:38px;
  border-radius:11px;background:var(--d-tint);color:var(--d-brand-deep)}
.c-co2 .c-sec__title{margin:0;font-family:var(--d-display);font-weight:700;
  font-size:clamp(18px,1.3vw,21px);line-height:1.2;letter-spacing:-.01em;color:var(--d-ink)}
.c-co2 .c-sec__done{display:none;place-items:center;width:20px;height:20px;border-radius:50%;
  background:var(--v2-ok);color:#fff}
.c-co2 .c-sec__done .c-ico{width:13px;height:13px;stroke-width:3}
.c-co2 .c-sec.is-done .c-sec__done{display:grid;animation:v2pop .28s ease-out}
.c-co2 .c-sec.is-done .c-sec__ico{background:var(--d-brand-deep);color:#fff}
.c-co2 .c-sec__aside{margin-left:auto;font-size:var(--d-sm);font-weight:600;
  color:var(--d-brand-deep);text-decoration:underline;text-underline-offset:3px}
.c-co2 .c-sec__who{margin:-6px 0 14px;font-size:var(--d-sm);color:var(--d-muted)}
.c-co2 .c-sec__who strong{color:var(--d-ink)}
.c-co2 .c-sec__who a{margin-left:6px;color:var(--d-brand-deep);font-weight:600}
@keyframes v2pop{0%{transform:scale(.4);opacity:0}70%{transform:scale(1.12)}100%{transform:scale(1);opacity:1}}

/* The sections carry their own headings; WooCommerce's are not needed. */
.c-co2 .woocommerce-additional-fields > h3{display:none}
.c-co2 .c-sec__acct{margin-top:14px}

/* ---- fields ------------------------------------------------------------
   Every rule here starts .c-co2 .c-co__form: WooCommerce's own
   `.woocommerce form .form-row .input-text` (0,3,1) sets height:auto and
   0.5em padding, and beat checkout.css's 52px - which is why the fields were
   38px tall on the live checkout too. */
.c-co2 .c-co__form .c-co__fields .woocommerce-billing-fields__field-wrapper,
.c-co2 .c-co__form .c-co__fields .woocommerce-shipping-fields__field-wrapper{gap:14px 12px}
.c-co2 .c-co__form .c-co__fields label{margin:0 0 6px;font-size:.875rem;font-weight:600;color:var(--d-ink)}
.c-co2 .c-co__form .c-co__fields .required{color:var(--v2-err)}
.c-co2 .c-co__form .c-co__fields .optional{font-weight:400;color:var(--d-muted)}
.c-co2 .c-co__form .c-co__fields .input-text,
.c-co2 .c-co__form .c-co__fields select,
.c-co2 .c-co__form .c-co__fields .select2-container .select2-selection--single{height:52px;
  border:1.5px solid var(--v2-field);border-radius:var(--v2-r-sm);background-color:#fff;
  font-size:16px;color:var(--d-ink);transition:border-color .15s ease,box-shadow .15s ease}
.c-co2 .c-co__form .c-co__fields .input-text{padding:0 44px 0 14px}
.c-co2 .c-co__form .c-co__fields textarea.input-text{height:auto;min-height:96px;padding:12px 14px}
.c-co2 .c-co__form .c-co__fields .select2-container .select2-selection__rendered{line-height:49px;padding-left:14px}
.c-co2 .c-co__form .c-co__fields .select2-container .select2-selection__arrow{height:49px;right:8px}
.c-co2 .c-co__form .c-co__fields .input-text::placeholder{color:#8A9083}
.c-co2 .c-co__form .c-co__fields .input-text:hover,
.c-co2 .c-co__form .c-co__fields select:hover{border-color:#AEB8A3}
.c-co2 .c-co__form .c-co__fields .input-text:focus,
.c-co2 .c-co__form .c-co__fields select:focus,
.c-co2 .c-co__form .c-co__fields .select2-container--focus .select2-selection--single,
.c-co2 .c-co__form .c-co__fields .select2-container--open .select2-selection--single{outline:none;
  border-color:var(--d-brand);box-shadow:0 0 0 4px var(--v2-focus)}

/* Valid: a quiet tick inside the field. Invalid: red edge and the message. */
.c-co2 .form-row.is-valid .input-text:not(:focus){border-color:#9BC48A;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F7A22' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;background-size:18px}
.c-co2 .form-row.is-invalid .input-text,
.c-co2 .form-row.is-invalid select,
.c-co2 .form-row.is-invalid .select2-selection--single,
.c-co2 .form-row.woocommerce-invalid .input-text{border-color:var(--v2-err);background-image:none}
.c-co2 .form-row.is-invalid .input-text:focus{box-shadow:0 0 0 4px rgba(194,41,29,.14)}
.c-co2 .c-co__fielderr{display:flex;align-items:flex-start;gap:6px;margin-top:7px;
  font-size:.8125rem;line-height:1.35;font-weight:500;color:var(--v2-err)}
.c-co2 .c-co__fielderr::before{content:"";flex:none;width:15px;height:15px;margin-top:1px;
  background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask-composite:source-over;opacity:.9}

/* "Did you mean …@gmail.com?" */
.c-co2 .c-hint{margin:8px 0 0;font-size:.8125rem;color:var(--d-muted)}
.c-co2 .c-hint button{padding:0;border:0;background:none;font:inherit;font-weight:700;
  color:var(--d-brand-deep);text-decoration:underline;text-underline-offset:3px;cursor:pointer}

/* Checkboxes: create account, deliver elsewhere. */
.c-co2 .woocommerce-form__label-for-checkbox{display:flex;align-items:flex-start;gap:10px;
  font-size:.9375rem;font-weight:500;color:var(--d-ink);cursor:pointer}
.c-co2 input[type=checkbox].input-checkbox{flex:none;width:20px;height:20px;margin:1px 0 0;
  accent-color:var(--d-brand-deep)}
.c-co2 #ship-to-different-address{margin:18px 0 0;font-size:inherit}

/* Order note: a link until it is wanted. */
.c-co2 .c-addnote{display:inline-flex;align-items:center;gap:8px;margin:16px 0 0;padding:0;
  border:0;background:none;font:inherit;font-size:.9375rem;font-weight:600;
  color:var(--d-brand-deep);cursor:pointer}
.c-co2 .c-addnote .c-ico{width:18px;height:18px;transition:transform .2s ease}
.c-co2 .c-addnote[aria-expanded="true"] .c-ico{transform:rotate(45deg)}
.c-co2 .woocommerce-additional-fields__field-wrapper{margin-top:12px}
/* checkout.css gives the wrapper display:grid, which beats the hidden attribute. */
.c-co2 .woocommerce-additional-fields__field-wrapper[hidden]{display:none !important}

/* ---- shipping options as cards ---------------------------------------- */
.c-co2 .c-ship2__list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.c-co2 .c-ship2__opt{position:relative;margin:0}
.c-co2 .c-ship2__opt input[type=radio]{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.c-co2 .c-ship2__card{position:relative;display:flex;align-items:center;min-height:62px;
  margin:0;padding:14px 16px 14px 50px;border:1.5px solid var(--v2-field);border-radius:var(--v2-r-sm);
  background:#fff;cursor:pointer;transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease}
.c-co2 .c-ship2__card::before{content:"";position:absolute;left:16px;top:50%;width:20px;height:20px;
  margin-top:-10px;border-radius:50%;border:2px solid var(--v2-field);background:#fff;
  transition:border-color .15s ease,box-shadow .15s ease}
.c-co2 .c-ship2__card:hover{border-color:#AEB8A3}
.c-co2 .c-ship2__opt input:checked + .c-ship2__card{border-color:var(--d-brand);background:var(--v2-chosen);
  box-shadow:0 0 0 1px var(--d-brand)}
.c-co2 .c-ship2__opt input:checked + .c-ship2__card::before{border-color:var(--d-brand);
  box-shadow:inset 0 0 0 5px var(--d-brand)}
.c-co2 .c-ship2__opt input:focus-visible + .c-ship2__card{box-shadow:0 0 0 4px var(--v2-focus)}
.c-co2 .c-ship2__card.is-only{padding-left:16px;cursor:default;border-color:var(--d-brand);background:var(--v2-chosen)}
.c-co2 .c-ship2__card.is-only::before{display:none}
.c-co2 .c-ship2__card .c-ship{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%}
.c-co2 .c-ship2__card .c-ship__text{display:flex;flex-direction:column;gap:2px;min-width:0}
.c-co2 .c-ship2__card .c-ship__name{font-weight:600;font-size:.9375rem;color:var(--d-ink)}
.c-co2 .c-ship2__card .c-ship__when{font-size:.8125rem;color:var(--d-muted)}
.c-co2 .c-ship2__card .c-ship__cost{flex:none;font-weight:700;font-variant-numeric:tabular-nums;color:var(--d-ink)}
.c-co2 .c-ship2__card .c-ship__free{color:var(--v2-ok)}
.c-co2 .c-ship2__pkg{margin:0 0 8px;font-size:var(--d-sm);font-weight:600;color:var(--d-muted)}
.c-co2 .c-ship2__empty{margin:0;padding:16px;border:1.5px dashed var(--v2-field);border-radius:var(--v2-r-sm);
  font-size:.9375rem;color:var(--d-muted);text-align:center}

/* ---- payment ----------------------------------------------------------- */
.c-co2 .c-co__pay .c-co__note{display:flex;align-items:center;gap:6px;margin:-8px 0 14px}
/* checkout.css already draws each gateway's LABEL as a card; refine it
   rather than adding a second border round the <li>. */
.c-co2 .c-co__pay ul.payment_methods li > label{min-height:58px;border-color:var(--v2-field);
  border-radius:var(--v2-r-sm);font-family:var(--d-text);font-weight:600;font-size:.9375rem}
.c-co2 .c-co__pay ul.payment_methods li > input:checked + label{background:var(--v2-chosen);
  box-shadow:0 0 0 1px var(--d-brand)}
/* Brand marks, right-aligned in the card. checkout.css gives every img in a
   gateway label margin-left:auto, which would spread three of them across the
   row - so the group takes the auto margin and the images take none. */
.c-co2 .c-payico{display:inline-flex;align-items:center;gap:6px;margin-left:auto;flex:none}
.c-co2 .c-co__pay ul.payment_methods li img.c-payico__img{display:block;height:24px;
  width:auto;max-height:24px;margin:0;border-radius:4px;box-shadow:0 0 0 1px rgba(20,37,26,.08)}
.c-co2 .c-co__pay ul.payment_methods li img.c-payico__img--paypal-button{height:20px;max-height:20px;
  border-radius:0;box-shadow:none}
/* On a phone three 38px marks squeezed "Payment options" onto two lines. */
@media (max-width:40em){
  .c-co2 .c-payico{gap:4px}
  .c-co2 .c-co__pay ul.payment_methods li img.c-payico__img{height:19px;max-height:19px}
  .c-co2 .c-co__pay ul.payment_methods li img.c-payico__img--paypal-button{height:17px;max-height:17px}
  /* The words stay on one line; when there is no room beside them the marks
     drop to a second line instead of running off the card (iPhone SE). */
  .c-co2 .c-co__pay ul.payment_methods li > label{white-space:nowrap;flex-wrap:wrap;row-gap:8px}
}
/* WooCommerce's lilac box is `#payment div.payment_box` - an id selector,
   which is why checkout.css's class rule never won against it. */
.c-co2 #payment div.payment_box{margin:8px 0 0;padding:14px;border-radius:var(--v2-r-sm);
  background:#F6F8F3;border:1px solid var(--v2-line);color:var(--d-muted)}
.c-co2 #payment div.payment_box::before{display:none}
.c-co2 .c-co__pay .woocommerce-privacy-policy-text{font-size:.8125rem;color:var(--d-muted)}

/* The pay button: the one loud thing on the page. */
.c-co2 .c-co__pay #place_order{min-height:58px;gap:10px;border-radius:14px;
  background:var(--d-brand-deep);font-size:1.0625rem;font-weight:700;letter-spacing:.01em;
  box-shadow:0 10px 22px -10px rgba(42,94,38,.55)}
.c-co2 .c-co__pay #place_order::before{content:"";flex:none;width:18px;height:18px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center/contain no-repeat}
.c-co2 .c-co__pay #place_order:hover{background:#1F4A1C}
.c-co2 .c-co__pay #place_order:focus-visible{outline:none;box-shadow:0 0 0 4px var(--v2-focus)}

.c-co2 .c-co__policies{justify-content:center;margin-top:22px}

/* ---- the order panel --------------------------------------------------- */
.c-co2 .c-co__sidewrap{border:1px solid var(--v2-line);box-shadow:var(--v2-shadow)}
.c-co2 .c-co2__sidehead{margin:0 0 14px;font-family:var(--d-display);font-weight:700;
  font-size:clamp(17px,1.2vw,20px);color:var(--d-ink)}
.c-co2 .c-rev__thumb{border-radius:12px;background:#fff;border:1px solid var(--v2-line)}
.c-co2 .c-rev__qty{background:var(--d-ink);color:#fff}
/* A coupon row's value ("Free shipping coupon [Remove]") is longer than the
   price column; let it wrap rather than clip. */
.c-co2 .c-co__summary tr.cart-discount td{white-space:normal;overflow-wrap:anywhere}
.c-co2 .c-rev2__tbc{font-size:.8125rem;color:var(--d-muted);font-weight:500}
.c-co2 .order-total th,.c-co2 .order-total td{padding-top:14px !important;
  border-top:1px solid var(--v2-line) !important}

/* Discount code. */
.c-co2 .c-code{margin:16px 0 0;padding:16px 0 0;border-top:1px solid var(--v2-line)}
.c-co2 .c-code__label{display:flex;align-items:center;gap:8px;margin:0 0 8px;
  font-size:var(--d-sm);font-weight:600;color:var(--d-ink)}
.c-co2 .c-code__label .c-ico{width:17px;height:17px;color:var(--d-brand-deep)}
.c-co2 .c-code__row{display:flex;gap:8px}
.c-co2 .c-code__input{flex:1;min-width:0;height:48px;padding:0 14px;border:1.5px solid var(--v2-field);
  border-radius:var(--v2-r-sm);background:#fff;font-size:16px;font-weight:600;letter-spacing:.05em;
  text-transform:uppercase;color:var(--d-ink)}
.c-co2 .c-code__input::placeholder{font-weight:400;letter-spacing:0;text-transform:none;color:#8A9083}
.c-co2 .c-code__input:focus{outline:none;border-color:var(--d-brand);box-shadow:0 0 0 4px var(--v2-focus)}
.c-co2 .c-code__apply{flex:none;height:48px;padding:0 18px;border:0;border-radius:var(--v2-r-sm);
  background:var(--d-ink);color:#fff;font-weight:600;font-size:.9375rem;cursor:pointer;
  transition:background-color .15s ease,opacity .15s ease}
.c-co2 .c-code__apply:hover{background:#000}
.c-co2 .c-code__apply[aria-disabled="true"]{background:#C3CBBA;cursor:default}
.c-co2 .c-code__apply.is-busy{opacity:.6;cursor:progress}
.c-co2 .c-code__msg{margin:8px 0 0;font-size:.8125rem;line-height:1.4}
.c-co2 .c-code__msg:empty{display:none}
.c-co2 .c-code__msg.is-ok{color:var(--v2-ok)}
.c-co2 .c-code__msg.is-err{color:var(--v2-err)}

/* ---- phones ------------------------------------------------------------ */
@media (max-width:64em){
  .c-co2 .c-co__sidewrap{border-radius:var(--v2-r)}
  .c-co2 .c-co__toggle{padding:16px 18px;font-family:var(--d-text);font-weight:600;
    font-size:.9375rem;color:var(--d-brand-deep)}
  .c-co2 .c-co__toggle-total{font-family:var(--d-display);font-weight:700;font-size:1.0625rem;color:var(--d-ink)}
  .c-co2 .c-co2__sidehead{display:none}
}
@media (max-width:40em){
  .c-co2 .c-sec{padding:18px 16px;border-radius:14px}
  .c-co2 .c-sec__head{margin-bottom:14px}
  .c-co2 .c-sec__ico{width:34px;height:34px;border-radius:10px}
  .c-co2 .c-ship2__card{padding-left:46px}
}

@media (prefers-reduced-motion:reduce){
  .c-co2 *{animation:none !important;transition:none !important}
}

/* ===========================================================================
   CART (v2)
   Same tokens as the checkout above, so the two pages read as one flow:
   white cards for what you are buying, a tinted panel for the money, the
   deep green spent only on the step you are on and the button that moves on.
   ======================================================================== */

/* ---- head and steps ---------------------------------------------------- */
.hmd-v2 .c-cart__head{align-items:center;margin-bottom:14px}
.hmd-v2 .c-cart__title{font-size:clamp(30px,3.2vw,44px);letter-spacing:-.02em}
.hmd-v2 .c-cart__count{min-width:32px;height:32px;background:var(--d-tint);color:var(--d-brand-deep);
  font-family:var(--d-text);font-weight:700;font-size:.9375rem}
.hmd-v2 .c-cart .c-cart__back{display:inline-flex;align-items:center;gap:8px;text-decoration:none;
  font-size:.9375rem;color:var(--d-brand-deep)}
.hmd-v2 .c-cart .c-cart__back:hover{color:var(--d-ink);text-decoration:underline;text-underline-offset:3px}

.hmd-v2 .c-steps{display:flex;align-items:center;list-style:none;margin:0 0 clamp(20px,2.4vw,32px);padding:0;
  font-size:.875rem;font-weight:600;color:var(--d-muted)}
.hmd-v2 .c-steps__item{display:flex;align-items:center;gap:8px;white-space:nowrap}
.hmd-v2 .c-steps__item + .c-steps__item::before{content:"";width:clamp(18px,4vw,48px);height:1.5px;margin:0 12px;
  background:var(--v2-field)}
.hmd-v2 .c-steps__n{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;
  border:1.5px solid var(--v2-field);background:#fff;font-size:.8125rem;color:var(--d-muted)}
.hmd-v2 .c-steps__item.is-on{color:var(--d-ink)}
.hmd-v2 .c-steps__item.is-on .c-steps__n{border-color:var(--d-brand-deep);background:var(--d-brand-deep);color:#fff}

/* ---- the lines as cards ------------------------------------------------ */
.hmd-v2 .c-cart__grid{gap:clamp(20px,3vw,44px)}
.hmd-v2 .c-lines{border-top:0;display:grid;gap:12px}
.hmd-v2 .c-line{padding:clamp(14px,1.6vw,20px);border:1px solid var(--v2-line);
  border-radius:var(--v2-r);background:var(--v2-card);box-shadow:var(--v2-shadow);align-items:center}
.hmd-v2 .c-line__media{width:clamp(80px,7.5vw,108px)}
.hmd-v2 .c-line__media img{border-radius:12px;background:#fff;border:1px solid var(--v2-line)}
.hmd-v2 .c-line__name{font-size:clamp(15px,1.1vw,17px);margin-bottom:6px}
.hmd-v2 .c-line .c-rev__plan{display:inline-block;margin:0 0 10px}
.hmd-v2 .c-line__controls{gap:10px}
.hmd-v2 .c-qty{border:1.5px solid var(--v2-field);border-radius:12px;background:#fff}
.hmd-v2 .c-qty__btn{width:40px;height:40px;font-size:18px;font-weight:500}
.hmd-v2 .c-qty__btn:hover{background:var(--v2-chosen);color:var(--d-brand-deep)}
.hmd-v2 .c-qty__input{width:42px;height:40px;font-size:.9375rem}
.hmd-v2 .c-cart a.c-line__remove{width:40px;height:40px;border-radius:12px;border:1.5px solid transparent}
.hmd-v2 .c-cart a.c-line__remove:hover{border-color:#F3C9C5;background:#FDF1F0;color:var(--v2-err)}
.hmd-v2 .c-line__total{font-size:clamp(16px,1.2vw,18px);align-self:center}
.hmd-v2 .c-line.is-busy{opacity:.55}

/* ---- the summary ------------------------------------------------------- */
.hmd-v2 .c-sum__inner{padding:clamp(20px,2.2vw,26px);border:1px solid var(--v2-line);border-radius:var(--v2-r);
  box-shadow:var(--v2-shadow)}
.hmd-v2 .c-sum__title{margin:0 0 10px;font-family:var(--d-display);font-weight:700;
  font-size:clamp(17px,1.2vw,20px);color:var(--d-ink)}
.hmd-v2 .c-sum__totals tr.order-total th,.hmd-v2 .c-sum__totals tr.order-total td{border-top-color:var(--v2-line);
  font-size:clamp(18px,1.4vw,22px)}
.hmd-v2 .c-sum__totals .woocommerce-shipping-destination{font-size:.8125rem}

/* The button that moves on: the checkout's pay button, one step earlier. */
.hmd-v2 .c-sum .wc-proceed-to-checkout a.checkout-button,
.hmd-v2 .c-sum .wc-proceed-to-checkout a.button{gap:10px;height:56px;border-radius:14px;background:var(--d-brand-deep);
  box-shadow:0 10px 22px -10px rgba(42,94,38,.55)}
.hmd-v2 .c-sum .wc-proceed-to-checkout a.checkout-button:hover,
.hmd-v2 .c-sum .wc-proceed-to-checkout a.button:hover{background:#1F4A1C}
.hmd-v2 .c-sum .wc-proceed-to-checkout a.checkout-button::before{content:"";flex:none;width:18px;height:18px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center/contain no-repeat}
/* PayPal / Google Pay / Apple Pay, under the button. */
.hmd-v2 .c-sum [id^="ppc-button"],.hmd-v2 .c-sum .ppc-button-wrapper{margin-top:10px}

/* Discount code, the same box as the checkout's. */
.hmd-v2 .c-coupon{flex-wrap:wrap;margin:16px 0 0;padding:16px 0 0;border-top:1px solid var(--v2-line)}
.hmd-v2 .c-coupon__label{flex:0 0 100%;display:flex;align-items:center;gap:8px;margin:0 0 2px;
  font-size:var(--d-sm);font-weight:600;color:var(--d-ink)}
.hmd-v2 .c-coupon__label .c-ico{width:17px;height:17px;color:var(--d-brand-deep)}
/* flex-basis 0: at its intrinsic 20-character width the field pushed Apply onto a second line. */
.hmd-v2 .c-coupon__input{flex:1 1 0;min-width:0;height:48px;border:1.5px solid var(--v2-field);border-radius:var(--v2-r-sm);font-size:16px;
  font-weight:600;letter-spacing:.05em;text-transform:uppercase}
.hmd-v2 .c-coupon__input::placeholder{font-weight:400;letter-spacing:0;text-transform:none;color:#8A9083}
.hmd-v2 .c-coupon__input:focus{outline:none;border-color:var(--d-brand);box-shadow:0 0 0 4px var(--v2-focus)}
.hmd-v2 .c-cart button.c-coupon__btn{height:48px;border:0;border-radius:var(--v2-r-sm);background:var(--d-ink);
  color:#fff;font-family:var(--d-text);font-weight:600}
.hmd-v2 .c-cart button.c-coupon__btn:hover{background:#000;color:#fff}

/* Trust lines: the client's own three, each with an icon for what it says
   (hmd_v2_trust_icon - lock, truck, rosette). */
.hmd-v2 .c-sum__trust{margin-top:16px;padding-top:14px;border-top:1px solid var(--v2-line);gap:10px}
.hmd-v2 .c-sum__trust li{align-items:center;gap:10px;font-size:.8125rem;line-height:1.35;color:var(--d-body)}
.hmd-v2 .c-sum__trust-ico{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;
  background:#fff;border:1px solid var(--v2-line);color:var(--d-brand-deep)}
.hmd-v2 .c-sum__trust .c-ico{display:block;width:16px;height:16px;margin:0;padding:0;background:none;color:inherit}

/* The theme wraps every content table in a sideways-scroll box whose edge
   fades are painted in the PAGE colour (base.css .t-scroll) - on this tinted
   panel that showed as a white block behind the totals. The totals never
   need to scroll. */
.hmd-v2 .c-sum .t-scroll{background:none;overflow:visible}

/* While a change is on its way: the numbers dim, so nobody reads a total the
   server has not confirmed yet. */
.hmd-v2 .c-cart .c-sum__totals,.hmd-v2 .c-cart .c-line{transition:opacity .15s ease}
.hmd-v2 .c-cart.is-updating .c-sum__totals,.hmd-v2 .c-cart .c-line.is-busy{opacity:.5}
.hmd-v2 .c-cart button.c-coupon__btn.is-busy{opacity:.6;pointer-events:none}

/* WooCommerce's messages for a change made in place. */
.hmd-v2 .c-cart__msg{margin:0 0 16px}
.hmd-v2 .c-cart__msg[hidden],.hmd-v2 .c-coupon__msg[hidden]{display:none !important}
.hmd-v2 .c-cart__msg > *,.hmd-v2 .c-coupon__msg > *{margin:0 !important}
.hmd-v2 .c-coupon__msg{flex:0 0 100%;font-size:.8125rem;line-height:1.4}
.hmd-v2 .c-coupon__msg :is(.woocommerce-message,.woocommerce-error,.woocommerce-info){
  padding:0 !important;border:0 !important;background:none !important;box-shadow:none !important;
  font-size:inherit;list-style:none}
.hmd-v2 .c-coupon__msg :is(.woocommerce-message,.woocommerce-error,.woocommerce-info)::before{content:none !important}
.hmd-v2 .c-coupon__msg .woocommerce-message{color:var(--v2-ok)}
.hmd-v2 .c-coupon__msg .woocommerce-error,.hmd-v2 .c-coupon__msg .woocommerce-error li{color:var(--v2-err);padding:0;margin:0}

/* PayPal is the other way to pay, not a second checkout button: a quiet
   "or" above it. Only once PayPal has actually drawn its button, so a
   failed load never leaves the word on its own. */
.hmd-v2 .c-sum .ppc-button-wrapper:has(iframe,.paypal-buttons)::before{content:"or";display:block;margin:14px 0 10px;
  text-align:center;font-size:.75rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--d-muted);
  background:linear-gradient(var(--v2-line),var(--v2-line)) left center/calc(50% - 22px) 1px no-repeat,
             linear-gradient(var(--v2-line),var(--v2-line)) right center/calc(50% - 22px) 1px no-repeat}
.hmd-v2 .c-sum .ppc-button-wrapper:has(iframe,.paypal-buttons){margin-top:0}
.hmd-v2 .c-sum .ppc-button-wrapper:has(iframe,.paypal-buttons) > #ppc-button-ppcp-gateway{margin-top:0}
/* Apple Pay / Google Pay hold a box each until they are set up in PayPal
   Payments - two hidden inputs and a 40px min-height, i.e. 54px of nothing
   under the PayPal button. Collapsed while that is all they hold; the moment
   either draws a real button, the box is back. */
.hmd-v2 .c-sum .ppcp-button-apm:not(:has(:not(input[type="hidden"]))){display:none}

/* WooCommerce's phone stylesheet stripes every other totals row grey
   (woocommerce-smallscreen.css, ≤768px) - the bands behind "Coupon" and
   "Total" on a phone. The panel is already its own ground. */
.hmd-v2 .c-sum__totals table.shop_table_responsive tr:nth-child(2n) td,
.hmd-v2 .c-sum__totals table.shop_table_responsive tr:nth-child(2n) th{background-color:transparent}

@media (prefers-reduced-motion:reduce){
  .hmd-v2 .c-cart .c-sum__totals,.hmd-v2 .c-cart .c-line{transition:none}
}

/* ---- empty cart -------------------------------------------------------- */
.hmd-v2.hmd-lean .wc-empty-cart-message,.hmd-v2.hmd-lean .cart-empty{text-align:center}
.hmd-v2.hmd-lean .cart-empty{display:flex;flex-direction:column;align-items:center;gap:14px;margin:clamp(24px,5vw,64px) 0 10px;
  padding:0;border:0;background:none;font-size:clamp(22px,2.2vw,30px)}
.hmd-v2.hmd-lean .cart-empty::before{content:"";position:static;display:block;width:72px;height:72px;border-radius:50%;
  background:var(--d-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A5E26' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7h12l-1 13H7z'/%3E%3Cpath d='M9 7a3 3 0 0 1 6 0'/%3E%3C/svg%3E") center/34px no-repeat}
.hmd-v2.hmd-lean .return-to-shop{text-align:center}
.hmd-v2.hmd-lean .return-to-shop .button{border-radius:14px;background:var(--d-brand-deep)}

/* ---- phones ------------------------------------------------------------ */
@media (max-width:640px){
  .hmd-v2 .c-steps{font-size:.75rem}
  .hmd-v2 .c-steps__item + .c-steps__item::before{width:12px;margin:0 6px}
  .hmd-v2 .c-steps__n{width:22px;height:22px;font-size:.75rem}
  /* Three labels do not fit a phone: the step you are on keeps its word, the others keep their number. */
  .hmd-v2 .c-steps__item:not(.is-on) .c-steps__t{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .hmd-v2 .c-line{grid-template-areas:"media body" "media total"}
  .hmd-v2 .c-line__total{padding-left:0;text-align:left}
  .hmd-v2 .c-cart__head{gap:8px}
}
@media (max-width:1024px){
  .hmd-v2 .c-bar{gap:14px;border-top-color:var(--v2-line)}
  .hmd-v2 .c-bar a.c-bar__go{border-radius:14px;background:var(--d-brand-deep);font-family:var(--d-text);font-size:.9375rem}
}
