/* Frame Only Popup Styles */
.frame-modal {
    display: none;
    position: fixed;
    z-index: 99999; 
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto; 
}


.frame-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    width: 450px;
    max-width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif;
    position: relative;
}

.frame-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.frame-modal-title {
    font-size: 20px;
    margin-top: 0;
}

.frame-modal-description {
    margin: 15px 0;
    font-size: 15px;
    color: #333;
}

.frame-modal-buttons {
    margin-top: 20px;
}

.frame-add-lenses {
    display: inline-block;
    margin-bottom: 10px;
}

/* Style for "Buy Frame Only" button near Add to Cart */
.buy-frame-only-button,
.pd-btn {
    background: transparent !important;
    border: 1px solid #e86502 !important;
    color: #e86502 !important;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: none !important;
    text-decoration: none;
}
.buy-frame-only-button,
.with-prescription-button {
  margin-top: 10px;
  width: 50%;
  justify-content: center;
}
/* Style for "Continue without lenses" button in modal */
.frame-continue-button {
    background: transparent !important;
    border: 1px solid #e86502 !important;
    color: #e86502 !important;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: none !important;
    text-decoration: none;
    width:100%;
}
a.button.frame-add-lenses {
    width: 100%;
}

/* Hover effect for all three buttons */
.buy-frame-only-button:hover,
.frame-continue-button:hover {
    background-color: #016883 !important;
    color: #ffffff !important;
    border: none !important;
}

.frame-modal-footer {
    margin-top: 25px;
    font-size: 13px;
    color: #666;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

/* Namespaced CSS for Product Configurator Template */

.custom-configurator-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.custom-configurator-wrapper .configurator-title {
  font-size: 2rem;
  margin-bottom: 30px;
}

.custom-configurator-wrapper .configurator {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: nowrap;
}

.custom-configurator-wrapper .options {
  flex: 0 0 70%;
  max-width: 70%;
}

/** New css for summary ***/
.custom-configurator-wrapper .summary {
  flex: 0 0 30%;
  max-width: 30%;
  position: sticky;
  top: 20px; /* distance from top of viewport */
  align-self: flex-start;
}
.custom-configurator-wrapper .lens-summary-box {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  font-family: inherit;
  color: #333;
}

.custom-configurator-wrapper .summary-image {
  display: block;
  position: relative;
  width: 100%;
  /* aspect-ratio: 3 / 2;  */
  overflow: hidden;
}

.custom-configurator-wrapper .summary-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
}

.custom-configurator-wrapper .summary-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-align: center;
}

.custom-configurator-wrapper .summary-section h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #000;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

.custom-configurator-wrapper .summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.95rem;
  border: none; /* No border between rows */
}

.custom-configurator-wrapper .summary-row .label {
  color: #333;
  font-weight: 500;
}

.custom-configurator-wrapper .summary-row .value {
  font-weight: 500;
  color: #333;
}

.custom-configurator-wrapper .summary-subtext {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 20px;
  text-align: left;
  font-style: italic;
}

.custom-configurator-wrapper .summary-total {
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-configurator-wrapper .summary-total-label {
  font-weight: 600;
  font-size: 1rem;
  color: #000;
  margin-bottom: 0; 
}

.custom-configurator-wrapper .summary-total-price {
  font-size: 1.4rem;
  font-weight: bold;
  color: #000;
  margin-left: auto;
}

.custom-configurator-wrapper .summary-vat-text {
  font-size: 0.85rem;
  color: #555;
  margin-top: 4px;
}

.custom-configurator-wrapper .summary-row.frame-row,
.custom-configurator-wrapper .summary-row.lenses-row {
  font-weight: 600;
  color: #000;
}

.custom-configurator-wrapper .option-step {
  margin-bottom: 25px;
}

.custom-configurator-wrapper .option-select,
.custom-configurator-wrapper input[type="text"] {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  margin-top: 10px;
}

.custom-configurator-wrapper input[type="radio"],
.custom-configurator-wrapper input[type="checkbox"] {
  margin-right: 8px;
}

.custom-configurator-wrapper .option-img {
  width: 100px;
  margin: 10px;
  border: 1px solid #ccc;
  padding: 4px;
  cursor: pointer;
}

.custom-configurator-wrapper #addToCartBtn {
  margin-top: 20px;
  padding: 12px 20px;
  font-size: 16px;
  width: 100%;
  background-color: #0071a1;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.custom-configurator-wrapper #addToCartBtn:hover {
  background-color: #005c85;
}

