/*===========================================
  SHOP & PRODUCT PAGES CSS
  WooCommerce, Cart, Checkout, Product Options
===========================================*/

/* Select2 Dropdown Styling */
.woocommerce form.cart .select2-selection {
    height: auto !important;
    min-height: 42px;
    display: flex;
    align-items: center;
}

.thwepo-select-field .select2-selection--single {
    height: auto !important;
    min-height: 50px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    border-radius: 10px;
    background-color: white;
    border: solid #5a4a40 1px;
    box-sizing: border-box;
    margin: 0 !important;
}

.select2-results__options .select2-results__option {
    border-top: 1px solid black;
}

/* Looking For Section */
#lookingfor .wp-caption-text {
    background: #68c8ee;
    font-size: 20px;
}

/* Checkout Page - FunnelKit Login Box */
body #wfacp-e-form .wfacp_main_form.woocommerce .woocommerce-info {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 20px !important;
    padding: 14px 20px 16px !important;
    border: 1px solid #0041aa;
    border-radius: 6px;
    background: #f9fbff;
    color: #333;
    font-size: 14px !important;
    line-height: 1.5 !important;
    font-weight: 400;
    text-align: center;
    max-width: 600px;
    box-sizing: border-box;
}

body #wfacp-e-form .wfacp_main_form.woocommerce .woocommerce-info a.showlogin {
    display: inline-block;
    padding: 8px 18px;
    margin-top: 5px;
    background: #0041aa;
    border: 1px solid #0041aa;
    border-radius: 5px;
    color: #ffffff !important;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.3;
    transition: all 0.2s ease-in-out;
}

body #wfacp-e-form .wfacp_main_form.woocommerce .woocommerce-info a.showlogin:hover {
    background: #00368d;
    border-color: #00368d;
    color: #ffffff !important;
}

body #wfacp-e-form .wfacp_main_form.woocommerce .woocommerce-info a.showlogin:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 65, 170, 0.25);
}

/* Extra Product Options */
.woocommerce div.product form.cart table.extra-options {
    margin-bottom: 8px;
}

.extra-options {
    margin-bottom: 10px !important;
}

.quantity,
.mfn-wish-button svg {
    margin-top: 10px !important;
}

/* WPForms Submit Button */
.wpforms-form button[type=submit] {
    color: #ffffff !important;
    background-color: #0095eb !important;
    border-color: transparent !important;
}

.text-cell a {
    color: darkblue;
}

/* Mobile Cart Widget */
@media (max-width: 991px) {
    .wfacp_form_cart.wfacp_min_cart_widget {
        display: block !important;
    }
}

/* Popup Link */
a.popup-link {
    display: inline-block;
    color: white;
    background-color: #02bc90;
    padding: 10px;
}
a.popup-link:hover {
    background-color: #029a75;
    text-decoration: none;
}

/* Gift Card Variations */
.product-type-pw-gift-card .variations {
    display: none !important;
}

/* Linked Variations */
.wpclv-attributes .wpclv-terms .wpclv-term.wpclv-term-image {
    height: 88px;
    width: auto;
}
.wpclv-attributes .wpclv-terms .wpclv-term.wpclv-term-image span,
.wpclv-attributes .wpclv-terms .wpclv-term.wpclv-term-image a {
    width: 80px;
    height: 80px;
    display: inline-block;
}

.wpclv-attributes .wpclv-attribute-label {
    font-size: 15px;
    text-decoration: underline;
}

.wpclv-attributes .wpclv-terms .wpclv-term.active,
.wpclv-attributes .wpclv-terms .wpclv-term:hover {
    border-width: 3px;
}

/* Button Container */
.button-container {
    margin-top: 50px;
}

.button-wrapper {
    margin-top: 20px;
}

/* Gift Card Messages */
body .woocommerce-info,
body .woocommerce-message {
    background-color: #f1f1f1;
    padding: 10px;
    margin: 0 0 0;
    margin-top: 10px;
    margin-bottom: 10px;
    min-height: 1px;
    text-transform: inherit;
    display: block;
}

