/* ==========================================================================
   Mom Made Rasoi theme: WordPress and WooCommerce additions.
   The design itself is in theme.css; this file covers what only WordPress brings:
   the admin bar, ordinary pages, the blog, store notices, and the cart, checkout and account pages.
   ========================================================================== */

/* ---------- The fixed header clears the admin bar for logged-in users ---------- */
.admin-bar .site-header { top: calc(var(--ann-h) + 15px + 32px); }
.admin-bar .site-header.is-stuck { top: calc(12px + 32px); }
@media (max-width: 782px) {
  .admin-bar .site-header { top: calc(var(--ann-h) + 10px + 46px); }
  .admin-bar .site-header.is-stuck { top: calc(12px + 46px); }
}
@media (max-width: 600px) {
  .admin-bar .site-header.is-stuck { top: 12px; }
}

/* ---------- Pages drawn by WordPress (cart, checkout, account, blog, search, 404) ---------- */
.page-inner main { padding-top: calc(15px + 64px + 20px); }
.page-heading { padding: 40px 0 8px; }
.page-heading .crumbs { margin-bottom: 14px; }
.page-content { padding: 28px 0 var(--sec); }
.entry-content { max-width: 860px; }
.woocommerce-cart .entry-content, .woocommerce-checkout .entry-content, .woocommerce-account .entry-content { max-width: none; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: var(--fs-h3); font-weight: 500; line-height: 1.3; margin-top: 1.8em; }
.entry-content h3 { font-size: 20px; font-weight: 500; margin-top: 1.6em; }
.entry-content p, .entry-content li { color: var(--ink-soft); }
.entry-content ul { padding-left: 1.2em; list-style: disc; }
.entry-content ol { padding-left: 1.2em; list-style: decimal; }
.entry-content a:not(.btn):not(.wp-element-button):not(.button) { border-bottom: 1px solid currentColor; color: var(--green-deep); }
.entry-content blockquote { padding: 18px 22px; border-radius: 18px; background: var(--panel); }
.entry-content img { border-radius: 18px; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-image { margin-bottom: 28px; }
.entry-image img { width: 100%; border-radius: 24px; }
.page-links, .nav-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.nav-links .page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 30px; box-shadow: inset 0 0 0 1px var(--line); font-size: var(--fs-sm); }
.nav-links .page-numbers.current { background: var(--green-deep); color: var(--white); box-shadow: none; }
.post-navigation .nav-links { justify-content: space-between; }
.post-list { display: grid; gap: 24px; }
.post-list .post { max-width: 1100px; }
@media (max-width: 767px) {
  .page-inner main { padding-top: calc(10px + 56px + 16px); }
  .page-heading { padding-top: 24px; }
}

/* ---------- Product search form in the shop banner ---------- */
.chero__search { display: flex; gap: 10px; margin-top: 18px; max-width: 460px; }
.chero__search input[type="search"] { flex: 1; min-width: 0; height: 44px; padding: 0 18px; border: 0; border-radius: 30px; background: var(--white); font: inherit; font-size: var(--fs-sm); color: var(--green-ink); box-shadow: inset 0 0 0 1px var(--line); }
.chero__search input[type="search"]:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--green-deep); }

