.eels-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.eels-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.eels-modal-panel {
    position: relative;
    width: 550px;
    max-width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 100000;
}

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

.eels-progress-bar {
    display: flex;
    gap: 15px;
    font-size: 13px;
    font-weight: 600;
    color: #888;
}

.eels-progress-bar .eels-step.active {
    color: #111;
}

.eels-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.eels-modal-body {
    padding: 25px;
    flex: 1;
    overflow-y: auto;
}

.eels-product-preview-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.eels-product-preview-header h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #111;
}

.eels-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.eels-card-option {
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.eels-card-option:hover, .eels-card-option.selected {
    border-color: #111;
    background: #fcfcfc;
}

.eels-card-option input[type="radio"] {
    display: none;
}

.eels-card-option strong {
    font-size: 15px;
    color: #111;
    margin-bottom: 5px;
}

.eels-card-option p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.eels-prescription-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.eels-rx-tab-btn {
    padding: 10px 15px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.eels-rx-tab-btn.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.eels-rx-row {
    margin-bottom: 15px;
}

.eels-rx-inputs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 5px;
}

.eels-rx-inputs label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    display: flex;
    flex-direction: column;
}

.eels-rx-inputs input {
    margin-top: 3px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.eels-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    background: #fcfcfc;
}

.eels-upload-box {
    border: 2px dashed #ccc;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    background: #fafafa;
}

@media(max-width: 600px) {
    .eels-modal-panel {
        width: 100%;
    }
    .eels-cards-grid {
        grid-template-columns: 1fr;
    }
}


/* Lens package imagery selected in WooCommerce > Lens Configurator */
.eels-card-option .eels-package-image {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 12px;
    border-radius: 8px;
}


/* Inline lens package selector on the first Power Type screen */
.eels-inline-lens-options {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}
.eels-inline-lens-options h3 {
    margin: 0 0 6px;
    font-size: 20px;
    line-height: 1.3;
}
.eels-inline-lens-help {
    margin: 0 0 14px;
    color: #666;
    font-size: 14px;
}
.eels-packages-inline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.eels-packages-inline-grid .eels-card-option {
    min-width: 0;
}
.eels-packages-inline-grid .eels-package-image {
    display: block;
    width: 100%;
    height: 105px;
    object-fit: contain;
    margin: 0 0 10px;
}
@media (max-width: 600px) {
    .eels-packages-inline-grid {
        grid-template-columns: 1fr;
    }
}