/* Radio Button Styling */
.thwepo-radio-group .thwepo-inline {
    display: flex;
    flex: 1 1 calc(33.33% - 10px);
    padding: 10px 15px;
    border: 2px solid #ccc;
    border-radius: 6px;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.thwepo-radio-group .thwepo-inline:hover {
    border-color: #1083ca;
}

.thwepo-radio-group .thwepo-inline input[type="radio"],
.thwepo-radio-group .thwepo-inline input[type="checkbox"] {
    transform: scale(1.4);
    margin-right: 8px;
}

/* Image Group Styling */
.thwepo-image-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.thwepo-image-group .thwepo-image-group-item {
    display: inline-block;
    max-width: 160px;
    text-align: center;
}

/* Advanced Coupons */
.acfw-accordion-inner {
    max-height: 15em !important;
}

/* Frame + Lens Selection Titles */
.selectlens1 {
    color: white !important;
    margin-bottom: 10px !important;
    background: #274354;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 15px;
}

/* Checkout Icons */
.wc-block-components-notice-banner.is-info > svg {
    display: none;
}

/* Barn2 Filter Pagination */
.woocommerce nav.woocommerce-pagination {
    font-size: 22px;
    background-color: rgba(205, 205, 205, 0.55);
    letter-spacing: 10px;
}
@media only screen and (min-width:768px) {
    .woocommerce-pagination {
        font-size: 18px;
    }
}

wcf-pagination-wrapper {
    place-content: center !important;
}

/* Product Title Styling */
.woocommerce .product div.entry-summary h1.product_title {
    font-size: 24px;
    line-height: 30px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    word-wrap: break-word;
}

@media (max-width: 991px) and (min-width: 769px) {
    .woocommerce .product div.entry-summary h1.product_title {
        font-size: 20px;
        line-height: 26px;
        margin-bottom: 12px;
    }
}

@media (max-width: 768px) {
    .woocommerce .product div.entry-summary h1.product_title {
        font-size: 16px;
        line-height: 20px;
        font-weight: 600;
        margin-bottom: 10px;
        letter-spacing: -0.01em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: 40px;
        transition: max-height 0.3s ease;
    }

    .woocommerce .product div.entry-summary h1.product_title.expanded {
        -webkit-line-clamp: unset;
        max-height: none;
    }

    .woocommerce .product div.entry-summary h1.product_title[data-truncated="true"]::after {
        content: "...";
        position: absolute;
        right: 0;
        bottom: 0;
        background: linear-gradient(to right, transparent, white 50%);
        padding-left: 20px;
        padding-right: 2px;
    }
}

@media (max-width: 375px) {
    .woocommerce .product div.entry-summary h1.product_title {
        font-size: 15px;
        line-height: 19px;
        -webkit-line-clamp: 2;
        max-height: 38px;
    }
}

@media (max-width: 768px) {
    .woocommerce .product div.entry-summary .product_title + .product-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        margin-bottom: 10px;
    }

    .product-badges span {
        background: #f0f0f0;
        padding: 3px 8px;
        border-radius: 12px;
        font-size: 11px;
        color: #666;
        white-space: nowrap;
    }

    .sticky-mobile-cart-wrapper .sticky-product-title {
        font-size: 14px;
        line-height: 16px;
        font-weight: 500;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 150px;
    }
}

@media print {
    .woocommerce .product div.entry-summary h1.product_title {
        -webkit-line-clamp: unset !important;
        max-height: none !important;
        font-size: 18pt !important;
    }
}

/* Product Images */
.woocommerce-page div.product div.images img {
    border: 1px solid gray;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

/* Tooltip Positioning */
.thwepo_tooltip:hover:after {
    transform: translateX(-30%);
}

.product-gallery-zoom .woocommerce-product-gallery__image:hover .wp-post-image {
    opacity: 1 !important;
}

/* Barn2 Product Filter */
.wcf-horizontal-grid {
    background-color: #efefef;
    padding: 15px 20px;
}

@media (max-width: 768px) {
    .wcf-horizontal-grid-item {
        flex: 1 1 45%;
    }
}

@media (max-width: 480px) {
    .wcf-horizontal-grid-item {
        flex: 1 1 100%;
    }
}

/* My Account Form */
span.xoo-el-nav-ft {
    border: 1px solid gray;
    padding: 15px;
}

/* Tooltip Images */
.thwepo_tooltip img {
    height: 20px;
    width: 20px;
    color: white;
    background-color: black;
}

/* Checkout Buttons Full Width */
.wfacp-checkout-form-block.wfacp-9ddf63a2 #wfacp-e-form .wfacp_main_form.woocommerce #payment button#place_order,
.wfacp-checkout-form-block.wfacp-9ddf63a2 #wfacp-e-form .wfacp_main_form.woocommerce button#place_order,
.wfacp-checkout-form-block.wfacp-9ddf63a2 #wfacp-e-form .wfacp_main_form.woocommerce .woocommerce-checkout button.button.button-primary.wfacp_next_page_button,
.wfacp-checkout-form-block.wfacp-9ddf63a2 #wfacp-e-form .wfacp_main_form.woocommerce .wfacp_payment #ppcp-hosted-fields .button {
    font-family: Open Sans;
    font-weight: 700;
    font-size: 14px;
    width: 100%;
}

