/*
 * Design screen 07 "Korpa i porudžbina u 3 koraka" (design/Korpa.dc.html): the cart page (body.sd-cart-page) and the
 * checkout page (body.sd-checkout-page). Every rule is scoped to those two pages (classes/sd-cart.php adds the body
 * classes). Old rules of main.css and cart-custom-style.css that reach these pages carry ids and long selectors,
 * so some rules here repeat #payment or .woocommerce to win, and use !important only against old !important rules.
 */

/* ---------- Page frame (the shared page templates stay untouched) ---------- */
body.sd-cart-page #content.site-content,
body.sd-checkout-page #content.site-content { max-width: var(--sd-wrap); margin: 0 auto; padding: 28px 32px 56px !important; box-sizing: border-box; font-family: 'Raleway', sans-serif; color: var(--sd-ink); }
body.sd-cart-page #content .entry-header,
body.sd-cart-page #content .entry-footer { display: none; }
body.sd-checkout-page #content .margin_single_page { margin: 0; }
body.sd-cart-page .sd-cart-head ~ *,
body.sd-cart-page .woocommerce,
body.sd-checkout-page .woocommerce { font-size: 14px; line-height: 1.45; }
:where(body.sd-cart-page, body.sd-checkout-page) .woocommerce a { color: var(--sd-orange-text); }

/* WooCommerce notices under the title, compact */
body.sd-cart-page .woocommerce-notices-wrapper > *,
body.sd-checkout-page .woocommerce-notices-wrapper > * { margin: 0 0 10px; padding-top: 10px; padding-bottom: 10px; font-size: 13px; }

/* ---------- Title and the step indicator (template-parts/sd/cart/head.php) ---------- */
.sd-cart-head { display: flex; flex-direction: column; gap: 20px; margin: 0 0 20px; }
.sd-cart-head .sd-h1 { font-size: 32px; font-weight: 700; }
.sd-cart-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 13px; font-weight: 600; }
.sd-cart-steps__i { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; border-radius: var(--sd-radius); background: #f4f4f4; color: #5f5f5f; }
.sd-cart-steps__i.is-on { background: var(--sd-orange-soft); color: var(--sd-orange-text); }
.sd-cart-steps__i.is-done { background: #e6f7ee; color: #00703a; }
body.sd-checkout-page .woocommerce .sd-cart-steps__i.is-done a { color: inherit; text-decoration: none; }
.sd-cart-steps__i.is-done a:hover { text-decoration: underline; }

/* ---------- Two columns: content and the summary ---------- */
.sd-cart__grid,
.sd-cart-co__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); column-gap: 32px; align-items: start; }
.sd-cart__main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.sd-cart__side { display: flex; flex-direction: column; gap: 16px; min-width: 0; position: sticky; top: 16px; }
body.sd-cart-page .woocommerce-cart-form.sd-cart,
body.sd-checkout-page form.checkout.sd-cart-co { margin: 0; }

/* Cards of this screen (the design's 6px corners) */
body.sd-cart-page .woocommerce .sd-card,
body.sd-checkout-page .woocommerce .sd-card { border-radius: var(--sd-radius); padding: 20px; }

/* ---------- Chosen analyses (cart page; on the checkout the same card, without links) ---------- */
.sd-cart-items { display: flex; flex-direction: column; gap: 4px; }
.sd-cart-items__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 6px; }
.sd-cart-line { display: grid; grid-template-columns: minmax(0, 1fr) 120px 150px 36px; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eee; }
.sd-cart-line--review { grid-template-columns: minmax(0, 1fr) auto minmax(110px, auto); }
.sd-cart-line:last-of-type { border-bottom: 0; }
body.sd-cart-page .woocommerce .sd-cart-line__name a,
.sd-cart-line__name strong { color: var(--sd-ink); font-weight: 700; font-size: 15px; text-decoration: none; }
body.sd-cart-page .woocommerce .sd-cart-line__name a:hover { color: var(--sd-orange-dark); text-decoration: underline; }
.sd-cart-line__meta { margin-top: 2px; font-size: 12px; }
.sd-cart-line__name dl.variation { margin: 4px 0 0; font-size: 12px; }
.sd-cart-line__x { font-weight: 700; color: var(--sd-orange-text); }
.sd-cart-line__tag { display: flex; flex-wrap: wrap; gap: 4px; justify-self: start; }
.sd-cart-line__price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
.sd-cart-line__price .sd-price { font-size: 15px; font-weight: 700; }
.sd-cart-line__price .sd-old { margin: 0; font-size: 13px; }
.sd-cart-line__qty { margin-top: 6px; }
body.sd-cart-page .sd-cart-line__qty .quantity { display: inline-flex; max-width: 140px; }
body.sd-cart-page .woocommerce .sd-cart-line .sd-cart-line__rm { width: 36px; height: 36px; padding: 0; border-radius: var(--sd-radius); font-size: 20px; line-height: 1; color: var(--sd-orange-text); }
body.sd-cart-page .sd-cart-update { display: none !important; } /* hidden as before (cart-custom-style.css); quantity changes post through AJAX */

