/* ============================================================ */
/* Sticky bar  (source: hl-product.php lines 4132-4189) */
/* ============================================================ */

/* Bridge hides .crumbs on phone (≤480px) — re-show. Not sticky on
   desktop, so it scrolls out naturally on mobile too.
   Also revert full-width "See Other…" button on mobile to auto-width. */
@media (max-width:480px){html body .crumbs{display:flex !important}}
@media (max-width:768px){
  html body .sec-ctas{flex-direction:row !important;justify-content:center !important}
  html body .sec-ctas .link-btn{width:auto !important;flex:0 0 auto !important}
  /* Crumbs wrap to 2 lines on long part-types — let the row grow vertically
     instead of clipping at the fixed 40px the bridge sets on mobile. */
  html body .crumbs .wrap{height:auto !important;min-height:40px !important;align-items:center !important;padding-top:8px !important;padding-bottom:8px !important;line-height:1.4 !important}
  /* Lift the product h1 above the gallery on mobile (Amazon/eBay pattern).
     HTML source order stays gallery → info → h1 for SEO. */
  html body .hero-grid{display:flex !important;flex-direction:column !important;gap:8px !important;row-gap:8px !important}
  html body .hero-grid > .product-gallery{order:2 !important}
  html body .hero-grid > .product-info{display:contents !important}
  html body .hero-grid > .product-info > h1.title{order:1 !important;margin-bottom:14px !important}
  html body .hero-grid > .product-info > *:not(h1.title){order:3 !important}

  /* Halve the vertical padding/margin around the price-card on mobile. */
  html body .price-card{padding-top:14px !important;padding-bottom:14px !important;margin-top:14px !important;margin-bottom:0 !important}
  /* Center-align Ask Wrenchy + See Other rows and tighten their spacing.
     The flex-column hero-grid means text-align doesn't center inline-flex
     buttons — use align-self: center. Bridge has a -12px bottom margin
     override; we match its specificity to neutralize. */
  html body .ask-wrenchy-button-container,
  html body .beautified-product .ask-wrenchy-button-container{
    margin:8px 0 4px 0 !important;text-align:center !important;align-self:center !important;
  }
  html body .sec-ctas,
  html body .beautified-product .sec-ctas{
    margin:8px 0 0 0 !important;justify-content:center !important;align-self:center !important;
  }

  /* HL guarantee strip (.why-oem-banner): stack each stat full-width with
     thin green dividers between rows, and shrink the labels so
     "100% money-back" doesn't wrap to two lines. */
  html body .why-oem-banner{
    flex-direction:column !important;align-items:stretch !important;
    gap:0 !important;padding:8px 16px !important;
  }
  html body .why-oem-banner .gb-shield{align-self:center !important;margin-bottom:4px !important}
  html body .why-oem-banner .gb-stat{
    flex-direction:row !important;justify-content:center !important;
    align-items:baseline !important;gap:6px !important;
    width:100% !important;padding:8px 0 !important;text-align:center !important;
    white-space:nowrap !important;
  }
  html body .why-oem-banner .gb-stat b{font-size:14px !important;letter-spacing:-0.005em !important}
  html body .why-oem-banner .gb-stat em{margin-top:0 !important;font-size:10.5px !important;letter-spacing:.06em !important}
  html body .why-oem-banner .gb-sep{
    display:block !important;
    width:100% !important;height:1px !important;
    background:linear-gradient(90deg,transparent,rgba(16,185,129,.45),transparent) !important;
    margin:0 !important;
  }
}


/* ============================================================ */
/* h1 no-hyphen rule  (source: hl-product.php lines 4459-4462) */
/* ============================================================ */

                  /* No hyphenation or mid-word breaking on the product h1. */
                  h1.title { hyphens: none !important; -webkit-hyphens: none !important; word-break: keep-all !important; overflow-wrap: break-word !important; }
                

