/**
 * BNG Lens Configurator — Styles (Figma Design v2)
 *
 * Design: Clean, minimal, monochrome two-column layout
 * Typography: System fonts / Inter
 *
 * @package BNG_Lens_Configurator
 */

/* ============================================
   CSS VARIABLES / DESIGN TOKENS
   ============================================ */
:root {
    --bng-primary: #1A1A1A;
    --bng-primary-hover: #333333;
    --bng-text: #111827;
    --bng-text-secondary: #6B7280;
    --bng-text-light: #9CA3AF;
    --bng-border: #E5E7EB;
    --bng-border-hover: #D1D5DB;
    --bng-border-selected: #1A1A1A;
    --bng-bg: #F9FAFB;
    --bng-bg-white: #FFFFFF;
    --bng-bg-card: #FFFFFF;
    --bng-bg-card-hover: #FAFAFA;
    --bng-bg-selected: #F5F5F5;
    --bng-success: #16A34A;
    --bng-success-light: #DCFCE7;
    --bng-warning: #F59E0B;
    --bng-warning-light: #FEF3C7;
    --bng-error: #DC2626;
    --bng-error-light: #FEE2E2;
    --bng-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --bng-radius: 12px;
    --bng-radius-sm: 8px;
    --bng-radius-pill: 50px;
    --bng-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    --bng-shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.08);
    --bng-transition: 0.2s ease;
}

/* ============================================
   CTA BUTTON (on product page)
   ============================================ */
.bng-lens-cta {
    font-family: var(--bng-font);
    margin-top: 20px;
    text-align: center;
}

.bng-btn-customize {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--bng-primary);
    color: white;
    border: none;
    border-radius: var(--bng-radius-sm);
    font-size: 16px;
    font-weight: 600;
    font-family: var(--bng-font);
    cursor: pointer;
    transition: all var(--bng-transition);
    width: 100%;
    justify-content: center;
}

.bng-btn-customize:hover {
    background: var(--bng-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--bng-shadow-lg);
}

.bng-cta-note {
    font-size: 13px;
    color: var(--bng-text-light);
    margin: 8px 0 0;
    font-family: var(--bng-font);
}

/* ============================================
   MODAL OVERLAY (full-screen white)
   ============================================ */
.bng-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bng-modal-overlay.active {
    opacity: 1;
}

/* ============================================
   CONFIGURATOR CONTAINER (full-screen)
   ============================================ */
.bng-configurator {
    display: none;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    background: var(--bng-bg-white);
    overflow: hidden;
    position: relative;
    font-family: var(--bng-font);
}

.bng-modal-overlay.active .bng-configurator {
    display: flex;
}

/* ============================================
   TOP NAVIGATION BAR
   ============================================ */
.bng-top-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    height: 60px;
    border-bottom: 1px solid var(--bng-border);
    background: var(--bng-bg-white);
    flex-shrink: 0;
    position: relative;
}

.bng-steps-breadcrumb {
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 0;
    padding: 0;
    border: none;
}

.bng-step-tab {
    font-size: 14px;
    font-weight: 400;
    color: var(--bng-text-secondary);
    text-decoration: none;
    padding: 18px 4px;
    border-bottom: 2px solid transparent;
    transition: all var(--bng-transition);
    cursor: default;
    white-space: nowrap;
}

.bng-step-tab.active {
    color: var(--bng-text);
    font-weight: 600;
    border-bottom-color: var(--bng-text);
}

.bng-step-tab.completed {
    color: var(--bng-text-secondary);
    cursor: pointer;
}

.bng-step-tab.completed:hover {
    color: var(--bng-text);
}

/* ============================================
   TWO-COLUMN MAIN LAYOUT
   ============================================ */
.bng-main-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* LEFT COLUMN — Product Info */
.bng-left-column {
    width: 48%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 40px;
    overflow-y: auto;
    border-right: 1px solid var(--bng-border);
}

.bng-back-to-frame {
    align-self: flex-start;
    font-size: 14px;
    color: var(--bng-text);
    text-decoration: none;
    margin-bottom: 20px;
    transition: color var(--bng-transition);
}

.bng-back-to-frame:hover {
    color: var(--bng-text-secondary);
}

.bng-product-image-wrap {
    width: 100%;
    max-width: 480px;
    margin-bottom: 24px;
}

.bng-product-image-wrap img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.bng-product-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--bng-text);
    margin: 0 0 8px;
    text-align: center;
}

.bng-product-meta {
    font-size: 14px;
    color: var(--bng-text-secondary);
    text-align: center;
    margin-bottom: 24px;
}

