/* ==================================================================
   Checkout, delivery modal and WooCommerce notices (delivery v2).

   Calm, official checkout: pink only where the customer acts (primary CTA,
   focus ring, selected ring, links), selection is a ring and never a fill,
   hairlines instead of shadows, no gradients.

   Scope: checkout under #ebCheckout (woocommerce/checkout/form-checkout.php),
   the modal under #deliveryWizardModal (homepage + checkout), notices and the
   shared .eb-* components site-wide. The ids also outrank WooCommerce's own
   form / payment styles without !important.

   RTL: logical properties throughout — inline-start is the RIGHT edge.
   ================================================================== */

:root {
    /* text */
    --eb-ink: #121212;
    --eb-text: #4D4D4D;
    --eb-muted: #6E6866;
    --eb-faint: #8F8886;
    --eb-disabled: #9D9D9D;
    --eb-disabled-day: #C9C3C0;
    /* lines */
    --eb-line: #E8E4E2;
    --eb-line-strong: #D9D3D0;
    --eb-line-hover: #BDB6B3;
    /* surfaces */
    --eb-subtle: #FAF8F7;
    --eb-sunken: #F3F0EE;
    --eb-thumb: #EFEBE8;
    --eb-skeleton: #EAE6E3;
    /* brand: #FC3468 rings and focus; the deeper 600 carries white text at AA */
    --eb-pink: #FC3468;
    --eb-pink-600: #E0245A;
    --eb-pink-700: #C21A4B;
    --eb-focus-ring: 0 0 0 3px rgba(252, 52, 104, .18);
    --eb-focus-ring-btn: 0 0 0 2px #fff, 0 0 0 4px #FC3468;
    --eb-error-ring: 0 0 0 3px rgba(180, 35, 24, .10);
    /* status */
    --eb-error: #B42318;
    --eb-error-bg: #FEF3F2;
    --eb-error-line: #F4C7C3;
    --eb-success: #1F7A4D;
    --eb-success-bg: #F1F8F4;
    --eb-success-line: #CFE6D8;
    /* shape */
    --eb-r-xs: 6px;
    --eb-r-sm: 8px;
    --eb-r-md: 10px;
    --eb-r-lg: 12px;
    --eb-r-xl: 16px;
    --eb-shadow-pop: 0 12px 32px rgba(18, 18, 18, .12);
    --eb-shadow-modal: 0 24px 64px rgba(18, 18, 18, .22);
    --eb-shadow-thumb: 0 1px 2px rgba(18, 18, 18, .08), 0 0 0 1px #E8E4E2;
    --eb-ease: .15s ease-out;
    --eb-font: "Assistant", "Arial Hebrew", "Segoe UI", Arial, sans-serif;
    /* icons (24px grid, drawn with currentColor through a mask) */
    --eb-i-truck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.5h11v10h-11z'/%3E%3Cpath d='M13.5 9.5h4.2l3.3 3.4v3.6h-7.5'/%3E%3Ccircle cx='6.5' cy='17.5' r='1.8'/%3E%3Ccircle cx='17' cy='17.5' r='1.8'/%3E%3C/svg%3E");
    --eb-i-store: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9.5h16l-1.6-4.5H5.6z'/%3E%3Cpath d='M5.2 9.5V20h13.6V9.5'/%3E%3Cpath d='M9.8 20v-5.2h4.4V20'/%3E%3C/svg%3E");
    --eb-i-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 11 12 4l8.5 7'/%3E%3Cpath d='M5.5 9.5V20h13V9.5'/%3E%3Cpath d='M10 20v-5.5h4V20'/%3E%3C/svg%3E");
    --eb-i-hospital: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='3.5' width='15' height='17' rx='1.5'/%3E%3Cpath d='M12 7.2v5.6M9.2 10h5.6'/%3E%3Cpath d='M10 20.5v-3.8h4v3.8'/%3E%3C/svg%3E");
    --eb-i-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E");
    --eb-i-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6.8-6-6.8-11.3a6.8 6.8 0 0 1 13.6 0C18.8 15 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.7' r='2.4'/%3E%3C/svg%3E");
    --eb-i-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
    --eb-i-back: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15.5M14 6l6 6-6 6'/%3E%3C/svg%3E");
    --eb-i-chev-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
    --eb-i-chev-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 6l-6 6 6 6'/%3E%3C/svg%3E");
    --eb-i-chev-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.5 6l6 6-6 6'/%3E%3C/svg%3E");
    --eb-i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
    --eb-i-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5'/%3E%3Cpath d='M12 16.3v.4'/%3E%3C/svg%3E");
    --eb-i-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5.5'/%3E%3Cpath d='M12 7.6v.4'/%3E%3C/svg%3E");
    --eb-i-pencil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 19.5h3.8L19 8.8 15.2 5 4.5 15.7z'/%3E%3Cpath d='M13.3 6.9l3.8 3.8'/%3E%3C/svg%3E");
    --eb-i-card: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5.5' width='18' height='13' rx='2'/%3E%3Cpath d='M3 10h18M7 15h4'/%3E%3C/svg%3E");
    --eb-i-cash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3Cpath d='M6.5 9.5v5M17.5 9.5v5'/%3E%3C/svg%3E");
    --eb-i-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.2 4h3.3l1.6 4-2.1 1.4a10.8 10.8 0 0 0 6.6 6.6l1.4-2.1 4 1.6v3.3a2 2 0 0 1-2.2 2A15.5 15.5 0 0 1 3.2 6.2 2 2 0 0 1 5.2 4z'/%3E%3C/svg%3E");
    --eb-i-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3.2 2'/%3E%3C/svg%3E");
    --eb-i-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.6'/%3E%3Cpath d='M5 17.5l4.5-4 3.5 3 2.5-2 3.5 3'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- icons */
.eb-ic {
    display: inline-block;
    flex: none;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    background-color: currentColor;
    -webkit-mask: var(--eb-i) center / contain no-repeat;
    mask: var(--eb-i) center / contain no-repeat;
}
.eb-ic--16 { width: 16px; height: 16px; }
.eb-ic--18 { width: 18px; height: 18px; }
.eb-ic--22 { width: 22px; height: 22px; }
.eb-ic--24 { width: 24px; height: 24px; }
.eb-ic--truck { --eb-i: var(--eb-i-truck); }
.eb-ic--store { --eb-i: var(--eb-i-store); }
.eb-ic--home { --eb-i: var(--eb-i-home); }
.eb-ic--hospital { --eb-i: var(--eb-i-hospital); }
.eb-ic--calendar { --eb-i: var(--eb-i-calendar); }
.eb-ic--pin { --eb-i: var(--eb-i-pin); }
.eb-ic--close { --eb-i: var(--eb-i-close); }
.eb-ic--back { --eb-i: var(--eb-i-back); }
.eb-ic--chev-down { --eb-i: var(--eb-i-chev-down); }
.eb-ic--chev-l { --eb-i: var(--eb-i-chev-l); }
.eb-ic--chev-r { --eb-i: var(--eb-i-chev-r); }
.eb-ic--check { --eb-i: var(--eb-i-check); }
.eb-ic--alert { --eb-i: var(--eb-i-alert); }
.eb-ic--info { --eb-i: var(--eb-i-info); }
.eb-ic--pencil { --eb-i: var(--eb-i-pencil); }
.eb-ic--card { --eb-i: var(--eb-i-card); }
.eb-ic--cash { --eb-i: var(--eb-i-cash); }
.eb-ic--phone { --eb-i: var(--eb-i-phone); }
.eb-ic--clock { --eb-i: var(--eb-i-clock); }
.eb-ic--image { --eb-i: var(--eb-i-image); }

.eb-spinner {
    display: inline-block;
    flex: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: eb-spin .8s linear infinite;
}
.eb-spinner--dark {
    width: 16px;
    height: 16px;
    border-color: var(--eb-line-strong);
    border-top-color: var(--eb-ink);
}
@keyframes eb-spin { to { transform: rotate(360deg); } }

/* -------------------------------------------------------------- buttons */
.eb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    margin: 0;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--eb-r-sm);
    background: transparent;
    color: var(--eb-ink);
    font: 600 16px/1 var(--eb-font);
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color var(--eb-ease), border-color var(--eb-ease), box-shadow var(--eb-ease), color var(--eb-ease);
}
.eb-btn:hover { color: var(--eb-ink); text-decoration: none; }
.eb-btn:focus { outline: none; }
.eb-btn:focus-visible { box-shadow: var(--eb-focus-ring-btn); }
.eb-btn[aria-busy="true"],
.eb-btn[aria-disabled="true"] { cursor: progress; }

