/* =========================================
   EPICSHREDS - PRINTFUL SIZE GUIDE
   ========================================= */

/* Overlay */

.es-product-preview .pf-size-guide-modal-wrapper {
    position: fixed !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    background: rgba(0, 0, 0, .78) !important;
    box-sizing: border-box;
    z-index: 999999 !important;
}

/* Modal */

.es-product-preview .pf-size-guide-modal {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    width: 900px !important;
    max-width: 100% !important;
    max-height: 90vh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-y: auto !important;
    background: #fff !important;
    color: #141414 !important;
    border: 2px solid #141414;
    border-radius: 8px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .4);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    box-sizing: border-box;
}

/* Sticky header */

.es-product-preview .pf-size-guide-modal__header {
    position: sticky !important;
    top: 0;
    z-index: 10;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px !important;
    margin: 0 !important;
    background: #141414 !important;
    border-bottom: 4px solid #D4FF00;
}

.es-product-preview .pf-size-guide-modal__header::before,
.es-product-preview .pf-size-guide-modal__header::after,
.es-product-preview .pf-size-guide-modal__header .pf-size-guide-modal-clear {
    display: none !important;
    content: none !important;
}

.es-product-preview .pf-size-guide-modal__title {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    color: #D4FF00 !important;
    font-size: 30px !important;
    font-weight: 900 !important;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.2;
}

.es-product-preview .pf-size-guide-modal__title::after {
    content: ".";
}

/* Close button */

.es-product-preview .pf-size-guide-modal__close {
    position: relative !important;
    inset: auto !important;
    float: none !important;
    flex: 0 0 36px;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #D4FF00 !important;
    border: 0 !important;
    border-radius: 4px;
    cursor: pointer;
}

.es-product-preview .pf-size-guide-modal__close img {
    display: none !important;
}

.es-product-preview .pf-size-guide-modal__close::after {
    content: "\00D7";
    display: block;
    color: #141414;
    font-size: 30px;
    font-weight: 700;
    line-height: 36px;
    text-align: center;
}

.es-product-preview .pf-size-guide-modal__close:hover {
    background: #fff !important;
}

/* Main content */

.es-product-preview .pf-size-guide-modal__content {
    padding: 22px 24px 24px !important;
    margin: 0 !important;
}

.es-product-preview .pf-size-guide-modal__content h4 {
    color: #141414 !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    font-style: italic;
    text-transform: uppercase;
    margin: 18px 0 12px !important;
}

.es-product-preview .pf-size-guide-modal__content p {
    font-size: 14px !important;
    line-height: 1.55 !important;
    margin: 0 0 10px !important;
}

/* Main measurement tabs */

.es-product-preview .pf-product-size-guide__tabs {
    display: flex !important;
    gap: 6px;
    padding: 0 !important;
    margin: 0 0 20px !important;
    border: 0 !important;
    list-style: none !important;
}

.es-product-preview .pf-product-size-guide__tabs::before,
.es-product-preview .pf-product-size-guide__tabs::after {
    display: none !important;
    content: none !important;
}

.es-product-preview .pf-product-size-guide__tab {
    flex: 1;
    float: none !important;
    padding: 13px 10px !important;
    margin: 0 !important;
    background: #141414 !important;
    color: #fff !important;
    border: 2px solid #141414 !important;
    border-radius: 4px;
    text-align: center;
    font-size: 14px !important;
    font-weight: 800 !important;
    font-style: italic;
    text-transform: uppercase;
    cursor: pointer;
}

.es-product-preview .pf-product-size-guide__tab--active {
    background: #D4FF00 !important;
    color: #141414 !important;
}

.es-product-preview .pf-product-size-guide__tab:not(
    .pf-product-size-guide__tab--active
):hover {
    background: #8009A6 !important;
    border-color: #8009A6 !important;
}

/* Measurement illustrations and instructions */

.es-product-preview .pf-size-guide-modal-measurements {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    align-items: start;
    gap: 22px;
    padding: 18px !important;
    margin: 18px 0 22px !important;
    background: #F8F5F2;
    border: 1px solid #E4E0DC;
    border-radius: 5px;
}