/* ============================================================ */
/* SEO-content article styles (.hl-seo-*)  (source: hl-product.php lines 6115-6366) */
/* ============================================================ */

                    /* Section Navigation - Desktop Only */
                    .hl-seo-nav {
                        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
                        border: 1px solid #e2e8f0;
                        border-radius: 12px;
                        padding: 16px 20px;
                        margin-bottom: 24px;
                        display: flex;
                        flex-wrap: wrap;
                        gap: 10px;
                        align-items: center;
                    }
                    .hl-seo-nav-label {
                        font-weight: 600;
                        color: #475569;
                        font-size: 14px;
                        margin-right: 8px;
                    }
                    .hl-seo-nav a {
                        display: inline-block;
                        padding: 6px 14px;
                        background: #fff;
                        border: 1px solid #cbd5e1;
                        border-radius: 20px;
                        color: #334155;
                        font-size: 13px;
                        font-weight: 500;
                        text-decoration: none;
                        transition: all 0.2s ease;
                        white-space: nowrap;
                    }
                    .hl-seo-nav a:hover {
                        background: #1e40af;
                        border-color: #1e40af;
                        color: #fff;
                        transform: translateY(-1px);
                        box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
                    }
                    @media (max-width: 900px) {
                        .hl-seo-nav { display: none; }
                    }
                    html { scroll-behavior: smooth; }
                    .hl-seo-card { scroll-margin-top: 20px; }

                    /* Style existing RTF HTML tables */
                    .rtf-table-scroll-wrapper {
                        overflow-x: auto;
                        margin: 16px 0;
                        border-radius: 8px;
                        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
                    }
                    .rtf-table-scroll-wrapper table,
                    .rtf-html-output table,
                    .section-content table {
                        width: 100%;
                        border-collapse: collapse;
                        font-size: 14px;
                        min-width: 400px;
                        background: #fff;
                        border-radius: 8px;
                        overflow: hidden;
                    }
                    .rtf-table-scroll-wrapper thead td,
                    .rtf-table-scroll-wrapper th,
                    .rtf-html-output thead td,
                    .rtf-html-output th,
                    .section-content thead td,
                    .section-content th {
                        background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%) !important;
                        color: #fff !important;
                        font-weight: 600;
                        padding: 12px 14px;
                        text-align: left;
                        border: none;
                        border-bottom: 2px solid #1e3a8a;
                    }
                    .rtf-table-scroll-wrapper thead td p,
                    .rtf-html-output thead td p,
                    .section-content thead td p,
                    .rtf-table-scroll-wrapper thead td strong,
                    .rtf-html-output thead td strong,
                    .section-content thead td strong,
                    .rtf-table-scroll-wrapper thead td p strong,
                    .rtf-html-output thead td p strong,
                    .section-content thead td p strong {
                        color: #fff !important;
                        margin: 0;
                    }
                    .rtf-table-scroll-wrapper tbody td,
                    .rtf-html-output tbody td,
                    .section-content tbody td {
                        padding: 11px 14px;
                        border-bottom: 1px solid #e2e8f0;
                        background: #fff;
                        vertical-align: top;
                        transition: background 0.15s ease;
                    }
                    .rtf-table-scroll-wrapper tbody tr:hover td,
                    .rtf-html-output tbody tr:hover td,
                    .section-content tbody tr:hover td {
                        background: #f0f9ff;
                    }
                    .rtf-table-scroll-wrapper tbody tr:last-child td,
                    .rtf-html-output tbody tr:last-child td,
                    .section-content tbody tr:last-child td {
                        border-bottom: none;
                    }
                    .rtf-table-scroll-wrapper tbody td:first-child,
                    .rtf-html-output tbody td:first-child,
                    .section-content tbody td:first-child {
                        font-weight: 500;
                        color: #334155;
                        background: #f8fafc;
                    }
                    .rtf-table-scroll-wrapper tbody tr:hover td:first-child,
                    .rtf-html-output tbody tr:hover td:first-child,
                    .section-content tbody tr:hover td:first-child {
                        background: #e0f2fe;
                    }
                    .hl-seo-grid {
                        column-count: 2;
                        column-gap: 20px;
                        margin-bottom: 30px;
                    }
                    .hl-seo-card {
                        background: #f8fafc;
                        border: 1px solid #e2e8f0;
                        border-radius: 12px;
                        padding: 20px 24px;
                        box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
                        transition: box-shadow 0.2s, transform 0.2s;
                        break-inside: avoid;
                        margin-bottom: 20px;
                    }
                    .hl-seo-card:hover {
                        box-shadow: inset 0 1px 2px rgba(0,0,0,0.03), 0 2px 8px rgba(0,0,0,0.04);
                    }
                    .hl-seo-card h3 {
                        color: #1e3a8a;
                        font-size: 1.35em;
                        font-weight: 700;
                        margin: -20px -24px 16px -24px;
                        padding: 14px 20px;
                        background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
                        border-bottom: 3px solid #3b82f6;
                        border-radius: 12px 12px 0 0;
                        display: flex;
                        align-items: center;
                        gap: 10px;
                        letter-spacing: -0.02em;
                    }
                    .hl-seo-card h3::before {
                        content: '';
                        width: 5px;
                        height: 22px;
                        background: linear-gradient(135deg, #3b82f6, #1d4ed8);
                        border-radius: 3px;
                        flex-shrink: 0;
                    }
                    .hl-seo-card .section-content {
                        font-size: 14px;
                        line-height: 1.7;
                        color: #4b5563;
                    }
                    .hl-seo-card .section-content p { margin-bottom: 10px; }
                    .hl-seo-card .section-content p:last-child { margin-bottom: 0; }
                    .hl-seo-card .section-content ul, .hl-seo-card .section-content ol {
                        margin: 10px 0 10px 20px;
                        padding-left: 10px;
                    }
                    .hl-seo-card .section-content li { margin-bottom: 6px; }
                    .hl-seo-card .section-content a { color: #2563eb; text-decoration: none; border-bottom: 1px dashed #93c5fd; }
                    .hl-seo-card .section-content a:hover { border-bottom-style: solid; }
                    .hl-seo-card .section-content strong { font-weight: 600; color: #1f2937; }
                    .hl-seo-card .rtf-table-scroll-wrapper { margin: 12px 0; }
                    .hl-seo-card .rtf-table-scroll-wrapper table { min-width: 100%; font-size: 13px; }

                    @media (max-width: 900px) {
                        .hl-seo-grid { column-count: 1; }
                        .hl-seo-card { padding: 14px 16px; }
                        .hl-seo-card h3 {
                            font-size: 1em;
                            cursor: pointer;
                            margin: -14px -16px 0 -16px;
                            padding: 12px 14px;
                            border-bottom: none;
                            border-radius: 12px 12px 0 0;
                        }
                        .hl-seo-card h3::after { content: '+'; margin-left: auto; font-size: 1.4em; font-weight: 300; color: #9ca3af; transition: transform 0.2s; }
                        .hl-seo-card.open h3::after { content: '−'; }
                        .hl-seo-card .section-content {
                            max-height: 0;
                            overflow: hidden;
                            margin-top: 0;
                            padding-top: 0;
                            opacity: 0;
                            transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.3s ease, padding-top 0.3s ease;
                        }
                        .hl-seo-card.open .section-content {
                            max-height: 2000px;
                            opacity: 1;
                            margin-top: 14px;
                            padding-top: 0;
                        }
                    }
                

/* ============================================================ */
/* SproutVideo lightbox  (source: hl-product.php lines 7219-7237) */
/* ============================================================ */

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Chat message animations */
@keyframes messageSlideIn {
    0% { opacity: 0; transform: translateY(20px) scale(0.95); }
    50% { transform: translateY(-3px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes messageSlideInFromRight {
    0%   { opacity: 0; transform: translate(24px, 8px) scale(0.95); }
    60%  { transform: translate(-2px, -1px) scale(1.02); }
    100% { opacity: 1; transform: translate(0, 0) scale(1); }
}
.chat-message-animate      { animation: messageSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.chat-message-animate-user { animation: messageSlideInFromRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }


/* ============================================================ */
/* Print-modal layout  (source: hl-product.php lines 10794-11329) */
/* ============================================================ */

/* Set-Based Modal Styles */
.set-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: background 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}
.set-modal-overlay.active {
    background: rgba(0, 0, 0, 0.6);
    opacity: 1;
    visibility: visible;
    padding: 16px;
    backdrop-filter: blur(4px);
}
.set-modal-container {
    background: white;
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}
.set-modal-overlay.active .set-modal-container {
    transform: scale(1) translateY(0);
}
.set-modal-close {
    width: 28px;
    height: 28px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}
.set-modal-close:hover {
    background: #e5e7eb;
    color: #374151;
}
.set-modal-header {
    padding: 14px 16px 10px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.set-modal-title {
    flex: 1;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}
.set-modal-subtitle {
    width: 100%;
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}
.set-modal-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #6b7280;
}
.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}
.legend-dot.new-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 2px 6px;
    background: #10b981;
    border-radius: 3px;
    color: white;
    font-size: 9px;
    font-weight: 600;
}
.legend-dot.reman-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    background: #0891b2;
    border-radius: 3px;
    color: white;
    font-size: 10px;
}
.set-modal-legend-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px dashed #cbd5e1;
    font-size: 11px;
}
.set-modal-legend-inline .legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
}
.set-modal-legend-inline .legend-item.legend-full-row {
    width: 100%;
}
/* Desktop: show full text versions */
.legend-text-short { display: none; }
.legend-text-full { display: inline; }
.text-short { display: none; }
.text-full { display: inline; }
.set-modal-units {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f3f4f6;
}
.set-modal-units::-webkit-scrollbar {
    width: 8px;
}
.set-modal-units::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
}
.set-modal-units::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}
.set-modal-units::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}
.set-modal-scroll-hint {
    text-align: center;
    padding: 6px 12px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(254,243,199,0.9));
    color: #92400e;
    font-size: 11px;
    font-weight: 500;
    border-top: 1px dashed #fcd34d;
}
.set-modal-scroll-hint span {
    background: #fef3c7;
    padding: 2px 10px;
    border-radius: 10px;
}
.set-modal-section-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 4px 4px;
    margin-top: 8px;
    border-top: 1px solid #e5e7eb;
}
.set-modal-section-header:first-child {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}
.set-section-label {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.set-section-count {
    font-size: 11px;
    color: #9ca3af;
}
.set-modal-section-header.other-grade .set-section-label {
    color: #6b7280;
}
.set-modal-section-header.same-vehicle-section {
    background: #ecfdf5;
    border-radius: 8px;
    padding: 8px 10px;
    border: 1px solid #a7f3d0;
}
.set-modal-section-header.same-vehicle-section .set-section-label {
    color: #047857;
}
.set-modal-unit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.set-modal-unit:hover {
    border-color: #fbbf24;
    background: #fffbeb;
}
.set-modal-unit.current {
    background: #fffbeb;
    border-color: #fbbf24;
}
.set-modal-unit.in-cart {
    background: #f0fdf4;
    border-color: #86efac;
    opacity: 0.8;
}
.set-modal-unit.in-cart input[type="checkbox"] {
    display: none;
}
.set-unit-incart-badge {
    font-size: 11px;
    font-weight: 700;
    color: #059669;
    background: #d1fae5;
    padding: 2px 8px;
    border-radius: 10px;
}
.set-modal-unit input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #f59e0b;
    cursor: pointer;
}
.set-unit-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.set-unit-condition {
    background: #6b7280;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}
.set-unit-condition.new {
    background: #10b981;
}
.set-unit-condition.reman {
    background: #0891b2;
}
.set-unit-mileage {
    color: #6b7280;
    font-size: 12px;
}
.set-unit-color {
    background: #e0e7ff;
    color: #4338ca;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.set-unit-current-badge {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.set-unit-vehicle-badge {
    background: #dcfce7;
    color: #166534;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.set-unit-price {
    font-weight: 700;
    color: #059669;
    font-size: 15px;
}
.set-unit-view {
    color: #3b82f6;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    white-space: nowrap;
}
.set-unit-view:hover {
    background: #eff6ff;
    color: #1d4ed8;
}
.set-modal-actions {
    padding: 16px 24px 24px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}
.set-modal-quick-btns {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.set-quick-btn {
    flex: 1;
    padding: 10px 8px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}
.set-quick-btn:hover {
    border-color: #fbbf24;
    background: #fffbeb;
}
.set-quick-btn.active {
    border-color: #f59e0b;
    background: #fef3c7;
    color: #92400e;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3);
}
.set-modal-footer {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}
.set-modal-summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6px 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}
#setModalCount {
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
}
.set-modal-total {
    font-size: 15px;
    font-weight: 700;
    color: #059669;
    white-space: nowrap;
}
.set-modal-actions-row {
    display: flex;
    flex: 1;
    gap: 6px;
    align-items: stretch;
    min-width: 0;
}
.set-modal-submit {
    flex: 1;
    min-width: 0;
    padding: 0 12px;
    height: 40px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.set-modal-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}