.eb-btn--primary,
.eb-btn--primary:hover,
.eb-btn--primary:focus { color: #fff; }
.eb-btn--primary { background: var(--eb-pink-600); }
.eb-btn--primary:hover,
.eb-btn--primary:active { background: var(--eb-pink-700); }
.eb-btn--primary:disabled {
    background: var(--eb-sunken);
    color: var(--eb-disabled);
    cursor: not-allowed;
}
.eb-btn--primary[aria-busy="true"] { background: var(--eb-pink-700); color: #fff; cursor: progress; }
.eb-btn--md { height: 48px; padding: 0 24px; }
.eb-btn--lg { height: 52px; padding: 0 28px; font-size: 17px; font-weight: 700; }

.eb-btn--secondary { background: #fff; border-color: var(--eb-ink); }
.eb-btn--secondary:hover { background: var(--eb-subtle); }
.eb-btn--secondary:active { background: var(--eb-sunken); }
.eb-btn--secondary:disabled { border-color: var(--eb-line); color: var(--eb-disabled); cursor: not-allowed; }
.eb-btn--sm { height: 40px; padding: 0 16px; font-size: 15px; }

.eb-btn--ghost { height: 36px; padding: 0 10px; font-size: 15px; }
.eb-btn--ghost.eb-btn--sm { height: 40px; }
.eb-btn--ghost:hover { background: var(--eb-sunken); }
.eb-btn--ghost:active { background: var(--eb-line); }
.eb-btn--ghost:focus-visible { box-shadow: 0 0 0 2px var(--eb-pink); }

.eb-btn--icon { width: 40px; height: 40px; padding: 0; }
.eb-btn--icon:hover { background: var(--eb-sunken); }
.eb-btn--icon:disabled { color: var(--eb-disabled-day); background: transparent; cursor: default; }

/* --------------------------------------------------------------- fields */
.eb-label {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 6px;
    font: 600 14px/20px var(--eb-font);
    color: var(--eb-text);
}
.eb-opt { font-weight: 400; color: var(--eb-muted); }

#deliveryWizardModal .eb-input,
#ebCheckout .eb-input,
#ebCheckout .form-row .input-text,
#ebCheckout .form-row select,
#ebCheckout .payment_box select {
    display: block;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--eb-line-strong);
    border-radius: var(--eb-r-sm);
    background: #fff;
    box-shadow: none;
    color: var(--eb-ink);
    font: 400 16px/24px var(--eb-font);   /* 16px: iOS never zooms on focus */
    -webkit-appearance: none;
    appearance: none;
    transition: border-color var(--eb-ease), box-shadow var(--eb-ease), background-color var(--eb-ease);
}
#ebCheckout .form-row textarea.input-text {
    height: auto;
    min-height: 104px;
    padding: 12px 14px;
    resize: vertical;
}
#ebCheckout .payment_box select { width: auto; min-width: 96px; height: 40px; }
#deliveryWizardModal .eb-input::placeholder,
#ebCheckout .eb-input::placeholder,
#ebCheckout .form-row .input-text::placeholder { color: var(--eb-faint); opacity: 1; }
#deliveryWizardModal .eb-input:hover,
#ebCheckout .eb-input:hover,
#ebCheckout .form-row .input-text:hover,
#ebCheckout .payment_box select:hover { border-color: var(--eb-line-hover); }
#deliveryWizardModal .eb-input:focus,
#ebCheckout .eb-input:focus,
#ebCheckout .form-row .input-text:focus,
#ebCheckout .payment_box select:focus {
    outline: none;
    border-color: var(--eb-pink);
    box-shadow: var(--eb-focus-ring);
}
#deliveryWizardModal .eb-input:disabled,
#ebCheckout .eb-input:disabled,
#ebCheckout .eb-input.is-busy {
    background: var(--eb-sunken);
    border-color: var(--eb-line);
    color: var(--eb-faint);
    cursor: not-allowed;
}
/* error: the field's own border, never a tinted background */
#deliveryWizardModal .eb-field.is-invalid .eb-input,
#ebCheckout .form-row:has(.checkout-inline-error-message) .input-text,
#ebCheckout #coupon_code.has-error {
    border-color: var(--eb-error);
    box-shadow: var(--eb-error-ring);
}

.eb-help,
#ebCheckout .checkout-inline-error-message {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 6px 0 0;
    font: 400 13px/18px var(--eb-font);
    color: var(--eb-muted);
}
.eb-help--error,
#ebCheckout .checkout-inline-error-message { color: var(--eb-error); }
.eb-help--error::before,
#ebCheckout .checkout-inline-error-message::before {
    content: "";
    flex: none;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    background-color: currentColor;
    -webkit-mask: var(--eb-i-alert) center / contain no-repeat;
    mask: var(--eb-i-alert) center / contain no-repeat;
}

