/* MEDIA GALLERY */
.twa-magnify{
    position: absolute;
    bottom: 32px;
    right: 12px;
    z-index: 1;
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    border: 1px solid #FFF;
    background: rgba(255, 255, 255, 0.50);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
/* END MEDIA GALLERY */

/* VIEWS COUNT */
.product__media-wrapper{
    position: relative;

    .live-view-badge{
        top: 12px;
        right: 12px;
        @media screen and (min-width: 750px){
            top: calc(var(--header-height) + 20px);
        }
        .live-view-badge__content{
            border-radius: 0;            
            border: 1px solid #fff;
            background: rgba(255, 255, 255, 0.50);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
        }
    }

    .twa-people-views{
        padding: 4px;
        border: 1px solid #fff;
        background: rgba(255, 255, 255, 0.50);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        position: absolute;
        top: 12px;
        right: 12px;
        z-index: 5;

        .twa-views-icon{
            display: flex !important;
            justify-content: center;
            align-items: center;
            width: 8px;
            height: 8px;
            border-radius: 100%;
            position: relative;
            @media screen and (min-width: 750px){
                width: 10px;
                height: 10px;
            }
        }

        .twa-views-icon-inner{
            width: 4px;
            height: 4px;
            background: #34A853;
            display: block !important;
            border-radius: 100%;                  
            transform: scale(1);
            animation: pulse 2s infinite;
            @media screen and (min-width: 750px){
                width: 6px;
                height: 6px;
            }
        }

        p{
            line-height: 1.1;
            text-transform: uppercase;
            margin: 0;
            font-size: 10px;
            letter-spacing: 0;
            color: #131313;
        }
    }

    .grid__item--media-outer{
        .grid__item--media-inner{
            position: relative;
        }
        @media screen and (min-width: 750px){
            position: sticky !important;
            top: 61px;
        }
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(52, 168, 83, 0.4);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 2px rgba(52, 168, 83, 0.4);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(52, 168, 83, 0.4);
    }
}
/* END VIEWS COUNT */

.twa-sidemodal-outercontainer{
    position: relative;

    &.twa-sidemodal-contentonly{
        &.twa-sidemodal-active{
            .twa-sidemodal-contents-outer{
                @media screen and (max-width: 750px){
                    transform: translateY(0);
                }
            }
        }
        & .twa-sidemodal-contents-outer{
            @media screen and (max-width: 749px){
                height: auto;
                top: unset;
                bottom: 0;
            }
        }
        & .twa-sidemodals-header{
            padding: 20px 15px;
            margin: 0;
            @media screen and (min-width: 750px){
                padding: 24px 15px;
            }
            
            h2{
                text-transform: uppercase;
                margin: 0;
                font-weight: 500;
                font-size: 12px;
                color: #131313;
                line-height: 1;
                letter-spacing: 0;
                @media screen and (min-width: 750px){
                    font-size: 14px;
                }
            }
        }
    }
    &.twa-sidemodal-active{
        display: block;
        .twa-sidemodal-overlay{
            display: block;
        }
        .twa-sidemodal-contents-outer{
            transform: translateY(30%);
            @media screen and (min-width: 750px){
                transform: translateX(0) translateY(0);
            }
        }

        .twa-sidemodal-btnclose{
            &.twa-mobile{
                display: flex;
                @media screen and (min-width: 750px){
                    display: none;
                }
            }
        }
    }

    .twa-sidemodal-btnclose{
        position: fixed;
        top: 12px;
        right: 12px;
        border-radius: 100%;
        border: 1px solid #fff;
        background: rgba(255, 255, 255, 0.80);
        backdrop-filter: blur(1px);
        -webkit-backdrop-filter: blur(1px);
        display: none;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        z-index: 99999;
        @media screen and (min-width: 750px){
            top: 15px;
            right: 15px;
            backdrop-filter: unset;
            -webkit-backdrop-filter: unset;
            background:transparent;
            border: unset;
            width: 28px;
            height: 28px;
        }
        &.twa-mobile{
            @media screen and (min-width: 750px){
                display: none;
            }
        }
        &.twa-desktop{
            position: absolute;
            display: none;
            @media screen and (min-width: 750px){
               display: flex;
            }
        }
    }

    button{
        appearance: none;
        -webkit-appearance: none;
        background: transparent;
        border: none;
        cursor: pointer;
    }

    .twa-sidemodal-overlay{
        background: rgba(19, 19, 19, 0.50);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        cursor: pointer;
        display: none;
        width: 100%;
        height: 100%;
        z-index: 999;
        position: fixed;
        top: 0;
        left: 0;
    }

    .twa-sidemodals-header{
        margin: 0 15px;
        position:relative;
        display: flex;
        gap: 32px;
        overflow-x: auto;
        @media screen and (min-width: 750px){
            gap: 45px;
        }

        button{
            padding: 20px 0;
            font-size: 12px;
            text-transform: uppercase;
            line-height: 1.1;
            font-weight: 500;
            color: #c2c2c2;
            border-bottom: 1px solid transparent;
            font-family: var(--font-body-family);
            flex-shrink: 0;
            @media screen and (min-width: 750px){
                font-size: 14px;
                padding: 24px 0;
            }
            &.twa-tabactive{
                color: #131313;
                border-bottom-color: #131313;
            }
        }
    }

    .twa-sidemodal-contents-outer{
        max-width: 100%;
        width: 100%;
        height: 100%;
        background-color: #fff;
        position: fixed;
        z-index: 9999;
        transition: transform 0.3s ease-in-out;
        top: 0;
        right: 0;
        transform: translateY(100%);
        @media screen and (min-width: 750px){
            width: 600px;
            margin-left: auto;            
            transform: translateX(100%) translateY(0);
        }

        .twa-sidemodals-contents{
            border-top: 1px solid #f4f4f4;
            position: relative;
            height: 100%;

            .twa-sidemodals-innercontent{
                padding: 32px 15px;
                display: none;
                z-index: 1;
                font-size: 12px;
                color: #131313;
                max-height: 70vh;
                overflow-y: auto;
                @media screen and (min-width: 750px){
                    max-height: 95vh;
                    max-height: 95dvh;
                }             

                a{
                    color: inherit;
                    font-weight: 500;
                }

                ul{
                    padding-left: 14px;
                    margin: 0;
                }
                
                @media screen and (min-width: 750px){
                    padding: 42px 15px;
                }

                &.twa-tabactivecontents,
                &.twa-uspcontentsonly{
                    display: block;
                    @media screen and (max-width: 749px){
                        padding: 24px 15px;
                    }

                    p{
                        margin: 0;
                        &:not(:last-child){
                            margin-bottom: 10px;
                        }
                    }
                    ul{
                        padding-left: 14px;
                        margin: 0;
                    }
                }

                .metafield-rich_text_field{
                    line-height: 1.2;
                    font-size: 12px;
                    color: #131313;
                    p{
                        margin: 0;
                        &:not(:last-child){
                            margin-bottom: 10px;
                        }
                    }
                    ul{
                        padding-left: 14px;
                        margin: 0;
                    }
                }
            }
        }
    }
}

.twa-sidemodals{
    button{
        appearance: none;
        -webkit-appearance: none;
        background: transparent;
        border: none;
        display: flex;
        align-items: center;
        gap: 6px;
        text-transform: uppercase;
        font-size: 12px;
        padding: 7.5px 0;
        font-weight: 500;        
        font-family: var(--font-body-family);
        line-height: 1.1;
        cursor: pointer;
        svg{
            width: 10px;
            height: 10px;
        }
    }

    .twa-shortdescription{
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid #f4f4f4;
        
    
        line-height: 1.2;
        font-size: 12px;
        color: #131313;

        p{
            &:not(:last-child){
                margin-top: 0;
                margin-bottom: 10px;
            }
        }

        ul{
            margin: 0;
            padding-left: 16px;
        }
        &.twa-shortdescription-readmore{
            .twa-shortinnerdesc{
                display: -webkit-box;
                -webkit-box-orient: vertical;
                line-clamp: 2;
                -webkit-line-clamp: 2;
                text-overflow: ellipsis;
                overflow: hidden;
            }   
        }     
    
        .twa-readmore{
            margin-top: 12px;
            text-transform: capitalize;
            text-decoration: underline;
            padding: 0;
        }
    }
}


.twa-sidemodal-btn{
    color: #131313;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    font-size: 12px;
    padding: 7.5px 0;
    font-weight: 500;        
    font-family: var(--font-body-family);
    line-height: 1.1;
    cursor: pointer;
    &.twa-sidemodalicon-only{
        padding: 0;
        display: inline-flex;
    }
}

.twa-sidemodal-ctas{
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.twa-btn-primary{
    font-size: 12px;
    background-color: #131313;
    color: #fff;
    padding: 15px;
    max-height: 38px;
    width: 100%;
    height: 100%;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align:center;
    text-transform: uppercase;
    &:hover{
        opacity: 0.9;
    }
    @media screen and (min-width: 750px){
        max-height: 40px;
    }
}

.twa-sidemodal-btnclose{
    &.twa-btn-outline{
        font-size: 12px;
        text-align:center;
        text-transform: uppercase;
        position: relative;
        border-radius: 0;
        display: block;
        top: unset;
        right: unset;
        width: 100%;
        max-height: 38px;
        height: 100%;
        padding: 15px;
        color: #131313;
        border: 1px solid #131313;
        backdrop-filter: unset;
        -webkit-backdrop-filter: unset;
        line-height: 1.1;
        @media screen and (min-width: 750px){
            max-height: 40px;
        }
    }
}

/* JOIN NOW SIDEMODAL */
.twa-sidemodal-joinnow{
    .twa-sidemodal-contentinner{
        height: 100%;

        .twa-sidemodal-btnclose:not(.twa-btn-outline, .twa-btn-primary){
            border-radius: 9999px;
            border: 1px solid #FFF;
            background: rgba(255, 255, 255, 0.80);
            backdrop-filter: blur(1px);
            -webkit-backdrop-filter: blur(1px);
            svg{
                width: 10px;
                height: 10px;
            }
        }
    }

    &.twa-sidemodal-outercontainer{
        &.twa-sidemodal-active{
            .twa-sidemodal-contents-outer{
                transform: translateY(0) translateX(0%);
            }
        }
    }

    .twa-sidemodal-contents-outer{
        transform: translateY(0) translateX(100%);
        width: 95vw;
        @media screen and (min-width: 750px){
            width: 500px;
        }
    }
    .twa-sidemodals-innercontent{
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    .twa-sidemodal-joinnow-mediaheader{
        height: 58.5%;
        flex-shrink: 0;
        padding: 24px 12px;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        @media screen and (min-width: 750px){
            padding: 32px 15px;
        }

        .twa-sidemodal-video{
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    .twa-sidemodal-joinnow-contents{
        height: 41.4%;
        padding: 24px 12px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        @media screen and (min-width: 750px){
            padding: 24px 15px;
        }

        .twa-sidemodal-joinnow-content{
            color: #131313;
            line-height: 1.2;
            font-size: 12px;
            p{
                margin-top: 0;
            }
            ul{
                list-style: none;
                padding: 0;
                margin: 0;
                margin-top: 24px;
                li{
                    &:not(:last-child){
                        margin-bottom: 12px;
                    }
                    &:before{
                        content: "";
                        width: 12px;
                        height: 12px;
                        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 13 13" fill="none"><path d="M9.07357 4.65234L6.16857 8.52634C6.10407 8.61224 6.02187 8.68324 5.92757 8.73464C5.83317 8.78604 5.72897 8.81654 5.62177 8.82414C5.51467 8.83164 5.40717 8.81614 5.30647 8.77864C5.20587 8.74104 5.11447 8.68224 5.03857 8.60634L3.53857 7.10634" stroke="%23131313" stroke-width="0.8" stroke-linecap="round" stroke-linejoin="round"/><path d="M6.3999 12.4004C9.7136 12.4004 12.3999 9.71409 12.3999 6.40039C12.3999 3.08669 9.7136 0.400391 6.3999 0.400391C3.0862 0.400391 0.399902 3.08669 0.399902 6.40039C0.399902 9.71409 3.0862 12.4004 6.3999 12.4004Z" stroke="%23131313" stroke-width="0.8" stroke-linecap="round" stroke-linejoin="round"/></svg>');
                        background-repeat: no-repeat;
                        background-position: center;
                        background-size: cover;
                        display: inline-block;
                        margin-right: 6px;
                        vertical-align: middle;
                    }
                }
            }
            margin-bottom: 36px;
        }
    }

    .twa-sidemodal-joinnow-header{
        position: relative;
        z-index: 1;
        &>:not(:last-child){
            margin-bottom: 8px;
        }
        p{
            margin: 0;
            font-size: 10px;
            text-transform: uppercase;
            color: #131313;
            line-height: 1.2;
            @media screen and (min-width: 750px){
                font-size: 12px;
            }
        }

        h2{
            color: #131313;
            margin: 0;
            font-size: 18px;
            line-height:1.2;
            @media screen and (min-width: 750px){
                font-size: 24px;
            }
        }
    }
}
/* END JOIN NOW SIDEMODAL */

/* SIZE GUIDE SIDEMODAL */
.twa-size-container{
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    @media screen and (min-width: 750px){
        margin-bottom: 18px;
    }
    .twa-btn-sizeguide{
        line-height: 1.1;
        padding: 10px 12px;
        border: 1px solid #f4f4f4;
        font-size: 11px;
        font-weight: 400;
        color: #131313;
        @media screen and (min-width: 750px){
            font-size: 12px;
        }
    }

    .twa-size-region-selector{
        border: 1px solid #f4f4f4;
        padding: 2px;
        display: flex;
        align-items: center;
        gap: 6px;
        button{
            color: #939393;
            font-family: var(--font-body-family);
            padding: 6px;
            text-transform: uppercase;
            font-size: 11px;
            appearance: none;
            -webkit-appearance: none;
            background: transparent;
            border: none;
            cursor: pointer;
            width: 35px;
            transition: all 0.3s ease-in-out;
            &.twa-size-active,
            &:hover{
                background: #131313;
                color: #fff;
            }
            @media screen and (min-width: 750px){
                width: 40px;
                font-size: 12px;
            }
        }
    }
}

.twa-sidemodal-sizeguide{
    &.twa-sidemodal-outercontainer{
        &.twa-sidemodal-active{
            .twa-sidemodal-contents-outer{
                transform: translateY(0) translateX(0%);
            }
        }
    }

    .twa-sidemodal-contents-outer{
        transform: translateY(0) translateX(100%);
        width: 100%;
        @media screen and (min-width: 750px){
            width: 500px;
        }
    }
    .twa-sidemodals-header{
        padding: 20px 15px;
        margin: 0;
        @media screen and (min-width: 750px){
            padding: 24px 15px;
        }
        
        h2{
            text-transform: uppercase;
            margin: 0;
            font-weight: 500;
            font-size: 12px;
            color: #131313;
            line-height: 1;
            letter-spacing: 0;
            @media screen and (min-width: 750px){
                font-size: 14px;
            }
        }
    }

    .twa-sidemodals-sgcontents{
        border-top: 1px solid #f4f4f4;
        .twa-sizechart{
            padding: 24px 8px;
            @media screen and (min-width: 750px){
                padding: 24px 15px;
            }
            .twa-sizechart-region-selector,
            .twa-sizechart-region-size-selector{
                display: flex;
                align-items: center;
                justify-content: space-between;
                p{
                    margin: 0;
                    font-size: 10px;
                    color: #131313;
                    letter-spacing: 0;
                    text-transform: uppercase;
                    font-size: 10px;
                    @media screen and (min-width: 750px){
                        font-size: 12px;
                    }
                }

                .twa-sizechart-region-selector-options,
                .twa-sizechart-length-selector-options{
                    border: 1px solid #f4f4f4;
                    button{
                        font-family: var(--font-body-family);
                        padding: 6px;
                        text-transform: uppercase;
                        font-size: 11px;
                        appearance: none;
                        -webkit-appearance: none;
                        background: transparent;
                        border: none;
                        cursor: pointer;
                        width: 35px;
                        transition: all 0.3s ease-in-out;
                        &.twa-sizechart-active,
                        &.twa-sizechart-length-active,
                        &:hover{
                            background: #131313;
                            color: #fff;
                        }
                        @media screen and (min-width: 750px){
                            width: 40px;
                            font-size: 12px;
                        }
                    }
                }
            }

            .twa-sizechart-region-selector{
                margin-bottom: 32px;
            }

            .twa-sizechart-fit-info{
                margin-top: 32px;
                .twa-sizechartheader{
                    text-align: center;
                }
                p{
                    margin:0 0 16px;
                    color: #131313;
                    text-transform: uppercase;
                    letter-spacing: 0;
                    font-size: 10px;
                    @media screen and (min-width: 750px){
                        font-size: 12px;
                    }
                }

                .tw-region-info{
                    display: grid;
                    grid-template-columns: repeat(3, 1fr);
                    border: 1px solid #f4f4f4;
                    padding: 10px;
                    .tw-region-item{
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        gap: 4px;
                        text-transform: uppercase;
                        &:not(:last-child){
                            border-right: 1px solid #f4f4f4;
                        }

                        img{
                            display: block;
                            width: 12px;
                            height: 12px;
                            aspect-ratio: 1/1;
                            object-fit: cover;
                            @media screen and (min-width: 750px){
                                width: 15px;
                                height: 15px;
                            }
                        }

                        .twa-region-span{
                            color: #131313;
                            font-size: 10px;
                            line-height: 1.1;
                            @media screen and (min-width: 750px){
                                font-size: 12px;
                            }
                        }
                    }
                }
            }

            .twa-insole-length{
                border-left: 1px solid #f4f4f4;
                border-bottom: 1px solid #f4f4f4;
                border-right: 1px solid #f4f4f4;
                display: flex;
                align-items:center;
                justify-content: center;
                gap: 6px;
                padding: 12px;
                @media screen and (min-width: 750px){
                    padding: 14px;
                }
                p,span{
                    font-size: 10px;
                    margin: 0;
                    color: #131313;
                    @media screen and (min-width: 750px){
                        font-size: 12px;
                    }
                }

                span{
                    color:#939393;
                }
            }

            .twa-sizechart-inner-container{
                .twa-sizechart-table{
                    display: grid;
                    grid-template-columns: repeat(6, 1fr);
                    margin-top: 12px;
                    border-top: 1px solid #f4f4f4;
                    .twa-sizechart-size-btn{
                        border-top: 1px solid transparent;
                        border-left: 1px solid transparent;
                        border-right: 1px solid #f4f4f4;
                        border-bottom: 1px solid #f4f4f4;
                        font-size: 11px;
                        padding: 12px 6px;
                        @media screen and (min-width: 750px){
                            font-size: 12px;
                            padding: 14px 6px;
                        }
                        &.twa-sizechart-size-active{
                            border-color: #131313;
                        }
                    }
                }
            }
        }
    }
}
/* END SIZE GUIDE SIDEMODAL */
/* STOCK INFO */
.twa-stock-info{
    display: flex;
    align-items:center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;

    .back-in-stock{
        cursor: pointer;
    }
}
/* END STOCK INFO */
/* PRODUCT SWATCH */
.product-swatch{        

    .swatch-title{
        text-transform: uppercase;
        letter-spacing: 0;
        font-size: 10px;
        color: #131313;
        @media screen and (min-width: 750px){
            font-size: 12px;
            margin-bottom: 12px;
        }
    }
    .twa-product-swatch-container{
        display: grid;
        gap: 1.5px;
        grid-template-columns: repeat(6, 1fr);
        @media screen and (min-width: 750px){
            grid-template-columns: repeat(7, 1fr);
            gap: 2px;
        }

        .twa-product-swatch-item{
            width: 100%;

            &.twa-product-swatch-hidden-mobile{
                display: none;
                @media screen and (min-width: 750px){
                    display: block;
                }
            }

            &.twa-product-swatch-hidden-desktop{
                display: none;
            }

            a{
                display: block;
                img{
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    aspect-ratio: auto;
                    display: block;
                }
                &.active{
                    border-bottom: 1px solid #131313;
                }
            }
        }

        .twa-product-swatch-showall{
            font-family: var(--font-body-family);
            appearance: none;
            -webkit-appearance: none;
            background: transparent;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            @media screen and (min-width: 750px){
                gap: 6px;
                font-size: 12px;
            }

            .twa-span-plus{
                display: inline-block;
                line-height: 1;
                margin-top: 2px;
            }

            .twa-remaining-mobile{
                display: inline-block;
                @media screen and (min-width: 750px){
                    display: none;
                }
            }

            .twa-remaining-desktop{
                display: none;
                @media screen and (min-width: 750px){
                    display: inline-block;
                }
            }
        }
    }
}
/* END PRODUCT SWATCH */