/* File Input Hover States */
.extra-options .value input[type="file"]:hover {
    border-color: lightred;
}

.extra-options .value input[type="file"]:active {
    border-color: #004494;
}

/* TORIC MULTIFOCAL 4 Column Layout */
.four {
    flex: 1 1 23%;
    box-sizing: border-box;
    background: lightgray;
    padding: 3%;
}

.four .label,
.four .value {
    background: lightgray !important;
}

.hidden {
    display: none !important;
}

/* Google Map Container */
.map-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin: 2rem 0;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Radio Button Container */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Checkbox Styling */
.bflex-addon-wrapper .label-tag.thwepo-inline {
    display: flex !important;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 20px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f9f9f9;
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.bflex-addon-wrapper .label-tag.thwepo-inline[style] {
    display: flex !important;
    margin-right: 0 !important;
}

.bflex-addon-wrapper .label-tag.thwepo-inline:last-child {
    margin-bottom: 15px;
}

.bflex-addon-wrapper .input-checkbox {
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
    width: 1.2em;
    height: 1.2em;
    accent-color: #1083ca;
    cursor: pointer;
}

.bflex-addon-wrapper .woocommerce-Price-amount {
    font-weight: 600;
    color: #333;
    margin-left: 5px;
    white-space: nowrap;
}

.bflex-addon-wrapper .label-tag.thwepo-inline:hover {
    background-color: #eef6ff;
    border-color: green;
}

/* Float Fix for Add to Cart Button */
.woocommerce div.product form.cart .button {
    float: none !important;
    vertical-align: middle;
}

/* Add to Cart Button Layout - Desktop */
@media (min-width: 768px) {
    .single-product form.cart {
        display: flex !important;
        flex-wrap: wrap !important;
    }

    .single-product form.cart > * {
        flex: 0 0 100%;
        width: 100%;
    }

    .single-product form.cart > .quantity {
        flex: 0 0 130px !important;
        width: 130px !important;
        max-width: 130px !important;
        float: none !important;
        margin: 0 !important;
        margin-right: 10px !important;
    }

    .single-product form.cart > button.single_add_to_cart_button,
    .single-product form.cart > .single_add_to_cart_button {
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: calc(100% - 140px) !important;
        min-width: 0 !important;
        float: none !important;
        margin: 0 !important;
        height: 48px;
        line-height: 48px;
        font-size: 20px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
    }

    .single-product form.cart .quantity .qty {
        height: 48px;
        line-height: 48px;
    }

    .woocommerce div.product form.cart .button {
        float: none !important;
    }
}

/* Add to Cart Button Layout - Mobile */
@media (max-width: 767px) {
    .single-product form.cart {
        display: flex !important;
        flex-wrap: wrap !important;
    }

    .single-product form.cart > * {
        flex: 0 0 100%;
        width: 100%;
    }

    .single-product form.cart > .quantity {
        flex: 0 0 100px !important;
        width: 100px !important;
        max-width: 100px !important;
        float: none !important;
        margin: 0 !important;
        margin-right: 8px !important;
    }

    .single-product form.cart > button.single_add_to_cart_button,
    .single-product form.cart > .single_add_to_cart_button {
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: calc(100% - 108px) !important;
        min-width: 0 !important;
        float: none !important;
        margin: 0 !important;
        height: 48px;
        line-height: 48px;
        padding: 0 15px;
        font-size: 18px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }

    .single-product form.cart .quantity .qty {
        height: 48px;
        line-height: 48px;
        font-size: 16px;
    }
}

/* Very Small Screens */
@media (max-width: 374px) {
    .single-product form.cart > .quantity {
        flex: 0 0 80px !important;
        width: 80px !important;
        max-width: 80px !important;
    }

    .single-product form.cart > button.single_add_to_cart_button {
        max-width: calc(100% - 88px) !important;
        padding: 0 10px;
        font-size: 16px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }
}

/* Button Hover State */
.single-product form.cart .single_add_to_cart_button:hover {
    background-color: #1d73be;
    color: #fff;
    transform: translateY(-1px);
}

/* Product Page Options */
.cart .thwepo_sizehelper,
.cart .thwepo_global_frameoption {
    display: table;
}

/* FunnelKit Floating Cart */
.wcf-mobile-drawer {
    margin-top: 180px;
}

/* Label Styling */
.label .label-tag {
    color: white !important;
    margin-bottom: 10px !important;
    background: #172A36;
    padding: 10px 15px;
    border-radius: 5px;
    height: 50px;
    width: 100%;
    font-size: 16px;
    font-weight: normal;
}

.rxlensorder_brandedfr .label {
    margin-bottom: 10px !important;
    border-radius: 5px;
}

.thwepo-conditional-field .label .label-tag {
    margin-top: 20px;
}

/* Three Column Layout */
.three {
    background: lightgray;
    padding: 3%;
}

.three .label,
.three .value {
    background: lightgray !important;
}

/* Wrap New Styling */
.wrapnew {
    background: #b3d0f2;
    line-height: 5;
}

.wrapnew .select2 {
    margin-left: -15px;
}

/* Fast Selection */
.fast .select2-selection__arrow {
    top: 6px !important;
}

.woocommerce-page div.product form.cart table .fast td {
    padding-left: 0px !important;
}

.fast .select2-selection {
    height: 40px;
    padding-top: 6px;
}

.fast .label-tag {
    padding: 10px;
    font-size: 18px;
    color: white !important;
}

@media (max-width: 767px) {
    .fast .label-tag {
        font-size: 15px;
        padding: 8px;
    }
}

/* Table Styling */
table tr:nth-child(2n) td,
input[type="number"] {
    background: white !important;
}

table tr:first-child td {
    box-shadow: none;
}

table td {
    padding: 0 !important;
}

.text-cell .new {
    background-color: black !important;
    margin-top: 28px;
    padding: 6px !important;
    color: white;
}

/* Button Hover */
.a-button:hover {
    background-color: white !important;
    color: black !important;
}

/* RX Display Wrapper */
.rx-display {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 40px !important;
    background: lightgray;
    padding: 20px 15px 50px 15px !important;
    overflow: hidden !important;
    box-sizing: border-box;
    border-radius: 6px;
    display: block;
    clear: both;
    position: relative;
}

.rx-display tr {
    float: left;
    width: 33.33% !important;
    min-height: 200px;
    box-sizing: border-box;
    padding: 0 10px;
    display: block;
}

.rx-display td.label,
.rx-display td.value {
    display: block;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.rx-display.two tr {
    width: 44% !important;
}

.extra-options.rx-display tr {
    display: inline-grid !important;
    width: 23%;
}

.thwepo_cartbottom_last {
    margin-top: 35px;
}

/* WooCommerce Notices */
.product_meta .posted_in {
    display: none;
}

/* Variation Tab Color */
.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th {
    background-color: #DEE8ED;
    border-bottom: solid gray 1px;
    font-size: 15px;
    border-radius: 5px;
}

/* Miscellaneous */
.entry-meta,
.single-product .post-nav {
    display: none;
}

.p-bord {
    border: 10px solid red;
}

/* Tamara Badge */
.tamara-badge-container {
    gap: 25px !important;
    margin-bottom: 20px;
}

/* Icon Styling */
.iicon::before {
    content: "i";
    border: 1px solid #000000;
    height: max-content;
    line-height: 17px;
    padding: 0px 7px;
    border-radius: 50%;
    width: max-content;
    opacity: 0.3;
}

.iicon,
.wrap-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Tabby Button */
button#tabbyButton {
    padding: 4px 17px;
    background-color: #5afeae;
    border-radius: 8px;
    color: black;
    font-weight: 500;
    width: 70px;
}

@media screen and (max-width: 768px) {
    button#tabbyButton {
        width: 70px;
    }
}

