/* Select Series Inventory Styles */

.select-series-inventory,
.select-series-accessories {
    margin: 2rem 0;
}

/* Page Template Styles */
.select-series-product-page {
    padding: 2rem 0;
}

.select-series-header {
    margin-bottom: 3rem;
}

.select-series-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.select-series-image {
    margin-bottom: 2rem;
}

.select-series-image img {
    max-width: 100%;
    height: auto;
}

.select-series-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.select-series-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.select-series-inventory-section,
.select-series-accessories-section {
    width: 100%;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ddd;
}

.select-series-quote-section {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.select-series-quote .button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
}

.select-series-quote .button:hover {
    background-color: #005a87;
}

/* Archive Styles */
.select-series-archive {
    padding: 2rem 0;
}

.archive-header {
    margin-bottom: 3rem;
}

.archive-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.archive-description {
    font-size: 1.1rem;
    color: #666;
}

.select-series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.select-series-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.select-series-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.select-series-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.select-series-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.select-series-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.select-series-item-title {
    padding: 1rem;
    margin: 0;
    font-size: 1.25rem;
    color: #333;
}

.select-series-status {
    padding: 0 1rem 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge.in-stock {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.out-of-stock {
    background-color: #f8d7da;
    color: #721c24;
}


.select-series-inventory__table,
.select-series-accessories__table {
    overflow-x: auto;
}

.select-series-inventory__table table,
.select-series-accessories__table table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.select-series-inventory__table thead,
.select-series-accessories__table thead {
    text-transform: uppercase;
    background-color: #fff;
    font-size: 16px;
}

.select-series-inventory__table th,
.select-series-accessories__table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 500;
    border-bottom: 1px solid #8c7965;
}

.select-series-inventory__table td,
.select-series-accessories__table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 16px; /* Ensure proper font size */
}

/* Fix product name font size in accessories table */
.select-series-accessories__table td.product-name {
    font-size: 16px !important;
    font-weight: 500;
    color: #333;
}

/* Ensure table cells maintain proper font size */
.select-series-accessories__table tbody td {
    font-size: 16px !important;
}


/* Inventory Status Badges */
.inventory-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.inventory-status.in-stock {
    background-color: #d4edda;
    color: #155724;
}

.inventory-status.out-of-stock {
    background-color: #f8d7da;
    color: #721c24;
}
td.inventory-status-cell {
    text-align: center;
}
/* Stock Change Badge */
.stock-change-badge {
    display: inline-block;
    padding: 4px 8px;
    background-color: #fff3cd;
    color: #856404;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}
.pieces-available, .squares-available {
    text-align: right;
    font-family: 'adobe-caslon-pro';
}
/* Product Color */
.product-color {
    font-weight: 500;
}

/* Pieces and Squares */
.pieces-available,
.squares-available {
    text-align: right;
}

/* Inventory Update Time – footer with button to the right */
.select-series-inventory__footer {
    margin-top: 1rem;
    padding-top: 1rem;
}
/* Override fixed positioning when confidential button is moved into footer */
.select-series-inventory__footer-btn-slot .confidential-button,
.select-series-inventory__footer-btn-slot [class*="confidential"],
.select-series-inventory__footer-btn-slot [class*="CONFIDENTIAL"],
.select-series-inventory__footer-btn-slot .elementor-widget,
.select-series-inventory__footer-btn-slot .elementor-element,
.select-series-inventory__footer-btn-slot button,
.select-series-inventory__footer-btn-slot a,
.select-series-inventory__footer-btn-slot .elementor-button {
    position: static !important;
    bottom: auto !important;
    right: auto !important;
}
.select-series-inventory__footer-btn-slot .select-series-inventory__footer-btn {
    flex-shrink: 0;
}
.select-series-inventory__footer-btn-slot .select-series-inventory__footer-btn-icon {
    display: inline-flex;
    align-items: center;
}
.select-series-inventory__footer-btn-slot .select-series-inventory__footer-btn-icon svg,
.select-series-inventory__footer-btn-slot .select-series-inventory__footer-btn-icon i {
    transition: fill 0.2s ease, color 0.2s ease;
}
.select-series-inventory__footer-btn-slot .select-series-inventory__footer-btn-icon svg {
    width: 1em;
    height: 1em;
}
.select-series-inventory__footer-btn-slot .select-series-inventory__footer-btn:hover .select-series-inventory__footer-btn-icon svg,
.select-series-inventory__footer-btn-slot .select-series-inventory__footer-btn:hover .select-series-inventory__footer-btn-icon i {
    fill: #fff !important;
    color: #fff !important;
}
.inventory-update-time {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}
/* Product column: wrap long names */
.select-series-single-color__table .select-series-card-product .select-series-card-product-inner > span,
.select-series-single-color__table .select-series-card-product > div > span,
.select-series-single-color__table td.select-series-card-product span {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
}

/* Color Swatch Tooltip Styles */
.select-series-color-wrapper {
    position: relative;
    display: inline-block;
}

.select-series-color-swatch {
    position: relative;
    cursor: pointer;
}

/* Show tooltip when hovering over the wrapper */
.select-series-color-wrapper:hover .select-series-color-tooltip,
.select-series-color-wrapper:focus-within .select-series-color-tooltip {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Also show on direct hover of swatch (for better compatibility) */
.select-series-color-swatch:hover + .select-series-color-tooltip {
    visibility: visible !important;
    opacity: 1 !important;
}

.select-series-color-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 5px;
    padding: 4px 8px;
    background-color: #333;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 99999 !important;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.select-series-color-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #333;
}

/* Hide Budget Pricing buttons on Select Series pages (except Add to Budget column in inventory tables) */
body.single-select_series .blue-btn,
body.single-select_series button[class*="budget"],
body.single-select_series [class*="budget-pricing"],
body.single-select_series [id*="budget"],
body.single-select_series a[href*="budget"]:not(.select-series-add-to-budget),
body.single-select_series .add-to-budget,
body.single-select_series [data-action*="budget"] {
    display: none !important;
    visibility: hidden !important;
}
/* Keep the Add to Budget column links visible in field tile & accessories tables */
body.single-select_series .select-series-add-to-budget {
    display: inline-flex !important;
    visibility: visible !important;
}
body.single-select_series .select-series-add-to-budget img {
    display: block !important;
    visibility: visible !important;
}

/* Archive Widget Styles */
.select-series-archive-widget .select-series-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    background: #fff;
}

