/**
 * WC Ajax Product Table Styles
 * Version: 1.8
 * Styled to match Stony Dry Cleaners booking page design
 */

:root {
    --apt-primary:       #003366;
    --apt-primary-hover: #004080;
    --apt-success:       #22c55e;
    --apt-success-hover: #16a34a;
    --apt-danger:        #ef4444;
    --apt-border:        #d1d5db;
    --apt-gray-50:       #f9fafb;
    --apt-gray-100:      #f3f4f6;
    --apt-gray-200:      #e5e7eb;
    --apt-gray-700:      #374151;
    --apt-gray-900:      #111827;
}

/* ---- Wrapper ---- */
.wc-apt-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 0 80px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---- Category Navigation ---- */
.wc-apt-category-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    background: var(--apt-gray-100);
    padding: 14px;
    border-radius: 10px;
}
.wc-apt-category-scroll { flex: 1; overflow: hidden; }
.wc-apt-category-buttons {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.wc-apt-category-buttons::-webkit-scrollbar { display: none; }

.wc-apt-category-btn {
    flex: 0 0 auto;
    padding: 11px 22px;
    background: var(--apt-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    opacity: 0.65;
}
.wc-apt-category-btn:hover { background: var(--apt-primary-hover); opacity: 1; transform: translateY(-1px); }
.wc-apt-category-btn.active { opacity: 1; box-shadow: 0 0 0 3px rgba(0,51,102,0.25); }

.wc-apt-nav-arrow {
    flex: 0 0 auto;
    width: 38px; height: 38px;
    background: var(--apt-primary);
    border: 2px solid var(--apt-primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.wc-apt-nav-arrow { min-width: 38px; min-height: 38px; padding: 0; overflow: visible; }
.wc-apt-nav-arrow svg { display: block !important; width: 20px !important; height: 20px !important; flex-shrink: 0; overflow: visible; }
.wc-apt-nav-arrow svg path { stroke: white !important; stroke-width: 2.5px !important; }
.wc-apt-nav-arrow:hover { background: var(--apt-primary-hover); border-color: var(--apt-primary-hover); }
.wc-apt-nav-arrow:disabled { opacity: 0.3; cursor: not-allowed; }

/* ---- Search ---- */
.wc-apt-search-wrapper { position: relative; margin-bottom: 24px; max-width: 500px; }
.wc-apt-search {
    width: 100%;
    padding: 13px 48px 13px 18px;
    border: 2px solid var(--apt-border);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
}
.wc-apt-search:focus { outline: none; border-color: var(--apt-primary); box-shadow: 0 0 0 3px rgba(0,51,102,0.1); }
.wc-apt-search-btn {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px;
    background: transparent; border: none; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--apt-gray-700); transition: all 0.2s ease;
}
.wc-apt-search-btn:hover { background: var(--apt-gray-100); color: var(--apt-primary); }

/* ---- Products Container ---- */
.wc-apt-products-container { position: relative; min-height: 200px; }
.wc-apt-products { display: flex; flex-direction: column; gap: 8px; }

/* ================================================================
   LIST / TABLE MODE (Select Items — default)
   ================================================================ */
.wc-apt-product-row {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    gap: 20px;
    align-items: center;
    padding: 18px 20px;
    background: white;
    border: 1px solid var(--apt-border);
    border-radius: 10px;
    transition: all 0.2s ease;
}
.wc-apt-product-row:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); border-color: var(--apt-primary); }
.wc-apt-product-row.in-cart { background: #f0fdf4; border-color: var(--apt-success); }

.wc-apt-product-image {
    width: 80px; height: 80px;
    border-radius: 8px; overflow: hidden;
    border: 1px solid var(--apt-border);
    flex-shrink: 0;
}
.wc-apt-product-image img { width: 100%; height: 100%; object-fit: cover; }

.wc-apt-product-info { flex: 1; min-width: 0; }
.wc-apt-product-title { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: var(--apt-gray-900); }
.wc-apt-product-description { font-size: 13px; color: var(--apt-gray-700); line-height: 1.5; }
.wc-apt-desc-text { font-size: 13px; }
.wc-apt-show-more {
    /* Hard reset — overrides theme button styles that use !important */
    all: unset !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    /* Typography */
    color: var(--apt-primary) !important;
    cursor: pointer !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    font-family: inherit !important;
    line-height: inherit !important;
    display: inline !important;
    vertical-align: baseline !important;
    opacity: 0.8 !important;
    text-decoration: none !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}
.wc-apt-show-more:hover,
.wc-apt-show-more:focus {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
    text-decoration: underline !important;
    color: var(--apt-primary-hover) !important;
}

.wc-apt-variations { margin-top: 10px; }
.wc-apt-variation-select {
    padding: 7px 28px 7px 10px;
    border: 1px solid var(--apt-border); border-radius: 6px;
    font-size: 13px; cursor: pointer; background: white;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    transition: border-color 0.2s ease;
}
.wc-apt-variation-select:focus { outline: none; border-color: var(--apt-primary); }

.wc-apt-product-price {
    font-size: 19px; font-weight: 700;
    color: var(--apt-gray-900); min-width: 90px; text-align: right;
}

/* Qty controls */
.wc-apt-product-actions { display: flex; align-items: center; gap: 8px; }
.wc-apt-qty-controls {
    display: flex; align-items: center;
    border: 2px solid var(--apt-border); border-radius: 8px;
    overflow: hidden; background: white;
}
.wc-apt-qty-btn {
    width: 40px !important;
    height: 40px !important;
    background: white !important;
    background-color: white !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    color: var(--apt-gray-700, #374151) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    opacity: 1 !important;
}
.wc-apt-qty-btn:first-of-type { border-right: 1px solid var(--apt-border) !important; }
.wc-apt-qty-btn:last-of-type  { border-left: 1px solid var(--apt-border) !important; }
.wc-apt-qty-btn:hover,
.wc-apt-qty-btn:focus {
    background: var(--apt-gray-100, #f3f4f6) !important;
    background-color: var(--apt-gray-100, #f3f4f6) !important;
    color: var(--apt-primary, #1e3a5f) !important;
    box-shadow: none !important;
}
.wc-apt-qty-input {
    width: 52px !important;
    height: 40px !important;
    border: none !important;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    background: white !important;
    background-color: white !important;
    color: var(--apt-gray-900, #111827) !important;
    opacity: 1 !important;
    -webkit-text-fill-color: var(--apt-gray-900, #111827) !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    line-height: 40px !important;
    display: block !important;
    flex-shrink: 0 !important;
}
.wc-apt-qty-input:focus { outline: none !important; }

.wc-apt-remove-btn {
    width: 40px; height: 40px;
    background: var(--apt-danger); border: none; border-radius: 8px;
    color: white; cursor: pointer; transition: all 0.2s ease;
    display: flex; align-items: center; justify-content: center;
}
.wc-apt-remove-btn:hover { background: #dc2626; transform: scale(1.05); }

/* Service checkbox (shown only in service mode) */
.wc-apt-service-checkbox-wrapper {
    display: none;
    align-items: center; justify-content: center;
    cursor: pointer;
}
.wc-apt-service-checkbox { position: absolute; opacity: 0; cursor: pointer; }
.wc-apt-service-checkmark {
    width: 44px; height: 44px;
    background: white;
    border: 2px solid var(--apt-border);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s ease;
}
.wc-apt-service-checkbox:checked + .wc-apt-service-checkmark {
    background: #1d4ed8;
    border-color: #1d4ed8;
}
.wc-apt-service-checkbox:not(:checked):hover + .wc-apt-service-checkmark {
    border-color: #1d4ed8;
}
.wc-apt-service-checkmark svg { opacity: 0; transition: opacity 0.2s ease; }
.wc-apt-service-checkbox:checked + .wc-apt-service-checkmark svg { opacity: 1; }

/* ================================================================
   GRID MODE (Quick Order — service cards like Image 1)
   ================================================================ */
.wc-apt-grid-mode .wc-apt-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.wc-apt-grid-mode .wc-apt-product-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 24px 24px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    gap: 0;
    transition: all 0.25s ease;
    position: relative;
    grid-template-columns: unset;
}
.wc-apt-grid-mode .wc-apt-product-row:hover {
    border-color: #1d4ed8;
    box-shadow: 0 6px 20px rgba(29,78,216,0.12);
}
.wc-apt-grid-mode .wc-apt-product-row.in-cart {
    background: #eff6ff;
    border-color: #1d4ed8;
    box-shadow: 0 6px 20px rgba(29,78,216,0.15);
}

.wc-apt-grid-mode .wc-apt-product-image {
    width: 80px; height: 80px;
    margin-bottom: 4px;
    border: none;
    background: transparent;
    border-radius: 0;
    overflow: visible;
}
.wc-apt-grid-mode .wc-apt-product-image img {
    width: 80px; height: 80px;
    object-fit: contain;
    border-radius: 0;
}

.wc-apt-grid-mode .wc-apt-product-info {
    width: 100%;
    margin-bottom: 16px;
    order: -1;
}
.wc-apt-grid-mode .wc-apt-product-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--apt-gray-900);
    margin: 0 0 6px;
}
.wc-apt-grid-mode .wc-apt-product-description {
    font-size: 13px;
    color: var(--apt-gray-700);
    text-align: center;
    line-height: 1.5;
}

/* Price hidden in grid+service mode (service = no price shown) */
.wc-apt-grid-mode .wc-apt-product-price { display: none; }

/* Image + checkbox sit side by side in the card */
.wc-apt-grid-mode .wc-apt-product-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
}

/* Qty controls hidden in grid service mode */
.wc-apt-grid-mode.wc-apt-service-mode .wc-apt-qty-controls { display: none; }

/* Checkbox larger and styled like Image 1 */
.wc-apt-grid-mode .wc-apt-service-checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}
.wc-apt-grid-mode .wc-apt-service-checkmark {
    width: 48px; height: 48px;
    border-radius: 8px;
    border: 2px solid #d1d5db;
    background: white;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}
.wc-apt-grid-mode .wc-apt-service-checkbox:checked + .wc-apt-service-checkmark {
    background: #1d4ed8;
    border-color: #1d4ed8;
    box-shadow: 0 4px 10px rgba(29,78,216,0.3);
}
.wc-apt-grid-mode .wc-apt-service-checkmark svg {
    width: 22px; height: 22px;
}

/* ================================================================
   SERVICE MODE (list view with checkbox instead of qty)
   ================================================================ */
.wc-apt-service-mode .wc-apt-qty-controls { display: none; }
.wc-apt-service-mode .wc-apt-service-checkbox-wrapper { display: flex !important; }

/* ================================================================
   FLOATING CHECKOUT MODAL
   ================================================================ */
.wc-apt-checkout-modal {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: #008450;
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.18);
    z-index: 999999;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    white-space: nowrap;
}
.wc-apt-checkout-modal.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: all;
}
.wc-apt-checkout-content {
    display: flex; align-items: center; gap: 16px;
    font-size: 15px; font-weight: 600;
}
.wc-apt-items-count {
    background: rgba(255,255,255,0.25);
    padding: 3px 12px; border-radius: 20px;
}
.wc-apt-checkout-divider { opacity: 0.5; }
.wc-apt-checkout-total { font-size: 17px; font-weight: 700; }
.wc-apt-checkout-btn {
    background: white;
    color: #008450;
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex; align-items: center; gap: 8px;
}
.wc-apt-checkout-btn:hover { transform: translateX(4px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); color: #006b40; }

@keyframes pulse {
    0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
    50%       { transform: translateX(-50%) translateY(0) scale(1.04); }
}
.wc-apt-checkout-modal.pulse { animation: pulse 0.4s ease; }

/* ================================================================
   LOADING
   ================================================================ */
.wc-apt-loading { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: none; }
.wc-apt-loading.active { display: block; }
.wc-apt-spinner {
    width: 44px; height: 44px;
    border: 4px solid var(--apt-gray-200);
    border-top-color: var(--apt-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.wc-apt-no-products { text-align: center; padding: 60px 20px; color: var(--apt-gray-700); font-size: 16px; }
@keyframes addToCart { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
.wc-apt-product-row.adding { animation: addToCart 0.3s ease; }


/* Hide red remove button in grid mode — unchecking the checkbox removes the item */
.wc-apt-grid-mode .wc-apt-remove-btn {
    display: none !important;
}
/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
    /* List mode */
    .wc-apt-product-row {
        grid-template-columns: 64px 1fr;
        gap: 12px;
    }
    .wc-apt-product-image { width: 64px; height: 64px; }
    .wc-apt-product-price { grid-column: 2; text-align: left; font-size: 16px; }
    .wc-apt-product-actions { grid-column: 1 / -1; justify-content: space-between; }

    /* Grid mode */
    .wc-apt-grid-mode .wc-apt-products {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
    }
    .wc-apt-grid-mode .wc-apt-product-row { padding: 20px 16px 18px; }
    .wc-apt-grid-mode .wc-apt-product-image { width: 60px; height: 60px; }
    .wc-apt-grid-mode .wc-apt-product-title { font-size: 15px; }

    /* Checkout modal */
    .wc-apt-checkout-modal { left: 12px; right: 12px; transform: translateY(120px); width: auto; border-radius: 16px; }
    .wc-apt-checkout-modal.show { transform: translateY(0); }
    .wc-apt-checkout-content { flex-wrap: wrap; gap: 8px; font-size: 14px; }
    .wc-apt-checkout-btn { width: 100%; justify-content: center; }

    .wc-apt-category-btn { padding: 9px 18px; font-size: 13px; }
}

@media (max-width: 480px) {
    .wc-apt-grid-mode .wc-apt-products { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   COMPACT MODE  [wc_product_table compact="yes"]
   Robust layout for narrow/Elementor containers.
   Uses flex-wrap instead of CSS grid. No absolute positioning.
   ================================================================ */
.wc-apt-compact .wc-apt-search-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    padding: 10px 14px;
    border: 2px solid var(--apt-border);
    border-radius: 8px;
    background: white;
    margin-bottom: 16px;
    position: static !important;
    max-width: 100% !important;
}
.wc-apt-compact .wc-apt-search-wrapper .wc-apt-search {
    flex: 1;
    border: none !important;
    outline: none !important;
    font-size: 15px;
    background: transparent;
    padding: 0;
    box-shadow: none !important;
    width: auto !important;
}
.wc-apt-compact .wc-apt-search-wrapper svg { flex-shrink: 0; }
.wc-apt-compact .wc-apt-search-btn {
    position: static !important;
    transform: none !important;
    width: 36px; height: 36px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}
.wc-apt-compact .wc-apt-search-wrapper:focus-within {
    border-color: var(--apt-primary);
    box-shadow: 0 0 0 3px rgba(0,51,102,0.1);
}
.wc-apt-compact .wc-apt-product-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px 12px !important;
    grid-template-columns: unset !important;
}
.wc-apt-compact .wc-apt-product-image {
    width: 72px !important; height: 72px !important;
    flex: 0 0 72px !important;
    min-width: unset !important;
}
.wc-apt-compact .wc-apt-product-image img {
    width: 72px !important; height: 72px !important;
    object-fit: cover;
}
.wc-apt-compact .wc-apt-product-info { flex: 1 1 140px !important; min-width: 0; }
.wc-apt-compact .wc-apt-product-title { font-size: 15px !important; margin-bottom: 3px !important; }
.wc-apt-compact .wc-apt-product-price {
    flex: 0 0 auto !important;
    font-size: 15px !important;
    white-space: nowrap;
    grid-column: unset !important;
    text-align: right;
}
.wc-apt-compact .wc-apt-product-actions {
    flex: 0 0 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    grid-column: unset !important;
}
.wc-apt-compact .wc-apt-qty-controls {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}
.wc-apt-compact .wc-apt-qty-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: white !important;
    background-color: white !important;
    color: var(--apt-gray-700, #374151) !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    opacity: 1 !important;
}
.wc-apt-compact .wc-apt-qty-btn:hover,
.wc-apt-compact .wc-apt-qty-btn:focus {
    background: var(--apt-gray-100, #f3f4f6) !important;
    background-color: var(--apt-gray-100, #f3f4f6) !important;
    color: var(--apt-primary, #1e3a5f) !important;
    box-shadow: none !important;
}
.wc-apt-compact .wc-apt-qty-input {
    width: 44px !important;
    height: 36px !important;
    flex-shrink: 0 !important;
    background: white !important;
    background-color: white !important;
    color: var(--apt-gray-900, #111827) !important;
    -webkit-text-fill-color: var(--apt-gray-900, #111827) !important;
    opacity: 1 !important;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    line-height: 36px !important;
}
/* Variations: force onto their own full-width row between info and actions */
/* Use order to control: image=1, info=2, price=3, variations=4, actions=5  */
.wc-apt-compact .wc-apt-product-image   { order: 1; }
.wc-apt-compact .wc-apt-product-info    { order: 2; }
.wc-apt-compact .wc-apt-product-price   { order: 3; }
.wc-apt-compact .wc-apt-variations      { order: 4; flex: 0 0 100% !important; width: 100% !important; margin: 0 !important; }
.wc-apt-compact .wc-apt-product-actions { order: 5; }

.wc-apt-compact .wc-apt-variation-select {
    width: 100% !important;
    font-size: 14px;
    padding: 9px 12px;
    border: 2px solid var(--apt-border);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    appearance: auto;
}
.wc-apt-compact .wc-apt-variation-select:focus {
    outline: none;
    border-color: var(--apt-primary);
    box-shadow: 0 0 0 3px rgba(0,51,102,0.1);
}

/* ---- Inline row notice ---- */
.wc-apt-row-notice {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 0 2px;
    grid-column: 1 / -1;
    width: 100%;
}

/* ---- AJAX search result count ---- */
.wc-apt-search-count {
    font-size: 13px;
    color: #475569;
    font-weight: 600;
    padding: 6px 2px 0;
    margin-bottom: -8px;
}

/* Dim category nav while search is active */
.wc-apt-searching .wc-apt-category-nav {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.2s ease;
}


/* ==========================================================================
   GROUPED PRODUCT LIST — sub-category headings
   v3.4.0 — shown when a parent tab is clicked and children exist
   ========================================================================== */

.wc-apt-products--grouped {
    gap: 0;
}

/* The heading row itself */
.wc-apt-group-heading {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 7px 16px;
    margin-top: 0;
    list-style: none;
    background: var(--apt-primary, #1e3a5f);
}

/* First heading needs no top margin */
.wc-apt-products--grouped .wc-apt-group-heading:first-child {
    margin-top: 0;
}

.wc-apt-group-heading__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    white-space: nowrap;
    flex-shrink: 0;
}

/* No hairline rule — background band replaces it */
.wc-apt-group-heading::after {
    display: none;
}

/* Tighten row spacing inside grouped lists */
.wc-apt-products--grouped .wc-apt-product-row {
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    margin: 0 !important;
}

.wc-apt-products--grouped .wc-apt-product-row:last-child {
    border-bottom: none !important;
}


/* ==========================================================================
   EPO "CHOOSE OPTIONS" LINK
   v3.5.0 — shown when ThemeComplete EPO fields are detected on a product.
   Styled as an outlined variant of the ATB button to distinguish intent.
   ========================================================================== */

.wc-apt-atb-link.wc-apt-choose-options {
    background: transparent;
    color: var(--apt-primary, #1e3a5f) !important;
    border: 2px solid var(--apt-primary, #1e3a5f);
    padding: 5px 12px; /* 2px less to compensate for border */
}

.wc-apt-atb-link.wc-apt-choose-options:hover,
.wc-apt-atb-link.wc-apt-choose-options:focus-visible {
    background: var(--apt-primary, #1e3a5f);
    color: #fff !important;
    outline: none;
}

/* ==========================================================================
   PRICE-LIST MODE  (wc-apt-price-list)
   v3.2.0 — qty controls hidden; "Add to basket" link shown instead
   ========================================================================== */

/* Hide qty controls and service checkbox in price-list mode */
.wc-apt-price-list .wc-apt-qty-controls,
.wc-apt-price-list .wc-apt-service-checkbox-wrapper,
.wc-apt-price-list .wc-apt-remove-btn {
    display: none !important;
}

/* "Add to basket" link */
.wc-apt-atb-link {
    display: inline-block;
    padding: 7px 14px;
    background: var(--apt-primary, #1e3a5f);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    border-radius: 6px;
    white-space: nowrap;
    transition: background 0.15s ease, opacity 0.15s ease;
    cursor: pointer;
    border: none;
}

.wc-apt-atb-link:hover,
.wc-apt-atb-link:focus-visible {
    background: var(--apt-primary-hover, #16304f);
    color: #fff;
    text-decoration: none;
    outline: 2px solid var(--apt-primary, #1e3a5f);
    outline-offset: 2px;
}

/* Loading / added state */
.wc-apt-atb-link.loading {
    opacity: 0.65;
    cursor: wait;
    pointer-events: none;
}

/* Screen-reader only utility (used for variation labels) */
.screen-reader-text {
    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;
}