/* --------------------------------------------------------------- alerts */
.eb-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 12px 16px;
    border: 1px solid var(--eb-line);
    border-radius: var(--eb-r-lg);
    background: var(--eb-subtle);
    color: var(--eb-text);
    font: 400 14px/20px var(--eb-font);
    list-style: none;
}
.eb-alert__icon { color: var(--eb-muted); }
.eb-alert__content { display: flex; flex-direction: column; gap: 12px; flex: 1; min-width: 0; }
.eb-alert__text { display: flex; flex-direction: column; gap: 2px; }
.eb-alert__title { margin: 0; font: 700 15px/22px var(--eb-font); color: var(--eb-ink); }
.eb-alert__body { margin: 0; flex: 1; min-width: 0; }
.eb-alert__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.eb-alert__actions .eb-btn--secondary { background: #fff; }
.eb-alert a:not(.eb-btn) { color: var(--eb-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.eb-alert--error { background: var(--eb-error-bg); border-color: var(--eb-error-line); }
.eb-alert--error .eb-alert__icon,
.eb-alert--error .eb-alert__title { color: var(--eb-error); }

/* ==================================================================
   Notices — WooCommerce's success / info / error, one component site-wide
   (woocommerce/notices/*.php). The icon is its own flex column: WooCommerce
   positioned an icon font absolutely, which sat on the text in RTL.
   ================================================================== */
.eb-notice.woocommerce-message,
.eb-notice.woocommerce-info,
.eb-notice.woocommerce-error {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    width: auto;
    margin: 0 0 8px;
    padding: 12px 16px;
    border: 1px solid;
    border-radius: var(--eb-r-lg);
    color: var(--eb-ink);
    font: 400 15px/22px var(--eb-font);
    text-align: start;
    list-style: none;
}
.eb-notice.woocommerce-message::before,
.eb-notice.woocommerce-info::before,
.eb-notice.woocommerce-error::before,
.eb-notice.woocommerce-message::after,
.eb-notice.woocommerce-info::after,
.eb-notice.woocommerce-error::after { content: none; display: none; }
.eb-notice:last-child { margin-bottom: 0; }
.eb-notice:focus { outline: none; }
.eb-notice.woocommerce-message { background: var(--eb-success-bg); border-color: var(--eb-success-line); }
.eb-notice.woocommerce-info { background: var(--eb-subtle); border-color: var(--eb-line); }
.eb-notice.woocommerce-error { background: var(--eb-error-bg); border-color: var(--eb-error-line); }

.eb-notice__icon {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    background-color: currentColor;
    -webkit-mask: var(--eb-i) center / contain no-repeat;
    mask: var(--eb-i) center / contain no-repeat;
}
.eb-notice--success .eb-notice__icon { color: var(--eb-success); --eb-i: var(--eb-i-check); }
.eb-notice--info .eb-notice__icon { color: var(--eb-muted); --eb-i: var(--eb-i-info); }
.eb-notice--error .eb-notice__icon { color: var(--eb-error); --eb-i: var(--eb-i-alert); }
.eb-notice__body { flex: 1 1 0; min-width: 0; align-self: center; }
.eb-notice a:not(.button) { color: var(--eb-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.eb-notice__list { margin: 0; padding: 0; list-style: none; }
.eb-notice__list.is-multi { padding-inline-start: 18px; }
.eb-notice.woocommerce-error .eb-notice__list.is-multi > li { list-style: disc outside !important; }   /* WooCommerce forces none !important */
.eb-notice__title { margin: 0 0 4px; font: 700 15px/22px var(--eb-font); color: var(--eb-error); }

/* the single action ("מעבר לסל הקניות"): a secondary button at inline-end */
body .eb-notice a.button.wc-forward {
    float: none;
    display: inline-flex;
    align-items: center;
    align-self: center;
    height: 40px;
    margin: 0;
    margin-inline-start: auto;
    padding: 0 16px;
    border: 1px solid var(--eb-ink);
    border-radius: var(--eb-r-sm);
    background: #fff;
    color: var(--eb-ink);
    font: 600 15px/1 var(--eb-font);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--eb-ease), box-shadow var(--eb-ease);
}
body .eb-notice a.button.wc-forward:hover { background: var(--eb-subtle); color: var(--eb-ink); }
body .eb-notice a.button.wc-forward:focus-visible { outline: none; box-shadow: var(--eb-focus-ring-btn); }

/* notices on the product and cart pages, under the title (woocommerce/single-product.php, content-cart.php) */
.eb-notices-slot .woocommerce-notices-wrapper:not(:empty) { margin: 0 0 20px; }
.eb-notices-slot .woocommerce-notices-wrapper:empty { display: none; }
@media (min-width: 576px) {
    .container.eb-notices-slot { padding-inline: 0; }   /* cart: the notice lines up with the cart card's edges */
}

/* the checkout error summary (eb-checkout.js adds the title and links) */
.eb-notice.woocommerce-error.is-summary { padding: 16px 20px; }
.eb-notice.is-summary .eb-notice__body { align-self: flex-start; }
.eb-notice.is-summary .eb-notice__list { font-size: 14px; line-height: 24px; color: var(--eb-text); }
.eb-notice.is-summary .eb-notice__list a:not(.button) { color: var(--eb-text); font-weight: 400; }

@media (max-width: 575.98px) {
    .eb-notice.woocommerce-message,
    .eb-notice.woocommerce-info,
    .eb-notice.woocommerce-error { padding: 14px 16px; }
    body .eb-notice a.button.wc-forward { margin-inline-start: 32px; }   /* wraps under the text, clear of the icon */
    .eb-notice__body { flex-basis: calc(100% - 32px); }
}

/* ==================================================================
   Checkout page
   ================================================================== */
.mainContent:has(#ebCheckout) .entry-header { display: none; }   /* #ebCheckout prints the page title as h1 */

#ebCheckout {
    max-width: 1140px;
    margin-inline: auto;
    padding-block: 40px 96px;
    color: var(--eb-ink);
    font-family: var(--eb-font);
    font-variant-numeric: tabular-nums;
}
/* WooCommerce prints the cart notices (e.g. "added to cart") before this template runs:
   the shortcode wrapper becomes the page box so the title can lead them. */
@supports selector(:has(*)) {
    .woocommerce:has(> #ebCheckout) {
        display: flex;
        flex-direction: column;
        max-width: 1140px;
        margin-inline: auto;
        padding-block: 40px 96px;
    }
    #ebCheckout { display: contents; }
    #ebCheckout .eb-checkout-head { order: -1; }
    .woocommerce:has(> #ebCheckout) > .woocommerce-notices-wrapper:not(:empty) { margin-bottom: 20px; }
    @media (max-width: 991.98px) {
        .woocommerce:has(> #ebCheckout) { max-width: 640px; }
    }
    @media (max-width: 575.98px) {
        .woocommerce:has(> #ebCheckout) { padding: 24px 4px 48px; }   /* + the theme's 12px = 16px gutters */
    }
}
#ebCheckout .eb-checkout-head { margin-bottom: 32px; }
#ebCheckout .eb-checkout-title {
    margin: 0;
    font: 700 32px/40px var(--eb-font);
    letter-spacing: -.2px;
    color: var(--eb-ink);
}
#ebCheckout .woocommerce-notices-wrapper:not(:empty) { margin-bottom: 20px; }
#ebCheckout .woocommerce-NoticeGroup { margin: 0; }
#ebCheckout > .woocommerce-message,
#ebCheckout > .woocommerce-info,
#ebCheckout > .woocommerce-error { margin-bottom: 20px; }

#ebCheckout .eb-checkout-main { display: flex; flex-direction: column; gap: 20px; }

.eb-card {
    background: #fff;
    border: 1px solid var(--eb-line);
    border-radius: var(--eb-r-lg);
    padding: 28px 32px;
}

/* numbered section header: ① title ··· action */
.eb-sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.eb-sec-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font: 700 20px/28px var(--eb-font);
    color: var(--eb-ink);
}
.eb-sec-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 28px;
    height: 28px;
    border: 1px solid var(--eb-line-strong);
    border-radius: 50%;
    background: #fff;
    color: var(--eb-ink);
    font: 700 14px/1 var(--eb-font);
    transition: background-color var(--eb-ease), border-color var(--eb-ease), color var(--eb-ease);
}
.eb-sec-num .eb-ic { display: none; }
.eb-sec-num.is-done { background: var(--eb-ink); border-color: var(--eb-ink); color: #fff; }
.eb-sec-num.is-done .eb-sec-digit { display: none; }
.eb-sec-num.is-done .eb-ic { display: inline-block; }
.eb-sec-num.is-error { background: var(--eb-error-bg); border-color: var(--eb-error); color: var(--eb-error); }
.eb-sec-num.is-error .eb-sec-digit { display: inline; }
.eb-sec-num.is-error .eb-ic { display: none; }
.eb-sec-action { margin-inline-start: auto; }

/* ---- 1 · buyer: WooCommerce's form rows on a 2-column grid ---- */
#ebCheckout .woocommerce-billing-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
#ebCheckout .form-row {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
}
#ebCheckout .form-row::before,
#ebCheckout .form-row::after { content: none; }
#ebCheckout #billing_company_field { order: 10; }   /* optional field last */
#ebCheckout .form-row > label {
    display: block;
    margin: 0 0 6px;
    font: 600 14px/20px var(--eb-font);
    color: var(--eb-text);
}
#ebCheckout .form-row label .required { display: none; }   /* required is the default: no asterisks */
#ebCheckout .form-row label .optional { font-weight: 400; color: var(--eb-muted); }
#ebCheckout .woocommerce-input-wrapper { display: block; }

/* ---- 2 · delivery ---- */
.eb-delivery-empty {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--eb-line);
    border-radius: var(--eb-r-lg);
    background: var(--eb-subtle);
    transition: background-color var(--eb-ease), border-color var(--eb-ease);
}
.eb-delivery-empty__lead { display: flex; align-items: flex-start; gap: 14px; flex: 1; min-width: 0; }
.eb-delivery-empty__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--eb-line);
    border-radius: 50%;
    background: #fff;
    color: var(--eb-ink);
}
.eb-delivery-empty__title { margin: 0; font: 700 16px/24px var(--eb-font); color: var(--eb-ink); }
.eb-delivery-empty__body { margin: 2px 0 0; font: 400 14px/20px var(--eb-font); color: var(--eb-muted); }
#ebDeliveryCard.is-invalid .eb-delivery-empty { background: var(--eb-error-bg); border-color: var(--eb-error-line); }
#ebDeliveryCard .eb-delivery-msg { margin-top: 10px; font-size: 14px; line-height: 20px; }

