/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
/*popup css*/
.page-template-ht-add-prescription-public-display-php .header-builder{position: fixed;width: 100%;left: 0;top: 0;z-index: 99;background: #fff;}
.page-template-ht-add-prescription-public-display-php #header.sticky-header .header-main.sticky{position: relative;}
.page-template-ht-add-prescription-public-display-php .page-wrapper.sticky-scroll-up #header.scroll-down .header-main.sticky, .page-template-ht-add-prescription-public-display-php .page-wrapper.sticky-scroll-up #header.sticky-header.scroll-down .main-menu-wrap{    visibility: visible;
    opacity: 1;transform: none;}


.h-full{height: 100%;}
#lensesPrescription .modal-dialog-scrollable{        margin: 0px 0 0;  max-width: 100%;    max-height: calc(100% - 0px);height: calc(100% - 0px);}
.tocart-form { padding-top: 133px; display: flex; flex-wrap: wrap; justify-content: center; } 
.tocart-form .tocart-form-left {
    width: 40%;    
    box-shadow: 13px 0px 6px -5px #100f0f1f;
    display: flex;
    flex-direction: column;
    align-items: center;
} 
.tocart-form .tocart-form-left .tocart-form-img {
    background: #fff; 
    border: none;  
    padding: 40px 30px;
    position: sticky; 
    top: 140px;
    width: 100%;
    text-align: center;
}
.tocart-form .tocart-form-right { width: 60%;padding-left:40px; }
.prx-back-detail { 
    display: block; 
    font-size: 14px; 
    font-weight: normal; 
    text-align: center; 
    padding: 20px 0px; 
    border-bottom: none; 
}