.bng-product-attr {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 4px;
}

.bng-product-attr span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bng-product-color-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid var(--bng-border);
    vertical-align: middle;
}

/* Price Summary in left column */
.bng-price-summary {
    width: 100%;
    max-width: 480px;
    margin-top: auto;
    padding-top: 24px;
    border: none;
    background: none;
    border-radius: 0;
}

.bng-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
}

.bng-price-label {
    color: var(--bng-text);
}

.bng-price-value {
    font-weight: 600;
    color: var(--bng-text);
}

.bng-price-divider {
    height: 1px;
    background: var(--bng-border);
    margin: 8px 0;
}

.bng-price-subtotal .bng-price-label {
    font-weight: 700;
}

.bng-price-subtotal .bng-price-value {
    font-weight: 700;
    font-size: 16px;
}

.bng-payment-methods {
    font-size: 13px;
    color: var(--bng-text-secondary);
    text-align: center;
    margin-top: 12px;
}

.bng-discount-value {
    color: var(--bng-success) !important;
}

.bng-free-shipping {
    color: var(--bng-success);
    font-weight: 600;
}

/* RIGHT COLUMN — Steps */
.bng-right-column {
    width: 52%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: var(--bng-bg);
}

.bng-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--bng-text);
    z-index: 10;
    padding: 5px;
    border-radius: 50%;
    transition: color 0.2s;
}

.bng-modal-close:hover {
    color: var(--bng-text-light);
}

.bng-step-back-link {
    display: block;
    font-size: 14px;
    color: var(--bng-text-secondary);
    text-decoration: none;
    padding: 20px 40px 0;
    flex-shrink: 0;
}

.bng-step-back-link:hover {
    color: var(--bng-text);
}

.bng-steps-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px 40px 30px;
}

/* ============================================
   STEP CONTENT
   ============================================ */
.bng-step-content {
    display: none;
}

.bng-step-content.active {
    display: block;
    animation: bngFadeIn 0.3s ease;
}

@keyframes bngFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.bng-step-inner {
    max-width: 100%;
}

.bng-step-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--bng-text);
}

.bng-step-description {
    font-size: 14px;
    color: var(--bng-text-secondary);
    margin: 0 0 24px;
    line-height: 1.6;
}

/* ============================================
   OPTION CARDS
   ============================================ */
.bng-options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bng-option-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bng-bg-card);
    border: 1.5px solid var(--bng-border);
    border-radius: var(--bng-radius);
    cursor: pointer;
    transition: all var(--bng-transition);
    position: relative;
    overflow: visible;
}

.bng-option-card:hover {
    border-color: var(--bng-border-hover);
    background: var(--bng-bg-card-hover);
}

.bng-option-card.selected {
    border-color: var(--bng-border-selected);
    border-width: 2px;
    background: var(--bng-bg-card-hover);
    box-shadow: var(--bng-shadow);
}

.bng-option-card.selected::after {
    content: '\2713';
    position: absolute;
    top: 12px;
    left: 12px;
    width: 22px;
    height: 22px;
    background: var(--bng-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.bng-option-card.bng-option-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.bng-radio-hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bng-option-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bng-option-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--bng-text);
}

.bng-option-desc {
    font-size: 13px;
    color: var(--bng-text-secondary);
    line-height: 1.4;
}

.bng-option-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--bng-text);
    white-space: nowrap;
}

/* Option card image (right side) */
.bng-option-image {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: var(--bng-radius-sm);
    overflow: hidden;
    order: 10;
    margin-left: auto;
}

.bng-option-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Option name with inline price */
.bng-option-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bng-option-inline-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--bng-text-secondary);
    white-space: nowrap;
}

/* Tooltip inline */
.bng-option-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bng-border);
    color: var(--bng-text-secondary);
    font-size: 10px;
    font-weight: 700;
    cursor: help;
    flex-shrink: 0;
}

.bng-option-tooltip:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--bng-primary);
    z-index: 1000;
}

.bng-option-tooltip:hover::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bng-primary);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 400;
    max-width: 300px;
    min-width: 180px;
    white-space: normal;
    word-wrap: break-word;
    pointer-events: none;
    z-index: 1000;
    box-shadow: var(--bng-shadow-lg);
    line-height: 1.4;
}

/* Featured badge */
.bng-option-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--bng-primary);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 0 0 0 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.bng-option-featured {
    border-color: var(--bng-border);
}

/* Recommended badge */
.bng-recommended-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--bng-success);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

