/* Prefix ph-zv is reserved for shared shopping clarity and mobile navigation. */
.ph-zv-cost-note {
    color: #334155;
    font-size: .9rem;
    line-height: 1.55;
    margin: .5rem 0 1rem;
    max-width: 100%;
}
#rb-mobile-menu .ph-zv-menu-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    align-items: start;
}
#rb-mobile-menu .ph-zv-menu-group > a {
    min-height: 48px;
    display: flex;
    align-items: center;
}
#rb-mobile-menu .ph-zv-menu-group > ul.sub-menu {
    grid-column: 1 / -1;
    position: static;
    width: auto;
}
#rb-mobile-menu ul.sub-menu[hidden] { display: none !important; }
#rb-mobile-menu button.ph-zv-menu-toggle {
    color: #fff;
    background: #1e293b;
    border: 1px solid #64748b;
    border-radius: 6px;
    width: 44px;
    height: 44px;
    margin: 2px;
    padding: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
#rb-mobile-menu button.ph-zv-menu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
#rb-mobile-menu button.ph-zv-menu-toggle:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}
#rb-mobile-menu .sub-menu > li > a { color: #cbd5e1 !important; }
.ph-zv-payment-methods .ph-pm-badge { color: #0f172a; background: #f1f5f9; }

#rb-mobile-menu li > a { min-height: 44px; }

.ph-zv-reference-note {
    background: #fff7ed;
    border: 1px solid #9a3412;
    border-radius: 8px;
    color: #7c2d12;
    font-size: .95rem;
    line-height: 1.5;
    padding: 12px 14px;
}

/* Product discovery: search and the catalog precede promotional content. */
.ph-zv-discovery { margin: 0 0 20px; }
.ph-zv-discovery .ph-zv-discovery-title {
    color: #0f172a;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.2;
    margin: 0 0 8px;
    max-width: 100%;
    width: 100%;
    text-wrap: balance;
}
.ph-zv-discovery-intro {
    color: #334155;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 16px;
    max-width: 100%;
}
.ph-zv-discovery-intro a {
    color: #0c4a6e;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.ph-zv-discovery-search { margin: 12px 0; scroll-margin-top: 150px; }
.ph-zv-discovery .ph-shop-search-form { flex-direction: row; align-items: stretch; gap: 8px; }
.ph-zv-discovery .ph-shop-search-input-group { flex: 1 1 0; min-width: 0; width: auto; min-height: 48px; }
.ph-zv-discovery .ph-shop-search-field { min-width: 0; width: 100%; font-size: 16px; color: #0f172a; }
.ph-zv-discovery .ph-shop-search-field::placeholder { color: #475569; opacity: 1; }
.ph-zv-discovery .ph-shop-search-submit {
    flex: 0 0 auto;
    width: auto;
    min-height: 48px;
    padding: 10px 18px;
    background: #0f172a;
    color: #fff;
    border: 1px solid #0f172a;
    border-radius: 8px;
    font-size: 15px;
}
.ph-zv-discovery .ph-shop-search-clear { min-width: 32px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.ph-zv-category-browser { border-bottom: 1px solid #cbd5e1; }
.ph-zv-category-browser > summary {
    color: #0f172a;
    cursor: pointer;
    min-height: 44px;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 600;
}
.ph-zv-category-browser .ph-shop-cat-browser-section { margin: 12px 0; }
.ph-zv-category-browser .ph-shop-cat-card-count { font-size: 12px; }
.ph-zv-discovery .ph-shop-search-submit:focus-visible,
.ph-zv-discovery .ph-shop-search-clear:focus-visible,
.ph-zv-category-browser > summary:focus-visible {
    outline: 3px solid #075985;
    outline-offset: 3px;
}
@media (max-width: 768px) {
    .ph-zv-discovery { margin-bottom: 12px; }
    .ph-zv-discovery-intro { font-size: 15px; margin-bottom: 12px; }
    .ph-zv-discovery .ph-shop-search-input-group { padding: 0 10px; }
    .ph-zv-discovery .ph-shop-search-submit { padding: 10px 14px; }
}

/* Catalog filtering: compact inline desktop fields, a phone/tablet drawer. */
.ph-zv-catalog-controls { margin-top: 12px; }
.ph-zv-catalog-filters { border: 1px solid #cbd5e1; border-radius: 8px; padding: 0 12px; }
.ph-zv-catalog-filters > summary { min-height: 44px; padding: 10px 0; font-size: 15px; font-weight: 600; color: #0f172a; cursor: pointer; }
.ph-zv-filter-panel { box-sizing: border-box; padding: 0 0 14px; color: #0f172a; background: #fff; }
.ph-zv-filter-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ph-zv-filter-heading h2 { font-size: 1.1rem; margin: 12px 0; max-width: 100%; }
.ph-zv-filter-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ph-zv-filter-fields > label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: #334155; min-width: 0; }
.ph-zv-filter-fields select, .ph-zv-filter-fields input[type="number"] { width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid #64748b; border-radius: 6px; background: #fff; color: #0f172a; font-size: 16px; }
.ph-zv-filter-fields > label.ph-zv-stock-filter { flex-direction: row; align-items: center; min-height: 44px; align-self: end; }
.ph-zv-stock-filter input { flex-shrink: 0; width: 20px; height: 20px; margin: 0 4px 0 0; }
.ph-zv-filter-hint { font-size: 13px; line-height: 1.5; color: #334155; margin: 12px 0; }
.ph-zv-filter-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.ph-zv-filter-actions button, .ph-zv-filter-close { min-height: 44px; background: #0f172a; color: #fff; padding: 10px 16px; border: 1px solid #0f172a; border-radius: 6px; font-size: 15px; cursor: pointer; }
.ph-zv-filter-actions > a { color: #0c4a6e; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.ph-zv-filter-close, .ph-zv-filter-backdrop { display: none; }
.ph-zv-active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ph-zv-active-filters > a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; border: 1px solid #94a3b8; border-radius: 6px; padding: 8px 12px; color: #0f172a; background: #f1f5f9; font-size: 14px; text-decoration: none; }
.ph-zv-catalog-filters summary:focus-visible, .ph-zv-filter-panel button:focus-visible, .ph-zv-filter-panel input:focus-visible, .ph-zv-filter-panel select:focus-visible, .ph-zv-filter-panel a:focus-visible, .ph-zv-active-filters > a:focus-visible { outline: 3px solid #075985; outline-offset: 3px; }
@media (min-width: 1024px) {
    .ph-zv-filter-fields { grid-template-columns: 1.4fr 1fr 1fr .9fr 1.4fr 1fr; }
    .ph-zv-filter-heading { display: none; }
    .ph-zv-filter-panel { background: transparent; }
}
@media (max-width: 1023px) {
    .ph-zv-filters-ready[open] > .ph-zv-filter-backdrop { display: block; position: fixed; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; padding: 0; background: rgba(15,23,42,.65); z-index: 11000; }
    .ph-zv-filters-ready[open] > .ph-zv-filter-panel { position: fixed; inset: 0 0 0 auto; width: min(440px, 100%); max-width: 100%; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; z-index: 11001; padding: 16px 20px 32px; padding-bottom: calc(32px + var(--ph-cookie-h, 0px) + env(safe-area-inset-bottom, 0px)); box-shadow: -8px 0 24px rgba(15,23,42,.18); }
    .ph-zv-filters-ready .ph-zv-filter-close { display: inline-flex; align-items: center; }
    .ph-zv-filters-ready .ph-zv-filter-heading { position: sticky; top: -16px; background: #fff; padding: 8px 0 12px; margin-bottom: 12px; z-index: 1; }
    .ph-zv-filter-fields { grid-template-columns: 1fr; }
}

.ph-zv-filter-fields input::placeholder { color: #475569; opacity: 1; }

/* Product names, options and amounts must not share a narrow price column. */
.ph-zv-mobile-order-items { display: none; }
.ph-zv-order-list { list-style: none; padding: 0; margin: 0; }
.ph-zv-order-item { list-style: none; padding: 16px 0; border-bottom: 1px solid #cbd5e1; }
.ph-zv-order-item:first-child { padding-top: 0; }
.ph-zv-order-heading { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: start; gap: 12px; }
.ph-zv-order-heading > div { min-width: 0; }
.ph-zv-order-heading img.ph-zv-order-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.ph-zv-order-name { display: block; color: #0f172a; font-size: 15px; line-height: 1.5; font-weight: 600; word-break: normal; overflow-wrap: anywhere; }
.ph-zv-order-quantity { display: block; color: #334155; font-size: 14px; margin-top: 4px; }
.ph-zv-order-options { margin-top: 12px; width: 100%; }
.woocommerce-checkout .ph-zv-order-options dl.variation { display: block !important; margin: 0 !important; padding: 0 !important; width: 100% !important; border: 0 !important; }
.woocommerce-checkout .ph-zv-order-options dl.variation dt,
.woocommerce-checkout .ph-zv-order-options dl.variation dd { display: block !important; float: none !important; clear: both !important; width: 100% !important; max-width: 100% !important; padding: 0 !important; margin: 0 !important; color: #334155 !important; font-size: 14px !important; line-height: 1.5 !important; word-break: normal !important; overflow-wrap: anywhere; }
.woocommerce-checkout .ph-zv-order-options dl.variation dd { margin-bottom: 8px !important; }
.woocommerce-checkout .ph-zv-order-options dl.variation dd p { margin: 0 !important; font-size: inherit !important; line-height: inherit !important; word-break: normal !important; }
.ph-zv-order-line-total { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; color: #0f172a; font-size: 15px; line-height: 1.5; }
.ph-zv-order-line-total strong { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 991px) {
    .woocommerce-checkout #order_review .ph-zv-mobile-order-items { display: block; }
    .woocommerce-checkout #order_review .ph-zv-mobile-order-items ~ table.woocommerce-checkout-review-order-table > thead,
    .woocommerce-checkout #order_review .ph-zv-mobile-order-items ~ table.woocommerce-checkout-review-order-table > tbody { display: none !important; }
    .woocommerce-checkout .ph-mobile-summary-collapse { padding: 16px; }
    .woocommerce-checkout .ph-mobile-summary-items { display: block; padding-bottom: 12px; }
    .woocommerce-checkout .ph-mobile-summary-totals-block { min-width: 0; }
    .woocommerce-checkout .ph-mobile-tot-row { gap: 12px; font-size: 14px; color: #334155; }
    .woocommerce-checkout .ph-mobile-tot-row > :last-child { text-align: right; flex-shrink: 0; }
}

/* Keep the phone buying area within easy reach without cropping product artwork. */
@media (max-width: 600px) {
    body.ph-pp-page .free-shipping-progress.single-product { padding: 7px 10px; margin: 8px 0 12px; max-width: 100%; border: 1px solid #cbd5e1; border-radius: 6px; background: #f8fafc; text-align: left; }
    body.ph-pp-page .free-shipping-progress.single-product .free-shipping-message { margin: 0; color: #334155; font-size: 13px; line-height: 1.45; font-weight: 500; }
    body.ph-pp-page .free-shipping-progress.single-product .free-shipping-bar,
    body.ph-pp-page .free-shipping-progress.single-product .free-shipping-subtitle { display: none; }
    body.ph-pp-page .woocommerce-product-gallery { margin-bottom: 12px !important; }
    body.ph-pp-page .woocommerce-product-gallery__wrapper { margin: 0 !important; }
    body.ph-pp-page .woocommerce-product-gallery .flex-viewport { height: 160px !important; max-height: 160px; }
    body.ph-pp-page .woocommerce-product-gallery .woocommerce-product-gallery__image { min-height: 0; }
    body.ph-pp-page .woocommerce-product-gallery .woocommerce-product-gallery__image img:not(.zoomImg) { width: 100% !important; height: 160px !important; object-fit: contain; box-shadow: none; background: #fff; }
    body.ph-pp-page .woocommerce-product-gallery .flex-control-thumbs { gap: 6px; margin-top: 6px; }
    body.ph-pp-page .woocommerce-product-gallery .flex-control-thumbs li,
    body.ph-pp-page .woocommerce-product-gallery .flex-control-thumbs li img { width: 44px; height: 44px; }
    body.ph-pp-page .summary .ph-pp-price-note { font-size: 13px; line-height: 1.45; margin-bottom: 6px; }
    body.ph-pp-page .summary .ph-zv-cost-note { font-size: 13px; line-height: 1.45; margin: 0 0 10px; }
    body.ph-pp-page .summary form.cart { margin-top: 8px; margin-bottom: 14px; }
    body.ph-pp-page .summary form.cart table.variations { margin-bottom: 8px; }
    body.ph-pp-page .summary form.cart table.variations th,
    body.ph-pp-page .summary form.cart table.variations td { padding-top: 4px; padding-bottom: 4px; }
    body.ph-pp-page .summary .variations .ph-pp-pills { gap: 6px; }
    body.ph-pp-page .summary .variations .ph-pp-pill { min-width: 44px; min-height: 44px; padding: 8px 10px; font-size: 14px; }
    body.ph-pp-page .summary .single_add_to_cart_button { min-height: 48px; }
    body.ph-pp-page .summary.entry-summary .single-product-category { display: none; }
    body.ph-pp-page div.product .summary.entry-summary .product_title.entry-title { font-size: 20px !important; line-height: 1.25 !important; margin: 0 0 6px !important; }
    body.ph-pp-page div.product .summary.entry-summary > p.price { color: #0f172a !important; font-size: 22px !important; line-height: 1.2 !important; margin: 0 0 6px !important; }
    body.ph-pp-page .summary table.variations,
    body.ph-pp-page .summary table.variations tbody,
    body.ph-pp-page .summary table.variations tr,
    body.ph-pp-page .summary table.variations th.label,
    body.ph-pp-page .summary table.variations td.label,
    body.ph-pp-page .summary table.variations td.value { display: block !important; width: 100% !important; max-width: 100%; }
    body.ph-pp-page .summary table.variations th.label,
    body.ph-pp-page .summary table.variations td.label { padding: 4px 0 0 !important; text-align: left; }
    body.ph-pp-page .summary table.variations td.value { padding: 2px 0 4px !important; }
    body.ph-pp-page .summary .variations .ph-pp-pills { margin: 2px 0 4px; }
    body.ph-pp-page .woocommerce-product-gallery__trigger { width: 44px; height: 44px; }
}

/* Mobile checkout: one calm form surface, with native fields and payment controls. */
@media (max-width: 768px) {
    body.woocommerce-checkout:not(.woocommerce-order-received) { background: #fff; }
    body.woocommerce-checkout:not(.woocommerce-order-received) #primary { margin-top: 0 !important; padding-top: 12px !important; }
    body.woocommerce-checkout:not(.woocommerce-order-received) .site-main { padding-right: 16px !important; padding-left: 16px !important; padding-bottom: 32px !important; }
    body.woocommerce-checkout:not(.woocommerce-order-received) .content-container { padding-left: 0 !important; padding-right: 0 !important; }
    body.woocommerce-checkout:not(.woocommerce-order-received) article.entry { margin: 0 !important; width: 100% !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: #fff !important; }
    body.woocommerce-checkout:not(.woocommerce-order-received) .entry-content-wrap { padding: 0 !important; }
    body.woocommerce-checkout:not(.woocommerce-order-received) .entry-content { margin-top: 0 !important; }
    body.woocommerce-checkout:not(.woocommerce-order-received) .back-to-top,
    body.woocommerce-checkout:not(.woocommerce-order-received) #rb-chat-fab-container { display: none !important; }
    body.woocommerce-checkout .ph-checkout-steps { padding: 10px 0 !important; border: 0; border-bottom: 1px solid #cbd5e1; border-radius: 0 !important; box-shadow: none; }
    body.woocommerce-checkout .ph-step-completed { min-height: 44px; }
    body.woocommerce-checkout .ph-mobile-summary-wrapper { border: 1px solid #cbd5e1; border-radius: 8px !important; box-shadow: none; }
    body.woocommerce-checkout .ph-mobile-summary-toggle { padding: 12px !important; align-items: center; color: #0f172a; background: #f8fafc; }
    body.woocommerce-checkout .ph-summary-toggle-left { gap: 6px; }
    body.woocommerce-checkout .ph-summary-toggle-label { font-size: 14px; line-height: 1.4; text-align: left; }
    body.woocommerce-checkout .ph-summary-toggle-total { font-size: 16px; font-variant-numeric: tabular-nums; }
    body.woocommerce-checkout .woocommerce-form-login-toggle,
    body.woocommerce-checkout .woocommerce-form-coupon-toggle { margin-bottom: 8px !important; }
    body.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info,
    body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info { padding: 0 !important; min-height: 44px; background: #fff !important; border: 0 !important; box-shadow: none !important; gap: 8px !important; flex-wrap: nowrap !important; }
    body.woocommerce-checkout .ph-checkout-subtle-toggle { font-size: 13px !important; line-height: 1.4; min-width: 0; }
    body.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info a.showlogin,
    body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info a.showcoupon { min-height: 44px !important; padding: 10px 12px !important; margin: 0 !important; box-shadow: none !important; }
    body.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info a.showlogin::after { content: none; }
    body.woocommerce-checkout #customer_details .col-1,
    body.woocommerce-checkout #customer_details .col-2 { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 16px 0 !important; margin-bottom: 8px !important; }
    body.woocommerce-checkout #customer_details h3 { font-size: 20px !important; line-height: 1.4; padding-bottom: 12px !important; margin: 0 0 20px !important; max-width: 100%; }
    body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
    body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
    body.woocommerce-checkout .woocommerce-additional-fields__field-wrapper { gap: 12px !important; }
    body.woocommerce-checkout .form-row label { line-height: 1.4; margin-bottom: 4px !important; }
    body.woocommerce-checkout .form-row input.input-text,
    body.woocommerce-checkout .form-row select,
    body.woocommerce-checkout .select2-container--default .select2-selection--single { min-height: 44px !important; height: 44px !important; font-size: 16px !important; padding: 8px 10px !important; }
    body.woocommerce-checkout .form-row textarea { min-height: 88px !important; height: 88px !important; font-size: 16px !important; }
    body.woocommerce-checkout .form-row input::placeholder,
    body.woocommerce-checkout .form-row textarea::placeholder { color: #475569; opacity: 1; }
    body.woocommerce-checkout .form-row .woocommerce-form__label-for-checkbox { display: flex !important; align-items: center; gap: 10px; min-height: 44px; }
    body.woocommerce-checkout input[type="checkbox"] { width: 20px; height: 20px; flex-shrink: 0; accent-color: #b91c1c; }
    body.woocommerce-checkout .ph-checkout-review-header { padding: 12px 0 !important; border-radius: 0; box-shadow: none; gap: 8px; }
    body.woocommerce-checkout .ph-checkout-add-products-btn { min-height: 44px; }
    body.woocommerce-checkout #order_review { border: 0 !important; border-radius: 0 !important; padding: 0 !important; box-shadow: none !important; }
    body.woocommerce-checkout #order_review::before { display: none; }
    body.woocommerce-checkout #order_review .ph-zv-order-item { padding: 16px 0; }
    body.woocommerce-checkout #order_review .ph-zv-order-name { font-size: 15px; line-height: 1.5; }
    body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th { color: #334155 !important; }
    body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-total th,
    body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-total td { font-size: 20px !important; }
    body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method { padding: 4px 12px !important; border-radius: 8px !important; box-shadow: none !important; }
    body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label { min-height: 48px; }
    body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method div.payment_box { border: 0 !important; padding: 0 0 12px !important; margin: 0 !important; background: transparent !important; box-shadow: none !important; font-size: 14px !important; color: #334155 !important; }
    body.woocommerce-checkout #payment .place-order { padding: 0 !important; }
    body.woocommerce-checkout #payment .checkout-trust-badges { margin: 16px 0 !important; padding: 12px !important; border: 0; border-radius: 0; background: transparent; }
    body.woocommerce-checkout #payment .trust-badges-title { font-size: 14px; margin: 0 0 10px !important; }
    body.woocommerce-checkout #payment .trust-badges-list { gap: 20px; }
    body.woocommerce-checkout #payment .trust-badge { flex-direction: row; gap: 5px; }
    body.woocommerce-checkout #payment .trust-badge svg { width: 18px; height: 18px; color: #166534; }
    body.woocommerce-checkout #payment .trust-badge span { color: #334155; }
    body.woocommerce-checkout #place_order { width: 100% !important; min-height: 52px !important; background: #b91c1c !important; color: #fff !important; font-weight: 700; border-radius: 8px; }
    body.woocommerce-checkout .woocommerce-error { padding: 16px 16px 16px 32px !important; border: 1px solid #b91c1c !important; border-radius: 8px; box-shadow: none; }
    body.woocommerce-checkout :is(a,button,input,select,textarea):focus-visible { outline: 2px solid #b91c1c !important; outline-offset: 3px; }
}
@media (max-width: 360px) {
    body.woocommerce-checkout .ph-mobile-summary-toggle { flex-wrap: wrap; }
    body.woocommerce-checkout .ph-summary-toggle-right { width: 100%; text-align: right; }
    body.woocommerce-checkout .ph-step-item.ph-step-active .ph-step-text { white-space: normal; }
}

/* Explicit checkout surfaces also cover transparent wrapper gaps in mobile Safari. */
@media (max-width: 768px) {
    body.woocommerce-checkout:not(.woocommerce-order-received) { color-scheme: light; }
    body.woocommerce-checkout:not(.woocommerce-order-received) .rb-util-bar { display: none !important; }
    body.woocommerce-checkout:not(.woocommerce-order-received) #masthead.rb-masthead { min-height: 60px !important; height: 60px !important; }
    body.woocommerce-checkout:not(.woocommerce-order-received) #wrapper { padding-top: 60px !important; background: #fff !important; }
    body.woocommerce-checkout:not(.woocommerce-order-received) #inner-wrap,
    body.woocommerce-checkout:not(.woocommerce-order-received) .entry-content,
    body.woocommerce-checkout:not(.woocommerce-order-received) .entry-content > .woocommerce,
    body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-notices-wrapper,
    body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-form-login-toggle,
    body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-form-coupon-toggle { background: #fff !important; background-image: none !important; color: #0f172a; }
    body.woocommerce-checkout:not(.woocommerce-order-received) .ph-mobile-summary-wrapper { background: #fff !important; }
    body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-form-login-toggle .woocommerce-info,
    body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-form-coupon-toggle .woocommerce-info { display: grid !important; grid-template-columns: minmax(0, 1fr) 110px; gap: 8px !important; border-radius: 0 !important; }
    body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-info > .ph-checkout-subtle-toggle { display: flex !important; }
    body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-info a.showlogin,
    body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-info a.showcoupon { width: 110px; box-sizing: border-box; justify-self: end; }
    body.woocommerce-checkout:not(.woocommerce-order-received) .ph-checkout-header-wrapper { margin-bottom: 8px !important; }
    body.woocommerce-checkout:not(.woocommerce-order-received) .ph-checkout-steps { padding: 0 0 8px !important; }
}

/* Checkout item edits use existing session totals and retain the billing form. */
.ph-zv-order-edit { display: none; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ph-zv-checkout-edit-ready .ph-zv-order-edit { display: flex; }
.ph-zv-order-edit label { color: #334155; font-size: 14px; }
.woocommerce-checkout .ph-zv-order-edit input.ph-zv-order-qty { width: 64px; min-width: 64px; height: 44px; padding: 8px; font-size: 16px; color: #0f172a; background: #fff; border: 1px solid #94a3b8; border-radius: 6px; }
.ph-zv-order-edit button { min-height: 44px; padding: 8px 12px; font-size: 14px; font-weight: 600; color: #fff; background: #0f172a; border: 1px solid #0f172a; border-radius: 6px; }
.ph-zv-order-edit button.ph-zv-order-remove { color: #991b1b; background: #fff; border-color: #cbd5e1; }
.ph-zv-order-edit button:disabled { opacity: .55; cursor: wait; }
.ph-zv-checkout-edit-feedback { margin: 8px 0 12px; color: #334155; font-size: 14px; }
.ph-zv-checkout-edit-feedback > a { display: inline-flex; min-height: 44px; align-items: center; color: #991b1b; text-decoration: underline; }
#ph-zv-checkout-status { margin: 0; color: #334155; }
#ph-zv-checkout-status.is-error { color: #991b1b; }

/* Public product sharing, placed after purchase controls. */
body.single-product .ph-zv-product-sharing { margin: 16px 0; border-top: 1px solid #cbd5e1; border-bottom: 1px solid #cbd5e1; color: #0f172a; background: #fff; }
body.single-product .ph-zv-product-sharing > summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 0; font-size: 14px; font-weight: 600; cursor: pointer; }
body.single-product .ph-zv-product-sharing > summary svg { flex-shrink: 0; }
body.single-product .ph-zv-share-panel { padding: 0 0 14px; }
body.single-product .ph-zv-share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
body.single-product .ph-zv-share-actions > a,
body.single-product .ph-zv-share-actions > button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; height: 44px; box-sizing: border-box; padding: 8px 12px !important; border: 1px solid #94a3b8; border-radius: 6px !important; color: #0f172a !important; background: #fff !important; font-size: 14px !important; font-weight: 600; text-decoration: none !important; cursor: pointer; line-height: 1.4; }
body.single-product .ph-zv-share-actions > [hidden],
body.single-product .ph-zv-share-link[hidden] { display: none !important; }
body.single-product .ph-zv-share-help,
body.single-product .ph-zv-share-status { font-size: 13px; line-height: 1.5; color: #334155; margin: 12px 0 0; }
body.single-product .ph-zv-share-link { display: block; margin-top: 12px; color: #334155; font-size: 13px; }
body.single-product .ph-zv-share-link input { width: 100%; max-width: 100%; min-width: 0; min-height: 44px; font-size: 16px; color: #0f172a; background: #fff; border: 1px solid #94a3b8; box-sizing: border-box; }
body.single-product .ph-zv-product-sharing :is(summary,a,button,input):focus-visible { outline: 2px solid #b91c1c; outline-offset: 3px; }

body.single-product:has(.ph-zv-product-sharing[open]) #sticky-add-to-cart { display: none !important; }

/* Consistent commerce surfaces and compact, icon-first product sharing. */
body:is(.single-product,.woocommerce-shop,.tax-product_cat,.tax-product_tag) { color-scheme: light; background: #fff; }
body:is(.single-product,.woocommerce-shop,.tax-product_cat,.tax-product_tag) #inner-wrap,
body:is(.single-product,.woocommerce-shop,.tax-product_cat,.tax-product_tag) #primary,
body:is(.single-product,.woocommerce-shop,.tax-product_cat,.tax-product_tag) .content-bg,
body.single-product .summary.entry-summary,
body.single-product .woocommerce-tabs,
body.single-product .woocommerce-Tabs-panel,
body.single-product .ph-pp-overview { background: #fff !important; color: #334155 !important; }
body.single-product .woocommerce-Tabs-panel { padding: 20px 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
body.single-product .ph-pp-overview p { color: #334155 !important; font-size: 16px; line-height: 1.7; }
body.single-product .woocommerce-Tabs-panel :is(h2,h3,h4) { color: #0f172a !important; max-width: 100%; }
body.single-product .summary.entry-summary { position: relative; }
body.single-product div.product .summary .product_title { padding-right: 56px !important; max-width: 100%; }
.ph-zv-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
body.single-product .summary .ph-zv-product-sharing { position: absolute; top: 0; right: 0; z-index: 30; margin: 0; border: 0; background: transparent; }
body.single-product .summary .ph-zv-product-sharing > summary { width: 44px; height: 44px; min-height: 44px; padding: 0; display: flex; justify-content: center; border: 1px solid #cbd5e1; border-radius: 50%; color: #0f172a; background: #fff; list-style: none; }
body.single-product .ph-zv-product-sharing > summary::-webkit-details-marker { display: none; }
body.single-product .summary .ph-zv-share-panel { position: absolute; top: 52px; right: 0; width: min(288px,calc(100vw - 48px)); padding: 16px; box-sizing: border-box; border-radius: 12px; background: #fff; box-shadow: 0 8px 32px rgba(15,23,42,.2); }
body.single-product .summary .ph-zv-share-actions { display: grid; grid-template-columns: repeat(4,44px); justify-content: space-between; gap: 12px 8px; }
body.single-product .summary .ph-zv-share-actions > :is(a,button) { width: 44px; height: 44px; padding: 10px !important; min-width: 44px; border: 1px solid #e2e8f0; border-radius: 50% !important; }
body.single-product .ph-zv-share-actions img { width: 22px; height: 22px; object-fit: contain; margin: 0; }
body.single-product .ph-zv-share-link input { padding: 8px; }
body.ph-pp-page .summary form.ph-pp-pills-ready select.ph-pp-select-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; clip: rect(0,0,0,0) !important; clip-path: inset(50%) !important; overflow: hidden !important; border: 0 !important; }
body.ph-pp-page .summary form.cart .ph-pp-pill { border-radius: 6px; }
body.ph-pp-page .summary .ph-pp-pill--on { color: #fff !important; background: #0f172a !important; border-color: #0f172a !important; }
body.single-product #sticky-add-to-cart { padding: 10px 20px calc(10px + env(safe-area-inset-bottom,0px)); border-top: 1px solid #cbd5e1; box-shadow: none; }
body.single-product #sticky-add-to-cart .sticky-cart-content { flex-direction: row; gap: 12px; }
body.single-product #sticky-add-to-cart .sticky-cart-product { min-width: 0; width: auto; flex: 1; gap: 10px; }
body.single-product #sticky-add-to-cart .sticky-cart-thumb { width: 40px; height: 40px; object-fit: contain; }
body.single-product #sticky-add-to-cart .sticky-cart-info { min-width: 0; }
body.single-product #sticky-add-to-cart .sticky-cart-name { font-size: 12px; max-width: 32vw; }
body.single-product #sticky-add-to-cart .sticky-cart-price { font-size: 16px; color: #0f172a; }
body.single-product #sticky-add-to-cart .sticky-cart-actions { width: auto; flex-shrink: 0; }
body.single-product .ph-zv-sticky-buy { min-height: 44px; padding: 10px 16px !important; font-size: 14px !important; font-weight: 700; color: #fff !important; background: #b91c1c !important; border: 0; border-radius: 8px !important; white-space: nowrap; }

/* Product cards share one image plane and a predictable reading order. */
body.woocommerce ul.products li.product { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: #fff !important; overflow: visible !important; }
body.woocommerce ul.products li.product:hover { transform: none !important; box-shadow: none !important; }
body.woocommerce ul.products li.product .woocommerce-loop-image-link { width: 100% !important; aspect-ratio: 1 / 1 !important; border: 0 !important; border-radius: 10px; background: #f5f6f7 !important; overflow: hidden !important; }
body.woocommerce ul.products li.product .woocommerce-loop-image-link img { height: 100% !important; width: 100% !important; object-fit: contain !important; margin: 0 !important; }
body.woocommerce ul.products li.product .product-details.entry-content-wrap { position: static !important; margin: 0 !important; transform: none !important; width: 100% !important; padding: 12px 0 0 !important; border: 0 !important; border-radius: 0 !important; text-align: left !important; background: #fff !important; }
body.woocommerce ul.products li.product .woocommerce-loop-product__title { order: 1; font-size: 15px !important; line-height: 1.45 !important; min-height: 2.9em !important; margin: 0 0 8px !important; text-align: left !important; }
body.woocommerce ul.products li.product .price { order: 2; font-size: 17px !important; font-weight: 700 !important; flex-wrap: wrap; margin: 0 0 8px !important; gap: 4px !important; text-align: left !important; }
body.woocommerce ul.products li.product .star-rating { order: 3; margin: 0 0 10px !important; float: none !important; font-size: 12px !important; }
body.woocommerce ul.products li.product .ph-shop-card-wholesale-hint { order: 4; font-size: 12px; margin-bottom: 12px; }
body.woocommerce ul.products li.product .product-action-wrap { order: 5; position: static !important; opacity: 1 !important; visibility: visible !important; transform: none !important; padding-top: 4px !important; }
body.woocommerce ul.products li.product a.button { position: static !important; opacity: 1 !important; visibility: visible !important; transform: none !important; min-height: 44px !important; padding: 8px 10px !important; font-size: 14px !important; line-height: 1.4 !important; letter-spacing: 0 !important; text-transform: none !important; border-radius: 6px !important; background: #0f172a !important; color: #fff !important; }
body.woocommerce ul.products li.product a.button .kadence-arrow-right-alt-svg { display: none !important; }
body.woocommerce ul.products li.product .onsale { border-radius: 4px !important; box-shadow: none !important; font-size: 11px !important; }
@media (max-width: 600px) {
    body:is(.single-product,.woocommerce-shop,.tax-product_cat,.tax-product_tag) .rb-util-bar { display: none !important; }
    body:is(.single-product,.woocommerce-shop,.tax-product_cat,.tax-product_tag) #masthead.rb-masthead { height: 104px !important; min-height: 104px !important; }
    body:is(.single-product,.woocommerce-shop,.tax-product_cat,.tax-product_tag) #wrapper { padding-top: 104px !important; }
    body:is(.single-product,.woocommerce-shop,.tax-product_cat,.tax-product_tag) .back-to-top { display: none !important; }
    body:is(.single-product,.woocommerce-shop,.tax-product_cat,.tax-product_tag) #ph-floating-cart { display: none !important; }
    body.single-product:has(#sticky-add-to-cart.visible) #rb-chat-fab-container { display: none !important; }
    body:is(.single-product,.woocommerce-shop,.tax-product_cat,.tax-product_tag) .rb-chat-fab { width: 44px !important; height: 44px !important; }
    body.woocommerce ul.products { gap: 24px 12px !important; }
    body.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 14px !important; }
    body.woocommerce ul.products li.product .price { font-size: 15px !important; }
    body.woocommerce ul.products li.product .ph-shop-card-wholesale-hint { display: none; }
    body.woocommerce ul.products li.product a.button { font-size: 13px !important; }
    body.single-product #primary { padding-bottom: 90px; }
    body.single-product #sticky-add-to-cart { padding-left: 12px; padding-right: 12px; }
    body.single-product #sticky-add-to-cart .sticky-cart-thumb { display: none; }
    body.single-product #sticky-add-to-cart .sticky-cart-name { max-width: 40vw; }
    body.single-product #sticky-add-to-cart .sticky-cart-price { font-size: 14px; }
    body.single-product .woocommerce-tabs ul.tabs { display: flex !important; overflow-x: auto; white-space: nowrap; padding: 0 !important; }
    body.single-product .woocommerce-tabs ul.tabs li { flex: 0 0 auto; margin: 0 !important; border-radius: 0 !important; }
    body.single-product .woocommerce-tabs ul.tabs li a { padding: 12px 16px !important; font-size: 14px; }
}

/* Final alignment pass: reserve one rating row, keep purchase actions close. */
body.woocommerce ul.products li.product .product-details.entry-content-wrap { display: grid !important; grid-template-columns: minmax(0,1fr); grid-template-rows: 44px minmax(22px,auto) 18px 44px; gap: 8px; align-items: start; }
body.woocommerce ul.products li.product .woocommerce-loop-product__title { grid-row: 1; margin: 0 !important; }
body.woocommerce ul.products li.product .price { grid-row: 2; margin: 0 !important; justify-content: flex-start !important; align-self: start; }
body.woocommerce ul.products li.product .star-rating { grid-row: 3; margin: 0 !important; }
body.woocommerce ul.products li.product .ph-shop-card-wholesale-hint { display: none; }
body.woocommerce ul.products li.product .product-action-wrap { grid-row: 4; width: 100%; margin: 0 !important; padding: 0 !important; }
body.woocommerce ul.products li.product a.button { width: 100% !important; height: 44px; box-sizing: border-box; margin: 0 !important; }
body.single-product .summary .ph-zv-product-sharing > summary { box-sizing: border-box; }
body.ph-pp-page .summary .single_add_to_cart_button { min-height: 48px; background: #b91c1c !important; color: #fff !important; border-radius: 6px !important; }
body.ph-pp-page .summary .single_add_to_cart_button.disabled { background: #e2e8f0 !important; color: #475569 !important; opacity: 1 !important; }
@media (max-width: 600px) {
    body.ph-pp-page .summary table.variations th.label label { margin: 0 !important; padding: 0 !important; line-height: 1.4; font-size: 14px; }
    body.ph-pp-page .summary table.variations td.value { display: flex !important; flex-direction: column; align-items: flex-start; gap: 4px; }
    body.ph-pp-page .summary table.variations .ph-pp-pills { order: 1; }
    body.ph-pp-page .summary table.variations .reset_variations { order: 2; font-size: 13px; min-height: 32px; }
    body.ph-pp-page .summary table.variations .reset_variations[style*="hidden"] { display: none !important; }
}

/* Gallery overlay must sit above fixed site chrome, with a persistent Close control. */
body.single-product .pswp { z-index: 100100 !important; }
body.single-product .pswp .pswp__top-bar { opacity: 1 !important; visibility: visible !important; height: calc(68px + env(safe-area-inset-top,0px)); background: rgba(0,0,0,.65); }
body.single-product .pswp .pswp__button--close { position: absolute !important; top: calc(12px + env(safe-area-inset-top,0px)) !important; right: calc(12px + env(safe-area-inset-right,0px)) !important; width: 44px !important; height: 44px !important; padding: 0 !important; opacity: 1 !important; border: 0 !important; border-radius: 50% !important; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%230f172a' stroke-width='2'%3E%3Cpath d='m6 6 12 12M18 6 6 18'/%3E%3C/svg%3E") center / 24px 24px no-repeat !important; z-index: 2; }
body.single-product .pswp .pswp__button--fs,
body.single-product .pswp .pswp__button--share { display: none !important; }
body.single-product .pswp .pswp__button--zoom { position: absolute; top: calc(12px + env(safe-area-inset-top,0px)); right: calc(68px + env(safe-area-inset-right,0px)); }
body.single-product .pswp .pswp__button--close:focus-visible { outline: 3px solid #fff !important; outline-offset: 4px; }

/* The same stepper component across product, drawer, cart and checkout. */
body .ph-zv-quantity { display: inline-flex !important; align-items: center; flex: 0 0 auto; width: 132px !important; height: 44px; padding: 0 !important; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; box-sizing: content-box; overflow: hidden; }
body .ph-zv-quantity > button { display: inline-flex !important; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px !important; min-width: 44px !important; height: 44px !important; min-height: 44px !important; padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; background: #fff !important; color: #0f172a !important; box-shadow: none !important; }
body .ph-zv-quantity > input { display: block !important; flex: 0 0 44px; width: 44px !important; min-width: 44px !important; max-width: 44px !important; height: 44px !important; min-height: 44px !important; padding: 4px 0 !important; margin: 0 !important; border: 0 !important; border-left: 1px solid #e2e8f0 !important; border-right: 1px solid #e2e8f0 !important; border-radius: 0 !important; background: #fff !important; color: #0f172a !important; font-size: 16px !important; text-align: center !important; box-sizing: border-box; appearance: textfield; -moz-appearance: textfield; }
body .ph-zv-quantity input::-webkit-inner-spin-button,
body .ph-zv-quantity input::-webkit-outer-spin-button { appearance: none; margin: 0; }
body .ph-zv-quantity button:disabled { color: #64748b !important; background: #f8fafc !important; cursor: default; }
body .ph-zv-quantity :is(input,button):focus-visible { outline: 2px solid #b91c1c !important; outline-offset: -3px; }
body .cart-drawer-item-qty-control { border: 0; padding: 0; background: transparent; height: auto !important; overflow: visible !important; }
body .ph-zv-order-edit > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
body.ph-zv-quantity-ready .woocommerce-cart-form button[name="update_cart"] { display: none !important; }
body.ph-zv-quantity-ready .ph-zv-order-update { display: none !important; }
#ph-zv-quantity-feedback { color: #334155; font-size: 14px; line-height: 1.5; }
#ph-zv-quantity-feedback.is-error { color: #991b1b; }

/* Per-product checkout selection, with unselected products retained for later. */
.ph-zv-selection-toolbar { margin: 0 0 20px; padding: 12px 0; border-bottom: 1px solid #cbd5e1; color: #334155; }
.ph-zv-selection-toolbar > label,
.ph-zv-cart-item-select { display: inline-flex; min-height: 44px; min-width: 44px; align-items: center; gap: 10px; cursor: pointer; vertical-align: middle; }
.ph-zv-selection-toolbar input[type="checkbox"],
.ph-zv-cart-item-select input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: #b91c1c; cursor: pointer; }
.ph-zv-selection-toolbar p { margin: 4px 0; font-size: 14px; line-height: 1.5; }
.ph-zv-cart-not-selected td { background: #f8fafc !important; }
.ph-zv-selection-summary { display: none; margin-bottom: 16px; color: #334155; }
.ph-zv-partial-cart-selection .ph-zv-selection-summary { display: block; }
.ph-zv-partial-cart-selection .cart_totals > h2,
.ph-zv-partial-cart-selection .cart_totals > table,
.ph-zv-partial-cart-selection .cart_totals .shipping-calculator-form { display: none !important; }
.ph-zv-selection-summary h2 { color: #0f172a; max-width: 100%; }
.ph-zv-selection-summary > p { font-size: 15px; line-height: 1.5; }
.ph-zv-selection-subtotal { display: block; color: #0f172a; font-size: 22px; margin-top: 6px; }
.ph-zv-selection-summary .ph-zv-selection-note { font-size: 13px; }
.woocommerce-cart .checkout-button[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.ph-zv-selection-status.is-error { color: #991b1b; }
.ph-zv-saved-cart-note { padding: 12px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; color: #334155; font-size: 14px; line-height: 1.5; }
.ph-zv-saved-cart-note > a { color: #991b1b; text-decoration: underline; }
.woocommerce-cart .ph-zv-selection-toolbar p { margin: 6px 0 !important; font-size: 14px !important; line-height: 1.5 !important; }
.woocommerce-cart .checkout-button { min-height: 48px; border-radius: 6px !important; background: #b91c1c !important; color: #fff !important; font-size: 16px !important; }
@media (max-width: 768px) {
    .woocommerce-cart .woocommerce-cart-form tr.cart_item td.product-remove { display: flex !important; align-items: center; justify-content: space-between; padding: 8px 0 !important; text-align: left !important; }
    .woocommerce-cart .woocommerce-cart-form td.product-remove::before { display: none !important; }
    .woocommerce-cart .woocommerce-cart-form .ph-zv-cart-item-select { width: 44px; min-width: 44px; margin: 0; }
    .woocommerce-cart .woocommerce-cart-form td.product-remove a.remove { display: inline-flex !important; align-items: center; justify-content: center; position: static !important; float: none !important; margin: 0 !important; width: 44px !important; height: 44px !important; }
}

/* One compact checkout context row replaces the separate link and saved-item box. */
.woocommerce-checkout .ph-zv-checkout-edit-feedback { margin: 12px 0 20px; }
.woocommerce-checkout .ph-zv-checkout-context { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; color: #0f172a; }
.woocommerce-checkout .ph-zv-checkout-context-icon { flex: 0 0 20px; color: #475569; }
.woocommerce-checkout .ph-zv-checkout-context-copy { flex: 1; min-width: 0; }
.woocommerce-checkout .ph-zv-checkout-context-copy strong { display: block; margin: 0; color: #0f172a; font-size: 14px; font-weight: 600; line-height: 1.4; }
.woocommerce-checkout .ph-zv-checkout-context-copy span { display: block; margin-top: 3px; color: #475569; font-size: 13px; line-height: 1.4; }
.woocommerce-checkout a.ph-zv-checkout-edit-action { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0; min-height: 44px; padding: 0 4px; color: #991b1b !important; background: transparent; font-size: 14px; font-weight: 600; text-decoration: none !important; }
.woocommerce-checkout a.ph-zv-checkout-edit-action:focus-visible { outline: 2px solid #991b1b; outline-offset: 3px; }
.woocommerce-checkout #ph-zv-checkout-status:empty { display: none; }
.woocommerce-checkout #ph-zv-checkout-status:not(:empty) { margin: 8px 0 0; font-size: 13px; line-height: 1.5; }
@media (max-width: 360px) { .woocommerce-checkout .ph-zv-checkout-context-icon { display: none; } }
@media (min-width: 992px) { .woocommerce-checkout .ph-zv-checkout-edit-feedback { max-width: calc(100% - 420px - 2.5rem); } }
/* Checkout has one add-products entry per layout: sidebar on desktop, summary on mobile. */
@media (max-width: 991px) { .woocommerce-checkout .ph-checkout-review-header .ph-checkout-add-products-btn { display: none !important; } }
@media (min-width: 992px) { .woocommerce-checkout .ph-checkout-col-sidebar { top: 152px !important; } }

/* Start desktop order review alongside the account/coupon controls, not beneath them. */
.woocommerce-checkout .ph-zv-checkout-prelude { display: flow-root; }
body.woocommerce-checkout .ph-zv-checkout-frame .ph-zv-checkout-prelude > * { max-width: 100% !important; width: 100%; box-sizing: border-box; }
@media (min-width: 992px) {
    .woocommerce-checkout .ph-zv-checkout-frame { display: grid; grid-template-columns: minmax(0,1fr) 420px; column-gap: 2.5rem; align-items: start; }
    .woocommerce-checkout .ph-zv-checkout-prelude { grid-column: 1; grid-row: 1; position: relative; z-index: 1; align-self: start; min-width: 0; }
    .woocommerce-checkout .ph-zv-checkout-frame > form.checkout { grid-column: 1 / -1; grid-row: 1; margin-top: 0 !important; min-width: 0; }
    .woocommerce-checkout .ph-zv-checkout-frame .ph-checkout-col-main { padding-top: var(--ph-checkout-prelude-height,200px); }
}

/* Coupon disclosure is part of the review, not a separate notice/card. */
body.woocommerce-checkout #order_review > .woocommerce-form-coupon-toggle {
    width: 100%; max-width: 100% !important; margin: 0 0 12px; padding: 0;
}
body.woocommerce-checkout #order_review .woocommerce-form-coupon-toggle .woocommerce-info {
    display: block !important; padding: 0 !important; margin: 0 !important;
    background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
}
body.woocommerce-checkout #order_review .woocommerce-form-coupon-toggle .woocommerce-info a.showcoupon {
    display: flex !important; justify-content: flex-start !important; justify-self: start !important; text-align: left !important; gap: 8px !important;
    width: fit-content !important; min-height: 44px; margin: 0 !important; padding: 0 !important;
    background: transparent !important; color: #334155 !important; border: 0 !important;
    border-radius: 0 !important; box-shadow: none !important; font-size: 14px !important;
    font-weight: 500 !important; text-decoration: none !important;
}
body.woocommerce-checkout #order_review a.showcoupon svg { transition: transform .2s ease; }
body.woocommerce-checkout #order_review a.showcoupon[aria-expanded="true"] svg { transform: rotate(180deg); }
body.woocommerce-checkout #order_review > .ph-zv-review-coupon {
    width: 100%; max-width: 100% !important; box-sizing: border-box;
    margin: 0 0 20px !important; padding: 0 !important; border: 0 !important; background: transparent !important;
}
body.woocommerce-checkout #order_review .ph-zv-review-coupon label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 500; color: #334155; }
body.woocommerce-checkout #order_review .ph-zv-coupon-fields { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: start; }
body.woocommerce-checkout #order_review .ph-zv-review-coupon input {
    width: 100% !important; min-width: 0; height: 44px !important; min-height: 44px; margin: 0 !important;
    padding: 10px 12px !important; border: 1px solid #94a3b8 !important; border-radius: 6px !important;
    font-size: 16px !important; background: #fff; color: #0f172a; box-sizing: border-box;
}
body.woocommerce-checkout #order_review .ph-zv-review-coupon button[name="apply_coupon"] {
    width: auto !important; height: 44px !important; min-height: 44px; margin: 0 !important;
    padding: 10px 16px !important; border: 1px solid #cbd5e1 !important; border-radius: 6px !important;
    background: #f8fafc !important; color: #0f172a !important; font-size: 14px !important; font-weight: 600;
    box-shadow: none !important;
}
body.woocommerce-checkout #order_review .ph-zv-coupon-feedback:not(:empty) { margin: 0 0 16px; color: #163b2c; font-size: 13px; line-height: 1.5; }
body.woocommerce-checkout #order_review .ph-zv-coupon-feedback.is-error { color: #9d2424; }
body.woocommerce-checkout #order_review .ph-zv-review-coupon button:disabled { opacity: .6; cursor: wait; }
body.woocommerce-checkout #order_review a.showcoupon:focus-visible,
body.woocommerce-checkout #order_review .ph-zv-review-coupon :focus-visible { outline: 2px solid #334155; outline-offset: 3px; }
body.woocommerce-checkout .ph-zv-checkout-frame:has(> form.checkout.processing) .ph-zv-checkout-prelude { pointer-events: none; opacity: .6; }
@media (prefers-reduced-motion: reduce) { body.woocommerce-checkout #order_review a.showcoupon svg { transition: none; } }

/* Validation notices need their own row below the account/cart context. */
@media (min-width: 992px) {
    body.woocommerce-checkout .ph-zv-checkout-frame > form.checkout:has(> .woocommerce-NoticeGroup, > .woocommerce-error) {
        margin-top: var(--ph-checkout-prelude-height, 200px) !important;
    }
    body.woocommerce-checkout .ph-zv-checkout-frame > form.checkout:has(> .woocommerce-NoticeGroup, > .woocommerce-error) .ph-checkout-col-main {
        padding-top: 0;
    }
}
@media (max-width: 639px) {
    body.woocommerce-checkout .woocommerce-NoticeGroup-checkout .woocommerce-error li {
        display: flex !important;
        width: 100%;
        box-sizing: border-box;
    }
}