/* Mobile Header Scroll Animation */
@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.scroll-ticker {
    display: inline-block !important;
    white-space: nowrap !important;
    animation: scroll-left 15s linear infinite !important;
    will-change: transform;
}

/* Hide Telr Card Entry on Checkout */
.woocommerce-checkout #payment .payment_box .sec-info {
    display: none !important;
}

.woocommerce-checkout #payment .payment_box .input-wrap:has([id^="_stripeElement-cc-number"]),
.woocommerce-checkout #payment .payment_box .input-wrap:has([id^="_stripeElement-cc-exp"]),
.woocommerce-checkout #payment .payment_box .input-wrap:has([id^="_stripeElement-cc-cvn"]),
.woocommerce-checkout #payment .payment_box .input-wrap:has([data-elements-stable-field-name="cardNumber"]),
.woocommerce-checkout #payment .payment_box .input-wrap:has([data-elements-stable-field-name="cardExpiry"]),
.woocommerce-checkout #payment .payment_box .input-wrap:has([data-elements-stable-field-name="cardCvc"]) {
    display: none !important;
}

/* Variable Products Fix - Desktop */
@media (min-width: 768px) {
    .single-product form.cart.variations_form .single_variation_wrap,
    .single-product form.cart.variations_form .woocommerce-variation-add-to-cart {
        display: block !important;
        width: 100% !important;
        flex: 0 0 100% !important;
    }

    .single-product form.cart.variations_form .woocommerce-variation-add-to-cart .variations_button {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .single-product form.cart.variations_form .variations_button .quantity {
        flex: 0 0 130px !important;
        width: 130px !important;
        max-width: 130px !important;
        float: none !important;
        margin: 0 !important;
    }

    .single-product form.cart.variations_form .variations_button .single_add_to_cart_button {
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: calc(100% - 140px) !important;
        min-width: 0 !important;
        float: none !important;
        margin: 0 !important;
        height: 48px;
        line-height: 48px;
        font-size: 20px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
    }
}

/* Variable Products Fix - Mobile */
@media (max-width: 767px) {
    .single-product form.cart.variations_form .woocommerce-variation-add-to-cart .variations_button {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .single-product form.cart.variations_form .variations_button .quantity {
        flex: 0 0 100px !important;
        width: 100px !important;
        max-width: 100px !important;
        float: none !important;
        margin: 0 !important;
    }

    .single-product form.cart.variations_form .variations_button .single_add_to_cart_button {
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: calc(100% - 108px) !important;
        min-width: 0 !important;
        float: none !important;
        margin: 0 !important;
        height: 48px;
        line-height: 48px;
        padding: 0 15px;
        font-size: 18px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }
}

/* Very Small Screens - Variable Products */
@media (max-width: 374px) {
    .single-product form.cart.variations_form .variations_button .quantity {
        flex: 0 0 80px !important;
        width: 80px !important;
        max-width: 80px !important;
    }

    .single-product form.cart.variations_form .variations_button .single_add_to_cart_button {
        max-width: calc(100% - 88px) !important;
        padding: 0 10px;
        font-size: 16px !important;
    }
}

/* Variable Products with Extra Options */
.single-product form.cart.variations_form .woocommerce-variation-add-to-cart.variations_button {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

.single-product form.cart.variations_form .variations_button > .quantity {
    flex: 0 0 130px !important;
    margin-right: 10px !important;
    float: none !important;
}

.single-product form.cart.variations_form .variations_button > button.single_add_to_cart_button {
    flex: 1 !important;
    float: none !important;
}

.single-product form.cart.variations_form .variations_button table.extra-options {
    flex: 0 0 100% !important;
    width: 100% !important;
    margin-bottom: 15px !important;
}

.single-product form.cart.variations_form .variations_button table.thwepo_brand_authenticity {
    margin-top: 15px !important;
    margin-bottom: 0 !important;
}

@media (max-width: 767px) {
    .single-product form.cart.variations_form .variations_button > .quantity {
        flex: 0 0 100px !important;
        margin-right: 8px !important;
    }
}