/* ---------- Contact form: the field only bots fill in ---------- */
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Store notices ("added to cart", errors) on the theme's own pages ---------- */
.woocommerce-notices-wrapper:not(:empty) { width: min(100% - 2 * var(--edge), 1500px); margin: 0 auto 18px; }
.page-product .woocommerce-notices-wrapper:not(:empty) { margin-top: 10px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 12px; padding: 14px 20px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--fs-sm); color: var(--green-ink); list-style: none; }
.woocommerce-error { background: #FFF1EA; color: #9A3412; }
.woocommerce-error li { list-style: none; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; display: inline-flex; align-items: center; height: 36px; padding: 0 18px; border-radius: 30px; background: var(--green-deep); color: var(--white); font-size: var(--fs-xs); font-weight: 500; }
.woocommerce-message .button:hover, .woocommerce-info .button:hover { background: var(--green-ink); }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { content: none; }

/* ---------- Product page: products with options use WooCommerce's own form ---------- */
.pd__buy--options { display: block; }
.pd__buy--options table.variations { width: 100%; margin-bottom: 14px; border-collapse: collapse; }
.pd__buy--options table.variations td, .pd__buy--options table.variations th { padding: 6px 0; text-align: left; }
.pd__buy--options select { width: 100%; height: 44px; padding: 0 14px; border: 0; border-radius: 14px; background: var(--panel); font: inherit; }
.pd__buy--options .single_add_to_cart_button { display: inline-flex; align-items: center; height: 52px; padding: 0 30px; border-radius: 30px; background: var(--green-deep); color: var(--white); font-weight: 500; }
.pd__buy--options .quantity { display: inline-block; margin-right: 10px; }
.pd__buy--options .quantity input { width: 70px; height: 52px; border: 1px solid var(--line); border-radius: 30px; text-align: center; font: inherit; }
.pd__buy p.stock { font-size: var(--fs-sm); font-weight: 500; color: #9A3412; }

/* ---------- Cart, checkout and account: brand colours on WooCommerce's buttons and fields ---------- */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .wc-block-components-button:not(.is-link), .wp-element-button {
  border-radius: 30px; background: var(--green-deep); color: var(--white); font-family: var(--font); font-weight: 500;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.wc-block-components-button:not(.is-link):hover, .wp-element-button:hover { background: var(--green-ink); color: var(--white); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
  padding: 12px 14px; border: 0; border-radius: 14px; background: var(--panel); font: inherit;
}
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--green-deep); }
.woocommerce-account .woocommerce-MyAccount-navigation ul { display: grid; gap: 6px; padding: 0; list-style: none; }
.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: 10px 16px; border-radius: 30px; font-weight: 500; }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a, .woocommerce-account .woocommerce-MyAccount-navigation a:hover { background: var(--panel); color: var(--green-deep); }
.woocommerce table.shop_table { border-radius: 18px; border-color: var(--line); }
.wc-block-components-totals-wrapper, .wc-block-components-sidebar-layout .wc-block-components-main { font-family: var(--font); }

/* ---------- Header: item count on the cart icons ---------- */
.site-header__icons .icon-btn, .bottom-bar a { position: relative; }
.cart-count { position: absolute; top: 1px; right: -1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--green-deep); color: var(--white); font-size: 11px; font-weight: 500; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--white); pointer-events: none; }
.cart-count[hidden] { display: none; }
.bottom-bar .cart-count { top: 7px; right: calc(50% - 22px); }

/* ---------- Header: search panel under the bar ---------- */
.site-header.is-searching { transform: none; }
.hsearch { position: absolute; right: 0; top: calc(100% + 10px); width: min(720px, 100%); max-height: calc(100vh - 150px); overflow-y: auto; padding: 12px; border-radius: 26px; background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 26px 60px -26px rgba(31, 58, 18, .5); opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .4s var(--ease); }
.hsearch.is-open { opacity: 1; transform: none; }
.hsearch[hidden] { display: none; }
.hsearch__form { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 7px 0 18px; border-radius: 30px; background: var(--panel); }
.hsearch__form > svg { flex: none; width: 20px; height: 20px; color: var(--ink-soft); }
.hsearch__form input[type="search"] { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: inherit; font-size: var(--fs-base); color: var(--green-ink); outline: none; }
.hsearch__form input[type="search"]::-webkit-search-cancel-button { display: none; }
.hsearch__form input[type="search"]::placeholder { color: var(--ink-soft); }
.hsearch__form:focus-within { box-shadow: inset 0 0 0 1.5px var(--green-deep); }
.hsearch__results { padding: 14px 4px 4px; }
.hsearch__label { margin: 0 8px 10px; font-size: var(--fs-xs); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.hsearch__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 6px 6px; }
.hsearch__chip { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 30px; box-shadow: inset 0 0 0 1px var(--line); font-size: var(--fs-sm); font-weight: 500; color: var(--green-ink); transition: background-color .25s, color .25s; }
.hsearch__chip:hover { background: var(--panel); color: var(--green-deep); }
.hsearch__list { display: grid; gap: 2px; }
.hsearch__item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 8px; border-radius: 18px; transition: background-color .2s; }
.hsearch__item:hover, .hsearch__item:focus-visible { background: var(--panel); }
.hsearch__item img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: var(--panel); }
.hsearch__text { display: grid; min-width: 0; line-height: 1.35; }
.hsearch__text b { overflow: hidden; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; color: var(--green-ink); }
.hsearch__text span { overflow: hidden; font-size: var(--fs-sm); white-space: nowrap; text-overflow: ellipsis; color: var(--ink-soft); }
.hsearch__price { font-weight: 500; color: var(--green-deep); }
.hsearch__all { display: inline-flex; margin: 10px 8px 6px; border-bottom: 1px solid currentColor; font-size: var(--fs-sm); font-weight: 500; color: var(--green-deep); }
.hsearch__none { margin: 2px 8px 8px; font-size: var(--fs-sm); color: var(--ink-soft); }
@media (max-width: 767px) {
  .hsearch { top: calc(100% + 8px); max-height: calc(100svh - 170px); padding: 10px; border-radius: 22px; }
  .hsearch__price { font-size: var(--fs-sm); }
}