.eb-rows {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px 16px;
    margin: 0;
    font: 400 15px/22px var(--eb-font);
}
.eb-rows dt { margin: 0; font-weight: 400; color: var(--eb-muted); }
.eb-rows dd { margin: 0; font-weight: 600; color: var(--eb-ink); overflow-wrap: anywhere; }
.eb-rows .eb-muted { font-weight: 400; color: var(--eb-muted); }
.is-pre { white-space: pre-line; }
.eb-delivery-alert { margin-top: 20px; padding: 16px; }

#ebCheckout .eb-greeting { margin-top: 24px; }
.eb-greeting__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    font: 400 13px/18px var(--eb-font);
    color: var(--eb-muted);
}
.eb-count.is-near { color: var(--eb-ink); }

/* ---- summary panel: a receipt, so a quiet surface instead of a card ---- */
#ebCheckout .eb-summary {
    padding: 28px;
    border: 1px solid var(--eb-line);
    border-radius: var(--eb-r-lg);
    background: var(--eb-subtle);
}
.eb-review__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.eb-review__title { margin: 0; font: 700 20px/28px var(--eb-font); color: var(--eb-ink); }
.eb-review__count { font: 400 14px/20px var(--eb-font); color: var(--eb-muted); }

.eb-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0 0;
    padding: 0 0 20px;
    border-bottom: 1px solid var(--eb-line);
    list-style: none;
}
.eb-item { display: flex; align-items: center; gap: 14px; margin: 0; }
.eb-item__thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border: 1px solid var(--eb-line);
    border-radius: var(--eb-r-sm);
    background: var(--eb-thumb);
    color: var(--eb-line-hover);
}
.eb-item__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.eb-item__text { flex: 1; min-width: 0; }
.eb-item__name {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font: 600 15px/22px var(--eb-font);
    color: var(--eb-ink);
}
.eb-item__qty { margin: 0; font: 400 14px/20px var(--eb-font); color: var(--eb-muted); }
.eb-item__text .variation { margin: 2px 0 0; font-size: 13px; line-height: 18px; color: var(--eb-muted); }
.eb-item__text .variation dt,
.eb-item__text .variation dd,
.eb-item__text .variation p { display: inline; margin: 0; font-weight: 400; }
.eb-item__total { font: 600 15px/22px var(--eb-font); color: var(--eb-ink); white-space: nowrap; }