.select-series-archive-widget .select-series-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.select-series-archive-widget .select-series-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.select-series-archive-widget .select-series-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.select-series-archive-widget .select-series-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.select-series-archive-widget .select-series-item:hover .select-series-thumbnail img {
    transform: scale(1.05);
}

.select-series-archive-widget .select-series-item-title {
    padding: 1rem;
    margin: 0;
    font-size: 1.25rem;
    color: #333;
    font-weight: 600;
}

.select-series-archive-widget .select-series-status {
    padding: 0 1rem 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.select-series-archive-widget .select-series-pagination {
    margin-top: 2rem;
    text-align: center;
}

.select-series-archive-widget .select-series-pagination a,
.select-series-archive-widget .select-series-pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.select-series-archive-widget .select-series-pagination a:hover {
    background-color: #f5f5f5;
}

.select-series-archive-widget .select-series-pagination .current {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Confidential button - make it float */
/* Target various possible selectors for the confidential button */
.confidential-button,
[class*="confidential"],
[class*="CONFIDENTIAL"],
button[class*="confidential"],
div[class*="confidential"],
.elementor-widget[class*="confidential"],
.elementor-element[class*="confidential"] {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 9999 !important;
    background-color: #f0f0f0 !important;
    padding: 12px 20px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    color: #002b45 !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Additional selectors for Elementor widgets */
.elementor-widget-container:has-text("CONFIDENTIAL"),
.elementor-element:has-text("CONFIDENTIAL") {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 9999 !important;
}

/* Responsive */
@media (max-width: 768px) {
    td.select-series-card-alt span {
      
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    a.select-series-add-to-budget.open-select-series-estimator {
        padding: 0 !important;
        margin: 0 !important;
    }body.single-select_series .select-series-add-to-budget img {
    
        width: 22px !important;
    }td.select-series-card-alt {
        text-align: left !important;
    }.select-series-card-color-swatches {
        margin-top: 10px;
    }.select-series-single-color__swatch-image img {
        padding: 22px;
        object-fit: contain !important;
    }.select-series-card-product-inner span {
        margin: 0 !important;
    }span.inventory-status{
        margin-left: 0px !important;
    }.select-series-card-product-inner span {
        margin-left: 9px !important;
    }tr.select-series-inventory-card {
        border-radius: 0 !important;
     
        box-shadow: none !important;margin: 0 !important
    }tr.select-series-inventory-card {
        border-bottom: 1px solid #eee;
        border-left: 0 !important;
        border-top: 0 !important;
        border-right: 0 !important;
    }
    .select-series-inventory__table,
    .select-series-accessories__table {
        font-size: 0.875rem;
    }
    
    .select-series-inventory__table th,
    .select-series-inventory__table td,
    .select-series-accessories__table th,
    .select-series-accessories__table td {
        padding: 8px 10px;
        font-size: 14px !important; /* Maintain readable size on mobile */
    }
    
    /* Ensure product name stays readable on mobile */
    .select-series-accessories__table td.product-name {
        font-size: 14px !important;
    }
    
    .select-series-archive-widget .select-series-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Adjust confidential button position on mobile */
    .confidential-button,
    [class*="confidential"],
    [class*="CONFIDENTIAL"] {
        bottom: 10px !important;
        right: 10px !important;
        font-size: 12px !important;
        padding: 10px 15px !important;
    }
}

/* Table cell padding (field tile & accessories tables) */
.select-series-inventory-single-color .select-series-single-color__field-tile-wrap .select-series-single-color__table th,
.select-series-inventory-single-color .select-series-single-color__field-tile-wrap .select-series-single-color__table td,
.select-series-inventory-single-color .select-series-single-color__accessories-wrap .select-series-single-color__table th,
.select-series-inventory-single-color .select-series-single-color__accessories-wrap .select-series-single-color__table td {
    padding: 10px !important;
}

/* Product column width on desktop (field tile & accessories tables – same widths for both) */
@media (min-width: 769px) {
    .select-series-inventory-single-color .select-series-single-color__field-tile-wrap .select-series-single-color__table th:first-child,
    .select-series-inventory-single-color .select-series-single-color__field-tile-wrap .select-series-single-color__table td.select-series-card-product,
    .select-series-inventory-single-color .select-series-single-color__accessories-wrap .select-series-single-color__table th:first-child,
    .select-series-inventory-single-color .select-series-single-color__accessories-wrap .select-series-single-color__table td.select-series-card-product {
        max-width: 320px;
        min-width: 180px;
        width: 1%;
    }
    /* Product column: center titles on desktop */
    .select-series-inventory-single-color .select-series-single-color__field-tile-wrap .select-series-single-color__table td.select-series-card-product,
    .select-series-inventory-single-color .select-series-single-color__accessories-wrap .select-series-single-color__table td.select-series-card-product {
        text-align: center;
    }
    .select-series-inventory-single-color .select-series-single-color__field-tile-wrap .select-series-single-color__table td.select-series-card-product .select-series-card-product-inner,
    .select-series-inventory-single-color .select-series-single-color__field-tile-wrap .select-series-single-color__table td.select-series-card-product > div,
    .select-series-inventory-single-color .select-series-single-color__accessories-wrap .select-series-single-color__table td.select-series-card-product .select-series-card-product-inner,
    .select-series-inventory-single-color .select-series-single-color__accessories-wrap .select-series-single-color__table td.select-series-card-product > div {
        justify-content: center;
        align-items: center;
    }
    .select-series-inventory-single-color .select-series-single-color__field-tile-wrap .select-series-single-color__table td.select-series-card-product span,
    .select-series-inventory-single-color .select-series-single-color__accessories-wrap .select-series-single-color__table td.select-series-card-product span {
        text-align: center;
    }
    /* Accessories-only: 100x100 product image in product column */
    .select-series-inventory-single-color .select-series-single-color__accessories-wrap .select-series-single-color__table td.select-series-card-product .select-series-single-color__accessory-product-img,
    .select-series-inventory-single-color .select-series-single-color__accessories-wrap .select-series-single-color__table td.select-series-card-product img.select-series-single-color__accessory-product-img {
        max-width: 100px !important;
        max-height: 100px !important;
        width: auto;
        height: auto;
        object-fit: contain;
    }
    /* Color image 45x45 in both field tile and accessories tables */
    .select-series-inventory-single-color .select-series-single-color__field-tile-wrap .select-series-single-color__table td.select-series-card-color img,
    .select-series-inventory-single-color .select-series-single-color__accessories-wrap .select-series-single-color__table td.select-series-card-color img {
        width: 46px !important;
        height: 46px !important;
        object-fit: cover;
    }
    /* Color column: align to bottom in both tables (td + inner flex div) */
    .select-series-inventory-single-color .select-series-single-color__field-tile-wrap .select-series-single-color__table th:nth-child(2),
    .select-series-inventory-single-color .select-series-single-color__field-tile-wrap .select-series-single-color__table td.select-series-card-color,
    .select-series-inventory-single-color .select-series-single-color__accessories-wrap .select-series-single-color__table th:nth-child(2),
    .select-series-inventory-single-color .select-series-single-color__accessories-wrap .select-series-single-color__table td.select-series-card-color {
        text-align: center;
        vertical-align: bottom;
    }
    /* Inner div: shrink-wrap so td vertical-align: bottom positions it at bottom of cell */
    .select-series-inventory-single-color .select-series-single-color__field-tile-wrap .select-series-single-color__table td.select-series-card-color > div,
    .select-series-inventory-single-color .select-series-single-color__accessories-wrap .select-series-single-color__table td.select-series-card-color > div {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
    }
    /* Desktop: show single color image, hide in-card swatches */
    .select-series-inventory-single-color .select-series-single-color__field-tile-wrap .select-series-single-color__table td.select-series-card-color .select-series-card-color-swatches,
    .select-series-inventory-single-color .select-series-single-color__accessories-wrap .select-series-single-color__table td.select-series-card-color .select-series-card-color-swatches {
        display: none !important;
    }
    .select-series-inventory-single-color .select-series-single-color__field-tile-wrap .select-series-single-color__table td.select-series-card-color .select-series-card-color-single,
    .select-series-inventory-single-color .select-series-single-color__accessories-wrap .select-series-single-color__table td.select-series-card-color .select-series-card-color-single {
        display: block !important;
    }
    /* Status column: narrow in both tables (same width) */
    .select-series-inventory-single-color .select-series-single-color__field-tile-wrap .select-series-single-color__table thead th:nth-child(3),
    .select-series-inventory-single-color .select-series-single-color__field-tile-wrap .select-series-single-color__table td.select-series-card-status,
    .select-series-inventory-single-color .select-series-single-color__accessories-wrap .select-series-single-color__table thead th:nth-child(3),
    .select-series-inventory-single-color .select-series-single-color__accessories-wrap .select-series-single-color__table td.select-series-card-status {
        width: 1%;
        max-width: 110px;
        white-space: nowrap;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
}

/* Add to Budget Pricing icon column (field tile & accessories tables) */
/* Inventory title: allow wrapping so long titles (e.g. "SPANISH 18 TERRA COTTA IMPRESSIONIST INVENTORY") wrap within container */
.select-series-single-color__inventory-title {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.select-series-inventory-single-color .select-series-add-to-budget {
    transition: opacity 0.2s ease;
}
.select-series-inventory-single-color .select-series-add-to-budget:hover {
    opacity: 0.85;
}
.select-series-inventory-single-color .select-series-add-to-budget img {
    display: block;
}

/* VIEW ALT button (accessories table only) */
.select-series-view-alt-btn {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    background-color: #e5e5e5;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.select-series-view-alt-btn:hover {
    background-color: #d0d0d0;
    border-color: #aaa;
}

/* Alt option tooltip (compact popover near VIEW ALT button) */
.select-series-alt-popup {
    position: fixed;
    z-index: 100000;
    display: none;
    padding: 0;
    pointer-events: none;
}
.select-series-alt-popup.is-open {
    pointer-events: auto;
}
.select-series-alt-popup__backdrop {
    display: none;
}
.select-series-alt-popup__box {
    position: relative;
    max-width: 340px;
    min-width: 300px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18), 0 0 1px rgba(0, 0, 0, 0.1);
    padding: 10px 12px;
    box-sizing: border-box;
    border: 1px solid #e0e0e0;
}
.select-series-alt-popup__close {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    padding: 0;
    font-size: 18px;
    line-height: 1;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 22px;
    text-align: center;
}
.select-series-alt-popup__close:hover {
    color: #000;
}
.select-series-alt-popup__title {
    margin: 0 24px 10px 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #666;
}
.select-series-alt-popup__body {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.select-series-alt-popup__image-wrap {
    flex-shrink: 0;
    width: 80px;
    min-height: 48px;
    background: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.select-series-alt-popup__image {
    max-width: 100%;
    max-height: 64px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.select-series-alt-popup__content {
    flex: 1;
    min-width: 0;
    min-height: 0;
}
.select-series-alt-popup__product-name {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 400;
    display: block;
    line-height: 1.3;
    color: #666;
}
.select-series-alt-popup__description {
    margin: 0 0 6px 0;
    font-size: 14px;
    color: #666666;
    display: block;
    line-height: 1.35;
    white-space: pre-wrap;
}
.select-series-alt-popup__dimensions {
    margin: 0;
    padding: 4px 8px;
    background: #0066cc;
    color: #fff;
    font-size: 0.75rem;
    border-radius: 3px;
    display: inline-block;
}

/* Mobile-only color swatches (in table area): hidden on desktop */
.select-series-mobile-color-swatches {
    display: none;
}button.select-series-view-alt-btn {
    font-family: "futura-pt" !important;
    border-radius: 5px !important;
    font-weight: 300 !important;
    font-size: 16px !important;
    color: #8C7965 !important;
    background-color: #F3F3F3 !important;
    border: 0 !important;
    padding: 7px 20px !important;
  }
  
  button.select-series-view-alt-btn:hover,
  button.select-series-view-alt-btn:focus {
    color: #fff !important;
    background-color: #002b45 !important;
  }
  

/* Mobile: inventory tables as card layout – image left, content center, cart right */
@media (max-width: 768px) {    .select-series-single-color__field-tile-wrap .select-series-single-color__table tbody tr td.select-series-card-product img, .select-series-single-color__accessories-wrap .select-series-single-color__table tbody tr td.select-series-card-product img {
   
    min-height: 260px;
    max-height: 220px;
    object-fit: contain;
    min-width: 180px;
  
}td.select-series-card-squares {
    font-family: 'futura-pt';
}td.select-series-card-pieces {
    font-family: 'futura-pt';
}
    /* Top swatches: 2 columns only (no duplicate “main” swatches) */
    .select-series-mobile-color-swatches {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 1rem;
        align-items: start;
        max-width: 100%;
    }
    .select-series-mobile-color-swatches .select-series-single-color__swatch--mobile {
        width: 44px;
        height: 44px;
        padding: 0;
        border: 2px solid transparent;
        border-radius: 8px;
        background: none;
        cursor: pointer;
        overflow: hidden;
        flex-shrink: 0;
        transition: border-color 0.2s, box-shadow 0.2s;
    }
    .select-series-mobile-color-swatches .select-series-single-color__swatch--mobile img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .select-series-mobile-color-swatches .select-series-single-color__swatch--mobile .select-series-mobile-swatch-placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        font-size: 10px;
        color: #666;
        text-align: center;
        padding: 2px;
    }
    .select-series-mobile-color-swatches .select-series-single-color__swatch--mobile.is-selected {
        border-color: #002b45;
        box-shadow: 0 0 0 2px rgba(0, 43, 69, 0.3);
    }
    /* On mobile: keep the main picker (prompt + 2 big swatches). Hide the duplicate small bar so we don’t show two sets of top swatches. */
    .select-series-inventory-single-color .select-series-mobile-color-swatches {
        display: none !important;
    }

    .select-series-single-color__field-tile-wrap .select-series-single-color__table thead,
    .select-series-single-color__accessories-wrap .select-series-single-color__table thead {
        display: none;
    }
    /* Inventory title: clear spacing below top swatches; allow wrapping so long titles (e.g. "Impressionist") wrap within container */
    .select-series-single-color__tables-content .select-series-single-color__inventory-title {
        margin-top: 0;
        margin-bottom: 1rem;
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }.select-series-single-color__table .select-series-card-product .select-series-card-product-inner > span, .select-series-single-color__table .select-series-card-product > div > span, .select-series-single-color__table td.select-series-card-product span,  .select-series-single-color__table .select-series-card-product .select-series-card-product-inner > span, .select-series-single-color__table .select-series-card-product > div > span, .select-series-single-color__table td.select-series-card-product span{
   
        text-align: left;
    } td.select-series-card-alt span {
        text-align: left !important;
    }button.select-series-view-alt-btn {
        padding: 0 !important;
        background: transparent !important;
    } .select-series-single-color__accessories-wrap .select-series-single-color__table tbody tr td.select-series-card-status {padding: 0 !important;} button.select-series-view-alt-btn {
        background-color: transparent !important;
        padding: 0 !important;
        font-size: 14px !important;
    }
        td.select-series-card-squares {
        text-align: left !important;
    }td.select-series-card-status {
        text-align: left !important;}   .select-series-card-product-inner span {
            text-align: left !important;
        }.select-series-card-product-inner span {
    text-align: left !important;
}.select-series-single-color__accessories-wrap .select-series-single-color__table tbody td.select-series-card-pieces[data-label]:before {
  text-align: left !important;
}td.select-series-card-pieces {
    text-align: left !important;
}
.select-series-single-color__accessories-wrap .select-series-single-color__table tbody td.select-series-card-color[data-label]:before,select-series-single-color__accessories-wrap .select-series-single-color__table tbody td.select-series-card-pieces[data-label]:before{display: none !important;}
         .select-series-single-color__field-tile-wrap .select-series-single-color__table tbody td.select-series-card-color[data-label]:before, span.select-series-card-color-name{display: none !important;}
    /* Mobile: 3 columns – (1) bigger image, (2) title + badge + color + pieces/squares + view alt, (3) cart only */
    .select-series-single-color__field-tile-wrap .select-series-single-color__table tbody tr.select-series-inventory-card,
    .select-series-single-color__accessories-wrap .select-series-single-color__table tbody tr.select-series-inventory-card {
        display: grid;
        grid-template-columns: minmax(100px, 50%) 1fr 34px;
        grid-template-rows: auto auto auto auto auto auto;
        gap: 0 0.75rem;
        align-items: start;
        padding: 1rem;
        margin-bottom: 0.75rem;
        background: #fff;
        border-radius: 8px;
        border: 1px solid #e8e4df;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    }span.inventory-status {
        margin-left: 0px !important;
        margin-top: 0px;
        padding: 8px 7px 4px 8px !important;
        line-height: 10px;
    }button.select-series-view-alt-btn:hover, button.select-series-view-alt-btn:focus {
        color: #002b45 !important;
        background-color: transparent !important;
    }tbody.select-series-single-color__accessories-tbody span.inventory-status.in-stock {
        margin-left: 7px !important;
    }tbody.select-series-single-color__field-tbody .select-series-card-product-inner span {
        margin-bottom: -10px !important;
    }
    /* Product cell: use contents so image and title become grid items (override inline flex so title is right of image, not below) */
    .select-series-single-color__field-tile-wrap .select-series-single-color__table tbody tr td.select-series-card-product,
    .select-series-single-color__accessories-wrap .select-series-single-color__table tbody tr td.select-series-card-product {
        display: contents;
    }
    .select-series-single-color__field-tile-wrap .select-series-single-color__table tbody tr td.select-series-card-product .select-series-card-product-inner,
    .select-series-single-color__accessories-wrap .select-series-single-color__table tbody tr td.select-series-card-product > div {
        display: contents !important;
    }
    /* Column 1: bigger product image, full height of card */
    .select-series-single-color__field-tile-wrap .select-series-single-color__table tbody tr td.select-series-card-product img,
    .select-series-single-color__accessories-wrap .select-series-single-color__table tbody tr td.select-series-card-product img {
        grid-column: 1;
        grid-row: 1 / -1;
        width: 100%;
        height: 100%;
        min-height: 230px !important;
        max-height: 230px;
        object-fit: contain;
        border-radius: 6px;
        background: #fff;
        border: 1px solid #eee;
    }.select-series-single-color__swatch.is-selected {
        border-color: transparent !important;
        box-shadow: none !important;
    }button.select-series-single-color__swatch.select-series-single-color__swatch--card.is-selected {
        box-shadow: none !important;
        border: 0 !important;
    }td.select-series-card-status {
        padding: 0 !important;
    }tbody.select-series-single-color__field-tbody span.inventory-status.in-stock {
        margin: 0 !important;
    }tbody.select-series-single-color__field-tbody .select-series-card-color-swatches {
        margin: 0;
    }td.select-series-card-pieces {
        font-size: 15px;
    }td.select-series-card-squares {
        font-size: 15px;
    }.select-series-inventory__label-heading.accent-title-full h4{
      
        border: 0;
        padding: 0;
    }
    /* Column 2 row 1: product title (right of image) */
    .select-series-single-color__field-tile-wrap .select-series-single-color__table tbody tr td.select-series-card-product .select-series-card-product-inner > span,
    .select-series-single-color__accessories-wrap .select-series-single-color__table tbody tr td.select-series-card-product > div > span {
        grid-column: 2;
        grid-row: 1;
        font-size: 1.15rem;
        font-weight: 600;
        color: #666666;
        line-height: 1.3;
        padding: 0;
        margin: 0 0 0.35rem 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }.select-series-inventory-single-color .select-series-single-color__accessories-wrap .select-series-single-color__accessory-product-img {
        display: block !important;
        max-width: 120px !important;
        width: auto !important;
        height: 220px !important;
        min-height: 220px !important;
        object-fit: contain !important;
        flex-shrink: 0 !important;
    }
    /* Column 2 row 2: stock badge */
    .select-series-single-color__field-tile-wrap .select-series-single-color__table tbody tr td.select-series-card-status,
    .select-series-single-color__accessories-wrap .select-series-single-color__table tbody tr td.select-series-card-status {
        grid-column: 2;
        grid-row: 2;
        padding: 0.2rem 0 0.4rem 0;
        border: none;
    }
    .select-series-single-color__field-tile-wrap .select-series-single-color__table tbody tr td.select-series-card-status .inventory-status,
    .select-series-single-color__accessories-wrap .select-series-single-color__table tbody tr td.select-series-card-status .inventory-status {
        display: inline-block;
        padding: 4px 10px;
        border-radius: 6px;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
    }
    /* Column 2 row 3: color (label, name, swatches) */
    .select-series-single-color__field-tile-wrap .select-series-single-color__table tbody tr td.select-series-card-color,
    .select-series-single-color__accessories-wrap .select-series-single-color__table tbody tr td.select-series-card-color {
        grid-column: 2;
        grid-row: 3;
        padding: 0.2rem 0 0.25rem 0;
        border: none;
    }
    .select-series-single-color__field-tile-wrap .select-series-single-color__table tbody tr td.select-series-card-color > div.select-series-card-color-inner,
    .select-series-single-color__accessories-wrap .select-series-single-color__table tbody tr td.select-series-card-color > div.select-series-card-color-inner {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }
    /* On mobile: hide single desktop swatch, show selectable swatches row */
    .select-series-single-color__field-tile-wrap .select-series-single-color__table tbody tr td.select-series-card-color .select-series-card-color-single,
    .select-series-single-color__accessories-wrap .select-series-single-color__table tbody tr td.select-series-card-color .select-series-card-color-single {
        display: none !important;
    }
    .select-series-single-color__field-tile-wrap .select-series-single-color__table tbody tr td.select-series-card-color .select-series-card-color-swatches,
    .select-series-single-color__accessories-wrap .select-series-single-color__table tbody tr td.select-series-card-color .select-series-card-color-swatches {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        align-items: center;
    }
    /* Two little swatches under stock badge – tappable */
    .select-series-single-color__field-tile-wrap .select-series-single-color__table tbody tr td.select-series-card-color .select-series-single-color__swatch--card,
    .select-series-single-color__accessories-wrap .select-series-single-color__table tbody tr td.select-series-card-color .select-series-single-color__swatch--card {
        width: 28px;
        height: 28px;
        padding: 0;
        border: 2px solid transparent;
        border-radius: 4px;
        background: none;
        cursor: pointer;
        overflow: hidden;
        flex-shrink: 0;
        transition: border-color 0.2s, box-shadow 0.2s;
        pointer-events: auto;
        touch-action: manipulation;
        position: relative;
        z-index: 2;
    }
    .select-series-single-color__field-tile-wrap .select-series-single-color__table tbody tr td.select-series-card-color .select-series-single-color__swatch--card img,
    .select-series-single-color__accessories-wrap .select-series-single-color__table tbody tr td.select-series-card-color .select-series-single-color__swatch--card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .select-series-single-color__field-tile-wrap .select-series-single-color__table tbody tr td.select-series-card-color .select-series-single-color__swatch--card .select-series-swatch-placeholder,
    .select-series-single-color__accessories-wrap .select-series-single-color__table tbody tr td.select-series-card-color .select-series-single-color__swatch--card .select-series-swatch-placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        font-size: 9px;
        color: #666;
        text-align: center;
        padding: 2px;
    }
    .select-series-single-color__field-tile-wrap .select-series-single-color__table tbody tr td.select-series-card-color .select-series-single-color__swatch--card.is-selected,
    .select-series-single-color__accessories-wrap .select-series-single-color__table tbody tr td.select-series-card-color .select-series-single-color__swatch--card.is-selected {
        border-color: #002b45;
        box-shadow: 0 0 0 1px rgba(0, 43, 69, 0.3);
    }
    /* Color name above swatches */
    .select-series-single-color__field-tile-wrap .select-series-single-color__table tbody tr td.select-series-card-color .select-series-card-color-name,
    .select-series-single-color__accessories-wrap .select-series-single-color__table tbody tr td.select-series-card-color .select-series-card-color-name {
        order: 1;
        font-size: 0.95rem;
        color: #666666;
    }
    .select-series-single-color__field-tile-wrap .select-series-single-color__table tbody tr td.select-series-card-color .select-series-card-color-swatches,
    .select-series-single-color__accessories-wrap .select-series-single-color__table tbody tr td.select-series-card-color .select-series-card-color-swatches {
        order: 2;
    }
    /* Column 2 row 4: pieces available */
    .select-series-single-color__field-tile-wrap .select-series-single-color__table tbody tr td.select-series-card-pieces,
    .select-series-single-color__accessories-wrap .select-series-single-color__table tbody tr td.select-series-card-pieces {
        grid-column: 2;
        grid-row: 4;
        padding: 0.2rem 0 0.25rem 0;
        border: none;
        text-align: left;
        align-self: start;
    }
    /* Column 2 row 5: squares (field tile only) */
    .select-series-single-color__field-tile-wrap .select-series-single-color__table tbody tr td.select-series-card-squares {
        grid-column: 2;
        grid-row: 5;
        padding: 0.25rem 0 0 0;
        border: none;
    }
    /* Column 2 row 5: VIEW ALT (accessories only) */
    .select-series-single-color__accessories-wrap .select-series-single-color__table tbody tr td.select-series-card-alt {
        grid-column: 2;
        grid-row: 5;
        padding: 0.4rem 0 0 0;
        border: none;
        text-align: left;
        align-self: start;
    }
    /* Column 3: cart icon only, aligned to top */
    .select-series-single-color__field-tile-wrap .select-series-single-color__table tbody tr td.select-series-mobile-cart-cell,
    .select-series-single-color__accessories-wrap .select-series-single-color__table tbody tr td.select-series-mobile-cart-cell {
        grid-column: 3;
        grid-row: 1 / -1;
        align-self: start;
        padding: 0;
        border: none;
        text-align: right;
    }
    .select-series-single-color__field-tile-wrap .select-series-single-color__table tbody tr td.select-series-mobile-cart-cell:before,
    .select-series-single-color__accessories-wrap .select-series-single-color__table tbody tr td.select-series-mobile-cart-cell:before {
        content: none !important;
    }
    /* Labels: small dark brown */
    .select-series-single-color__field-tile-wrap .select-series-single-color__table tbody td.select-series-card-color[data-label]:before,
    .select-series-single-color__field-tile-wrap .select-series-single-color__table tbody td.select-series-card-pieces[data-label]:before,
    .select-series-single-color__field-tile-wrap .select-series-single-color__table tbody td.select-series-card-squares[data-label]:before,
    .select-series-single-color__accessories-wrap .select-series-single-color__table tbody td.select-series-card-color[data-label]:before,
    .select-series-single-color__accessories-wrap .select-series-single-color__table tbody td.select-series-card-pieces[data-label]:before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: #8C7965;
        display: block;
        margin-bottom: 0.2rem;
    }
    .select-series-single-color__accessories-wrap .select-series-single-color__table tbody td.select-series-card-alt .select-series-view-alt-btn {
        margin-top: 0;
        font-size: 12px;
        color: #8C7965;
        text-decoration: underline;
        background: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
    }
    /* Section headers: dark brown bar */
    .select-series-single-color__field-tile-wrap .select-series-single-color__table ~ h4,
    .select-series-single-color__accessories-wrap .select-series-single-color__table ~ h4,
    .select-series-single-color__tables-content h4 {
        margin: 1rem 0 0.5rem 0;
        padding: 0.5rem 0;
        font-size: 1rem;
        font-weight: 700;
        color: #8C7965;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        border-bottom: 1px solid #e8e4df;
    }
}
td.select-series-card-product span {
    line-height: 22px;
}
@media (min-width: 769px) {
    .select-series-inventory-single-color .select-series-single-color__field-tile-wrap .select-series-single-color__table td.select-series-card-color > div, .select-series-inventory-single-color .select-series-single-color__accessories-wrap .select-series-single-color__table td.select-series-card-color > div {
        display: inline-flex;
        flex-direction: column-reverse;
        align-items: center;
        justify-content: flex-end;
    }img.select-series-card-color-single {
        margin-bottom: 10px;
    }a.select-series-add-to-budget.open-select-series-estimator {
        margin: 0;
        padding: 0;
    }a.select-series-add-to-budget.open-select-series-estimator:hover {
       background-color: transparent !important;

    }a.select-series-add-to-budget.open-select-series-estimator img {
    width: 28px !important;
}
}.select-series-single-color__swatch.is-selected {
    border-color: transparent !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    .select-series-single-color__field-tile-wrap .select-series-single-color__table tbody tr td.select-series-card-product img, .select-series-single-color__accessories-wrap .select-series-single-color__table tbody tr td.select-series-card-product img {
  
        object-fit: scale-down !important;
    }
}button.select-series-alt-popup__close {
    padding: 0;
    box-shadow: none !important;
    border: 0 !important;
}button.select-series-alt-popup__close {
    padding: 0 !important;
}