/* The analysis is already in a package of the cart */
.sd-cart-warn { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; padding: 12px 14px; border: 1px solid #f3dca0; border-radius: var(--sd-radius); background: #fff8e6; font-size: 13px; line-height: 1.5; }
.sd-cart-warn > .sd-icon { color: #8a6500; margin-top: 1px; }
.sd-cart-warn ul { margin: 6px 0 0; padding-left: 18px; }
.sd-cart-warn li { margin: 2px 0; }
body.sd-cart-page .woocommerce .sd-cart-warn__rm { margin-left: 6px; font-weight: 700; text-decoration: underline; }

.sd-cart-info { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 10px; font-size: 13px; color: var(--sd-muted); }
.sd-cart-info strong { color: var(--sd-ink); }
body.sd-cart-page .woocommerce .sd-cart-info a { font-weight: 600; }

/* ---------- Summary card (cart-totals.php on the cart, payment.php on the checkout) ---------- */
body.sd-cart-page .woocommerce .sd-cart-sum,
body.sd-checkout-page .woocommerce .sd-cart-sum { display: flex; flex-direction: column; gap: 12px; border-color: var(--sd-orange); box-shadow: 0 4px 12px rgba(0, 0, 0, .08); }
.sd-cart-sum__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; font-size: 14px; }
.sd-cart-sum__row > :last-child { text-align: right; white-space: nowrap; }
.sd-cart-sum__row--save { color: #00703a; }
.sd-cart-sum__row--save .amount { color: inherit; }
.sd-cart-sum__row .woocommerce-remove-coupon { margin-left: 4px; font-size: 12px; }
.sd-cart-sum__total { padding-top: 12px; border-top: 1px solid #eee; font-size: 20px; font-weight: 700; }
.sd-cart-sum__total strong { font-weight: 700; }
.sd-cart-sum__total .amount { color: var(--sd-orange-text); }
.sd-cart-ship ul { margin: 0; padding: 0; list-style: none; }
.sd-cart-sum .wc-proceed-to-checkout { margin: 4px 0 0; padding: 0 !important; }
body.sd-cart-page .woocommerce .sd-cart-sum a.checkout-button,
body.sd-checkout-page .sd-cart-co #payment #place_order { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; margin: 0; padding: 0 20px !important; border: 0; border-radius: 999px; background: var(--sd-orange); color: var(--sd-on-orange) !important; font: 700 16px/1 'Raleway', sans-serif !important; text-decoration: none; cursor: pointer; }
body.sd-cart-page .woocommerce .sd-cart-sum a.checkout-button:hover,
body.sd-checkout-page .sd-cart-co #payment #place_order:hover { background: var(--sd-orange-dark); color: var(--sd-on-orange); }
body.sd-cart-page .woocommerce .sd-cart-sum a.checkout-button:focus-visible,
body.sd-checkout-page .sd-cart-co #payment #place_order:focus-visible { outline: 3px solid #1a1a1a; outline-offset: 2px; }
.sd-cart-sum__note { margin: 0; font-size: 12px; line-height: 1.5; }

/* Coupon (cart page) */
body.sd-cart-page .woocommerce .sd-cart-coupon { display: flex; flex-direction: column; gap: 8px; background: #f7f8fa; border-color: #ececec; }
.sd-cart-coupon .coupon { display: flex; flex-wrap: wrap; gap: 8px; }
body.sd-cart-page .sd-cart-coupon #coupon_code { flex: 1 1 140px; min-width: 0; height: 44px; margin: 0; padding: 0 12px; border: 1px solid #d0d0d0; border-radius: var(--sd-radius); background: #fff; font: 14px 'Raleway', sans-serif; color: var(--sd-ink); }
body.sd-cart-page .woocommerce .sd-cart-coupon button.button { flex: none; height: 44px; padding: 0 16px; border-radius: 999px; font-size: 14px; }
.sd-cart-coupon .coupon-error-notice { flex-basis: 100%; margin: 0; color: #b32d2e; font-size: 13px; }

/* Empty cart (WooCommerce's cart-empty.php) */
body.sd-cart-page .wc-empty-cart-message .cart-empty { margin: 0 0 16px; padding: 20px; border: 1px solid var(--sd-line); border-radius: var(--sd-radius); background: var(--sd-soft); color: var(--sd-ink); font-size: 16px; }
body.sd-cart-page .wc-empty-cart-message .cart-empty::before { display: none; }
body.sd-cart-page .woocommerce .return-to-shop a.button { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--sd-orange); color: var(--sd-on-orange); font: 700 15px/1 'Raleway', sans-serif; }
body.sd-cart-page .woocommerce .return-to-shop a.button:hover { background: var(--sd-orange-dark); color: var(--sd-on-orange); }

/* ---------- Checkout: three steps (template-parts/sd/cart/checkout.php) ---------- */
/* #order_review and #payment are WooCommerce's refreshed fragments; display:contents puts their children in the grid. */
body.sd-checkout-page .sd-cart-co #order_review,
body.sd-checkout-page .sd-cart-co #payment { display: contents; }
.sd-cart-co__grid > *,
.sd-cart-co #order_review > *,
.sd-cart-co #payment > * { grid-column: 1; min-width: 0; margin: 0 0 20px; }
.sd-cart-co #payment > .sd-cart-sum { grid-column: 2; grid-row: 1 / span 20; position: sticky; top: 16px; }
.sd-cart-co #order_review > .woocommerce-checkout-review-order-table { order: -1; }
/* blockUI cannot overlay a box-less #payment: dim its blocks instead while WooCommerce updates them. */
.sd-cart-co #payment > .blockUI { display: none !important; }
.sd-cart-co #payment:has(> .blockUI) > * { opacity: .6; }

body.sd-checkout-page .woocommerce .woocommerce-checkout-review-order-table.sd-cart-items { padding: 20px; border: 1px solid var(--sd-line); }

.sd-cart-step { display: flex; flex-direction: column; gap: 14px; }
.sd-cart-step > wc-order-attribution-inputs { display: none; } /* empty custom element; its hidden inputs are still posted */
.sd-cart-step__h { display: flex; align-items: center; gap: 12px; }
.sd-cart-step__n { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--sd-orange); color: var(--sd-on-orange); font-weight: 700; }

/* Step 1: for whom (the theme's identity picker and fields, form-billing.php, form-shipping.php) */
body.sd-checkout-page .sd-cart-co #identity .checkout-variants-picker { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 !important; }
body.sd-checkout-page .woocommerce .sd-cart-co .checkout-variants-picker .checkout-form-data { flex: 1 1 200px; margin: 0; padding: 0; border: 1.5px solid #d0d0d0; border-radius: var(--sd-radius); background: #fff; }
body.sd-checkout-page .woocommerce .sd-cart-co .checkout-variants-picker .checkout-form-data:has(input:checked) { border-color: var(--sd-orange); background: #fff8f0; }
body.sd-checkout-page .sd-cart-co .checkout-variants-picker label.checkbox { align-items: flex-start; gap: 10px; padding: 14px 16px; text-indent: 0; font-size: 15px; font-weight: 700; line-height: 1.35; cursor: pointer; }
body.sd-checkout-page .sd-cart-co .checkout-variants-picker label.checkbox input { flex: none; margin-top: 2px !important; }
body.sd-checkout-page .sd-cart-co .checkout-variants-picker .checkout-form-data:has(input:focus-visible) { outline: 3px solid #1a1a1a; outline-offset: 2px; }

body.sd-checkout-page .sd-cart-co #customer_details,
body.sd-checkout-page .sd-cart-co #customer_details > .col-12 { width: auto; max-width: none; margin: 0; padding: 0; }
body.sd-checkout-page .sd-cart-co #customer_details { display: flex; flex-direction: column; gap: 14px; }
body.sd-checkout-page .woocommerce .sd-cart-co .woocommerce-billing-fields__field-wrapper,
body.sd-checkout-page .woocommerce .sd-cart-co .woocommerce-billing-guest-fields__field-wrapper,
body.sd-checkout-page .woocommerce .sd-cart-co .woocommerce-additional-fields__field-wrapper { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
body.sd-checkout-page .woocommerce .sd-cart-co .row > .form-row { width: auto; max-width: none; flex: none; margin: 0; padding: 0; }
body.sd-checkout-page .woocommerce .sd-cart-co .row > .form-row.col-lg-12,
body.sd-checkout-page .woocommerce .sd-cart-co .row > #billing_email_field,
body.sd-checkout-page .woocommerce .sd-cart-co .row > .sd-cart-sub { grid-column: 1 / -1; }
body.sd-checkout-page .woocommerce .sd-cart-co .row > .sd-cart-sub { width: auto; max-width: none; padding: 0; }
body.sd-checkout-page .woocommerce .sd-cart-co .row > .form-row.sd-cart-fixed { display: none; } /* still posted: see SdCart::billing_fields() */
body.sd-checkout-page .woocommerce .sd-cart-co .row > .form-row > label,
body.sd-checkout-page .woocommerce .sd-cart-co .sd-cart-step--where label.ecommerceconnect_custom_select,
body.sd-checkout-page .woocommerce .sd-cart-co .sd-cart-step--where label.sample_calendar { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--sd-muted); }
body.sd-checkout-page .sd-cart-co .row > .form-row .optional { font-weight: 400; }
body.sd-checkout-page .sd-cart-co .primary-input,
body.sd-checkout-page .sd-cart-co .custom-calendar input { width: 100%; height: 44px; margin: 0 !important; padding: 0 12px; border: 1px solid #d0d0d0; border-radius: var(--sd-radius); background: #fff; box-shadow: none; font: 14px 'Raleway', sans-serif !important; color: var(--sd-ink); box-sizing: border-box; }
body.sd-checkout-page .sd-cart-co textarea.primary-input { height: auto; min-height: 84px; padding: 10px 12px; }
body.sd-checkout-page .sd-cart-co .primary-input::placeholder { font-size: 14px !important; color: #8a8a8a; }
body.sd-checkout-page .sd-cart-co .primary-input:focus,
body.sd-checkout-page .sd-cart-co .custom-calendar input:focus { border-color: var(--sd-orange); outline: 3px solid rgba(239, 125, 0, .25); outline-offset: 0; }
body.sd-checkout-page .sd-cart-co .woocommerce-invalid .primary-input { border-color: #d63638; }

body.sd-checkout-page .woocommerce .sd-cart-co .woocommerce-billing-fields h3.sd-cart-sub,
body.sd-checkout-page .woocommerce .sd-cart-co .row > h4.sd-cart-sub,
body.sd-checkout-page .woocommerce .sd-cart-co #guest_additional_fields h3 { margin: 4px 0 10px; font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--sd-ink); }
body.sd-checkout-page .woocommerce .sd-cart-co .row > h4.sd-cart-sub { margin: 6px 0 -4px; }
body.sd-checkout-page .sd-cart-co #guest_additional_fields { margin-bottom: 6px; }
/* The sampling-fee notice of classes/woocommerce/woocommerce-fees.php (kept, quieter) */
body.sd-checkout-page .sd-cart-co .woocommerce-billing-fields > .woocommerce-info { margin: 0 0 14px !important; padding: 12px 14px; border: 1px solid #f3dca0; border-radius: var(--sd-radius); background: #fff8e6; color: var(--sd-ink); font-size: 13px; line-height: 1.5; white-space: pre-line; }
body.sd-checkout-page .sd-cart-co .woocommerce-billing-fields > .woocommerce-info::before { display: none; }

body.sd-checkout-page .sd-cart-co .sd-cart-notes summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--sd-orange-text); }
body.sd-checkout-page .sd-cart-co .sd-cart-notes[open] summary { margin-bottom: 10px; }
body.sd-checkout-page .sd-cart-co .sd-cart-notes summary:focus-visible { outline: 3px solid #1a1a1a; outline-offset: 2px; }

/* Step 2: where and when (payment.php; the cards and day buttons come from assets/js/sd-cart.js) */
body.sd-checkout-page .woocommerce .sd-cart-co .sd-cart-step--where .form-row { width: auto; margin: 0; padding: 0; }
body.sd-checkout-page .sd-cart-co #ecommerceconnect_custom_select_field.sd-cart-has-ui .woocommerce-input-wrapper,
body.sd-checkout-page .sd-cart-co .custom-calendar.sd-cart-has-ui { display: none !important; }
.sd-cart-labs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sd-cart-lab { position: relative; display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 14px; border: 1.5px solid #d0d0d0; border-radius: var(--sd-radius); background: #fff; font-size: 13px; line-height: 1.4; cursor: pointer; }
.sd-cart-lab input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.sd-cart-lab strong { font-size: 14px; color: var(--sd-ink); }
.sd-cart-lab.is-on { border-color: var(--sd-orange); background: #fff8f0; box-shadow: 0 0 0 2px var(--sd-orange-soft); }
.sd-cart-lab:focus-within { outline: 3px solid #1a1a1a; outline-offset: 2px; }
.sd-cart-days { display: flex; flex-wrap: wrap; gap: 8px; }
.sd-cart-day { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 72px; height: 60px; padding: 0; border: 1.5px solid #d0d0d0; border-radius: var(--sd-radius); background: #fff; color: var(--sd-ink); font: 600 13px/1.1 'Raleway', sans-serif; cursor: pointer; }
.sd-cart-day strong { font-size: 16px; }
.sd-cart-day[aria-pressed="true"] { border-color: var(--sd-orange); background: var(--sd-orange-soft); color: var(--sd-orange-text); }
.sd-cart-day:focus-visible { outline: 3px solid #1a1a1a; outline-offset: 2px; }
.sd-cart-co #ecommerceconnect_custom_select_field.woocommerce-invalid + .sd-cart-labs .sd-cart-lab,
.sd-cart-co #sample_reservation_field.woocommerce-invalid ~ .sd-cart-days .sd-cart-day { border-color: #d63638; }
.sd-cart-co #custom-sample-calendar { margin-top: 6px; }
.sd-cart-note { margin: 0; font-size: 13px; color: var(--sd-muted); }

/* Step 3: payment, the sampling option, terms */
body.sd-checkout-page .sd-cart-co #payment .sd-cart-step--pay > ul.payment_methods { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; border: 0; list-style: none; }
body.sd-checkout-page .sd-cart-co #payment .sd-cart-step--pay > ul.payment_methods > li.wc_payment_method { margin: 0; padding: 14px 16px; border: 1.5px solid #d0d0d0; border-radius: var(--sd-radius); background: #fff; }
body.sd-checkout-page .sd-cart-co #payment .sd-cart-step--pay > ul.payment_methods > li.wc_payment_method:has(input:checked) { border-color: var(--sd-orange); background: #fff8f0; }
body.sd-checkout-page .sd-cart-co #payment .sd-cart-step--pay li .form-check { display: flex; align-items: flex-start; gap: 12px; min-height: 0; margin: 0 !important; padding: 0; }
body.sd-checkout-page .sd-cart-co #payment .sd-cart-step--pay li .form-check-input { flex: none; float: none; width: 18px; height: 18px; margin: 1px 0 0 !important; }
body.sd-checkout-page .sd-cart-co #payment .sd-cart-step--pay li.wc_payment_method label { font-size: 15px; font-weight: 700; cursor: pointer; }
body.sd-checkout-page .sd-cart-co #payment .sd-cart-step--pay li.wc_payment_method label img { max-height: 24px; margin-left: 8px; vertical-align: middle; }
body.sd-checkout-page .sd-cart-co #payment .sd-cart-step--pay div.payment_box { margin: 6px 0 0 30px; padding: 0; background: none; color: var(--sd-muted); font-size: 13px; }
body.sd-checkout-page .sd-cart-co #payment .sd-cart-step--pay div.payment_box::before { display: none; }
body.sd-checkout-page .sd-cart-co #payment .sd-cart-step--pay div.payment_box p { margin: 0; }
/* the sampling option of classes/woocommerce/woocommerce-fees.php ("I bring my own sample" when unticked) */
body.sd-checkout-page .sd-cart-co #payment .sd-cart-step--pay > .woocommerce-info { margin: 0 !important; padding: 0; border: 0; background: none; color: var(--sd-ink); font-size: 14px; }
body.sd-checkout-page .sd-cart-co #payment .sd-cart-step--pay > .woocommerce-info::before { display: none; }
body.sd-checkout-page .sd-cart-co #payment .sd-cart-step--pay > .woocommerce-info h5 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--sd-muted); }
body.sd-checkout-page .sd-cart-co #payment .sd-cart-step--pay > .woocommerce-info ul.payment_methods { margin: 0 !important; padding: 0; border: 0; list-style: none; }
body.sd-checkout-page .sd-cart-co #payment .sd-cart-step--pay > .woocommerce-info li { margin: 0; padding: 12px 14px; border: 1px dashed #d0d0d0; border-radius: var(--sd-radius); }
body.sd-checkout-page .sd-cart-co #payment .sd-cart-step--pay > .woocommerce-info li .form-check { flex-wrap: wrap; }
body.sd-checkout-page .sd-cart-co #payment .sd-cart-step--pay > .woocommerce-info .sample-fee-warning { flex-basis: 100%; margin: 4px 0 0 30px; font-size: 13px; }
body.sd-checkout-page .sd-cart-co #payment .woocommerce-terms-and-conditions-wrapper { margin: 0; font-size: 13px; }
body.sd-checkout-page .sd-cart-co #payment .woocommerce-privacy-policy-text p { margin: 0 0 10px; font-size: 13px; line-height: 1.5; color: var(--sd-muted); }
body.sd-checkout-page .sd-cart-co #payment .woocommerce-terms-and-conditions-wrapper .form-row { margin: 0; font-size: 14px; }
body.sd-checkout-page .sd-cart-co #payment .woocommerce-terms-and-conditions-wrapper .form-check-input { width: 18px; height: 18px; }

/* Login and coupon links above the form (WooCommerce's form-login.php and form-coupon.php), quieter */
body.sd-checkout-page .woocommerce-form-login-toggle,
body.sd-checkout-page .woocommerce .woocommerce-form-coupon-toggle { margin: 0 0 6px; }
body.sd-checkout-page .woocommerce-form-login-toggle .woocommerce-info,
body.sd-checkout-page .woocommerce-form-coupon-toggle .woocommerce-info { margin: 0; padding: 0; border: 0; background: none; color: var(--sd-muted); font-size: 14px; }
body.sd-checkout-page .woocommerce-form-login-toggle .woocommerce-info::before,
body.sd-checkout-page .woocommerce-form-coupon-toggle .woocommerce-info::before { display: none; }
body.sd-checkout-page .woocommerce form.login,
body.sd-checkout-page .woocommerce form.checkout_coupon { max-width: 560px; margin: 8px 0 12px; }
body.sd-checkout-page .woocommerce form.checkout_coupon .card-body > p { margin-bottom: 12px; font-size: 14px; }
body.sd-checkout-page .woocommerce-form-coupon-toggle + form.checkout_coupon + .woocommerce-notices-wrapper,
body.sd-checkout-page form.checkout.sd-cart-co { margin-top: 14px; }

/* ---------- Responsive (the design's breakpoints) ---------- */
/* The cart page's line keeps 342 px for its tag, price and remove columns: beside the 380 px summary its name would be
   41 to 164 px wide between 901 and 1024 px. One column up to 1049 px (name 453 px and more); from 1050 px the name keeps
   at least 173 px beside the summary, a desktop scrollbar included, for the longest word of a name. */
@media (max-width: 1049px) {
  .sd-cart__grid { grid-template-columns: minmax(0, 1fr); }
  .sd-cart__side { position: static; margin-top: 20px; }
}
@media (max-width: 900px) {
  .sd-cart-co__grid { grid-template-columns: minmax(0, 1fr); }
  .sd-cart-co #payment > .sd-cart-sum { grid-column: 1; grid-row: auto; position: static; }
}
@media (max-width: 640px) {
  body.sd-cart-page #content.site-content,
  body.sd-checkout-page #content.site-content { padding: 20px 16px 40px !important; }
  .sd-cart-head .sd-h1 { font-size: 28px; }
  .sd-cart-line,
  .sd-cart-line--review { grid-template-columns: minmax(0, 1fr) auto 36px; }
  .sd-cart-line--review { grid-template-columns: minmax(0, 1fr) auto; }
  .sd-cart-line__name { grid-column: 1 / -1; }
  .sd-cart-line__price { justify-content: flex-end; }
  .sd-cart-line--review .sd-cart-line__price { justify-content: flex-end; }
  .sd-cart-labs,
  body.sd-checkout-page .woocommerce .sd-cart-co .woocommerce-billing-fields__field-wrapper,
  body.sd-checkout-page .woocommerce .sd-cart-co .woocommerce-billing-guest-fields__field-wrapper,
  body.sd-checkout-page .woocommerce .sd-cart-co .woocommerce-additional-fields__field-wrapper { grid-template-columns: minmax(0, 1fr); }
  .sd-cart-day { width: 64px; }
}
@media (max-width: 767px) {
  /* Phones: 16 px, or iOS zooms the page when a field gets the focus (the shared rule is in sante-design.css; this
     screen's own field rule above is stronger, so it is answered here). */
  body.sd-checkout-page .sd-cart-co .primary-input,
  body.sd-checkout-page .sd-cart-co .custom-calendar input { font-size: 16px !important; }
  body.sd-checkout-page .sd-cart-co .primary-input::placeholder { font-size: 16px !important; }
}