.custom-configurator-wrapper .glass-type-options,
.custom-configurator-wrapper .prescription-values {
  display: flex;
  flex-direction: column;
  gap: 15px;
  overflow: visible;
}

.custom-configurator-wrapper .glass-type-option,
.custom-configurator-wrapper .prescription-option
{
  border: 1.5px solid #ccc;
  border-radius: 10px;
  padding: 15px 20px;
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.custom-configurator-wrapper .glass-type-option.selected,
.custom-configurator-wrapper .prescription-option.selected,
.custom-configurator-wrapper .option-card.selected,
.custom-configurator-wrapper .lens-qlty-card.selected,
.custom-configurator-wrapper .lens-tint-product.selected,
.custom-configurator-wrapper .lens-upgrade-product.selected,
.custom-configurator-wrapper .lens-field-product.selected
 {
  border-color: #000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.custom-configurator-wrapper .glass-type-info {
  max-width: 80%;
}
.custom-configurator-wrapper button.button-login {
    margin-top: 10px; 
}
.custom-configurator-wrapper .glass-type-title,
.custom-configurator-wrapper .prescription-type-title {
  font-weight: 600;
  font-size: 16px;
}

.custom-configurator-wrapper .glass-type-description,
.custom-configurator-wrapper .prescription-type-description,
.custom-configurator-wrapper .prescription-upload-description {
  margin: 5px 0 0;
  color: #555;
  font-size: 14px;
}

.custom-configurator-wrapper .glass-type-price {
  font-weight: 600;
  color: #000;
  white-space: nowrap;
}

.custom-configurator-wrapper .config-step-heading {
  display: flex;
  align-items: center;
  margin: 20px 0 10px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #222;
}

.custom-configurator-wrapper span.step-circle {
  width: 30px;
  height: 30px;
  background-color: #000;
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  font-size: 1rem;
  font-weight: bold;
}

.custom-configurator-wrapper .config-step-heading .step-label {
  display: inline-block;
}

/* Accordion Styles */
.custom-configurator-wrapper .config-accordion {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.custom-configurator-wrapper .accordion-section {
  border-bottom: 1px solid #e0e0e0;
}

.custom-configurator-wrapper .accordion-section:last-child {
  border-bottom: none;
}

.custom-configurator-wrapper .accordion-header {
  padding: 15px 20px;
  background-color: #f8f8f8;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background-color 0.3s;
}

.custom-configurator-wrapper .accordion-section.active .accordion-header {
  background-color: #fff;
}

.custom-configurator-wrapper .accordion-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.custom-configurator-wrapper .accordion-section.active .accordion-content {
  padding: 20px;
  max-height: none;
  transition: max-height 0.5s ease-in, padding 0.3s ease;
}

/* Next Step Button */
.custom-configurator-wrapper .next-step-button,
.custom-configurator-wrapper .lens-config-add-to-cart {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 12px;
  margin-top: 20px;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.custom-configurator-wrapper .next-step-button:hover {
  background-color: #333;
}

.custom-configurator-wrapper .accordion-section.disabled {
  opacity: 0.6;
  pointer-events: none;
}

/** change link style **/
.change-link {
  display: none; 
  margin-left: auto;
}
.hidden {
  display: none !important;
}

/**** css for prescription values manual entry ****/
/* Description text */
.prescription-hide-description {
  color: #555;
  font-size: 14px;
}

/* Table layout */
.manual-prescription-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.manual-prescription-table th,
.manual-prescription-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
  vertical-align: middle;
}

.manual-prescription-table th {
  font-weight: bold;
  background: #f8f8f8;
}

/* Labels column */
.manual-prescription-table .field-title {
  font-weight: bold;
  text-align: left;
  width: 150px;
}

/* Select box styling */
.select-with-unit {
  display: flex;
  align-items: center;
  justify-content: center;
}

.select-with-unit select {
  min-width: 80px;
  padding: 4px;
}

.select-with-unit .unit {
  margin-left: 6px;
  white-space: nowrap;
}

/* Special PD row */
.pd-row td {
  padding: 6px;
}

.pd-row select {
  min-width: 90px;
  padding: 4px;
}


/**** css for prescription values logged in customer ****/

/** loggedin success section **/
.prescription-header {
    background-color: #f0f8ff; 
    border: 1px solid #cce4f6;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    flex-direction: column; 
    gap: 6px;
    margin-bottom: 15px;
    margin-top: 15px;
}

.prescription-header strong {
    font-size: 16px;
    color: #333;
}

.prescription-status {
    font-size: 14px;
}

.prescription-status.success {
    color: #0a662e;
    font-weight: bold;
}

/** table style **/
.prescription-table {
    background-color: #ffffff; /* white wrapper */
    border-radius: 8px;
    padding: 0; /* no extra padding inside the wrapper */
    margin-top: 15px;
    overflow-x: auto;
    width: 100%;
    border-collapse: collapse;
}

.prescription-table th {
    background-color: #f2f2f2; 
    font-weight: 600;
    padding: 10px 12px;
    text-align: center;
}

.prescription-table td {
    padding: 10px 12px;
    text-align: center;
    font-weight: 400;
}

.prescription-table tbody tr:nth-child(odd) {
    background-color: #fafafa; 
}

.prescription-table tbody tr:nth-child(even) {
    background-color: #ffffff; 
}

.prescription-table th,
.prescription-table td {
    border: none; 
}
/** pd one two button style **/
.pd-toggle {
    margin-top: 10px;  
}
#step-2 .accordion-content {
    width: 100%;
    max-width: 100%;
}
#step-2 .prescription-option-info {
    width: 100%;
}
/** If user is loggedin but don't have saved prescription value message style **/
.prescription-message.warning {
    background-color: #f5d7b7; /* Light orange */
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    color: #333;
    margin-top: 10px;
}