/* ---------- Mini cart drawer ---------- */
.minicart__panel { display: flex; flex-direction: column; padding: 18px 22px 22px; }
.minicart__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 14px; border-bottom: 1px solid var(--line); }
.minicart__title { font-size: var(--fs-h3); font-weight: 500; line-height: 1.2; }
.minicart__body { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.minicart__list { flex: 1; min-height: 0; overflow-y: auto; }
.minicart__item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); transition: opacity .2s; }
.minicart__item.is-busy { opacity: .4; pointer-events: none; }
.minicart__img img { display: block; width: 72px; height: 72px; border-radius: 14px; object-fit: cover; background: var(--panel); }
.minicart__info { display: grid; gap: 3px; min-width: 0; }
.minicart__name { font-weight: 500; line-height: 1.3; color: var(--green-ink); }
a.minicart__name:hover { color: var(--green-deep); }
.minicart__meta { font-size: var(--fs-sm); color: var(--ink-soft); }
.minicart__end { display: grid; justify-items: end; gap: 6px; }
.minicart__end b { font-weight: 500; white-space: nowrap; }
.minicart__remove { border-bottom: 1px solid currentColor; font-size: var(--fs-xs); color: var(--ink-soft); transition: color .2s; }
.minicart__remove:hover { color: #9A3412; }
.minicart__foot { padding-top: 16px; }
.minicart__total { display: flex; align-items: baseline; justify-content: space-between; font-size: var(--fs-lead); }
.minicart__total b { font-weight: 500; }
.minicart__note { margin: 4px 0 16px; font-size: var(--fs-xs); color: var(--ink-soft); }
.minicart__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.minicart__actions .btn { height: 50px; padding: 0 16px; font-size: var(--fs-base); }
.minicart__empty { display: grid; justify-items: center; gap: 10px; margin: auto 0; padding: 30px 8px; text-align: center; }
.minicart__empty img { width: 104px; height: 104px; margin-bottom: 6px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--green-deep); }
.minicart__empty-title { font-size: 22px; font-weight: 500; color: var(--green-ink); }
.minicart__empty p:not(.minicart__empty-title) { max-width: 280px; margin-bottom: 8px; font-size: var(--fs-sm); color: var(--ink-soft); }
a.is-busy { opacity: .7; pointer-events: none; }

