/**
 * Eli Access Guard — WooCommerce My Account Security tab (RTL)
 */

.eag-wc-security { max-width: 100%; direction: rtl; }

.eag-wc-lock-notice {
    background: #fdecec;
    border: 1px solid #f1bcbd;
    border-right: 4px solid #d63638;
    padding: 18px 22px;
    border-radius: 8px;
    margin: 0 0 28px;
}
.eag-wc-lock-notice h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #b32d2e;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: right;
}
.eag-wc-lock-notice p { margin: 0 0 12px; color: #1d2327; text-align: right; }
.eag-wc-lock-notice p:last-child { margin-bottom: 0; }
.eag-wc-icon { font-size: 18px; }

.eag-wc-section {
    margin-bottom: 32px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}
.eag-wc-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 12px;
    gap: 12px;
    flex-wrap: wrap;
    flex-direction: row-reverse;
}
.eag-wc-section-header h3 {
    margin: 0;
    font-size: 17px;
    color: #1d2327;
    text-align: right;
}
.eag-wc-help { color: #50575e; font-size: 13px; margin: 0 0 16px; line-height: 1.5; text-align: right; }
.eag-wc-muted { color: #a7aaad; font-size: 12px; }

.eag-wc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}
.eag-wc-table thead th {
    text-align: right;
    background: #f6f7f7;
    padding: 10px 12px;
    font-size: 12px;
    letter-spacing: 0.4px;
    color: #646970;
    border-bottom: 1px solid #e0e0e0;
}
.eag-wc-table tbody td {
    padding: 12px 12px;
    border-bottom: 1px solid #f0f0f1;
    vertical-align: top;
    color: #1d2327;
    font-size: 14px;
    text-align: right;
}
.eag-wc-table tbody tr:last-child td { border-bottom: none; }
.eag-wc-table code {
    background: #f6f7f7;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    direction: ltr;
    display: inline-block;
}

.eag-wc-current { background: #f0f6fc; }
.eag-wc-badge {
    display: inline-block;
    background: #2271b1;
    color: #fff;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-right: 6px;
    margin-left: 0;
}

.eag-wc-action { cursor: pointer; }
.eag-wc-action-danger { color: #d63638; border-color: #d63638; }
.eag-wc-action-danger:hover { background: #d63638; color: #fff; }
.eag-wc-action[disabled] { opacity: 0.5; cursor: not-allowed; }

.eag-wc-flash {
    padding: 10px 14px;
    border-radius: 6px;
    margin: 12px 0;
    font-size: 13px;
    line-height: 1.5;
    text-align: right;
}
.eag-wc-flash-success { background: #e5f5e9; color: #00712a; border-right: 3px solid #00a32a; }
.eag-wc-flash-error   { background: #fdecec; color: #b32d2e; border-right: 3px solid #d63638; }
.eag-wc-flash-info    { background: #e5f3fb; color: #1d6fbb; border-right: 3px solid #2271b1; }

.eag-wc-device-label {
    cursor: pointer;
    border-bottom: 1px dashed transparent;
    transition: border-color 0.15s ease;
}
.eag-wc-device-label:hover { border-bottom-color: #2271b1; }

@media (max-width: 720px) {
    .eag-wc-table thead { display: none; }
    .eag-wc-table tbody tr {
        display: block;
        padding: 12px;
        border: 1px solid #f0f0f1;
        border-radius: 6px;
        margin-bottom: 8px;
    }
    .eag-wc-table tbody td {
        display: block;
        border: none;
        padding: 4px 0;
    }
    .eag-wc-section-header {
        flex-direction: column;
        align-items: flex-end;
    }
}