.set-modal-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.set-modal-viewcart {
    display: block;
    padding: 0 12px;
    height: 40px;
    line-height: 40px;
    background: #10b981;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
    transition: all 0.2s;
    box-sizing: border-box;
}
.set-modal-viewcart:hover {
    background: #059669;
    text-decoration: none;
    color: white;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .set-modal-overlay.active {
        padding: 8px 10px;
        align-items: flex-start;
        padding-top: 10px;
    }
    .set-modal-container {
        /* Fallback for older browsers */
        max-height: calc(100vh - 140px);
        /* Modern browsers: use small viewport height (excludes browser chrome) */
        max-height: calc(100svh - 80px);
        /* Dynamic viewport height as final override */
        max-height: calc(100dvh - 80px);
        /* JS-set custom property as ultimate fallback for iOS Safari */
        max-height: calc(var(--modal-vh, 100vh) - 80px);
        margin: 0;
        border-radius: 12px;
    }
    .set-modal-header {
        padding: 12px 14px 8px;
    }
    .set-modal-title {
        font-size: 16px;
    }
    .set-modal-units {
        padding: 12px;
    }
    .set-modal-unit {
        padding: 10px 12px;
    }
    /* Mobile: hide View text (show just arrow), shorter text, hide reman icon */
    .view-text { display: none; }
    .legend-text-full { display: none; }
    .legend-text-short { display: inline; }
    .text-full { display: none; }
    .text-short { display: inline; }
    .reman-icon { display: none; }
    .set-unit-info {
        gap: 4px;
    }
    .set-modal-actions {
        padding: 10px 14px 12px;
    }
    .set-modal-quick-btns {
        margin-bottom: 10px;
    }
    .set-quick-btn {
        padding: 8px 6px;
        font-size: 12px;
    }
    /* Footer: summary on top, buttons side by side below */
    .set-modal-footer {
        flex-direction: column;
        gap: 8px;
    }
    .set-modal-summary {
        flex-direction: row;
        gap: 8px;
        padding: 6px 12px;
        justify-content: center;
        align-self: center;
        width: auto;
    }
    .set-modal-actions-row {
        width: 100%;
        display: flex;
        gap: 8px;
    }
    .set-modal-submit {
        height: 44px;
        font-size: 14px;
    }
    .set-modal-viewcart {
        height: 44px;
        line-height: 44px;
        font-size: 12px;
        flex-shrink: 0;
    }
    /* Remove extra space when View Cart is hidden */
    .set-modal-viewcart[style*="display: none"] {
        display: none !important;
    }
}