/* ---------- Help bubble (WhatsApp), just above the back-to-top button ---------- */
.help-bubble { --hb-edge: clamp(16px, 2.4vw, 32px); position: fixed; z-index: 45; right: var(--hb-edge); bottom: var(--hb-edge); display: flex; align-items: center; gap: 12px; transition: bottom .45s var(--ease); }
.help-bubble.is-up { bottom: calc(var(--hb-edge) + 56px + 12px); }
.help-bubble.is-lifted { bottom: calc(var(--hb-edge) + 84px); }
.help-bubble.is-up.is-lifted { bottom: calc(var(--hb-edge) + 84px + 56px + 12px); }
.help-bubble__face { position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--green-deep), 0 16px 30px -12px rgba(31, 58, 18, .6); transition: transform .45s var(--ease); }
.help-bubble__face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.help-bubble__badge { position: absolute; right: -6px; bottom: -6px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--green-deep); color: var(--white); box-shadow: 0 0 0 2px var(--white); }
.help-bubble__badge svg { width: 14px; height: 14px; stroke-width: 2; }
.help-bubble__label { padding: 10px 16px; border-radius: 20px 20px 6px 20px; background: var(--white); font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; color: var(--green-ink); box-shadow: 0 0 0 1px var(--line), 0 14px 30px -14px rgba(31, 58, 18, .45); opacity: 0; transform: translateX(10px); transition: opacity .3s, transform .45s var(--ease); pointer-events: none; }
.help-bubble.is-greeting .help-bubble__label, .help-bubble:hover .help-bubble__label, .help-bubble:focus-visible .help-bubble__label { opacity: 1; transform: none; }
.help-bubble:hover .help-bubble__face { transform: translateY(-3px); }
@media (max-width: 767px) {
  .help-bubble { --hb-edge: 14px; bottom: calc(64px + 14px + env(safe-area-inset-bottom)); }
  .help-bubble.is-up { bottom: calc(64px + 14px + 50px + 10px + env(safe-area-inset-bottom)); }
  .help-bubble.is-lifted { bottom: calc(64px + 14px + 80px + env(safe-area-inset-bottom)); }
  .help-bubble.is-up.is-lifted { bottom: calc(64px + 14px + 80px + 50px + 10px + env(safe-area-inset-bottom)); }
  .help-bubble__face { width: 50px; height: 50px; }
  .help-bubble__label { max-width: calc(100vw - 110px); white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .help-bubble, .help-bubble__label, .help-bubble__face { transition: none; } }

/* ==========================================================================
   Checkout (WooCommerce checkout block) in the store's look:
   numbered white cards on a soft green page, rounded fields, a sticky order summary.
   Everything is scoped to body.woocommerce-checkout so it beats the block's own styles.
   ========================================================================== */
body.woocommerce-checkout main { padding-bottom: var(--sec); background: var(--panel); }
body.woocommerce-checkout .page-heading { padding-bottom: 0; }
body.woocommerce-checkout .page-content { padding-top: 18px; }
body.woocommerce-checkout .entry-content > * + * { margin-top: 0; }

/* the promise row above the checkout (inc/woocommerce/woocommerce-setup.php) */
.checkout-promises { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.checkout-promises li { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 40px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--fs-sm); color: var(--ink-soft); }
.checkout-promises li::marker { content: none; }
.checkout-promises b { font-weight: 500; color: var(--green-ink); }
.checkout-promises__ic { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: #EAF3DE; color: var(--green-deep); }
.checkout-promises__ic svg { width: 17px; height: 17px; }

/* layout */
body.woocommerce-checkout .wc-block-checkout.is-large { gap: 0; }
body.woocommerce-checkout .wc-block-checkout.is-large .wc-block-checkout__main { padding-right: 28px; }
body.woocommerce-checkout .wc-block-checkout.is-large .wc-block-checkout__sidebar { padding-left: 0; }
body.woocommerce-checkout .wc-block-checkout__sidebar.is-sticky, body.woocommerce-checkout .wc-block-checkout.is-large .wc-block-checkout__sidebar { top: 110px; }

/* each step is a numbered white card */
body.woocommerce-checkout .wc-block-checkout__form { counter-reset: mmr-step; }
body.woocommerce-checkout .wc-block-checkout__form > fieldset.wc-block-components-checkout-step { counter-increment: mmr-step; margin: 0 0 16px; padding: 26px 28px 28px; border: 0; border-radius: 26px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -32px rgba(31, 58, 18, .45); }
body.woocommerce-checkout .wc-block-checkout__form > fieldset.wc-block-components-checkout-step::before, body.woocommerce-checkout .wc-block-checkout__form > fieldset.wc-block-components-checkout-step::after { content: none; display: none; }
body.woocommerce-checkout .wc-block-components-checkout-step__heading { align-items: center; margin: 0 0 18px; }
body.woocommerce-checkout .wc-block-components-checkout-step__title { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--font); font-size: 21px; font-weight: 500; line-height: 1.25; color: var(--green-ink); }
body.woocommerce-checkout .wc-block-checkout__form > fieldset .wc-block-components-checkout-step__title::before { content: counter(mmr-step); display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--green-deep); color: var(--white); font-size: 15px; font-weight: 500; }
body.woocommerce-checkout .wc-block-components-checkout-step__heading-content, body.woocommerce-checkout .wc-block-components-checkout-step__heading-content a { font-size: var(--fs-sm); color: var(--green-deep); }
body.woocommerce-checkout .wc-block-components-checkout-step__description { margin: -8px 0 16px; font-size: var(--fs-sm); color: var(--ink-soft); }
body.woocommerce-checkout .wc-block-components-checkout-step__container, body.woocommerce-checkout .wc-block-components-checkout-step__content { padding: 0; }