.prescription-message .icon {
    margin-right: 8px;
    font-size: 16px;
    line-height: 1.5;
}

.prescription-message .text {
    flex: 1;
}

/** prescription certification section style **/
.prescription-date-certification {
  margin-top: 20px;
  font-size: 14px;
  color: #333;
}

.prescription-date-certification > label {
  display: block;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 5px;
  color: #000;
}

.prescription-date-certification > p {
  font-size: 15px;
  color: #555;
  margin-bottom: 10px;
}

.prescription-date-certification .date-selectors {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.prescription-date-certification select {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  min-width: 80px;
}

.date-warning {
    color: red;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

/** css for lens thickness **/
 .lenstabs,
 .lens-qlty-selector {
        display: flex;
        background: #dfae89;
        border-radius: 6px;
        overflow: visible;
        margin-bottom: 15px;
    }
    .lenstab,
    .lens-qlty-option {
        flex: 1;
        text-align: center;
        padding: 10px;
        font-weight: 500;
        color: #555;
        cursor: pointer;
        transition: background 0.2s;
        
    }
    .lens-qlty-option {
      position: relative;
    }
    .lenstab.active,  
    .lens-qlty-option.selected {
        background: white;
        color: black;
        font-weight: bold;
    }
    .thickness-options {
        display: flex;
        gap: 15px;
        overflow-x: auto;
        scroll-behavior: smooth;
        padding-bottom: 10px;
    }
  

.title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.option-title {
    font-weight: bold;
    font-size: 16px;
}

.lens-price {
  top: 10px;
  right: 15px;
  font-weight: bold;
  font-size: 14px;
  color: #333;
}

.option-image {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.feature-box {
background: #dfae89;
padding: 10px;
border-radius: 6px;
font-size: 14px;
color: #333;
display: flex;
justify-content: space-between;
align-items: center;
gap: 10px;
}

.feature-text {
    flex: 1;
}

.feature-image img {
    max-width: 50px; 
    max-height: 50px;
    object-fit: contain;
}
.option-sub {
  font-weight: 400;
}

.option-card.selected {
    border: 1px solid #ccc;
}

.accordion-section.final-view .thickness-options,
.accordion-section.final-view .lens-qlty-option {
    display: block;  
    overflow: visible;
}

.accordion-section.final-view .option-card.final-selected,
.accordion-section.final-view .lens-qlty-card.final-selected
 {
    width: 100% !important;
    margin: 0;
    border-radius: 10px;
    padding: 16px;
    border-color: #000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
 }


 /*** thickness recommendation style **/
.lens-recommendation {
    display: flex;
    align-items: center;      
    background: #f0fdf4; 
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
    line-height: 1.5;
}

.avatar-wrapper {
    position: relative;
    display: flex;            
    margin-right: 12px;
    align-items: center;   
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: block;
}

.icon-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: #e86502;  
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-badge svg {
    width: 12px;
    height: 12px;
}

.recomm-content {
    flex: 1;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    margin-top: 15px; 
}
/* --- Tab header with top recommendation icon --- */
.lenstab {
  position: relative;
}

.lenstab.recommended .tab-icon {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e86502;  /* orange background */
  display: flex;
  align-items: center;
  justify-content: center;
}

.lenstab.recommended .tab-icon svg {
  width: 12px;
  height: 12px;
  stroke: #fff;  /* white icon */
  fill: none;
}

/* --- Option card recommendation badge --- */
.option-card {
  position: relative;
  flex: 0 0 250px;
  background: #fff;
  border: 1.5px solid #ccc;
  border-radius: 10px;
  padding: 28px 20px 15px;  
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  margin-top: 10px;
}


/* Recommendation badge */
.option-card .recommendation-badge
 {
  position: absolute;
  top: -12px;                      
  left: 50%;                       
  transform: translateX(-50%);
  background: #e86502;            
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.option-card .recommendation-badge svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  fill: none;
}

/** lens quality **/
.lens-qlty-option.recommended {
  border-color: #e86502;
  font-weight: bold;
}

/* Icon above the tab text */
.lens-qlty-option .tab-icon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: #e86502;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lens-qlty-option .tab-icon svg {
  width: 12px;
  height: 12px;
  stroke: #fff;
  fill: none;
}

.lens-qlty-card .recommendation-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #e86502;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.lens-qlty-card .recommendation-badge svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  fill: none;
}

.lens-qlty-option.active {
    background: #dff4e5;
    border-color: #2ca24c;
}

.lens-qlty-cards {
    display: flex;
    gap: 20px;
}

.lens-qlty-card {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    background: white;
    position: relative;
}

/* lens-qlty-card-header alignment */
.lens-qlty-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: bold;
}

