:root {
    --headerHeight: 60px;
}

* {
    margin: 0;
    padding: 0;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    outline: none;
    user-select: none;
}

body {
    background: url(./bg-gradient.png) repeat-x 0 0 transparent;
    overflow: auto;
    box-sizing: border-box;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 90% !important;
    text-align: center;
    /* max-width: 1000px;*/
    margin: auto;
    font-family: 'Roboto Condensed', sans-serif;

}

.elem_header {
    color: white;
    font-size: 16px;
    padding-top: 16px;
}

.tint_container_desktop {
    position: absolute;
    left: 14px;
    top: 14px;
    bottom: 14px;
    border-bottom: 1px solid rgba(245, 99, 75, 0.5);
    width: 265px;
}



.mainContainer {
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 300px;
    right: 214px;
    background: #FFF;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.70);
}

#fitmixContainer {
    position: absolute;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
}

.catalogContainer {
    position: absolute;
    right: 14px;
    top: 14px;
    bottom: 14px;

    border-bottom: 1px solid rgba(245, 99, 75, 0.5);

    width: 196px;
    overflow: auto;

    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;

    opacity: 0.0;
    transition-duration: 2s;
}

.frameEntry {
    position: relative;

    height: 125px;
    width: 180px;
    /* width: 188px; */

    background: white;
    border: 1px solid #C7C7C7;
    border-radius: 4px;
    cursor: pointer;

    margin-bottom: 4px;
}

.pupillaryDistanceSelect {
    padding: 4px 20px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    //-webkit-appearance: none;
    //-moz-appearance: none;
    //text-indent: 1px;
    //text-overflow: '';
    font-weight: bold;
    margin-top: 4px;
    height: 34px;
}


.imageContainer {
    pointer-events: none;
    margin: auto;
}

.imageQuarter {
    object-fit: cover;
    width: 180px;
}

.glassesIdTextValue {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    margin: auto;
    top: 14px;
}


.buttonTryOn {
    position: absolute;
    bottom: 4px;
    right: 4px;
    padding: 0 5px;
    height: 20px;
    line-height: 20px;
    margin: auto;
    text-transform: uppercase;
    vertical-align: middle;
    text-align: center;
    font-size: 12px;
    color: #666;
    background: #D7D7D7;
    border: 0;
    border-radius: 2px;
    pointer-events: none;
    transition: all 0.2s ease-in-out;
}

.frameEntry:hover .buttonTryOn {
    /*
      color: #fff;
      background: #F5634B;
      */
}

.selected .buttonTryOn {
    color: #fff;
    background: #F5634B;
}

.catalogContainer::-webkit-scrollbar {
    width: 14px !important;
    /* height: 0 !important; */
}
.catalogContainer::-webkit-scrollbar-track {
    background: orange;        /* color of the tracking area */
}
  
.catalogContainer::-webkit-scrollbar-thumb {
    background-color: blue;    /* color of the scroll thumb */
    border-radius: 16px;       /* roundness of the scroll thumb */
}

@media only screen and (min-width: 700px) {
    .catalogContainer {
        overflow-x: auto;
    }
}

.catalogContainer {
    -ms-overflow-style: none;
}
.activated {
    color: #fff !important;
    background-color: #286090 !important;
    border-color: #204d74 !important;
}

.rx_type .rx_heading {
    width: 100%;
    text-align: center;
    border-bottom: 1px dotted black;
}

.rx_type {
    border: 1px solid #cccccc;
    background: #ffffff;
    padding: 5px;
    border-radius: 4px;
    margin-bottom: 5px;
    cursor: pointer;
    margin-top: 10px;
}

ul.tint_color {
    display: inline;
    float: left;
    margin-top: 5px;
    list-style: none;
    padding: 0px;
    margin-bottom: 5px;
}

.btn-default {
    color: rgb(51, 51, 51);
    background-color: rgb(255, 255, 255);
    border-color: rgb(204, 204, 204);
}

.media {
    margin-top: 5px;
}

.size_manage {
    font-size: 9px;
}

.badge_one {
    width: 100%;
    padding: 15px;
    color: #343a40;
    background-color: #fff;
    font-size: 12px;
    display: inline-block;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    border-radius: 10px;

}

.rx_type_label {
    color: #343a40;
    display: inline-block;
    max-width: 100%;
    margin-bottom: 5px;
    font-weight: 700;
    font-size: 10px;
}

ul.tint_color {
    display: inline;
    float: left;
    margin-top: 5px;
    list-style: none;
    padding: 0px;
    margin-bottom: 5px;
}

.btn-default {
    color: rgb(51, 51, 51);
    background-color: rgb(255, 255, 255);
    border-color: rgb(204, 204, 204);
}

.media {
    margin-top: 5px;
}

.size_manage {
    font-size: 9px;
}

.lens_image_size {}

.button_style {
    margin-bottom: 15px;
    width: 100%;
    border-radius: 50px;
    font-size: 16px;
    padding: 10px;
    color: white;
}