/* ============================================
   MATERIAL SPECIFICS
   ============================================ */
.bng-material-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bng-material-index {
    font-size: 12px;
    color: var(--bng-text-light);
    background: var(--bng-bg);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.bng-material-thickness {
    font-size: 12px;
    color: var(--bng-text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.bng-thickness-icon {
    font-size: 14px;
}

.bng-recommendation-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bng-bg);
    border: 1px solid var(--bng-border);
    border-radius: var(--bng-radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--bng-text);
    font-weight: 500;
}

.bng-rec-icon {
    font-size: 20px;
}

/* ============================================
   LENS TYPE
   ============================================ */
.bng-options-horizontal {
    flex-direction: column;
}

.bng-options-horizontal .bng-option-card {
    flex-direction: row;
    text-align: left;
    padding: 20px 24px;
}

.bng-lens-type-icon {
    color: var(--bng-text-light);
    margin-right: 8px;
    transition: color var(--bng-transition);
}

.bng-option-card.selected .bng-lens-type-icon {
    color: var(--bng-text);
}

/* ============================================
   PRESCRIPTION FORM (STEP 2)
   ============================================ */
.bng-prescription-method {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.bng-method-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border: 1.5px solid var(--bng-border);
    border-radius: var(--bng-radius-sm);
    cursor: pointer;
    transition: all var(--bng-transition);
    font-size: 14px;
    font-weight: 500;
}

.bng-method-option input {
    display: none;
}

.bng-method-option:hover {
    border-color: var(--bng-border-hover);
}

.bng-method-option.active {
    border-color: var(--bng-border-selected);
    border-width: 2px;
    background: var(--bng-bg-selected);
}

.bng-method-icon {
    font-size: 20px;
}

/* RX Table */
.bng-rx-table {
    background: var(--bng-bg-white);
    border: 1px solid var(--bng-border);
    border-radius: var(--bng-radius);
    overflow: hidden;
    margin-bottom: 24px;
}

.bng-rx-header {
    display: grid;
    grid-template-columns: 100px 1fr 1fr 1fr 1fr;
    background: var(--bng-bg);
    border-bottom: 1px solid var(--bng-border);
    padding: 12px 0;
}

.bng-rx-row {
    display: grid;
    grid-template-columns: 100px 1fr 1fr 1fr 1fr;
    border-bottom: 1px solid var(--bng-border);
    padding: 8px 0;
    align-items: center;
}

.bng-rx-row:last-child {
    border-bottom: none;
}

.bng-rx-cell {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--bng-text-secondary);
}

.bng-rx-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bng-rx-label strong {
    font-size: 15px;
    color: var(--bng-text);
}

.bng-rx-sublabel {
    font-size: 11px;
    color: var(--bng-text-light);
    font-weight: 400;
}

.bng-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--bng-border);
    border-radius: var(--bng-radius-sm);
    font-size: 14px;
    font-family: var(--bng-font);
    color: var(--bng-text);
    background: var(--bng-bg-white);
    cursor: pointer;
    transition: border-color var(--bng-transition);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.bng-select:hover {
    border-color: var(--bng-border-hover);
}

.bng-select:focus {
    border-color: var(--bng-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.1);
}

.bng-select:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: var(--bng-bg);
}

.bng-select.bng-required {
    border-color: var(--bng-warning);
}

/* PD Section */
.bng-pd-section {
    background: var(--bng-bg-white);
    border: 1px solid var(--bng-border);
    border-radius: var(--bng-radius);
    padding: 20px;
}

.bng-pd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.bng-pd-header label {
    font-size: 15px;
    font-weight: 600;
    color: var(--bng-text);
}

.bng-pd-toggle {
    display: flex;
    background: var(--bng-bg);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--bng-border);
}

.bng-pd-type-btn {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    background: transparent;
    color: var(--bng-text-secondary);
    cursor: pointer;
    transition: all var(--bng-transition);
    font-family: var(--bng-font);
}

.bng-pd-type-btn.active {
    background: var(--bng-primary);
    color: white;
}

.bng-pd-inputs {
    position: relative;
}

.bng-input {
    padding: 10px 14px;
    border: 1px solid var(--bng-border);
    border-radius: var(--bng-radius-sm);
    font-size: 15px;
    font-family: var(--bng-font);
    color: var(--bng-text);
    width: 120px;
    transition: border-color var(--bng-transition);
}

.bng-input:focus {
    border-color: var(--bng-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.1);
}

.bng-input-unit {
    font-size: 13px;
    color: var(--bng-text-light);
    margin-left: 6px;
}

