/**
 * Customer account form controls.
 *
 * Keep these selectors scoped to SMS Forwarder account surfaces so theme form
 * styles cannot make operational controls disappear against the page canvas.
 */
.smsf-account-portal,
.smsf-account-panel {
    --smsf-control-surface: #fff9e6;
    --smsf-control-border: #c9b458;
    --smsf-control-text: #111827;
    --smsf-control-focus: #2563eb;
}

.smsf-account-portal .smsf-renew-form select,
.smsf-account-portal .smsf-ticket-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
.smsf-account-portal .smsf-ticket-form select,
.smsf-account-portal .smsf-ticket-form textarea,
.smsf-account-portal .smsf-delivery-card input[type="email"],
.smsf-account-portal .smsf-delivery-card input[type="text"],
.smsf-account-panel .smsf-renew-form select,
.smsf-account-panel .smsf-ticket-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
.smsf-account-panel .smsf-ticket-form select,
.smsf-account-panel .smsf-ticket-form textarea,
.smsf-account-panel .smsf-delivery-card input[type="email"],
.smsf-account-panel .smsf-delivery-card input[type="text"] {
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 44px;
    padding: 9px 12px !important;
    border: 1px solid var(--smsf-control-border) !important;
    border-radius: 8px !important;
    background-color: var(--smsf-control-surface) !important;
    color: var(--smsf-control-text) !important;
    box-shadow: 0 1px 2px rgba(17, 24, 39, .06) !important;
}

.smsf-account-portal .smsf-ticket-form textarea,
.smsf-account-panel .smsf-ticket-form textarea {
    min-height: 140px;
    resize: vertical;
}

.smsf-account-portal .smsf-renew-form select:focus,
.smsf-account-portal .smsf-ticket-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):focus,
.smsf-account-portal .smsf-ticket-form select:focus,
.smsf-account-portal .smsf-ticket-form textarea:focus,
.smsf-account-portal .smsf-delivery-card input[type="email"]:focus,
.smsf-account-portal .smsf-delivery-card input[type="text"]:focus,
.smsf-account-panel .smsf-renew-form select:focus,
.smsf-account-panel .smsf-ticket-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):focus,
.smsf-account-panel .smsf-ticket-form select:focus,
.smsf-account-panel .smsf-ticket-form textarea:focus,
.smsf-account-panel .smsf-delivery-card input[type="email"]:focus,
.smsf-account-panel .smsf-delivery-card input[type="text"]:focus {
    border-color: var(--smsf-control-focus) !important;
    outline: 2px solid rgba(37, 99, 235, .22) !important;
    outline-offset: 1px;
}

.smsf-account-portal .smsf-delivery-card input[type="email"]:disabled,
.smsf-account-portal .smsf-delivery-card input[type="text"]:disabled,
.smsf-account-panel .smsf-delivery-card input[type="email"]:disabled,
.smsf-account-panel .smsf-delivery-card input[type="text"]:disabled {
    border-color: #cbd5e1 !important;
    background-color: #f3f4f6 !important;
    color: #4b5563 !important;
    opacity: 1;
}

/* Account portal contrast and row scanning. */
.smsf-account-portal .smsf-dashboard-panel .smsf-detail-list,
.smsf-account-panel.smsf-dashboard-panel .smsf-detail-list {
    border-color: var(--smsf-control-border) !important;
    background-color: var(--smsf-control-surface);
}

.smsf-account-portal .smsf-dashboard-panel .smsf-detail-list > div,
.smsf-account-panel.smsf-dashboard-panel .smsf-detail-list > div {
    border-bottom-color: var(--smsf-control-border) !important;
}

.smsf-account-portal .smsf-account-table tbody tr:nth-child(odd),
.smsf-account-panel .smsf-account-table tbody tr:nth-child(odd) {
    background-color: transparent;
}