/* fields: soft green, no hard border, green ring on focus */
body.woocommerce-checkout .wc-block-components-text-input input[type], body.woocommerce-checkout .wc-block-components-textarea, body.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input[type] { height: 56px; border: 1px solid transparent; border-radius: 14px; background: var(--panel); font-family: var(--font); font-size: var(--fs-base); color: var(--green-ink); box-shadow: none; transition: border-color .2s, box-shadow .2s, background-color .2s; }
body.woocommerce-checkout .wc-block-components-textarea { height: auto; min-height: 96px; padding: 14px 16px; }
body.woocommerce-checkout .wc-block-components-text-input input[type]:hover { border-color: rgba(31, 58, 18, .16); }
body.woocommerce-checkout .wc-block-components-text-input input[type]:focus, body.woocommerce-checkout .wc-block-components-textarea:focus { border-color: var(--green-deep); background: var(--white); box-shadow: 0 0 0 3px rgba(61, 122, 30, .14); outline: none; }
body.woocommerce-checkout .wc-block-components-text-input label { color: var(--ink-soft); font-family: var(--font); }
body.woocommerce-checkout .wc-block-components-text-input.has-error input[type] { border-color: #C2410C; background: #FFF7F2; }
body.woocommerce-checkout .wc-block-components-validation-error { color: #C2410C; }
body.woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__container { height: 56px; border: 1px solid transparent; border-radius: 14px; background: var(--panel); box-shadow: none; }
body.woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__container:focus-within { border-color: var(--green-deep); background: var(--white); box-shadow: 0 0 0 3px rgba(61, 122, 30, .14); }
body.woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__select { border: 0; background: transparent; font-family: var(--font); font-size: var(--fs-base); color: var(--green-ink); }
body.woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__label { color: var(--ink-soft); }
body.woocommerce-checkout .wc-block-components-address-form__address_2-toggle, body.woocommerce-checkout .wc-block-components-address-card__edit, body.woocommerce-checkout .wc-block-checkout__terms a { color: var(--green-deep); }
body.woocommerce-checkout .wc-block-components-address-card { border: 0; border-radius: 16px; background: var(--panel); }

/* payment options and checkboxes */
body.woocommerce-checkout .wc-block-components-radio-control--highlight-checked { border-radius: 18px; }
body.woocommerce-checkout .wc-block-components-radio-control--highlight-checked::after { border-color: var(--line); border-radius: 18px; }
body.woocommerce-checkout .wc-block-components-radio-control-accordion-option, body.woocommerce-checkout .wc-block-components-radio-control__option { border-radius: 18px; }
body.woocommerce-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted, body.woocommerce-checkout .wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted { border-radius: 18px; background: #F3F8EE; box-shadow: inset 0 0 0 1.5px var(--green-deep); }
body.woocommerce-checkout .wc-block-components-radio-control__label, body.woocommerce-checkout .wc-block-components-payment-method-label { font-weight: 500; color: var(--green-ink); }
body.woocommerce-checkout .wc-block-components-radio-control-accordion-content { color: var(--ink-soft); }
body.woocommerce-checkout .wc-block-components-radio-control__input { border-color: rgba(31, 58, 18, .35); }
body.woocommerce-checkout .wc-block-components-radio-control__input:checked { border-color: var(--green-deep); }
body.woocommerce-checkout .wc-block-components-radio-control__input:checked::before { background: var(--green-deep); }
body.woocommerce-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] { border-color: rgba(31, 58, 18, .35); border-radius: 6px; }
body.woocommerce-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked { border-color: var(--green-deep); background: var(--green-deep); }
body.woocommerce-checkout .wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: var(--white); }
body.woocommerce-checkout .wc-block-components-checkbox__label { color: var(--green-ink); }

/* order note, terms and the place order button */
body.woocommerce-checkout .wc-block-checkout__order-notes { margin: 0 0 16px; padding: 18px 28px; border-radius: 26px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
body.woocommerce-checkout .wc-block-checkout__terms { margin: 4px 4px 18px; padding: 0; border: 0; font-size: var(--fs-sm); color: var(--ink-soft); }
body.woocommerce-checkout .wc-block-checkout__terms--with-separator { padding-top: 0; border-top: 0; }
body.woocommerce-checkout .wc-block-checkout__actions_row { display: block; }
body.woocommerce-checkout .wc-block-components-checkout-place-order-button { width: 100%; min-height: 60px; padding: 0 30px; border: 0; border-radius: 40px; background: var(--green-deep); color: var(--white); font-family: var(--font); font-size: var(--fs-lead); font-weight: 500; box-shadow: 0 18px 34px -18px rgba(61, 122, 30, .8); transition: background-color .3s, transform .3s var(--ease); }
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { background: var(--green-ink); transform: translateY(-1px); }
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:focus-visible { outline: 3px solid rgba(61, 122, 30, .35); outline-offset: 3px; }
body.woocommerce-checkout .wc-block-components-checkout-return-to-cart-button { color: var(--green-deep); }

/* order summary card */
body.woocommerce-checkout .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block, body.woocommerce-checkout .checkout-order-summary-block-fill-wrapper { border: 0; border-radius: 26px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -32px rgba(31, 58, 18, .45); }
body.woocommerce-checkout .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block { padding: 8px 4px 6px; }
body.woocommerce-checkout .checkout-order-summary-block-fill-wrapper { margin: 0 0 16px; padding: 22px 24px; }
body.woocommerce-checkout .wc-block-components-checkout-order-summary__title { padding: 16px 20px 8px; border: 0; }
body.woocommerce-checkout .wc-block-components-checkout-order-summary__title-text, body.woocommerce-checkout .checkout-order-summary-block-fill-wrapper .wc-block-components-checkout-step__title { font-family: var(--font); font-size: 21px; font-weight: 500; color: var(--green-ink); }
body.woocommerce-checkout .wc-block-components-totals-wrapper { padding-left: 20px; padding-right: 20px; border-color: var(--line); }
body.woocommerce-checkout .wc-block-components-totals-wrapper::after { border-color: var(--line); }
body.woocommerce-checkout .wc-block-components-order-summary-item { padding: 12px 0; }
body.woocommerce-checkout .wc-block-components-order-summary-item__image img { width: 64px; max-width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: var(--panel); }
body.woocommerce-checkout .wc-block-components-order-summary-item__image { width: 64px; }
body.woocommerce-checkout .wc-block-components-order-summary-item__quantity { min-width: 22px; height: 22px; border: 2px solid var(--white); border-radius: 11px; background: var(--green-deep); color: var(--white); font-size: 11px; font-weight: 500; box-shadow: none; }
body.woocommerce-checkout .wc-block-components-product-name { font-weight: 500; color: var(--green-ink); }
body.woocommerce-checkout .wc-block-components-order-summary-item__description, body.woocommerce-checkout .wc-block-components-product-metadata { font-size: var(--fs-xs); color: var(--ink-soft); }
body.woocommerce-checkout .wc-block-components-product-price__regular { color: var(--ink-soft); }
body.woocommerce-checkout .wc-block-components-product-price__value.is-discounted { color: var(--green-deep); }
body.woocommerce-checkout .wc-block-components-sale-badge { border: 0; border-radius: 20px; background: #EAF3DE; color: var(--green-deep); font-size: 11px; font-weight: 500; text-transform: none; }
body.woocommerce-checkout .wc-block-components-panel__button { font-weight: 500; color: var(--green-ink); }
body.woocommerce-checkout .wc-block-components-totals-coupon__button { border-radius: 14px; background: var(--green-deep); color: var(--white); }
body.woocommerce-checkout .wc-block-components-totals-item { color: var(--green-ink); }
body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label, body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-size: 22px; font-weight: 500; color: var(--green-ink); }
body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { color: var(--green-deep); }
body.woocommerce-checkout .wc-block-components-totals-item__description { font-size: var(--fs-xs); color: var(--ink-soft); }

/* phones and narrow tablets: the block switches to one column */
@media (max-width: 767px) {
  .checkout-promises { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(-1 * var(--edge)); padding-right: var(--edge); scrollbar-width: none; }
  .checkout-promises li { flex: none; }
  body.woocommerce-checkout .wc-block-checkout__form > fieldset.wc-block-components-checkout-step { padding: 20px 18px 22px; border-radius: 22px; }
  body.woocommerce-checkout .wc-block-checkout__order-notes { padding: 16px 18px; border-radius: 22px; }
  body.woocommerce-checkout .wc-block-components-checkout-step__title { font-size: 19px; }
}

/* ==========================================================================
   Order received (thank you) page: hero with the mascot, the order at a glance,
   what happens next, the order details and a help row.
   ========================================================================== */
body.woocommerce-order-received main { padding-bottom: var(--sec); background: var(--panel); }
body.woocommerce-order-received .page-heading .section-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.woocommerce-order-received .page-heading { padding-bottom: 0; }
body.woocommerce-order-received .page-content { padding-top: 6px; }
body.woocommerce-order-received .entry-content { max-width: 1040px; margin: 0 auto; }
body.woocommerce-order-received .entry-content > * + * { margin-top: 0; }
.woocommerce-order { display: grid; gap: 18px; }
.thanks ~ .woocommerce-thankyou-order-received { display: none; }
/* the page's prose styles (.entry-content headings, lists and links) and WooCommerce's floats do not apply here */
body.woocommerce-order-received .entry-content h2 { margin-top: 0; font-size: 21px; }
body.woocommerce-order-received .entry-content h2.thanks__title { font-size: var(--fs-h2); }
body.woocommerce-order-received .entry-content ul.woocommerce-order-overview, body.woocommerce-order-received .entry-content ol.thanks-next__steps { padding-left: 0; list-style: none; }
body.woocommerce-order-received .entry-content ul.woocommerce-order-overview li { float: none; margin: 0; padding: 18px 20px; border: 0; }
body.woocommerce-order-received .woocommerce ul.woocommerce-order-overview::before, body.woocommerce-order-received .woocommerce ul.woocommerce-order-overview::after, body.woocommerce-order-received .woocommerce .col2-set::before, body.woocommerce-order-received .woocommerce .col2-set::after { content: none; display: none; }
body.woocommerce-order-received .entry-content .woocommerce-table a:not(.btn) { border-bottom: 0; color: var(--green-ink); }
body.woocommerce-order-received .entry-content .woocommerce-table a:not(.btn):hover { color: var(--green-deep); }

.thanks { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 30px; overflow: hidden; padding: 34px 38px; border-radius: 30px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line), 0 24px 50px -36px rgba(31, 58, 18, .5); }
.thanks::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: #EAF3DE; opacity: .7; pointer-events: none; }
.thanks__face { position: relative; z-index: 1; width: 128px; height: 128px; }
.thanks__face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 5px var(--white), 0 0 0 8px var(--green-deep); }
.thanks__tick { position: absolute; right: -4px; bottom: 2px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green-deep); color: var(--white); box-shadow: 0 0 0 4px var(--white); }
.thanks__tick svg { width: 22px; height: 22px; stroke-width: 2.4; }
.thanks__copy { position: relative; z-index: 1; }
.thanks__copy .eyebrow { margin-bottom: 8px; }
.thanks__title { font-size: var(--fs-h2); font-weight: 500; line-height: 1.12; color: var(--green-ink); }
.thanks__text { max-width: 560px; margin-top: 10px; font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-soft); }
.thanks__text b { font-weight: 500; color: var(--green-ink); }