.scrollable_div {
    height: 480px;
    overflow-y: auto;
}

.badge-dark {
    color: #fff;
    background-color: #343a40;
    font-size: 10px;
}

.lenses_img {
    width: 100%;
}

.tint_color_images {
    float: left;
}

.selected_tint {
    border: 1px solid;
    border-radius: 500px;
    -webkit-border-radius: 500px;
    -moz-border-radius: 500px;
}

.cart_btn {
    position: absolute;
    top: 0;
    left: 50%;
    padding: 6px 10px !important;
    font-size: 22px !important;
    background-color: #4CAF50;
    border: none;
    color: white;
    font-weight: 500;
    cursor: pointer;
    margin-top: 5px;
}

.fittingBoxCloseButton {
    background-image: url('./iconclose.svg');
    background-repeat: no-repeat;
    background-size: 42px;
    transition: 1s;
    width: 53px;
    height: 53px;

}

.main_fitbox_layout {
    position: absolute;
    top: 40px;
    bottom: 0px;
    left: 0;
    right: 0;
}

@media screen and (orientation: portrait) {

    body {
        width: 100% !important;
    }

    .tint_container_desktop {
        display: none !important;
    }



    .tintButtonSize {
        display: block !important;
    }

    .mobile_price{
        font-size: 18px !important;
    }

    .elem_header {
        color: white;
        font-size: 10px;
        padding-top: 12px;
    }



    .mainContainer {
        position: absolute;
        top: 0px;        /* VTO starts from very top of screen */
        bottom: 4px;
        left: 4px;
        right: 4px;
    }

    .imageContainer {
        margin-top: 10px;
    }

    .catalogContainer {
        position: absolute;
        bottom: 4px;
        height: 145px; /* Increased from 130px to 145px (+15px) */
        left: 4px;
        right: 4px;
        top: auto; /* Remove top: initial to eliminate extra white space */
        width: initial;
        white-space: nowrap;
        border: none;
        z-index: 10;
        display: none; /* Hidden by default, will be shown when VTO initializes */
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }
    
    .catalogContainer.vto-ready {
        display: block;
        opacity: 1;
    }

    .frameEntry {
        /* height: 128px; */
        width: 180px;
        display: none; /* Hidden by default, will be shown when VTO initializes */
        margin: 0px;
        margin-right: 4px;
        margin-top: 0px; /* Ensure no top margin */
        padding: 0px; /* Ensure no padding */
        overflow-y: scroll !important;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }
    
    .frameEntry.vto-ready {
        display: inline-block;
        opacity: 1;
    }

    .imageQuarter {
        width: 80%;
    }

    .sizeDisplay {
        font-size: 11px !important;
    }

    .genderText {
        font-size: 18px !important;
        margin-top: 25% !important;
    }

    .cart_btn {

        left: 30% !important;
        padding: 6px 25px !important;
        font-size: 12px !important;
        bottom: 149px !important; /* Mobile: Just above frame carousel (145px carousel + 4px margin) */
        top: auto;
        width: 50%;
        background-color: #4CAF50; /* Green background like desktop version */
        border: none;
        color: white;
        font-weight: 500;
        cursor: pointer;
        display: none; /* Hidden by default, will be shown when VTO initializes */
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }
    
    .cart_btn.vto-ready {
        display: block;
        opacity: 1;
    }

    .badge_one {

        padding: 6px !important;
    }


    .rx_type {
        margin-top: 0px !important;
    }

    .price_display {
        font-size: 10px !important;

    }

    .lensOptionsSelect {
        text-decoration: underline;
        font-size: 10px !important;
    }

    .closeBtn {

        padding: 4px 8px !important;
        font-size: 12px !important;
    }

    .logoDisp {

        padding-top: 12px !important;
        padding-left: 2px !important;
    }

}

.tintContainer {
    background: black;
    position: absolute;
    left: 0px;
    right: 0px;
    top: 0px;
    bottom: 0px;
    opacity: 0.80;
    color: white;
    font-weight: 300;
    font-size: 18px;
}

.sizeContainer {
    background: black;
    position: absolute;
    left: 0px;
    right: 0px;
    top: 0px;
    bottom: 0px;
    opacity: 0.80;
    color: white;
    font-weight: 300;
    font-size: 18px;
}

.sizeCloseButton {
    width: 52px;
    height: 58px;
    cursor: pointer;
    position: absolute;
    right: 0px;
    top: 13px;

    background-image: url('./iconclose.svg');
    background-repeat: no-repeat;
    background-size: 42px;
    transition: 1s;
}


.genderText {
    font-size: 24px;
    max-width: 340px;
    margin: auto;
    margin-top: 35%;
    margin-bottom: 14px;
}

.genderButtonContainer {
    margin: 4px;
}

.genderButton {
    border: 1px solid white;
    border-radius: 3px;
    margin: auto;
    width: 100px;
    display: inline-block;
    cursor: pointer;
    padding: 10px 0px;
    font-weight: 300;
    margin-right: 6px;
    margin-left: 6px;
}