.es-product-preview .pf-size-guide-modal-measurements::before,
.es-product-preview .pf-size-guide-modal-measurements::after,
.es-product-preview .pf-size-guide-modal-measurements > .pf-size-guide-modal-clear {
    display: none !important;
    content: none !important;
}

.es-product-preview .pf-size-guide-modal-measurements__image,
.es-product-preview .pf-size-guide-modal-measurements__description {
    float: none !important;
    width: auto !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0;
}

.es-product-preview .pf-size-guide-modal-measurements__image {
    text-align: center;
    font-size: 12px;
}

.es-product-preview .pf-size-guide-modal-measurements__image img {
    display: block;
    width: auto !important;
    max-width: 100% !important;
    max-height: 230px;
    object-fit: contain;
    margin: 0 auto 10px !important;
}

.es-product-preview .pf-size-guide-modal-measurements p {
    background: transparent !important;
}

.es-product-preview .pf-size-guide-modal-measurements__description strong,
.es-product-preview .pf-size-guide-modal-measurements__description b {
    color: #8009A6 !important;
    font-weight: 800;
}

/* Inches / Centimetres */

.es-product-preview .pf-size-guide-modal-size-chart__tabs {
    display: flex !important;
    gap: 6px;
    padding: 0 !important;
    margin: 0 0 12px !important;
    border: 0 !important;
    list-style: none !important;
}

.es-product-preview .pf-size-guide-modal-size-chart__tabs::before,
.es-product-preview .pf-size-guide-modal-size-chart__tabs::after {
    display: none !important;
    content: none !important;
}

.es-product-preview .pf-size-guide-modal-size-chart__tab {
    float: none !important;
    padding: 8px 16px !important;
    margin: 0 !important;
    background: #F4F1F5 !important;
    color: #141414 !important;
    border: 1px solid #DDDAD6 !important;
    border-radius: 4px;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    cursor: pointer;
}

.es-product-preview .pf-size-guide-modal-size-chart__tab--active {
    background: #8009A6 !important;
    border-color: #8009A6 !important;
    color: #fff !important;
}

/* Measurement table */

.es-product-preview .pf-size-guide-modal-size-chart__table {
    width: 100% !important;
    margin: 0 !important;
    border-collapse: collapse !important;
    border: 1px solid #E4E0DC !important;
    font-size: 14px !important;
}

.es-product-preview .pf-size-guide-modal-size-chart__table td {
    padding: 10px 12px !important;
    text-align: center !important;
    border: 0 !important;
    border-bottom: 1px solid #E4E0DC !important;
}

.es-product-preview .pf-size-guide-modal-size-chart__table thead td {
    background: #141414 !important;
    color: #D4FF00 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    text-transform: uppercase;
}

.es-product-preview .pf-size-guide-modal-size-chart__table tbody td {
    background: #fff !important;
    color: #141414 !important;
}

.es-product-preview .pf-size-guide-modal-size-chart__table tbody tr:nth-child(even) td {
    background: #F4F1F5 !important;
}

.es-product-preview .pf-size-guide-modal-size-chart__table tbody td:first-child {
    color: #8009A6 !important;
    font-weight: 800 !important;
}

.es-product-preview .pf-size-guide-modal-size-chart__table tbody tr:hover td {
    background: #F0E3F5 !important;
}

/* Mobile */

@media (max-width: 767px) {

    .es-product-preview .pf-size-guide-modal-wrapper {
        padding: 10px !important;
    }

    .es-product-preview .pf-size-guide-modal {
        max-height: 94vh !important;
        max-height: 94dvh !important;
    }

    .es-product-preview .pf-size-guide-modal__header {
        padding: 12px 14px !important;
    }

    .es-product-preview .pf-size-guide-modal__title {
        font-size: 24px !important;
    }

    .es-product-preview .pf-size-guide-modal__content {
        padding: 14px !important;
    }

    .es-product-preview .pf-product-size-guide__tab {
        font-size: 11px !important;
        padding: 10px 6px !important;
    }

    .es-product-preview .pf-size-guide-modal-measurements {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding: 12px !important;
    }

    .es-product-preview .pf-size-guide-modal-measurements__image img {
        max-height: 190px;
    }

    .es-product-preview .pf-size-guide-modal-size-chart__table td {
        padding: 9px 8px !important;
        font-size: 12px !important;
    }

}