/* the order at a glance: four small cards */
ul.woocommerce-order-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
ul.woocommerce-order-overview li { display: grid; gap: 6px; margin: 0; padding: 18px 20px; border: 0; border-radius: 20px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
ul.woocommerce-order-overview li strong { display: block; font-size: 18px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--green-ink); }
ul.woocommerce-order-overview li.woocommerce-order-overview__total strong { color: var(--green-deep); }

/* what happens next */
.thanks-next { padding: 28px 30px 30px; border-radius: 26px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.thanks-next__title, .woocommerce-order-details__title, .woocommerce-column__title, .woocommerce-customer-details > h2 { margin: 0 0 18px; font-size: 21px; font-weight: 500; color: var(--green-ink); }
.thanks-next__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: mmr-next; }
.thanks-next__steps li { position: relative; display: grid; align-content: start; gap: 6px; padding: 18px 18px 20px; border-radius: 20px; background: var(--panel); }
.thanks-next__steps li::marker { content: none; }
.thanks-next__ic { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 6px; border-radius: 50%; background: var(--white); color: var(--green-deep); box-shadow: inset 0 0 0 1px var(--line); }
.thanks-next__steps li.is-done .thanks-next__ic { background: var(--green-deep); color: var(--white); box-shadow: none; }
.thanks-next__ic svg { width: 20px; height: 20px; }
.thanks-next__steps b { font-weight: 500; color: var(--green-ink); }
.thanks-next__steps span:last-child { font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-soft); }

