﻿
.item-description {
    margin: 5px 0;
}

    .item-description label {
        padding-left: 10px;
        cursor: pointer;
    }

.lenstable th, .lenstable td {
    padding: 4px;
    text-align: center;
}

.lenstable th {
    background: #ddd;
    border-left: 2px solid #fff;
}

.lenstable td {
    background: #f1f1f1;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
}

    .lenstable td:last-child > input {
        width: 40px;
        height: 32px;
        text-align: center;
    }

.lens-price {
    margin: 10px 0;
}

    .lens-price span {
        display: inline-block;
        vertical-align: middle;
        font-size: 20px;
    }

.lens-price-code {
    /* padding: 8px;
  outline: 1px solid #eee;
  background: #f5f5f5;*/
    font-weight: bold;
    display: inline-block;
    vertical-align: middle;
    margin-right: 2px;
    height: 32px;
    color: #000;
}

#color-contact-lens .buttons,
#cylinder-contact-lens .buttons,
#LensWidget .buttons,
.lenstable .buttons {
    text-align: right;
    margin-top: 10px;
    margin-bottom: 20px;
}

    #color-contact-lens .buttons button.button-1,
    #cylinder-contact-lens .buttons button.button-1,
    #LensWidget .buttons button.button-1,
    .lenstable .buttons button.button-1 {
        width: 100%;
        max-width: 120px;
        background-color: #000 !important;
        text-align: center;
        font-size: 15px;
        color: #fff;
        text-transform: uppercase;
        border: none;
        height: 32px;
        padding: 5px;
        vertical-align: middle;
    }


        #color-contact-lens .buttons button.button-1:hover,
        #cylinder-contact-lens .buttons button.button-1:hover,
        #LensWidget .buttons button.button-1:hover,
        .lenstable .buttons button.button-1:hover {
            width: 100%;
            max-width: 120px;
            background-color: #fff !important;
            border: 1px solid #000;
            text-align: center;
            font-size: 15px;
            color: #000;
            text-transform: uppercase;
            border: none;
            height: 32px;
            padding: 6px;
            vertical-align: middle;
        }

.tooltiptext {
    display: none;
}

.image:hover .overlay {
}

.lenstooltip:hover .tooltiptext {
    /*visibility: visible;*/
    width: 180px;
    height: 100px;
    padding: 4px;
    border-radius: 10px;
    background: #000;
    color: #fff;
    position: absolute;
    bottom: 25px;
    left: -55px;
    display: inline-flex;
    /*-webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;*/
}

.lenstable .lenstooltip {
    position: relative;
    display: inline-block;
    border: none;
    vertical-align: middle
}
/*
  .lenstable .lenstooltip .tooltiptext {
    width: 200px;
    position: absolute;
    z-index: 1;
    bottom: 25px;
    left: 50%;
  }*/

.lenstable tr td input[type="text"] {
    text-align: center;
    max-width: 50px;
    font-size: 12px;
}



.lenstable tr td select {
    text-align: center;
    /* max-width: 80px;*/
    font-size: 12px;
}


.lenstable tr td .form-select {
    display: block;
    width: 100%;
    padding: 0.0rem;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    direction: rtl;
    background-color: #fff;
    /*  background-image: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e);
  background-repeat: no-repeat;
*/
    background-position: left .1rem center;
    background-size: 9px 9px;
    border: 0px solid #ced4da;
    border-radius: .25rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/*.bs_product_attributes {
  display: none;
}*/

/* ===== Two-column OD/OS prescription card layout ===== */
.lens-samerx {
    text-align: center;
    margin: 6px 0 14px;
    font-size: 15px;
}

    .lens-samerx label {
        cursor: pointer;
        font-weight: 600;
    }

    .lens-samerx input[type="checkbox"] {
        margin-left: 6px;
        margin-right: 6px;
        vertical-align: middle;
    }

.lens-eyes-cols {
    display: flex;
    align-items: stretch;
    gap: 16px;
}

.eye-col {
    flex: 1 1 0;
    padding: 16px;
    min-width: 0;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    background: #fff;
}

.eye-col-title {
    font-weight: 700;
    text-align: center;
    font-size: 18px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid #ddd;
}

.eye-field {
    margin-bottom: 14px;
}

.eye-field-static {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 17px;
    color: #444;
    padding: 2px 2px 10px;
}

    .eye-field-static .ef-val {
        font-weight: 600;
        color: #222;
    }

.eye-field .ef-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    margin-bottom: 6px;
}