.bng-pd-dual {
    display: flex;
    gap: 24px;
}

.bng-pd-dual label {
    font-size: 13px;
    color: var(--bng-text-secondary);
    display: block;
    margin-bottom: 6px;
}

/* Upload area */
.bng-upload-area {
    border: 2px dashed var(--bng-border);
    border-radius: var(--bng-radius);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all var(--bng-transition);
    background: var(--bng-bg-white);
}

.bng-upload-area:hover,
.bng-upload-area.dragover {
    border-color: var(--bng-primary);
    background: var(--bng-bg);
}

.bng-upload-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.bng-upload-hint {
    font-size: 13px;
    color: var(--bng-text-light);
    margin-top: 4px;
}

.bng-upload-status {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.bng-upload-check {
    color: var(--bng-success);
    font-size: 18px;
}

/* Send later */
.bng-send-later-info {
    background: var(--bng-bg-white);
    border: 1px solid var(--bng-border);
    border-radius: var(--bng-radius);
    padding: 32px;
    text-align: center;
}

.bng-info-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.bng-send-later-email {
    margin-top: 12px;
    font-size: 14px;
    color: var(--bng-text-secondary);
}

/* ADD column hide/show */
.bng-rx-add-col {
    transition: all var(--bng-transition);
}

/* ============================================
   COLOR SWATCHES
   ============================================ */
.bng-color-swatches {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.bng-color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all var(--bng-transition);
    position: relative;
    outline: none;
}

.bng-color-swatch:hover {
    transform: scale(1.15);
    border-color: var(--bng-border-hover);
}

.bng-color-swatch.active {
    border-color: var(--bng-text);
    box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.2);
    transform: scale(1.1);
}

.bng-swatch-check {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 700;
    opacity: 0;
    transition: opacity var(--bng-transition);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.bng-color-swatch.active .bng-swatch-check {
    opacity: 1;
}

/* Tint sections */
.bng-tint-section h4,
.bng-tint-type-section h4,
.bng-polarization-section h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 24px 0 8px;
    color: var(--bng-text);
}

.bng-tint-type-options {
    display: flex;
    gap: 12px;
}

.bng-option-small {
    padding: 14px 18px;
}

.bng-polarization-toggle {
    margin-top: 16px;
}

.bng-polar-note {
    font-size: 12px;
    color: var(--bng-warning);
    display: block;
    margin-top: 4px;
}

/* Photochromic color preview */
.bng-photo-color-preview {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bng-photo-color-options {
    flex-direction: row;
}

.bng-photo-color-options .bng-option-card {
    flex: 1;
}

/* Merged lens type + coatings step */
.bng-lens-coatings-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--bng-border);
}

.bng-lens-coatings-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--bng-text);
}

/* No AR option card */
.bng-option-card-no-ar {
    padding: 14px 24px;
    background: var(--bng-bg-card);
    border: 1.5px solid var(--bng-border);
    border-radius: var(--bng-radius);
    cursor: pointer;
    transition: all var(--bng-transition);
}

.bng-option-card-no-ar:hover {
    border-color: var(--bng-border-hover);
}

.bng-option-card-no-ar.selected {
    border-color: var(--bng-border-selected);
    border-width: 2px;
    background: var(--bng-bg-selected);
}

/* High-index notice */
.bng-high-index-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--bng-warning-light);
    border: 1px solid var(--bng-warning);
    border-radius: var(--bng-radius-sm);
    margin-top: 16px;
    font-size: 13px;
    color: #92400E;
}

.bng-notice-icon {
    font-size: 18px;
}

/* ============================================
   NAVIGATION BUTTONS
   ============================================ */
.bng-nav-buttons {
    padding: 20px 40px;
    border-top: 1px solid var(--bng-border);
    background: var(--bng-bg-white);
    flex-shrink: 0;
}

.bng-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--bng-font);
    cursor: pointer;
    transition: all var(--bng-transition);
    border: none;
}

.bng-btn-continue,
.bng-btn-add-to-cart {
    width: 100%;
    padding: 18px 32px;
    background: var(--bng-primary);
    color: white;
    border-radius: var(--bng-radius-pill);
    font-size: 16px;
    font-weight: 600;
}

.bng-btn-continue:hover,
.bng-btn-add-to-cart:hover {
    background: var(--bng-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--bng-shadow-lg);
}

/* ============================================
   ERROR MESSAGES
   ============================================ */