.lens-qlty-card-header h4 {
    font-size: 1.1rem;
    margin: 0;
    flex: 1;
}

.lens-qlty-price {
    color: #333;
    font-weight: bold;
    white-space: nowrap;
}

/* lens-qlty-desc background + size */
.lens-qlty-desc,
.lens-qlty-subtitle {
    margin: 10px 0;
    color: #555;
}

/* Default layout */
.lens-qlty-desc {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    min-height: 70px;
}

/* Image variant */
.lens-qlty-desc.has-image {
    background-color: #0a3761;
    color: #fff;
}
.lens-qlty-desc.has-image .lens-qlty-desc-text {
    color: #fff;
}

/* No image variant */
.lens-qlty-desc.no-image {
    background-color: #ced7df;
    color: #363434;
}
.lens-qlty-desc.no-image .lens-qlty-desc-text {
    color: #363434;
}

.lens-qlty-desc-img img {
    display: block;
    max-width: 50px;
    height: auto;
}


.lens-qlty-for {
    display: block;
    margin-top: -6px; 
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #666;
}

.lens-qlty-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lens-qlty-features li {
    display: flex;
    align-items: center; /* center icon vertically */
    gap: 12px;
    margin-bottom: 12px;
}

/* Icon column */
.lens-qlty-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Text column */
.lens-qlty-text {
    display: flex;
    flex-direction: column; /* stack header & content */
    justify-content: center; /* vertically align within available height */
}