.selected {
    border: 1px solid #F5634B;
    background: white;
    color: black;
}

.sizeSeparator {
    margin: 14px;
}

.sizeSeparatorLeft {
    width: 120px;
    border-bottom: 1px solid white;
    display: inline-block;
    position: absolute;
    left: -130px;
    top: 10px;
}

.sizeSeparatorText {
    display: inline-block;
    position: absolute;
    position: relative;

}

.sizeSeparatorRight {
    width: 120px;
    border-bottom: 1px solid white;
    display: inline-block;
    position: absolute;
    top: 10px;
    right: -130px;

}

.sizePupillaryDistanceText {
    margin: 8px;
    margin-bottom: 14px;
}

.sizeValidateButton {
    background: white;
    border-radius: 3px;
    padding: 10px 4px;
    text-transform: uppercase;
    font-size: 20px;
    width: 100px;
    color: black !important;
    text-align: center;
    margin: auto;
    margin-top: 16px;
    font-weight: 400 !important;
    cursor: pointer;
}


.infoContainerOverlay {
    background: black;
    position: absolute;
    left: 0px;
    right: 0px;
    top: 0px;
    bottom: 0px;
    opacity: 0.85;
    display: none;
}

.infoContainer {
    margin-top: 50vh;
    transform: translateY(-50%);
}

.infoContainer div {
    color: white;
    padding: 8px;
    font-weight: 300;
    color: #d8d8d8;
    font-size: 20px;
}

.infoTitle {
    font-size: 30px !important;
    padding: 0px !important;
}

.infoSeparator {
    width: 300px;
    border-bottom: 1px solid white;
    margin: auto;
    margin-bottom: 16px;
    padding: 0px !important;
    margin-top: 16px;
}

.infoSubtitle {
    font-size: 30px !important;
    padding: 0px !important;
}

.infoline {
    font-size: 22px;
}

.infoTestNow {
    background: white;
    border-radius: 3px;
    padding: 10px 0px !important;
    text-transform: uppercase;
    font-size: 20px;
    width: 120px;
    color: black !important;
    text-align: center;
    margin: auto;
    margin-top: 16px;
    font-weight: 600 !important;
    cursor: pointer;
}

.buttonContainer {
    position: absolute;
    top: 12px;
    right: 0px;
}

.buttonOnStream {
    width: 60px;
    height: 60px;
    cursor: pointer;
}

.newVersionContainer {
    position: absolute;
    left: 80px;
    right: 80px;
    top: 0px;
    margin: auto;
    white-space: nowrap;
    height: 58px;
    width: 200px;
    cursor: pointer;

}

.newVersionText {
    display: inline-block;
    line-height: 60px;
    color: white;
    font-size: 20px;
    vertical-align: top;
}

.buttonInfo {
    background-image: url('./iconinfo.svg');
    background-repeat: no-repeat;
    background-size: 18px;
    transition: 1s;
    width: 28px;
    height: 60px;
    display: inline-block;
    background-position: center;
}

.buttonSize {
    background-image: url('./iconsize.svg');
    background-repeat: no-repeat;
    background-size: 42px;
    transition: 1s;
    width: 53px;
    height: 53px;
}

.tintButtonSize {
    background-image: url('./shutter.svg');
    background-repeat: no-repeat;
    background-size: 42px;
    transition: 1s;
    width: 53px;
    height: 53px;
    display: none;

}

.fb-top-gradient {
    position: absolute;
    left: 0px;
    right: 0px;
    height: 75px;
    top: 0px;
    background: linear-gradient(rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.0) 100%);
    pointer-events: none;
}

.sizeDisplay {
    /*position: absolute;*/
    bottom: 4px;
    left: 4px;
    height: 20px;
    font-size: 12px;
    line-height: 20px;
    padding-top: 10px;
}

.price_display {
    display: block;
    position: absolute;
    bottom: 4px;
    left: 4px;
    height: 20px;
    font-size: 12px;
    line-height: 20px;
}

.wishListContainer {
    position: absolute;
    top: 3px;
    right: 145px;
}


.wishListSize {
    background-image: url('./wish_list_icon.svg');
    background-repeat: no-repeat;
    background-size: 42px;
    transition: 1s;
    width: 53px;
    height: 53px;
}

.lensOptionsSelect {
    text-decoration: underline;
    font-size: 16px;
}


.logoDisp {
    width: 100%;
    height: 100%;
}


.price_box {
    z-index: 50;
    position: absolute;
    width: fit-content;
    min-height: 40px;
    left: 10%;
}

.price_box.p {
    font-size: 18px !important;
}

@media only screen and (max-width: 600px) {
    .desk_price{
        display: none;
    }
}

@media only screen and (min-width: 600px) {
    .price_box{
        display: none;
    }
    .mobile_price p{
        font-size:14px !important ;
    }
}