.eye-field .ef-val {
    display: block;
    padding: 9px 12px;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    background: #f3f4f6;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    text-align: center;
}

.ef-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #6b7280;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    font-style: italic;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1;
    cursor: help;
    position: relative;
    flex: 0 0 auto;
}

    .ef-info:hover::after,
    .ef-info:focus::after {
        content: attr(data-tip);
        position: absolute;
        top: 145%;
        right: -8px;
        width: 220px;
        max-width: 60vw;
        padding: 10px 12px;
        background: #1f2937;
        color: #fff;
        font-size: 13px;
        font-style: normal;
        font-weight: 400;
        line-height: 1.5;
        text-align: right;
        white-space: normal;
        border-radius: 8px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
        z-index: 30;
    }

.eye-col .eye-select.form-select {
    display: block;
    width: 100%;
    padding: 9px 12px;
    font-size: 15px;
    line-height: 1.3;
    color: #212529;
    background-color: #fff;
    background-image: none;
    border: 1px solid #aaa;
    border-radius: 6px;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    appearance: auto;
}

.eye-col-disabled {
    opacity: .5;
    pointer-events: none;
}

.lens-color-field {
    max-width: 280px;
    margin: 4px auto 0;
    text-align: center;
}

    .lens-color-field .ef-label {
        display: block;
        font-weight: 600;
        margin-bottom: 6px;
    }

/* ===== 3-column lens row: deals/price/cart | OS | OD (RTL) ===== */
.lens-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 18px;
}

.lens-eyes-region {
    order: 2;
    flex: 1 1 340px;
    min-width: 340px;
}

.lens-deals-col {
    order: 1;
    flex: 0 0 240px;
    max-width: 260px;
    margin-top: 35px;
    font-size: 13px;
}

    .lens-deals-col .item-description {
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px 12px;
        margin-bottom: 8px;
        cursor: pointer;
    }

        .lens-deals-col .item-description label {
            cursor: pointer;
            font-weight: 600;
        }

        .lens-deals-col .item-description:has(input.item:checked) {
            border-color: #8d712a;
            border-width: 2px;
            background: #fffef8;
            box-shadow: 0 0 0 1px #8d712a inset;
            position: relative;
        }

            .lens-deals-col .item-description:has(input.item:checked)::after {
                content: "\2713";
                position: absolute;
                top: -10px;
                left: -10px;
                width: 22px;
                height: 22px;
                line-height: 22px;
                text-align: center;
                border-radius: 50%;
                background: #8d712a;
                color: #fff;
                font-size: 13px;
                font-weight: 700;
            }

    .lens-deals-col .lens-price {
        background: #f1f1f1;
        border-radius: 8px;
        padding: 12px;
        margin: 16px 0;
        text-align: center;
    }

    .lens-deals-col .lens-price-code {
        color: #000;
        height: auto;
    }

    .lens-deals-col .lens-price span {
        font-size: 16px;
        color: #000;
    }

    .lens-deals-col .lens-price #lensprice {
        color: #8d712a;
        font-weight: 700;
    }

    .lens-deals-col .buttons {
        text-align: center;
        margin: 0;
    }

        .lens-deals-col .buttons button.button-1 {
            width: 100%;
            max-width: 100%;
            background-color: #8d712a !important;
            color: #fff;
            font-weight: 700;
            height: 44px;
            border-radius: 8px;
            text-transform: none;
        }

            .lens-deals-col .buttons button.button-1:hover {
                width: 100%;
                max-width: 100%;
                background-color: #1f2937 !important;
                color: #fff;
                border: 1px solid #8d712a;
                height: 44px;
                border-radius: 8px;
            }

/* ===== Responsive: stack columns on small screens ===== */
@media (max-width: 768px) {
    .lens-row {
        flex-direction: column;
    }

    /* Unwrap the deals column so its children take part in the column flow,
       letting the price and cart button be ordered after the LensWidget. */
    .lens-deals-col {
        display: contents;
    }

    .lens-deals-col > * {
        order: 1;
        width: 100%;
        font-size: 13px;
    }

    .lens-deals-col .lens-price,
    .lens-deals-col .buttons {
        order: 3;
    }
}

@media (max-width: 600px) {


    .lens-row {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0px;
    }

    .lens-eyes-cols {
        flex-direction: row;
    }

    .eye-col-title {
        font-size: 17px;
    }

    .lens-color-field {
        max-width: 100%;
    }
}