.lens-qlty-text strong {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.lens-qlty-text span {
    font-size: 0.85rem;
    color: #555;
}

/** additional feature **/
.lens-qlty-additional {
    margin-top: 15px;
}

.lens-qlty-additional-header {
    display: block;
    font-size: 1rem;
    margin-bottom: 8px;
    color: #0a3761;
}

.lens-qlty-additional-desc {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lens-qlty-additional-desc .lens-qlty-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lens-qlty-additional-text {
    font-size: 0.9rem;
    color: #555;
}


/** lens tint **/
.lens-tint-container {
  display: flex;
  flex-direction: column;
  gap: 24px; /* space between products */
}

.lens-tint-product {
  border: 1px solid #ddd;
  padding: 16px;
  border-radius: 12px;
  transition: box-shadow 0.2s;
}

.lens-tint-product:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.lens-tint-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.lens-tint-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.lens-tint-price {
  font-size: 1rem;
  font-weight: bold;
  color: #333;
}

.lens-tint-description {
  margin: 0 0 12px;
  line-height: 1.4;
  font-size: 0.9rem;
  color: #666;
}

.lens-tint-details {
  margin-top: 10px;
}

.lens-tint-image {
  margin: 15px 0;
  text-align: center;
}

.lens-tint-image img {
  max-width: 250px;
  height: auto;
  display: inline-block;
}

.lens-tint-color-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin: 8px 0;
  white-space: nowrap;
}

.lens-tint-color-row .lens-tint-color-label,
.lens-tint-color-row .lens-tint-active-color {
  display: inline-block;
  margin: 0;
  padding: 0;
  float: none !important;
  width: auto !important;
  text-align: left;
}

.lens-tint-active-color {
  margin: 0;
  font-weight: 500;
  color: #222;
}


.lens-tint-details label {
  font-weight: 600;
  margin-right: 4px;
}

/* Main left-right layout */
.lens-tint-layout {
  display: flex;
  align-items: center; /* centers image vertically with swatches */
  gap: 32px;
  margin-top: 16px;
  flex-wrap: wrap; /* makes it responsive */
}

/* Left side: color section */
.lens-tint-left {
  flex: 0 0 180px; /* controls swatch block width */
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Color label row */
.lens-tint-color-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

/* Swatches container: grid of 4 */
.lens-tint-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

/* Individual swatch style */
.lens-tint-swatch {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 2px solid #ccc;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.lens-tint-swatch:hover {
  transform: scale(1.1);
}

.lens-tint-swatch.active {
  border-color: #000;
}

/* Right side: image section */
.lens-tint-right {
  flex: 1;
  display: flex;
  align-items: center; /* centers image vertically */
  justify-content: center; /* keeps it centered horizontally */
  min-width: 220px;
}

.lens-tint-image img {
  max-width: 250px;
  height: auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.lens-tint-image img.fade {
  opacity: 0;
  transform: scale(0.95);
}



/** lens upgrade style **/
/* Container */
.lens-upgrade-container,
.lens-field-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Product Card */
.lens-upgrade-product,
.lens-field-product

 {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  position: relative;
  cursor: pointer;
  transition: border 0.3s;
}

/* Header */
.lens-upgrade-header,
.lens-field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lens-upgrade-title,
.lens-field-title
 {
  font-size: 1.2em;
  margin: 0;
}

.lens-upgrade-price,
.lens-field-price {
  font-weight: bold;
  color: #333;
}

/* Image */
.lens-upgrade-image,
.lens-field-image {
  position: relative;
  text-align: center;
}

.lens-upgrade-image img,
.lens-field-image img
 {
  max-width: 100%;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

/* Overlay effect text on the image */
.lens-upgrade-effect {
  position: absolute;
  top: 8%; /* place text inside the image */
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 25%;
  font-size: 0.95em;
  color: #666;
  text-shadow: 1px 1px 3px rgba(255,255,255,0.8);
  pointer-events: none; /* let clicks go through */
}

.lens-upgrade-effect .without {
  text-align: left;
}

.lens-upgrade-effect .with {
  text-align: right;
}


/* Description */
.lens-upgrade-description,
.lens-field-description
 {
  margin-top: 8px;
  color: #666;
  font-size: 0.95em;
}

/* Action Button */
.lens-upgrade-action {
  position: absolute;
  bottom: 10px;
  right: 10px;
}

.lens-upgrade-icon {
  font-size: 1.5em;
  font-weight: bold;
  color: #000;
}

/** Progressive popup style **/
.progressive-list {
  list-style: none;
  padding: 0;
}
.progressive-item {
  margin-bottom: 10px;
}
.progressive-knowmore {
  color: #0073aa;
  text-decoration: underline;
  cursor: pointer;
  margin-left: 10px;
  font-size: 0.9em;
}
#popupModal-progressive {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}
.popup-content-progressive {
  background-color: #fff;
  margin: auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  position: relative;
  text-align: center;
}
.popup-close-progressive {
  position: absolute;
  top: 8px;
  right: 15px;
  color: #333;
  font-size: 24px;
  cursor: pointer;
}
.popup-content-progressive img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}


/* ----------------------------------
   Select your frame size - pdp style
------------------------------------- */
#custom-frame-size-options {
  margin: 15px 0;
  padding: 10px 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Header row (title + link) */
.frame-size-header {
  display: flex;
  justify-content: flex-start; /* align items at start */
  align-items: center;
  gap:50px; 
}

.frame-size-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.find-your-size-link {
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}

/* Options row */
.frame-size-options-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap; /* keep in one row on desktop */
  width: 50%;
  gap: 5px;

}

.frame-size-option span {
  display: flex;
  min-width: auto;       /* no forced width */
  text-align: center;
  padding: 8px 14px;     /* tighter padding */
  border: 2px solid #ccc;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.25s ease;
  box-sizing: border-box;
  white-space: nowrap;   /* prevent breaking text into 2 lines */
}


.frame-size-option {
  position: relative;
  cursor: pointer;
  display: inline-block;
}

.frame-size-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Selected effect */
.frame-size-option input[type="radio"]:checked + span {
  border-color: #000;
  font-weight: bold;
}

/* -----------------------------
   Find your size popup Styles
------------------------------ */
/* Popup container */
.find-size-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.find-size-popup .popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    position: relative;
    text-align: left;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Scrollable content area */
.popup-scrollable {
    overflow-y: auto;
    max-height: calc(80vh - 40px);
    padding-right: 5px;
    position: relative;
}

.find-size-popup .popup-close {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0 0 0 8px;
    box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.1);
}

.find-size-popup .popup-close:hover {
    background: #f1f1f1;
}

/* Custom scrollbar styling */
.popup-scrollable::-webkit-scrollbar {
    width: 8px;
}

.popup-scrollable::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.popup-scrollable::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.popup-scrollable::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Content styling */
.find-size-popup h1 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 15px;
    padding-right: 30px; /* Space for close button */
}

