/* ==========================================================================
   SECTION 4: STEP 2 STYLES (PRESCRIPTION)
   ========================================================================== */

.egc-step-panel[data-step="2"] select.egc-select {
    font-size: 13px !important;
    padding: 3px 6px !important;
    height: 32px !important;
    border-radius: 3px !important;
}

.egc-step-panel[data-step="2"] .egc-rx-table td select {
    width: 100% !important;
}

.egc-step-panel[data-step="2"] .egc-pd-reference-image {
    max-width: 130px !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

.egc-magnification-toggle-area {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.egc-radio-option {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
}

.egc-magnification-power-wrap {
    margin: 10px 0 16px 26px;
}

.egc-rx-entry-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.egc-rx-tab-btn.egc-btn {
    flex: 1;
    background: #ffffff;
    border: 1px solid #800080;
    color: #800080;
    border-radius: 4px;
    padding: 12px;
    font-weight: 700;
    cursor: pointer;
}

.egc-rx-tab-btn.egc-btn.is-active,
.egc-rx-tab-btn.egc-btn-purple.is-active {
    background: #800080;
    color: #ffffff;
}

.egc-rx-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.egc-rx-table th,
.egc-rx-table td {
    border: 1px solid #eee;
    padding: 10px;
    text-align: center;
}

.egc-select,
.egc-text-input {
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.egc-pd-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.egc-checkbox-option {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.egc-rx-upload-box {
    background: #f5f8ff;
    border: 1px solid #dce4f5;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
}

.egc-upload-hint {
    font-size: 13px;
    color: #777;
}

.egc-btn-gold {
    background: #e6a100;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
}

.egc-btn-gold:hover {
    background: #cc8f00;
}

.egc-file-name {
    margin-left: 10px;
    font-size: 13px;
    color: #555;
}

.egc-prism-row {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.egc-prism-hint {
    color: #888;
    font-size: 13px;
}

.egc-dob-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.egc-pd-table-row td {
    vertical-align: middle;
}

.egc-pd-controls-cell {
    text-align: left;
}

.egc-pd-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.egc-pd-inputs {
    display: flex;
    gap: 10px;
}

.egc-pd-image-cell {
    width: 160px;
    text-align: center;
}

.egc-pd-reference-image {
    max-width: 140px;
    height: auto;
    display: inline-block;
}

/* ACCORDION STYLES */
.egc-lenses-notes-wrap {
    margin-top: 25px;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.egc-note-item {
    border: 1px solid #e5e5e5 !important;
    border-radius: 4px;
    background: #ffffff;
    overflow: hidden;
}

.egc-note-item:last-child {
    border-bottom: none;
}

.egc-note-title {
    width: 100% !important;
    text-align: left !important;
    background: #ffffff !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 14px 18px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #333333 !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    transition: background 0.2s ease, color 0.2s ease;
    border-radius: 0 !important;
    margin: 0 !important;
}

.egc-note-title:hover {
    background: #f9f9f9 !important;
    color: #000000 !important;
}

.egc-note-title .egc-icon {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #444444 !important;
}

.egc-note-content {
    display: none !important;
    padding: 16px 18px 20px 18px !important;
    font-size: 14px !important;
    color: #555555 !important;
    line-height: 1.6 !important;
    background: #ffffff !important;
    border-top: 1px solid #f0f0f0 !important;
}

.egc-note-content h2 {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 0 10px 0 !important;
    color: #111111 !important;
}

.egc-note-content p {
    margin: 0 0 10px 0 !important;
}

.egc-note-content p:last-child {
    margin-bottom: 0 !important;
}

/* ==========================================================================
   MOBILE RESPONSIVE STYLES (Step 2 Prescription)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Top Tabs Stack Vertically on Mobile */
    .egc-rx-entry-tabs {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .egc-rx-tab-btn.egc-btn {
        width: 100% !important;
        padding: 10px 8px !important;
        font-size: 13px !important;
    }

    /* 2. Prescription Panel & Table Responsive Fitting */
    .egc-step-panel[data-step="2"] {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .egc-rx-table {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        width: 100% !important;
        -webkit-overflow-scrolling: touch;
    }

    .egc-rx-table th,
    .egc-rx-table td {
        padding: 6px 4px !important;
        font-size: 12px !important;
    }

    .egc-step-panel[data-step="2"] select.egc-select {
        font-size: 11px !important;
        padding: 2px 4px !important;
        height: 32px !important;
        min-width: 52px !important;
    }

    /* Dual PD Select Dropdowns */
    .egc-pd-table-row td div select {
        min-width: 52px !important;
    }

    .egc-dob-row,
    .egc-prism-row {
        justify-content: center !important;
        text-align: center !important;
    }

    .egc-rx-bottom-right-container {
        align-items: center !important;
        text-align: center !important;
    }
}