﻿
.tabs.tabs--accordion.lineitemGroup > .tabs__tab[aria-expanded=true]:before, .tabs.tabs--accordion > .tabs__tab.tabs--active:before {
    content: '\f106';
}

.tabs.tabs--accordion.lineitemGroup > .tabs__tab:before {
    content: '\f107';
}

.ShoppingCart .shoppingCart__shippingRequests {
    position: relative;
    top: -2rem;
}

.ShoppingCart .shoppingCart__shippingRequests div.req-ship-date-label div {
    margin-top: 0.5rem;
    height: 2rem !important;
    
}

.checkout .lineItemList .req-ship-date-container {
    margin: 0.25rem 0.5rem 1.5rem 0;
}

.pdfPortfolio .req-ship-date-container {
    display: none;
}

.pdfPortfolio__actions:last-child {
    margin-top: 20px;
}

.requestedShipDateUnsaved {
    display: none;
    max-width: 37.5rem !important;
}

.relatedProducts {
    margin: 2rem 0;
    position: relative;
    padding: 0 50px;
}

    .relatedProducts h3 {
        padding: 0;
        margin-bottom: 1rem;
    }

.relatedProducts__carousel {
    margin: 0 -10px;
}

.relatedProducts__slide {
    padding: 0 10px;
    height: 100% !important; /* Override Slick */
}

/* ========================================
           HEIGHT NORMALIZATION - FORCE EQUAL HEIGHTS
           ======================================== */

/* Force slick-track to use flexbox */
.relatedProducts__carousel .slick-track {
    display: flex !important;
    align-items: stretch !important;
}

/* Make each slide stretch to full height */
.relatedProducts__carousel .slick-slide {
    height: inherit !important; /* Inherit from slick-track */
    float: none !important; /* Disable float */
    display: flex !important;
}

    .relatedProducts__carousel .slick-slide > div {
        height: 100% !important;
        display: flex !important;
    }

.relatedProducts__slide {
    display: flex !important;
    height: 100% !important;
}

    /* Make thumbnail fill 100% height */
    .relatedProducts__slide .thumbnail {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        width: 100% !important;
    }

    /* ✅ CRITICAL: Fixed height for image area */
    .relatedProducts__slide .thumbnail__imageWrap {
        flex: 0 0 280px !important; /* Fixed height */
        height: 280px !important;
        min-height: 280px !important;
        max-height: 280px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative;
        overflow: hidden;
    }

    .relatedProducts__slide .thumbnail__imageLink {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100%;
        height: 100%;
    }

    .relatedProducts__slide .thumbnail__image {
        max-width: 100%;
        max-height: 100%;
        width: auto !important;
        height: auto !important;
        object-fit: contain;
    }

    /* Product info area - flexible */
    .relatedProducts__slide .thumbnail__name {
        /*flex: 0 0 auto;*/
        /*margin-top: 0.5rem !important;
        min-height: 2.5em;*/ /* Reserve space for 2 lines */
    }

    .relatedProducts__slide .thumbnail__code {
       /* flex: 0 0 auto;*/
       /* margin-top: 0.25rem !important;*/
    }

    /* Price area - push to bottom if exists */
    .relatedProducts__slide .thumbnail > *:last-child {
        margin-top: auto !important;
    }

/* ========================================
           SLICK ARROWS
           ======================================== */

.relatedProducts__carousel .slick-prev,
.relatedProducts__carousel .slick-next {
    width: 40px;
    height: 40px;
    z-index: 10;
}

.relatedProducts__carousel .slick-prev {
    left: -45px;
}

.relatedProducts__carousel .slick-next {
    right: -45px;
}

    .relatedProducts__carousel .slick-prev:before,
    .relatedProducts__carousel .slick-next:before {
        font-size: 40px;
        color: #333;
    }

/* ========================================
           RESPONSIVE
           ======================================== */

@media (max-width: 1200px) {
    .relatedProducts {
        padding: 0 40px;
    }

    .relatedProducts__carousel .slick-prev {
        left: -35px;
    }

    .relatedProducts__carousel .slick-next {
        right: -35px;
    }
    /* Smaller image area on tablet */
    .relatedProducts__slide .thumbnail__imageWrap {
        flex: 0 0 240px !important;
        height: 240px !important;
        min-height: 240px !important;
        max-height: 240px !important;
    }
}

@media (max-width: 768px) {
    .relatedProducts {
        padding: 0 10px;
    }

    .relatedProducts__carousel .slick-prev,
    .relatedProducts__carousel .slick-next {
        width: 30px;
        height: 30px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 50%;
    }

    .relatedProducts__carousel .slick-prev {
        left: 5px;
    }

    .relatedProducts__carousel .slick-next {
        right: 5px;
    }

        .relatedProducts__carousel .slick-prev:before,
        .relatedProducts__carousel .slick-next:before {
            font-size: 24px;
        }
    /* Even smaller on mobile */
    .relatedProducts__slide .thumbnail__imageWrap {
        flex: 0 0 200px !important;
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
    }
}

@media (max-width: 480px) {
    .relatedProducts__carousel .slick-prev,
    .relatedProducts__carousel .slick-next {
        width: 25px;
        height: 25px;
    }

        .relatedProducts__carousel .slick-prev:before,
        .relatedProducts__carousel .slick-next:before {
            font-size: 20px;
        }

    .relatedProducts__slide .thumbnail__imageWrap {
        flex: 0 0 180px !important;
        height: 180px !important;
        min-height: 180px !important;
        max-height: 180px !important;
    }
}