.eb-totals {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 0 16px;
    border-bottom: 1px solid var(--eb-line);
}
.eb-trow {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    font: 400 15px/22px var(--eb-font);
}
.eb-trow__label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; color: var(--eb-text); }
.eb-trow__value { color: var(--eb-ink); text-align: end; white-space: nowrap; }
.eb-trow__note { font-size: 14px; color: var(--eb-muted); text-align: end; }
.eb-trow__note.is-error { color: var(--eb-error); }
.eb-coupon-code { font-weight: 600; color: var(--eb-ink); text-transform: uppercase; }
#ebCheckout .woocommerce-remove-coupon { font-size: 13px; color: var(--eb-muted); text-decoration: underline; text-underline-offset: 3px; }
#ebCheckout .woocommerce-remove-coupon:hover { color: var(--eb-ink); }

.eb-total { padding: 16px 0 24px; border-bottom: 1px solid var(--eb-line); }
.eb-total__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.eb-total__label { font: 700 18px/26px var(--eb-font); color: var(--eb-ink); }
.eb-total__value { font: 700 24px/32px var(--eb-font); color: var(--eb-ink); white-space: nowrap; }
.eb-total__vat { margin: 2px 0 0; font: 400 13px/18px var(--eb-font); color: var(--eb-muted); text-align: end; }

/* ---- 3 · payment ---- */
#ebCheckout #payment {
    padding-top: 24px;
    border-radius: 0;
    background: transparent;
}
#ebCheckout #payment .eb-sec-head { margin-bottom: 16px; }
#ebCheckout #payment .eb-pay {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    list-style: none;
}
#ebCheckout #payment .eb-pay::before,
#ebCheckout #payment .eb-pay::after,
#ebCheckout #payment .eb-pay__item::before,
#ebCheckout #payment .eb-pay__item::after { content: none; }
#ebCheckout #payment .eb-pay__item {
    position: relative;
    margin: 0;
    padding: 0;
    border: 1px solid var(--eb-line-strong);
    border-radius: var(--eb-r-lg);
    background: #fff;
    line-height: inherit;
    text-align: start;
    transition: border-color var(--eb-ease), box-shadow var(--eb-ease), background-color var(--eb-ease);
}
#ebCheckout #payment .eb-pay__item:hover { border-color: var(--eb-line-hover); }
#ebCheckout #payment .eb-pay__item:has(.eb-pay__input:checked) { border-color: var(--eb-pink); box-shadow: inset 0 0 0 1px var(--eb-pink); }
#ebCheckout #payment .eb-pay__item:has(.eb-pay__input:focus-visible) { box-shadow: var(--eb-focus-ring-btn); }
#ebCheckout #payment .eb-pay__item:has(.eb-pay__input:checked:focus-visible) { box-shadow: inset 0 0 0 1px var(--eb-pink), var(--eb-focus-ring-btn); }
#ebCheckout #payment .eb-pay__input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}
#ebCheckout #payment .eb-pay__label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 14px 16px;
    background: transparent;
    cursor: pointer;
    font: 600 16px/24px var(--eb-font);
    color: var(--eb-ink);
}
/* a single gateway: nothing to choose, so no radio and no selected ring */
#ebCheckout #payment .eb-pay.is-single .eb-pay__item { border-color: var(--eb-line-strong); box-shadow: none; }
#ebCheckout #payment .eb-pay.is-single .eb-pay__label { cursor: default; }
#ebCheckout #payment .eb-pay.is-single .eb-radio { display: none; }
.eb-pay__icon { margin-inline-start: auto; color: var(--eb-muted); }
#ebCheckout #payment div.payment_box {
    margin: -6px 0 0;
    padding: 0 16px 14px;
    border: 0;
    padding-inline-start: 48px;   /* under the title, past the radio */
    border-radius: 0;
    background: transparent;
    color: var(--eb-muted);
    font: 400 14px/20px var(--eb-font);
}
#ebCheckout #payment .eb-pay.is-single div.payment_box { padding-inline-start: 16px; }
#ebCheckout #payment div.payment_box::before { display: none; }
#ebCheckout #payment div.payment_box p { margin: 0; }
#ebCheckout #payment div.payment_box label { margin: 0 0 6px; font-weight: 600; color: var(--eb-text); }

/* the radio dot, shared by payment cards and the modal's radio cards */
.eb-radio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--eb-line-hover);
    border-radius: 50%;
    background: #fff;
    transition: border-color var(--eb-ease);
}
.eb-radio::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--eb-pink);
    opacity: 0;
}
input:checked + .eb-pay__label .eb-radio,
.eb-rcard:has(input:checked) .eb-radio { border-color: var(--eb-pink); }
input:checked + .eb-pay__label .eb-radio::after,
.eb-rcard:has(input:checked) .eb-radio::after { opacity: 1; }

/* terms checkbox (only when a terms page is set) + privacy text */
#ebCheckout #payment .eb-place-order { margin: 0; padding: 0; }
#ebCheckout .eb-terms__row { margin: 20px 0 0; }
#ebCheckout .eb-check {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    color: var(--eb-ink);
    font: 400 15px/22px var(--eb-font);
    cursor: pointer;
}
#ebCheckout .eb-check__input { position: absolute; width: 20px; height: 20px; margin: 0; opacity: 0; }
.eb-check__box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border: 1.5px solid var(--eb-line-hover);
    border-radius: 5px;
    background: #fff;
    transition: background-color var(--eb-ease), border-color var(--eb-ease), box-shadow var(--eb-ease);
}
.eb-check__box::after {
    content: "";
    width: 14px;
    height: 14px;
    background-color: #fff;
    opacity: 0;
    -webkit-mask: var(--eb-i-check) center / contain no-repeat;
    mask: var(--eb-i-check) center / contain no-repeat;
}
.eb-check__input:checked + .eb-check__box { background: var(--eb-pink); border-color: var(--eb-pink); }
.eb-check__input:checked + .eb-check__box::after { opacity: 1; }
.eb-check__input:focus-visible + .eb-check__box { box-shadow: var(--eb-focus-ring-btn); }
#ebCheckout #terms_field:has(.checkout-inline-error-message) .eb-check__box { border-color: var(--eb-error); }
#ebCheckout #terms_field .checkout-inline-error-message { padding-inline-start: 30px; }
#ebCheckout .eb-check a { color: var(--eb-ink); text-decoration: underline; text-underline-offset: 3px; }
#ebCheckout .woocommerce-privacy-policy-text p {
    margin: 20px 0 0;
    font: 400 13px/18px var(--eb-font);
    color: var(--eb-muted);
}
#ebCheckout .woocommerce-privacy-policy-text a { color: var(--eb-text); text-decoration: underline; text-underline-offset: 2px; }