/* order details and addresses */
.woocommerce-order-details, .woocommerce-customer-details { margin: 0; padding: 28px 30px 30px; border-radius: 26px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.woocommerce-order-details .woocommerce-table, .woocommerce-order-received table.shop_table { width: 100%; margin: 0; border: 0; border-collapse: collapse; border-radius: 0; }
.woocommerce-order-details .woocommerce-table th, .woocommerce-order-details .woocommerce-table td { padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; vertical-align: top; color: var(--green-ink); }
.woocommerce-order-details .woocommerce-table thead th { padding-top: 0; font-size: var(--fs-xs); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.woocommerce-order-details .woocommerce-table th:last-child, .woocommerce-order-details .woocommerce-table td:last-child { text-align: right; }
.woocommerce-order-details .woocommerce-table tbody td a { border-bottom: 0; font-weight: 500; color: var(--green-ink); }
.woocommerce-order-details .woocommerce-table tbody td a:hover { color: var(--green-deep); }
.woocommerce-order-details .woocommerce-table .product-quantity { font-weight: 400; color: var(--ink-soft); }
.woocommerce-order-details .woocommerce-table tfoot th { font-weight: 400; color: var(--ink-soft); }
.woocommerce-order-details .woocommerce-table tfoot tr:nth-last-child(2) th, .woocommerce-order-details .woocommerce-table tfoot tr:nth-last-child(2) td { font-size: var(--fs-lead); font-weight: 500; color: var(--green-ink); }
.woocommerce-order-details .woocommerce-table tfoot tr:last-child th, .woocommerce-order-details .woocommerce-table tfoot tr:last-child td { border-bottom: 0; }
.woocommerce-customer-details .woocommerce-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.woocommerce-customer-details .woocommerce-column { float: none; width: auto; max-width: none; padding: 0; }
.woocommerce-customer-details address { padding: 18px 20px; border: 0; border-radius: 18px; background: var(--panel); font-style: normal; line-height: 1.6; color: var(--green-ink); }
.woocommerce-customer-details address p { margin: 6px 0 0; color: var(--ink-soft); }
.woocommerce-customer-details address p::before { display: none; }

/* help row */
.thanks-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 22px 28px; border-radius: 26px; background: var(--green-deep); color: var(--white); }
.thanks-help__copy { display: grid; gap: 2px; }
.thanks-help__copy b { font-size: var(--fs-lead); font-weight: 500; }
.thanks-help__copy span { font-size: var(--fs-sm); color: rgba(255, 255, 255, .78); }
.thanks-help__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.thanks-help .btn--ghost-light { padding: 0 22px; border: 1.5px solid rgba(255, 255, 255, .55); color: var(--white); }
.thanks-help .btn--ghost-light:hover { border-color: var(--white); }
.thanks-help .btn--light:hover { background: var(--panel); }

@media (max-width: 767px) {
  .thanks { grid-template-columns: 1fr; justify-items: center; gap: 18px; padding: 28px 20px; text-align: center; }
  .thanks__face { width: 108px; height: 108px; }
  .thanks__text { font-size: var(--fs-base); }
  .thanks-next, .woocommerce-order-details, .woocommerce-customer-details { padding: 22px 18px; border-radius: 22px; }
  .thanks-next__steps { grid-template-columns: 1fr; }
  .thanks-help { padding: 22px 20px; }
  .thanks-help__actions, .thanks-help__actions .btn { width: 100%; }
}