.prx-frame-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.prx-frame-preview img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.tocart-form .tocart-form-left h1 { 
    font-size: 24px; 
    font-weight: 700;
    line-height: 30px; 
    text-align: center;
    margin: 20px 0 15px 0;
}
.tocart-form .separately-price { 
    margin: 20px 0px; 
    line-height: 28px; 
    font-size: 16px; 
    font-weight: 300; 
    letter-spacing: 0.3pt;
    width: 100%;
}
.tocart-form p.frame, .tocart-form p.lens { 
    margin: 0 auto; 
    line-height: 23px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.tocart-form .separately-price .price { 
    color: #000; 
    font-weight: 500 !important;
    font-size: 16px !important;
    margin-left: auto;
}

/* Professional styling improvements */
.tocart-form .separately-price {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.tocart-form p.frame.price_border {
    border-top: 2px solid #dee2e6;
    padding-top: 12px;
    margin-top: 12px;
    font-weight: 600;
}

.tocart-form .tocart-form-left {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

/* Order Review Lens Selection Summary */
.lens-selection-summary {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.lens-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}

.lens-header-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
}

.edit-lens-link {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    border: 1px solid #007cba;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.edit-lens-link:hover {
    background: #007cba;
    color: #fff;
    text-decoration: none;
}

.lens-selection-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.selected-usage {
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

.usage-title {
    margin-right: 5px;
}

.prescription-link {
    font-weight: normal;
}

.prescription-link a {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
}

.prescription-link a:hover {
    text-decoration: underline;
}

.selected-lens-type,
.selected-lens-thickness {
    font-size: 14px;
    color: #666;
    padding-left: 10px;
}

/* Prescription Popup */
.prescription-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.prescription-popup-content {
    background: #fff;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.prescription-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
}

.prescription-popup-header h3 {
    margin: 0;
    font-size: 20px;
    color: #000;
}

.prescription-popup-close {
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.prescription-popup-close:hover {
    color: #000;
}

.prescription-popup-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#prescription-image-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 0;
}

#prescription-image-display h4 {
    margin-bottom: 15px;
    text-align: center;
}

.prescription-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.prescription-table th,
.prescription-table td {
    border: 1px solid #dee2e6;
    padding: 10px;
    text-align: center;
}

.prescription-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #000;
}

.prescription-table td {
    color: #666;
}

#prescription-image {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Mobile Responsive */
@media(max-width: 767px) {
    .lens-selection-summary {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .lens-summary-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .edit-lens-link {
        align-self: flex-end;
    }
    
    .prescription-popup-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .prescription-popup-header {
        padding: 15px;
    }
    
    .prescription-popup-body {
        padding: 15px;
    }
    
    .prescription-table {
        font-size: 12px;
    }
    
    .prescription-table th,
    .prescription-table td {
        padding: 8px 4px;
    }
    
    #prescription-image {
        max-height: 60vh;
    }
    
    .prescription-popup-content {
        max-width: 95%;
        max-height: 95vh;
        margin: 10px;
    }
}
.prx-back-detail a{color: #d39d4e;}
.title_top h3 { font-size: 25px; text-transform: uppercase; visibility: visible; color: #000; text-align: center; margin-top: 20px;}

#lensesPrescription .btn-close { background: #dd1111; color: #fff; width: auto; height: auto; font-size: 14px; padding: 8px 28px; border-radius: 4px; opacity: 1; }

.moneyback-cart { clear: both; display: flex; justify-content: flex-end; width: 100%; font-size: 14px; color: #6db525; font-weight: 500; letter-spacing: 0; line-height: 20px; font-family: 'Poppins', sans-serif; position: relative; margin-top: 20px; } 
.moneyback-cart ul { list-style: none; padding: 0;margin-top: 20px; } 
.moneyback-cart ul li { position: relative; vertical-align: top; width: 100%; font-size: 14px; letter-spacing: normal; word-spacing: normal; padding-left: 20px; text-align: left; } 
.moneyback-cart ul li:after { content: ""; display: block; width: 7px; height: 13px; border: solid #6db525; border-width: 0 2px 2px 0; transform: rotate(45deg); position: absolute; left: 0; top: 1px; } 
.moneyback-cart ul li.red-li { color: #ff0000; font-weight: 600; } 



.step_box>ul{display: flex ; text-align: center; list-style: none; margin-top: 10px; margin-bottom: 30px;padding: 0;}
.step_box>ul li{flex: 1; display: flex ; flex-direction: column; justify-content: center; align-items: center; position: relative; margin: 0px;}
.step_box>ul li .icon{height: 22px; padding-left: 22px;background: url(../img/rx-title-status-n.png) 0 0 no-repeat #fcfcfc; display: inline-block; width: 22px; margin-bottom: 6px;}
.step_box>ul li .step-name{color: #000;font-size: 14px;}
.step_box>ul li:after { background: #f2f2f2; height: 2px; content: ""; width: 40%; position: absolute; right: 0px; top: 10px; }
.step_box>ul li:before { background: #f2f2f2; height: 2px; content: "" !important; width: 40%; position: absolute; left: 0px; top: 10px; }
.step_box>ul li:first-child:before,
.step_box>ul li:last-child:after {display: none;}
 .step_box>ul li.active .icon{ background-position: -150px 0; }
 .wizard_panel_content_box_hodler{display: grid ; grid-template-columns: 1fr; grid-gap: 0; position: relative;cursor: pointer;}

.contentBbox_main_product { background: #fff; padding: 0;  position: relative; -webkit-transition: all 0.6s ease-out 0s; -moz-transition: all 0.6s ease-out 0s; -o-transition: all 0.6s ease-out 0s; -ms-transition: all 0.6s ease-out 0s; transition: all 0.6s ease-out 0s;  }
 
.contentBbox_main_product .desc { position: absolute;right: 20px;top: 10px;}
.contentBbox_main_product .option-name { font-size: 19px; font-weight: 600; line-height: 1.4;color: #000;letter-spacing: .3pt;}
.contentBbox_main_product_row{display: flex; flex-wrap: wrap;position: relative;
    padding: 25px 10px 25px;    border-top: 1px solid #000;align-items: flex-start;}

.contentBbox_main_product .info-ico {right: 15px; top: 7px; position: absolute; z-index: 9; opacity: 1; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid currentColor; color: #555; background: transparent; font-size: 14px; font-weight: 700; line-height: 1; text-decoration: none; }
.contentBbox_main_product .info-ico:before { content: "i"; }
.option-description { display: flex ; flex-wrap: wrap; align-items: center; padding: 0 10px;width: 70%;}
.step_box .option-description img { max-width: 170px; }
.option-description .option-img{width: 81px;}
.option-description .option-content.option-dec { padding-left: 20px;width: calc(100% - 81px);}
.contentBbox_main_product_row .option-price{width: 30%;text-align: right;    margin: 20px 0;
    padding: 5px 3px;}
.contentBbox_main_product  .option-intro{width: 100%; color: #000; font-size: 15px; font-weight: 300; letter-spacing: .3pt;   margin: 0;}

.option-price span.base_currency_price{    font-weight: normal; color: #000;}
 
.step-1, .step-2, .step-3, .step-4, .step-5 {display: none;  }
.step-1.active,.step-2.active,.step-3.active,.step-4.active, .step-5.active {  display: block; }
.footer-btn{padding: 20px 0 10px}
.footer-btn #prev{height: 2.6rem; padding: 0 3em; margin-bottom: 5px; overflow: hidden; text-transform: uppercase; font-size: 1em; letter-spacing: -0.015em; font-weight: 700; line-height: 2.6rem; border: none; background: #222529; color: #fff; border-radius: 3px; display: none;}

.contentBbox_main_product span.color-red { color: #0d5a74; font-size: 14px; }
.contentBbox_main_product input.file_upload { position: absolute; left: 0; top: 0; height: 100%; width: 100%; opacity: 0; z-index: 1; }

.addrx_container{padding: 0;}
.prescription_block{  padding-bottom: 25px;}

.addrx_container_flex{display: grid ; grid-template-columns: repeat(5, 1fr); grid-gap: 0 10px;} 
.addrx_container_flex label { padding-bottom: 30px; margin: 0px; font-size: 13px; font-weight: 400;color:#000; }
.addrx_container_flex label:first-child{border-right: 1px solid #ddd;text-align: center;}
.addrx_container_flex:first-child label{padding-top: 30px;}
.addrx_container_flex:first-child label:first-child{padding-bottom: 0px;}

.addrx_container_flex.addrx_container_flex_last{display: grid ; grid-template-columns: repeat(5, 1fr); grid-gap: 0 10px;}

.stepForm{display: none;}

.addrx_container_flex label select{width: 100%;  background : url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 0.75rem center/8px 10px;
    background-color  : #fff; border: 1px solid #ced4da; border-radius: 0.25rem; -webkit-appearance: none; -moz-appearance: none; appearance: none; border: none; border-bottom: 1px solid #ddd; padding: 10px; font-size: 15px !important; font-size: 12px !important; height: 40px; box-shadow: none;}
.button__holder{text-align: center;}
.button__holder #confirm_prescription{height: 2.6rem; padding: 0 3em; margin-bottom: 5px; overflow: hidden; text-transform: uppercase; font-size: 1em; letter-spacing: -0.015em; font-weight: 700; line-height: 2.6rem; border: none; background: #222529; color: #fff; border-radius: 3px;}

.rx-name-title.input__checkbox input[type="checkbox"]{-webkit-appearance: none; appearance: none; width: 20px; height: 20px; flex: 0 0 20px; border: 1px solid #ddd; border-radius: 2px; margin: 0; margin-right: 10px;vertical-align: middle;}

.rx-name-title.input__checkbox input[type="checkbox"]:checked{background: url(../img/checkmark.png) no-repeat; background-size: 10px; background-position: center;}

.contentBbox_main_product .desc label{margin: 0;position: relative;}
.contentBbox_main_product>input[type="checkbox"]{opacity: 0;position: absolute;left: 0;right: 0;top: 0;bottom: 0;z-index: 9;margin-right:0;cursor: pointer;}
.contentBbox_main_product>input[type="checkbox"]:checked + .contentBbox_main_product_row{ background-color: #efce9b;}
.contentBbox_main_product:hover .contentBbox_main_product_row{background: rgb(250,240,224,.6);} 
.selected{background: #e86215;}
.tint-color-mirrored-lens {
    position: relative;
    padding: 0px 15px 25px;
    border-top: 1px solid #dddddd;
    z-index: 99;
}

.tint-color-mirrored-lens .input-wrap {
    padding: 30px 0px 10px;
    color: #000;
}
 

.tint-color-mirrored-lens .form-input-wrap {
    display: flex;
    align-items: center;margin: 0 0 5px;
    gap:20px;
}

.tint-color-mirrored-lens .form-input-wrap strong{
        vertical-align: middle;color: #000;
    text-transform: uppercase;}

.option-select-content2 label{display: inline-block; margin-bottom: 0px; margin-right: 10px;}
.option-select-content2 label span.tint-color { font-size: 0; width: 26px; height: 26px; display: inline-block; border-radius: 100%; padding: 0px; position: relative; cursor: pointer; border: 1px solid #ddd; }
.option-select-content2 input[type=checkbox] {opacity: 0;}
.tint-color-mirrored-lens .tint-confirm-btn {height: 2.6rem; padding: 0 3em; margin-top: 15px; overflow: hidden; text-transform: uppercase; font-size: 1em; letter-spacing: -0.015em; font-weight: 700; line-height: 2.6rem; border: none; background: #222529; color: #fff; border-radius: 3px;}

.option-select-content1{display: inline-block; margin-bottom: 0px;}
.option-select-content1 .tint-strength{text-align: left; display: inline-block; position: relative; margin-right: 10px; font-weight: 500; color: #000; font-size: 14px; text-transform: capitalize;}

.option-select-content1 .tint-strength input[type=checkbox]{height: 20px; width: 20px; margin: 4px 8px 0 0; border: none; appearance: none;-webkit-appearance: none;-moz-appearance: none;vertical-align: text-bottom;}
.option-select-content1 .tint-strength input[type=checkbox]::before { position: relative; top: 2px; display: inline-block; content: ""; width: 18px; height: 18px; border-radius: 50%; margin-right: 3px; border: 1px solid #848484; opacity: 1; }
.option-select-content1 input[type=checkbox]:checked::before { border: 5px solid #4b89f5; }
 .option-select-content2 label input[type=checkbox] { opacity: 1; border: 1px solid transparent; height: 25px; width: 30px; position: absolute; top: 0;appearance: none;-webkit-appearance: none;-moz-appearance: none border-radius: 90px; left: 0; display: block;border-radius: 30px; }
 .option-select-content2 label input[type=checkbox]:checked{border: 1px solid #000;}


.cart_end_point .separately-price { font-size: 16px; font-weight: 700; }
.cart_end_point .separately-price p.frame { display: block ; color: #000; justify-content: space-between;    margin-bottom: .5rem; }
.cart_end_point strong.price.price-symbol { float: right; padding-left: 15px;     font-size: 16px;}
.prx-show-selected ul{list-style: none;padding: 0}
.prx-show-selected ul li{font-size: 16px; font-weight: 400; font-style: normal;color: #000;}
 
.cart_end_point .final-price{font-size: 20px; padding-bottom: 10px; border-bottom: 1px solid;} 
.cart_end_point strong#total_prescription_price{float: right;    padding-left: 13px;}
#submit_btn{font-size: 16px; border-radius: 6px; margin: 20px auto 0; padding: 0; text-decoration: none; color: #fff; width: 180px; height: 46px; font-weight: 600;background: #dc0000;border-color: #e31515; display: block;}
#submit_btn:hover{background: #e31515;border-color: #e31515;}

/* File Upload Styles */
.option-upload {
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 3;
    margin-top: 15px;
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

.upload-instructions {
    color: #666;
    font-size: 14px;
    margin: 10px 0 0 0;
    font-style: italic;
}

.option-upload input[type="file"] {
    display: block;
    width: 100%;
    margin: 0 auto;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

.option-upload input[type="file"]:hover {
    border-color: #007cba;
}

.prescription-image-preview {
    position: relative;
    display: inline-block;
    margin: 15px 0;
}

.prescription-image-preview #remove_image {
    position: absolute;
    right: -10px;
    top: -10px;
    width: 25px;
    height: 25px;
    line-height: 25px;
    color: #fff;
    background: #dc0000;
    border-radius: 50%;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

.prescription-image-preview #remove_image:hover {
    background: #b30000;
}

.confirm_image {
    background: #28a745;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    text-transform: capitalize;
    font-weight: 600;
    padding: 10px 30px;
    display: inline-block;
    position: relative;
    z-index: 1;
    cursor: pointer;
    border: none;
    margin-top: 10px;
}

.confirm_image:hover {
    background: #218838;
}

/* Mobile responsive for file upload */
@media(max-width:767px){
    .option-upload {
        padding: 15px;
        margin-top: 10px;
    }
    
    .upload-instructions {
        font-size: 12px;
    }
    
    .option-upload input[type="file"] {
        padding: 8px;
        font-size: 14px;
    }
    
    .confirm_image {
        padding: 8px 20px;
        font-size: 13px;
    }
}

/* Select lens CTA intentionally uses WooCommerce/theme .button.alt styles. */


/* Moved from public/partials/ht-add-prescription-public-display.php  */
.footer-wrapper,
    .top-header-freeship {
        display: none !important;
    }

.tint-color[data-color] { display: inline-block; }


/* Generated classes replacing source inline style attributes. */
.ht-public-inline-001 { text-align:left; width:35%; }
.ht-public-inline-002 { margin-top:8px; width:100%; }
.ht-public-inline-003 { margin-top:10px; padding:12px; border:1px solid #e5e5e5; background:#fafafa; }
.ht-public-inline-004 { font-size:12px; line-height:1.35; display:inline-block; }
.ht-public-inline-005 { margin-top: 20px; margin-bottom: 10px; }
.ht-public-inline-006 { display: none; }
.ht-public-inline-007 { max-width: 100%; height: auto; display:none; }
.ht-public-inline-008 { display: block; }
.ht-public-inline-009 { opacity: 0; }
.ht-public-inline-010 { display:none; }


/* Final prescription method selection: keep titles and descriptions left aligned. */
.step-4 .ht-prescription-method-card,
.step-4 .ht-prescription-method-card .contentBbox_main_product_row,
.step-4 .ht-prescription-method-card .ht-prescription-method-description,
.step-4 .ht-prescription-method-card .ht-prescription-method-content,
.step-4 .ht-prescription-method-card .option-title,
.step-4 .ht-prescription-method-card .option-intro {
    text-align: left;
}

.step-4 .ht-prescription-method-card .contentBbox_main_product_row {
    justify-content: flex-start;
}

.step-4 .ht-prescription-method-card .ht-prescription-method-description {
    align-items: flex-start;
    justify-content: flex-start;
}

.step-4 .ht-prescription-method-card .ht-prescription-method-content {
    width: 100%;
}

/* Fullscreen Select lens page template. The /prx page uses a standalone
   plugin template, so keep the wizard inside the viewport without theme
   header/footer spacing or page-level scrolling. */
html.ht-prx-template-html,
body.ht-prx-template-body {
    width: 100%;
    height: 100%;
    min-height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #fff;
}

body.ht-prx-template-body #wpadminbar {
    display: none !important;
}

html.ht-prx-template-html {
    margin-top: 0 !important;
}

body.ht-prx-template-body .tocart-form {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    padding-top: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    overflow: hidden;
}

body.ht-prx-template-body .tocart-form .tocart-form-left {
    width: 34%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    box-shadow: 8px 0 16px rgba(0,0,0,0.08);
    border-radius: 0;
}

body.ht-prx-template-body .tocart-form .tocart-form-left .tocart-form-img {
    position: static;
    top: auto;
    height: 100%;
    min-height: 0;
    padding: clamp(14px, 2vh, 26px) clamp(16px, 2vw, 28px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

body.ht-prx-template-body .prx-frame-preview {
    margin-bottom: clamp(8px, 1.2vh, 14px);
}

body.ht-prx-template-body .prx-back-detail {
    padding: 0 0 clamp(8px, 1vh, 12px);
}

body.ht-prx-template-body .prx-frame-preview img {
    max-height: min(34vh, 320px);
    width: auto;
    max-width: 90%;
    object-fit: contain;
}

body.ht-prx-template-body .tocart-form .tocart-form-left h1 {
    font-size: clamp(16px, 1.7vw, 23px);
    line-height: 1.25;
    margin: clamp(8px, 1.2vh, 14px) 0;
}

body.ht-prx-template-body .tocart-form .separately-price {
    margin: clamp(8px, 1.2vh, 14px) 0;
    padding: clamp(10px, 1.5vh, 16px);
    line-height: 1.35;
}

body.ht-prx-template-body .tocart-form p.frame,
body.ht-prx-template-body .tocart-form p.lens {
    padding: clamp(4px, .7vh, 7px) 0;
    line-height: 1.25;
}

body.ht-prx-template-body .tocart-form .tocart-form-right {
    width: 66%;
    height: 100%;
    min-height: 0;
    padding: clamp(14px, 2vh, 24px) clamp(18px, 3vw, 42px);
    overflow: hidden;
}

body.ht-prx-template-body .step_box {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.ht-prx-template-body .title_top h3 {
    margin-top: 0;
    margin-bottom: clamp(8px, 1.2vh, 14px);
    font-size: clamp(18px, 2vw, 25px);
    line-height: 1.2;
}

body.ht-prx-template-body .step_box > ul {
    flex: 0 0 auto;
    margin-top: 0;
    margin-bottom: clamp(10px, 1.8vh, 22px);
}

body.ht-prx-template-body .wizard_panel_content__holder {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

body.ht-prx-template-body #prescriptionForm,
body.ht-prx-template-body .stepRow.active,
body.ht-prx-template-body .stepForm.active {
    height: 100%;
    min-height: 0;
}

body.ht-prx-template-body .wizard_panel_content_box_hodler {
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

body.ht-prx-template-body .contentBbox_main_product_row {
    padding-top: clamp(12px, 1.8vh, 22px);
    padding-bottom: clamp(12px, 1.8vh, 22px);
}

body.ht-prx-template-body .contentBbox_main_product .option-name {
    font-size: clamp(15px, 1.45vw, 19px);
}

body.ht-prx-template-body .contentBbox_main_product .option-intro {
    font-size: clamp(13px, 1.1vw, 15px);
    line-height: 1.35;
}

body.ht-prx-template-body .footer-btn {
    flex: 0 0 auto;
    padding: clamp(8px, 1.2vh, 14px) 0 0;
}

body.ht-prx-template-body .final-price {
    margin-top: clamp(8px, 1.2vh, 14px);
}

body.ht-prx-template-body #submit_btn {
    margin-top: clamp(8px, 1.2vh, 14px);
}

@media (max-width: 1024px) {
    body.ht-prx-template-body .tocart-form .tocart-form-left {
        width: 30%;
    }

    body.ht-prx-template-body .tocart-form .tocart-form-right {
        width: 70%;
        padding: 14px 18px;
    }

    body.ht-prx-template-body .prx-frame-preview img {
        max-height: 26vh;
    }
}

@media (max-width: 767px) {
    body.ht-prx-template-body .tocart-form {
        flex-direction: column !important;
        flex-wrap: nowrap;
        height: 100vh;
        height: 100dvh;
    }

    body.ht-prx-template-body .tocart-form .tocart-form-left {
        flex: 0 0 auto;
        width: 100% !important;
        height: auto;
        max-height: 30vh;
        min-height: 0;
        overflow: hidden;
    }

    body.ht-prx-template-body .tocart-form .tocart-form-left .tocart-form-img {
        padding: 10px 14px !important;
        display: grid;
        grid-template-columns: 96px 1fr;
        grid-template-areas:
            "image title"
            "price price";
        gap: 8px 12px;
        align-items: center;
        height: auto;
    }

    body.ht-prx-template-body .prx-frame-preview {
        grid-area: image;
        margin: 0;
    }

    body.ht-prx-template-body .prx-back-detail {
        position: static;
        padding: 0 !important;
        text-align: left;
    }

    body.ht-prx-template-body .prx-frame-preview img {
        max-width: 88px !important;
        max-height: 88px !important;
    }

    body.ht-prx-template-body .product-bottom-side-part {
        grid-area: title;
        min-width: 0;
    }

    body.ht-prx-template-body .tocart-form .tocart-form-left h1 {
        font-size: 16px !important;
        line-height: 1.25 !important;
        margin: 0 !important;
        text-align: left;
    }

    body.ht-prx-template-body .tocart-form .separately-price {
        grid-area: price;
        margin: 0 !important;
        padding: 8px 10px !important;
    }

    body.ht-prx-template-body .tocart-form .tocart-form-right {
        flex: 1 1 auto;
        width: 100% !important;
        height: auto;
        min-height: 0;
        padding: 10px 14px !important;
        overflow: hidden;
    }

    body.ht-prx-template-body .title_top {
        position: static !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

    body.ht-prx-template-body .title_top h3 {
        font-size: 17px !important;
        margin: 0 0 8px !important;
    }

    body.ht-prx-template-body .step_box > ul {
        display: none !important;
    }

    body.ht-prx-template-body .contentBbox_main_product_row {
        padding: 10px 8px;
    }

    body.ht-prx-template-body .contentBbox_main_product .option-name {
        font-size: 15px;
    }

    body.ht-prx-template-body .contentBbox_main_product .option-intro {
        font-size: 12px;
        line-height: 1.25;
    }

    body.ht-prx-template-body .footer-btn {
        padding-top: 8px;
    }
}

/* v1.0.30 fullscreen/order-review fit fixes.
   Keep active title rows compact; the full-height rule must only apply to
   the active form step, not the heading row above the step tracker. */
html.ht-prx-template-html {
    min-height: -webkit-fill-available;
}

html.ht-prx-template-html,
body.ht-prx-template-body {
    height: 100vh;
    height: -webkit-fill-available;
    height: calc(var(--ht-prx-vh, 1vh) * 100);
    min-height: calc(var(--ht-prx-vh, 1vh) * 100);
}

body.ht-prx-template-body .tocart-form {
    height: 100vh;
    height: -webkit-fill-available;
    height: calc(var(--ht-prx-vh, 1vh) * 100);
    min-height: 0;
}

body.ht-prx-template-body .step_box > .title_top.stepRow.active {
    flex: 0 0 auto;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

body.ht-prx-template-body #prescriptionForm > .stepRow.active {
    height: 100%;
    min-height: 0;
}

body.ht-prx-template-body.ht-prx-step-5 .step_box > ul,
body.ht-prx-template-body.ht-prx-step-5 .footer-btn {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.ht-prx-template-body.ht-prx-step-5 .title_top h3 {
    margin-bottom: clamp(4px, .8vh, 8px) !important;
    font-size: clamp(16px, 1.65vw, 22px);
    line-height: 1.1;
}

body.ht-prx-template-body.ht-prx-step-5 .wizard_panel_content__holder,
body.ht-prx-template-body.ht-prx-step-5 #prescriptionForm,
body.ht-prx-template-body.ht-prx-step-5 #prescriptionForm > .stepRow.step-5.active,
body.ht-prx-template-body.ht-prx-step-5 .cart_end_point {
    height: 100%;
    min-height: 0;
}

body.ht-prx-template-body.ht-prx-step-5 #prescriptionForm > .stepRow.step-5.active {
    overflow: hidden;
}

body.ht-prx-template-body.ht-prx-step-5 .cart_end_point {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: clamp(6px, 1vh, 10px);
    overflow: hidden;
}

body.ht-prx-template-body.ht-prx-step-5 .lens-selection-summary {
    flex: 0 0 auto;
    margin: 0 !important;
    padding: clamp(9px, 1.35vh, 14px);
}

body.ht-prx-template-body.ht-prx-step-5 .lens-summary-header {
    margin-bottom: clamp(5px, .8vh, 8px);
    padding-bottom: clamp(5px, .8vh, 8px);
}

body.ht-prx-template-body.ht-prx-step-5 .lens-header-title {
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.15;
}

body.ht-prx-template-body.ht-prx-step-5 .lens-selection-details {
    gap: 3px;
}

body.ht-prx-template-body.ht-prx-step-5 .selected-usage,
body.ht-prx-template-body.ht-prx-step-5 .selected-lens-type,
body.ht-prx-template-body.ht-prx-step-5 .selected-lens-thickness {
    font-size: clamp(13px, 1vw, 15px);
    line-height: 1.25;
}

body.ht-prx-template-body.ht-prx-step-5 .cart_end_point .separately-price {
    flex: 0 0 auto;
    margin: 0 !important;
    padding: clamp(8px, 1.1vh, 12px) !important;
    line-height: 1.2;
}

body.ht-prx-template-body.ht-prx-step-5 .cart_end_point .separately-price p.frame,
body.ht-prx-template-body.ht-prx-step-5 .cart_end_point .separately-price p.lens {
    margin: 0 !important;
    padding: 3px 0 !important;
    line-height: 1.2;
}

body.ht-prx-template-body.ht-prx-step-5 .final-price {
    flex: 0 0 auto;
    margin: 0 !important;
    padding: clamp(4px, .7vh, 8px) 0 !important;
    font-size: clamp(16px, 1.35vw, 20px);
    line-height: 1.15;
}

body.ht-prx-template-body.ht-prx-step-5 #submit_btn {
    flex: 0 0 auto;
    margin: clamp(2px, .4vh, 5px) auto 0 !important;
    height: clamp(38px, 5vh, 46px);
    min-height: 38px;
}

@media (max-height: 720px) {
    body.ht-prx-template-body.ht-prx-step-5 .tocart-form .tocart-form-right {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    body.ht-prx-template-body.ht-prx-step-5 .lens-selection-summary,
    body.ht-prx-template-body.ht-prx-step-5 .cart_end_point .separately-price {
        padding: 8px 10px !important;
    }
}

@media (max-width: 767px) {
    body.ht-prx-template-body.ht-prx-step-5 .tocart-form .tocart-form-left {
        display: none !important;
    }

    body.ht-prx-template-body.ht-prx-step-5 .tocart-form .tocart-form-right {
        flex: 1 1 auto;
        height: calc(var(--ht-prx-vh, 1vh) * 100) !important;
        padding: 10px 12px !important;
    }

    body.ht-prx-template-body.ht-prx-step-5 .lens-selection-summary {
        padding: 10px 12px !important;
    }

    body.ht-prx-template-body.ht-prx-step-5 .lens-summary-header {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    body.ht-prx-template-body.ht-prx-step-5 .edit-lens-link {
        align-self: auto;
        padding: 4px 8px;
    }
}

/* v1.0.30 scrollable selection lists for fullscreen /prx template.
   Keep the page itself fixed, but allow long Usage, Lens Type, and Lens Thickness lists to scroll inside the option area. */
body.ht-prx-template-body.ht-prx-step-1 #prescriptionForm > .stepRow.step-1.active,
body.ht-prx-template-body.ht-prx-step-2 #prescriptionForm > .stepRow.step-2.active,
body.ht-prx-template-body.ht-prx-step-3 #prescriptionForm > .stepRow.step-3.active {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

body.ht-prx-template-body.ht-prx-step-1 #prescriptionForm > .stepRow.step-1.active > .wizard_panel_content_box_hodler,
body.ht-prx-template-body.ht-prx-step-2 #prescriptionForm > .stepRow.step-2.active > .wizard_panel_content_box_hodler,
body.ht-prx-template-body.ht-prx-step-3 #prescriptionForm > .stepRow.step-3.active > .wizard_panel_content_box_hodler {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-right: 8px;
    scrollbar-gutter: stable;
}

body.ht-prx-template-body.ht-prx-step-1 #prescriptionForm > .stepRow.step-1.active > .wizard_panel_content_box_hodler::-webkit-scrollbar,
body.ht-prx-template-body.ht-prx-step-2 #prescriptionForm > .stepRow.step-2.active > .wizard_panel_content_box_hodler::-webkit-scrollbar,
body.ht-prx-template-body.ht-prx-step-3 #prescriptionForm > .stepRow.step-3.active > .wizard_panel_content_box_hodler::-webkit-scrollbar {
    width: 8px;
}

body.ht-prx-template-body.ht-prx-step-1 #prescriptionForm > .stepRow.step-1.active > .wizard_panel_content_box_hodler::-webkit-scrollbar-thumb,
body.ht-prx-template-body.ht-prx-step-2 #prescriptionForm > .stepRow.step-2.active > .wizard_panel_content_box_hodler::-webkit-scrollbar-thumb,
body.ht-prx-template-body.ht-prx-step-3 #prescriptionForm > .stepRow.step-3.active > .wizard_panel_content_box_hodler::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .25);
    border-radius: 999px;
}