#ebCheckout #payment #place_order { float: none; width: 100%; margin: 16px 0 0; }
.eb-help-line { margin: 14px 0 0; text-align: center; font: 400 14px/20px var(--eb-font); color: var(--eb-muted); }
.eb-help-line a { color: var(--eb-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---- coupon: a quiet line under the title ---- */
.eb-coupon__line { margin: 6px 0 0; font: 400 14px/20px var(--eb-font); color: var(--eb-muted); }
.eb-coupon__line a { color: var(--eb-pink-600); text-decoration: underline; text-underline-offset: 3px; }
.eb-coupon__line a:hover { color: var(--eb-pink-700); }
.eb-coupon__ok {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 10px 0 0;
    font: 400 14px/20px var(--eb-font);
    color: var(--eb-success);
}
.eb-coupon__ok::before {
    content: "";
    flex: none;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    background-color: currentColor;
    -webkit-mask: var(--eb-i-check) center / contain no-repeat;
    mask: var(--eb-i-check) center / contain no-repeat;
}
#ebCheckout form.checkout_coupon {
    max-width: 440px;
    margin: 12px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    text-align: start;
}
.eb-coupon__fields { display: flex; gap: 8px; }
#ebCheckout .eb-coupon__apply { flex: none; height: 48px; min-width: 112px; }
#ebCheckout .eb-coupon__err { font-size: 14px; line-height: 20px; }

/* ---- loading: no grey blockUI veil; the CTA and skeletons say it ---- */
body.woocommerce-checkout .blockUI.blockOverlay {
    background: transparent !important;
    opacity: 1 !important;
    cursor: progress !important;
}
body.woocommerce-checkout .blockUI.blockOverlay::before { display: none !important; }
#ebCheckout form.processing .eb-card,
#ebCheckout form.processing .eb-review,
#ebCheckout form.processing #payment .eb-sec-head,
#ebCheckout form.processing #payment .eb-pay,
#ebCheckout form.processing .eb-terms,
#ebCheckout form.processing .eb-help-line,
#ebCheckout form.processing .woocommerce-NoticeGroup {
    opacity: .5;
    pointer-events: none;
    transition: opacity var(--eb-ease);
}
#ebCheckout .eb-refreshing .eb-val,
#ebCheckout .eb-refreshing .eb-val * { color: transparent !important; }
#ebCheckout .eb-refreshing .eb-val { border-radius: 4px; background: var(--eb-skeleton); }

/* ---- responsive ---- */
@media (max-width: 991.98px) {
    #ebCheckout { max-width: 640px; }
    #ebCheckout .eb-checkout-aside { margin-top: 20px; }
}
@media (max-width: 575.98px) {
    #ebCheckout { padding: 24px 4px 48px; }
    #ebCheckout .eb-checkout-head { margin-bottom: 20px; }
    #ebCheckout .eb-checkout-title { font-size: 26px; line-height: 34px; }
    #ebCheckout .eb-checkout-main { gap: 16px; }
    #ebCheckout .eb-checkout-aside { margin-top: 16px; }
    .eb-card,
    #ebCheckout .eb-summary { padding: 20px 16px; }
    #ebCheckout #billing_phone_field,
    #ebCheckout #billing_email_field,
    #ebCheckout #billing_company_field { grid-column: 1 / -1; }
    .eb-delivery-empty { flex-direction: column; align-items: stretch; }
    .eb-delivery-empty__cta { width: 100%; height: 48px; }
    .eb-rows { grid-template-columns: 88px minmax(0, 1fr); }
}

/* ==================================================================
   Delivery modal (template-parts/delivery-wizard-modal.php)
   ================================================================== */
#deliveryWizardModal {
    --bs-modal-width: 560px;
    --bs-modal-border-width: 0;
    --bs-modal-border-radius: var(--eb-r-xl);
    --bs-modal-inner-border-radius: var(--eb-r-xl);
    color: var(--eb-ink);
    font-family: var(--eb-font);
    font-variant-numeric: tabular-nums;
    text-align: start;
}
body:has(#deliveryWizardModal.show) .modal-backdrop { --bs-backdrop-bg: #121212; --bs-backdrop-opacity: .48; }
body:has(#deliveryWizardModal.show) #ht-ctc-chat { display: none; }   /* the floating chat button would sit on the sheet's CTA */
@media (min-width: 576px) {
    #deliveryWizardModal .modal-content { box-shadow: var(--eb-shadow-modal); }
}

.eb-dw-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: none;
    height: 56px;
    padding: 8px 12px 0;
}
.eb-dw-back { height: 40px; }
.eb-dw-back.is-hidden { visibility: hidden; }

.eb-dw-progress {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 8px;
    flex: none;
    margin: 0;
    padding: 4px 24px 0;
    list-style: none;
}
.eb-dw-progress li { margin: 0; }
.eb-dw-progress__bar { display: block; height: 3px; border-radius: 2px; background: var(--eb-line); transition: background-color var(--eb-ease); }
.eb-dw-progress__label { display: block; margin-top: 8px; font: 500 13px/18px var(--eb-font); color: var(--eb-muted); }
.eb-dw-progress .is-done .eb-dw-progress__bar,
.eb-dw-progress .is-current .eb-dw-progress__bar { background: var(--eb-ink); }
.eb-dw-progress .is-current .eb-dw-progress__label { font-weight: 700; color: var(--eb-ink); }

#deliveryWizardModal .eb-dw-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px 24px 28px;
}
.eb-dw-h { margin: 0; font: 700 24px/32px var(--eb-font); letter-spacing: -.2px; color: var(--eb-ink); }
.eb-dw-h:focus { outline: none; }
.eb-dw-sub { margin: 4px 0 0; font: 400 15px/22px var(--eb-font); color: var(--eb-muted); }
.eb-dw-h3 { margin: 0; font: 700 17px/24px var(--eb-font); color: var(--eb-ink); }
.eb-dw-step,
.eb-dw-fields { display: flex; flex-direction: column; gap: 20px; }
.eb-dw-fields { gap: 16px; }
.eb-field { position: relative; display: flex; flex-direction: column; min-width: 0; }
.eb-dw-addr { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px 12px; }
.eb-dw-addr.is-free { grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 2fr); }   /* "מספר בית / משק (אופציונלי)" on one line */
.eb-dw-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }

#deliveryWizardModal .eb-dw-foot {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 16px 24px;
    border-top: 1px solid var(--eb-line);
}
#deliveryWizardModal .eb-dw-foot > * { margin: 0; }
.eb-dw-sum { min-width: 0; font: 400 15px/22px var(--eb-font); color: var(--eb-text); }
.eb-dw-sum b { font-weight: 700; color: var(--eb-ink); }
.eb-dw-sum .eb-muted { color: var(--eb-muted); }
#deliveryWizardModal .eb-dw-cta { margin-inline-start: auto; }

/* radio cards: method, hospital */
.eb-rcards { display: flex; flex-direction: column; gap: 12px; }
.eb-rcards--compact { gap: 8px; }
.eb-rcard {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 84px;
    margin: 0;
    padding: 18px 20px;
    border: 1px solid var(--eb-line-strong);
    border-radius: var(--eb-r-lg);
    background: #fff;
    cursor: pointer;
    transition: border-color var(--eb-ease), background-color var(--eb-ease), box-shadow var(--eb-ease);
}
.eb-rcard:hover { border-color: var(--eb-line-hover); background: var(--eb-subtle); }
.eb-rcard:has(input:checked) { border-color: var(--eb-pink); background: #fff; box-shadow: inset 0 0 0 1px var(--eb-pink); }
.eb-rcard:has(input:focus-visible) { box-shadow: var(--eb-focus-ring-btn); }
.eb-rcard:has(input:checked:focus-visible) { box-shadow: inset 0 0 0 1px var(--eb-pink), var(--eb-focus-ring-btn); }
.eb-rcard__icon { display: flex; color: var(--eb-text); }
.eb-rcard__text { display: flex; flex-direction: column; min-width: 0; }
.eb-rcard__title { font: 700 17px/24px var(--eb-font); color: var(--eb-ink); }
.eb-rcard__desc { font: 400 14px/20px var(--eb-font); color: var(--eb-muted); }
.eb-rcard__price { margin-inline-start: auto; padding-inline-start: 8px; font: 600 16px/24px var(--eb-font); color: var(--eb-ink); white-space: nowrap; }
.eb-rcard--compact { gap: 12px; min-height: 0; padding: 12px 16px; }
.eb-rcard--compact .eb-rcard__title { font-size: 16px; font-weight: 600; }
.eb-rcard--compact .eb-rcard__price { font-size: 15px; font-weight: 500; color: var(--eb-text); }

/* date chips */
.eb-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.eb-chip {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 72px;
    margin: 0;
    border: 1px solid var(--eb-line-strong);
    border-radius: var(--eb-r-lg);
    background: #fff;
    cursor: pointer;
    transition: border-color var(--eb-ease), background-color var(--eb-ease), box-shadow var(--eb-ease);
}
.eb-chip:hover { border-color: var(--eb-line-hover); background: var(--eb-subtle); }
.eb-chip:has(input:checked) { border-color: var(--eb-pink); background: #fff; box-shadow: inset 0 0 0 1px var(--eb-pink); }
.eb-chip:has(input:focus-visible) { box-shadow: var(--eb-focus-ring-btn); }
.eb-chip:has(input:checked:focus-visible) { box-shadow: inset 0 0 0 1px var(--eb-pink), var(--eb-focus-ring-btn); }
.eb-chip__name { font: 600 15px/20px var(--eb-font); color: var(--eb-text); }
.eb-chip:has(input:checked) .eb-chip__name { color: var(--eb-ink); }
.eb-chip__date { font: 700 20px/26px var(--eb-font); color: var(--eb-ink); }
.eb-skel { display: block; border-radius: var(--eb-r-lg); background: var(--eb-sunken); }
.eb-skel--chip { height: 72px; }
.eb-skel--cal { height: 300px; }

/* "another date" disclosure + calendar panel */
.eb-disclosure {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--eb-line-strong);
    border-radius: var(--eb-r-sm);
    background: #fff;
    color: var(--eb-ink);
    font: 600 16px/24px var(--eb-font);
    text-align: start;
    cursor: pointer;
    transition: border-color var(--eb-ease), box-shadow var(--eb-ease);
}
.eb-disclosure:hover { border-color: var(--eb-line-hover); }
.eb-disclosure:focus { outline: none; }
.eb-disclosure:focus-visible { box-shadow: var(--eb-focus-ring-btn); }
.eb-disclosure__chev { margin-inline-start: auto; }
.eb-disclosure[aria-expanded="true"] .eb-disclosure__chev { transform: rotate(180deg); }
.eb-cal {
    margin-top: 12px;
    padding: 12px 16px 16px;
    border: 1px solid var(--eb-line);
    border-radius: var(--eb-r-lg);
}
.eb-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.eb-cal__nav { width: 36px; height: 36px; }
.eb-cal__month { font: 700 16px/24px var(--eb-font); color: var(--eb-ink); }

/* flatpickr, inline, restyled: the theme's own month header above replaces flatpickr's */
#deliveryWizardModal .flatpickr-calendar.inline {
    position: static;
    width: 100% !important;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    direction: rtl;   /* flatpickr is LTR-only: Sunday belongs on the right */
    font-family: var(--eb-font);
}
#deliveryWizardModal .flatpickr-input { display: none !important; }
#deliveryWizardModal .flatpickr-calendar::before,
#deliveryWizardModal .flatpickr-calendar::after,
#deliveryWizardModal .flatpickr-months { display: none; }
#deliveryWizardModal .flatpickr-innerContainer,
#deliveryWizardModal .flatpickr-rContainer,
#deliveryWizardModal .flatpickr-days {
    display: block;
    width: 100% !important;
    overflow: visible;
    border: 0;
}
#deliveryWizardModal .flatpickr-weekdays { height: auto; margin-bottom: 4px; background: transparent; }
#deliveryWizardModal .flatpickr-weekdaycontainer,
#deliveryWizardModal .dayContainer {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0;
    box-shadow: none;
}
#deliveryWizardModal span.flatpickr-weekday {
    height: 28px;
    background: transparent;
    color: var(--eb-muted);
    font: 600 13px/28px var(--eb-font);
}
#deliveryWizardModal .flatpickr-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: none;
    height: 44px;
    margin: 0;
    border: 0;
    border-radius: var(--eb-r-sm);
    background: transparent;
    color: var(--eb-ink);
    font: 500 15px/18px var(--eb-font);
    transition: background-color var(--eb-ease), box-shadow var(--eb-ease);
}
#deliveryWizardModal .flatpickr-day:hover,
#deliveryWizardModal .flatpickr-day:focus { border: 0; background: var(--eb-sunken); outline: none; }
#deliveryWizardModal .flatpickr-day.today { border: 0; font-weight: 700; }
#deliveryWizardModal .flatpickr-day.selected,
#deliveryWizardModal .flatpickr-day.selected:hover,
#deliveryWizardModal .flatpickr-day.selected:focus {
    border: 0;
    background: #fff;
    color: var(--eb-ink);
    font-weight: 700;
    box-shadow: inset 0 0 0 2px var(--eb-pink);
}
#deliveryWizardModal .flatpickr-day.flatpickr-disabled,
#deliveryWizardModal .flatpickr-day.flatpickr-disabled:hover {
    background: transparent;
    color: var(--eb-disabled-day);
    font-weight: 500;
    cursor: default;
}
#deliveryWizardModal .flatpickr-day.prevMonthDay { visibility: hidden; }   /* keeps the weekday offset */
#deliveryWizardModal .flatpickr-day.nextMonthDay { display: none; }
#deliveryWizardModal .flatpickr-day small { font: 600 10px/11px var(--eb-font); color: var(--eb-disabled); }