.find-size-popup h2 {
    color: #2c3e50;
    font-size: 20px;
    margin: 20px 0 15px;
    font-weight: 600;
}

.find-size-popup p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.sample-sizing {
    margin: 20px 0;
}

/* Side-by-side layout for sample content */
.sample-sizing-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 15px 0;
}

.sample-left-content {
    background-color: #f8f9fa;
    border-left: 4px solid #e86502;
    padding: 15px;
    border-radius: 0 4px 4px 0;
    flex: 1;
    min-width: 250px;
}

.sample-right-image {
    flex: 1;
    text-align: center;
    min-width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sample-right-image img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.what-look ul {
    list-style-type: none;
    padding-left: 0;
    margin: 20px 0;
}

.what-look li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.what-look li:before {
    content: "•";
    color: #e86502;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 20px;
}

.b-measurement {
    margin-top: 25px;
}

.b-measurement img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 15px;
}
span#uploaded_filename {
    white-space: normal !important;
    word-break: break-word !important;
    max-width: 100% !important;
}
.mobile-add-to-cart-placeholder {
    display: none;
}


@media (max-width: 64rem) {
    body.frame-modal-open.single .product-type-simple form.cart {
        display: none !important;
    }
}
@media (max-width: 768px) {
  .mobile-add-to-cart-placeholder {
        display: block;
        margin-top: 20px;
    }

    /* Make moved button fit mobile layout */
    .mobile-add-to-cart-placeholder .lens-config-add-to-cart {
        width: 100%;
        font-size: 16px;
        padding: 14px 18px;
    }
    .with-prescription-button,.buy-frame-only-button,#btnstep1 {
      font-size: 13px !important;
   }
   .sample-sizing-container {
        flex-direction: column;
    }
    
    .sample-left-content, .sample-right-image {
        min-width: 100%;
    }
    
    .find-size-popup .popup-close {
        top: -5px;
        right: -5px;
    }
  .frame-size-header {
    align-items: flex-start;
    gap: 50px;
  }

  .frame-size-options-row {
    flex-wrap: wrap; 
  }

  .frame-size-option span {
    min-width: 140px;
  }
  .custom-configurator-wrapper .configurator {
    flex-direction: column;
  }

  .custom-configurator-wrapper .options,
  .custom-configurator-wrapper .summary {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .custom-configurator-wrapper .summary {
    position: static; 
    margin-top: 20px;
  }

  .custom-configurator-wrapper .lenstabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;       
    gap: 10px;            
    -webkit-overflow-scrolling: touch; 
  }

  .custom-configurator-wrapper .lenstab {
    flex: 0 0 auto;         
    white-space: nowrap;   
    position: relative;
    padding: 10px 15px;  
    padding-top: 28px;      
  }

  .lenstab.recommended .tab-icon {
    position: absolute;
    top: 6px;            
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e86502;  
    display: flex;
    align-items: center;
    justify-content: center;
  }

    .custom-configurator-wrapper .option-card {
    flex: 0 0 100%;     
    max-width: 100%;
  }

  /* If inside scrollable row like .thickness-options */
  .custom-configurator-wrapper .thickness-options {
    flex-direction: column;   
    gap: 15px;           
    overflow: visible;      
  }

  .custom-configurator-wrapper .lens-qlty-cards {
    flex-direction: column;   
    gap: 15px;              
  }

  .custom-configurator-wrapper .lens-qlty-card {
    flex: 0 0 100%;         
    max-width: 100%;
  }

  .manual-prescription-table thead {
    display: none; 
  }

  .manual-prescription-table,
  .manual-prescription-table tbody,
  .manual-prescription-table tr,
  .manual-prescription-table td {
    display: block;
    width: 100%;
  }

  .manual-prescription-table tr {
    margin-bottom: 1.2rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 10px;
  }

  .manual-prescription-table td {
    text-align: left;
    border: none;
    position: relative;
    padding: 10px 10px 5px;
  }

  .manual-prescription-table td::before {
    content: attr(data-label);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    color: #333;
  }

  /* Eye label as a heading */
  .eye-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0066cc;
    border-bottom: 1px solid #ddd;
    margin-bottom: 8px;
  }

  /* PD row layout fix */
  .pd-row td {
    padding: 10px;
  }

  .pd-row strong {
    display: block;
    margin-bottom: 6px;
  }

  select {
    width: 100%;
  }

  form.cart {
  display: flex;
  flex-direction: column;
  gap: 10px; /* space between buttons */
}

.lens-tint-layout {
    flex-direction: column;
    align-items: center;
  }
  .lens-tint-left {
    flex: 1 1 100%;
    align-items: center;
  }
  .lens-tint-swatches {
    grid-template-columns: repeat(4, 40px);
    justify-content: center;
  }

/* Make each button full width on mobile */
form.cart .button {
  width: 100%;
  text-align: center;
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  text-align: center;       
  justify-content: center;  
  display: flex;          
  align-items: center; 
}


}