.bng-step-error {
    margin-top: 16px;
    padding: 12px 18px;
    background: var(--bng-error-light);
    border: 1px solid var(--bng-error);
    border-radius: var(--bng-radius-sm);
    color: var(--bng-error);
    font-size: 14px;
    font-weight: 500;
}

.bng-shake {
    animation: bngShake 0.5s ease;
}

@keyframes bngShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* ============================================
   TOOLTIPS
   ============================================ */
.bng-tooltip {
    position: relative;
    display: inline-flex;
    margin-left: 6px;
    cursor: help;
}

.bng-tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bng-border);
    color: var(--bng-text-secondary);
    font-size: 10px;
    font-weight: 700;
}

.bng-tooltip:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bng-primary);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 400;
    max-width: 300px;
    white-space: normal;
    z-index: 100;
    box-shadow: var(--bng-shadow-lg);
}

/* ============================================
   PRICE UPDATE ANIMATION
   ============================================ */
.bng-price-updated {
    animation: bngPricePulse 0.5s ease;
}

@keyframes bngPricePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Compact upload area for manual form */
.bng-upload-area-mini {
    padding: 24px 16px;
}

/* Selections summary in left column */
.bng-selections-summary {
    padding: 8px 0;
}

.bng-selection-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 13px;
}

.bng-sel-label {
    color: var(--bng-text-secondary);
}

.bng-sel-value {
    color: var(--bng-text);
    font-weight: 500;
}

/* Fix: tint color swatches fixed size (not stretched) */
.bng-color-swatches-fixed {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.bng-color-swatches-fixed .bng-color-swatch {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    flex: 0 0 40px;
}

/* Make tint type options stack vertically */
.bng-tint-type-options {
    flex-direction: column;
}

/* Discount code input */
.bng-discount-code-section {
    margin: 12px 0;
}

.bng-discount-input-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
}

.bng-btn-discount {
    padding: 10px 16px;
    background: var(--bng-primary);
    color: white;
    border: none;
    border-radius: var(--bng-radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--bng-font);
    transition: all var(--bng-transition);
    white-space: nowrap;
}

.bng-btn-discount:hover {
    background: var(--bng-primary-hover);
}

.bng-discount-code-message {
    font-size: 13px;
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: 4px;
}

.bng-discount-msg-success {
    background: var(--bng-success-light);
    color: var(--bng-success);
}

.bng-discount-msg-error {
    background: var(--bng-error-light);
    color: var(--bng-error);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .bng-main-layout {
        flex-direction: column;
    }

    .bng-left-column {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--bng-border);
        padding: 20px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }

    .bng-back-to-frame {
        width: 100%;
    }

    .bng-product-image-wrap {
        width: 40%;
        max-width: 200px;
        margin-bottom: 0;
    }

    .bng-product-title {
        font-size: 18px;
        text-align: left;
    }

    .bng-product-meta {
        text-align: left;
    }

    .bng-price-summary {
        width: 100%;
        margin-top: 0;
        padding-top: 16px;
    }

    .bng-right-column {
        width: 100%;
    }

    .bng-steps-breadcrumb {
        gap: 16px;
        overflow-x: auto;
        padding: 0 16px;
    }

    .bng-top-nav {
        padding: 0 16px;
    }

    .bng-steps-container {
        padding: 20px;
    }

    .bng-nav-buttons {
        padding: 16px 20px;
    }
}

@media (max-width: 768px) {
    .bng-left-column {
        display: none;
    }

    .bng-right-column {
        width: 100%;
    }

    .bng-steps-breadcrumb {
        gap: 12px;
    }

    .bng-step-tab {
        font-size: 12px;
    }

    .bng-options-horizontal {
        flex-direction: column;
    }

    .bng-photo-color-options {
        flex-direction: column;
    }

    .bng-tint-type-options {
        flex-direction: column;
    }

    .bng-rx-header,
    .bng-rx-row {
        grid-template-columns: 60px 1fr 1fr 1fr;
    }

    .bng-rx-add-col {
        grid-column: span 3;
        margin-top: 8px;
    }

    .bng-prescription-method {
        flex-direction: column;
    }

    .bng-pd-dual {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .bng-rx-header,
    .bng-rx-row {
        grid-template-columns: 50px 1fr 1fr;
    }

    .bng-rx-header .bng-rx-cell:nth-child(4),
    .bng-rx-row .bng-rx-cell:nth-child(4) {
        grid-column: span 2;
    }

    .bng-select {
        font-size: 13px;
        padding: 6px 8px;
    }

    .bng-step-back-link {
        padding: 16px 20px 0;
    }
}