.smsf-account-portal .smsf-account-table tbody tr:nth-child(even),
.smsf-account-panel .smsf-account-table tbody tr:nth-child(even) {
    background-color: var(--smsf-control-surface);
}

.smsf-account-portal .smsf-account-table tbody td,
.smsf-account-panel .smsf-account-table tbody td {
    border-bottom-color: var(--smsf-control-border) !important;
}

.smsf-account-portal .uksim-license-cards > .smsf-license-card,
.smsf-account-panel .uksim-license-cards > .smsf-license-card {
    padding: 14px 16px;
    margin-bottom: 10px;
    border-color: var(--smsf-control-border) !important;
    border-left-color: var(--smsf-accent, #2563eb) !important;
}

.smsf-account-portal .uksim-license-cards > .smsf-license-card > p,
.smsf-account-panel .uksim-license-cards > .smsf-license-card > p {
    margin: 0 0 6px !important;
    line-height: 1.35;
}

.smsf-account-portal .uksim-license-cards > .smsf-license-card > p:last-child,
.smsf-account-panel .uksim-license-cards > .smsf-license-card > p:last-child {
    margin-bottom: 0 !important;
}

.smsf-account-portal .uksim-license-cards > .smsf-license-card:nth-child(odd),
.smsf-account-panel .uksim-license-cards > .smsf-license-card:nth-child(odd) {
    background-color: transparent !important;
}

.smsf-account-portal .uksim-license-cards > .smsf-license-card:nth-child(even),
.smsf-account-panel .uksim-license-cards > .smsf-license-card:nth-child(even) {
    background-color: var(--smsf-control-surface) !important;
}

.smsf-account-portal .smsf-account-details input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
.smsf-account-portal .smsf-account-details select,
.smsf-account-portal .smsf-account-details textarea,
.smsf-account-panel.smsf-account-details input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
.smsf-account-panel.smsf-account-details select,
.smsf-account-panel.smsf-account-details textarea {
    box-sizing: border-box !important;
    width: 100% !important;
    border: 1px solid var(--smsf-control-border) !important;
    background-color: var(--smsf-control-surface) !important;
    color: var(--smsf-control-text) !important;
    box-shadow: 0 1px 2px rgba(17, 24, 39, .06) !important;
}

.smsf-account-portal .smsf-account-details input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):focus,
.smsf-account-portal .smsf-account-details select:focus,
.smsf-account-portal .smsf-account-details textarea:focus,
.smsf-account-panel.smsf-account-details input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):focus,
.smsf-account-panel.smsf-account-details select:focus,
.smsf-account-panel.smsf-account-details textarea:focus {
    border-color: var(--smsf-control-focus) !important;
    outline: 2px solid rgba(37, 99, 235, .22) !important;
    outline-offset: 1px;
}

.smsf-account-portal .smsf-delivery-test-button,
.smsf-account-panel .smsf-delivery-test-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 7px 14px !important;
    margin: 0 0 12px !important;
    border-color: var(--smsf-control-focus, #2563eb) !important;
    border-radius: 10px !important;
    background: var(--smsf-control-surface, #fff) !important;
    color: var(--smsf-control-focus, #2563eb) !important;
    -webkit-text-fill-color: currentColor;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

.smsf-account-portal .smsf-delivery-test-button:hover,
.smsf-account-portal .smsf-delivery-test-button:focus,
.smsf-account-panel .smsf-delivery-test-button:hover,
.smsf-account-panel .smsf-delivery-test-button:focus {
    border-color: var(--smsf-control-focus, #2563eb) !important;
    background: var(--smsf-control-focus, #2563eb) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

.smsf-account-portal .smsf-delivery-test-button:disabled,
.smsf-account-panel .smsf-delivery-test-button:disabled {
    border-color: var(--smsf-control-border, #cbd5e1) !important;
    background: #f1f5f9 !important;
    color: #64748b !important;
    -webkit-text-fill-color: #64748b;
}