/* pickup card */
.eb-pickup-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
    border: 1px solid var(--eb-line);
    border-radius: var(--eb-r-lg);
}
.eb-pickup-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.eb-pickup-card__head .eb-dw-h3 { font-size: 16px; }
.eb-pickup-card__price { font-weight: 600; }
.eb-pickup-card__row { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: var(--eb-text); font: 400 15px/22px var(--eb-font); }
.eb-pickup-card__row .eb-ic { margin-top: 1px; }

/* address type: segmented control */
.eb-seg {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border-radius: var(--eb-r-md);
    background: var(--eb-sunken);
}
.eb-seg__opt {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    margin: 0;
    border-radius: var(--eb-r-sm);
    color: var(--eb-muted);
    font: 600 15px/1 var(--eb-font);
    cursor: pointer;
    transition: background-color var(--eb-ease), box-shadow var(--eb-ease), color var(--eb-ease);
}
.eb-seg__opt:has(input:checked) { background: #fff; color: var(--eb-ink); box-shadow: var(--eb-shadow-thumb); }
.eb-seg__opt:has(input:focus-visible) { box-shadow: var(--eb-focus-ring-btn); }

/* combobox: city, street, hospital (> 6) */
.eb-ac { position: relative; }
.eb-ac.has-value .eb-input { padding-inline-end: 40px; }
.eb-ac__chev,
.eb-ac__spin {
    position: absolute;
    top: 15px;
    inset-inline-end: 14px;
    color: var(--eb-muted);
    pointer-events: none;
}
.eb-ac__spin { top: 16px; }
.eb-ac__chev { display: none; }
.eb-ac.has-value .eb-ac__chev { display: block; }
.eb-ac-menu {
    position: absolute;
    top: calc(100% + 4px);
    inset-inline: 0;
    z-index: 20;
    max-height: 276px;
    margin: 0;
    padding: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--eb-line);
    border-radius: var(--eb-r-md);
    background: #fff;
    box-shadow: var(--eb-shadow-pop);
    list-style: none;
}
.eb-ac-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin: 0;
    padding: 0 12px;
    border-radius: var(--eb-r-xs);
    color: var(--eb-ink);
    font: 400 16px/22px var(--eb-font);
    cursor: pointer;
}
.eb-ac-opt b { font-weight: 700; }
.eb-ac-opt.is-active { background: var(--eb-sunken); }
.eb-ac-opt__meta { margin-inline-start: auto; color: var(--eb-muted); font-size: 14px; white-space: nowrap; }
.eb-ac-opt__check { color: var(--eb-pink); }
.eb-ac-opt__meta + .eb-ac-opt__check { margin-inline-start: 0; }
.eb-ac-opt__label + .eb-ac-opt__check { margin-inline-start: auto; }
.eb-ac-empty { margin: 0; padding: 10px 12px; color: var(--eb-muted); font: 400 14px/20px var(--eb-font); }

/* recipient */
.eb-hr { height: 0; margin: 0; border: 0; border-top: 1px solid var(--eb-line); opacity: 1; }
.eb-recipient { display: flex; flex-direction: column; gap: 16px; }
.eb-switch-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    margin: 0;
    color: var(--eb-ink);
    font: 500 16px/24px var(--eb-font);
    cursor: pointer;
}
.eb-switch {
    position: relative;
    flex: none;
    width: 44px;
    height: 26px;
    margin: 0;
    margin-inline-start: auto;
    border: 0;
    border-radius: 13px;
    background: var(--eb-line-strong);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color var(--eb-ease), box-shadow var(--eb-ease);
}
.eb-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    inset-inline-start: 3px;   /* off: knob on the right (RTL) */
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(18, 18, 18, .2);
}
.eb-switch:checked { background: var(--eb-pink); }
.eb-switch:checked::after { inset-inline-start: 21px; }
.eb-switch:focus { outline: none; }
.eb-switch:focus-visible { box-shadow: var(--eb-focus-ring-btn); }
.eb-muted-line { margin: 0; color: var(--eb-muted); font: 400 14px/20px var(--eb-font); }

/* mobile: a full-height sheet, the footer pinned with the safe area */
@media (max-width: 575.98px) {
    #deliveryWizardModal .modal-content { height: 100dvh; }
    .eb-dw-head { padding: 8px 8px 0; }
    .eb-dw-progress { padding: 4px 16px 0; }
    #deliveryWizardModal .eb-dw-body { padding: 24px 16px; }
    .eb-dw-h { font-size: 22px; line-height: 30px; }
    #deliveryWizardModal .eb-dw-foot {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
    }
    .eb-dw-sum { text-align: center; }
    .eb-dw-sum:empty { display: none; }
    #deliveryWizardModal .eb-dw-cta { width: 100%; height: 52px; margin-inline-start: 0; font-size: 17px; font-weight: 700; }
    .eb-dw-addr,
    .eb-dw-addr.is-free { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .eb-dw-addr [data-field="street"] { grid-column: 1 / -1; }
    .eb-dw-pair--stack { grid-template-columns: minmax(0, 1fr); }
    .eb-ac-menu { max-height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
    .eb-btn, .eb-rcard, .eb-chip, .eb-seg__opt, .eb-switch, .eb-sec-num, .eb-radio, .eb-check__box,
    #deliveryWizardModal .eb-input, #ebCheckout .form-row .input-text, #ebCheckout #payment .eb-pay__item { transition: none; }
    .eb-spinner { animation-duration: 1.6s; }
}
