:root {
    --blue-color: #2271B1;

    /* ── Text colours (Figma-aligned) ────────────────────── */
    --text-title: #2b2e31;
    --text-primary: #3c434a;
    --text-dark: #222;
    --text-body: #3c434a;
    --text-secondary: #444;
    --text-light: #555;
    --text-muted: #646970;
    --text-placeholder: #999;

    /* ── Border colours ──────────────────────────────────── */
    --border-color: #DCDCDE;
    --border-light: #e2e2e4;
    --border-medium: #ddd;
    --border-input: #c3c4c7;
    --border-strong: #c3c4c7;
    --border-card: #e2e2e4;

    /* ── Background colours ──────────────────────────────── */
    --bg-white: #fff;
    --bg-light: #f6f7f7;
    --bg-hover: #f8f9fa;

    /* ── Status colours ──────────────────────────────────── */
    --success-color: #00a32a;
    --error-color: #d63638;

    /* ── Focus ────────────────────────────────────────────── */
    --focus-shadow-color: rgba(0, 115, 170, 0.2);
    --focus-shadow-color-alt: rgba(71, 118, 255, 0.2);

    /* ── Font sizes (single scale: 2xs … 2xl) ────────────── */
    --font-size-2xs: 11px;
    --font-size-xs: 12px;
    --font-size-sm: 13px;
    --font-size-base: 14px;
    --font-size-md: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 28px;

    /* ── Border radius ───────────────────────────────────── */
    --radius-sm: 2px;
    --radius-md: 5px;
    --radius-input: 5px;
    --radius-lg: 8px;
    --radius-xl: 8px;

    /* ── Spacing scale (Figma 8-point grid) ──────────────── */
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 28px;
    --space-2xl: 32px;
}

.main-settings-new {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 8px;
    margin-top: 16px;
}

.main-settings-new h2 {
    margin: 0 0 8px;
    font-weight: 600;
    padding: 16px 20px 0;
    font-size: var(--font-size-xl);
    line-height: 1.3;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.page-header .page-header-actions {
    margin-left: 16px;
}

.main-left {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    align-self: start;
}

.main-left a {
    color: var(--blue-color);
    text-decoration: none;
}

.wp-2fa_page_wp-2fa-help-contact-us .main-left {
    background: none !important;
}

.settings-card {
    margin-top: 16px;
}

#general-settings-group-title-item {
    display: none;
}

.main-left .group-title {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--blue-color);
    line-height: 1.3;
    letter-spacing: 0.6px;
    font-size: var(--font-size-2xs);
    text-transform: uppercase;
    padding: 24px 20px 0;
}

.main-left .settings-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-left .settings-list li {
    padding: 16px 20px;
    border-radius: 0;
    margin-bottom: 0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-light);
    background: transparent;
    /* smoothly move when hovered */
    transition: transform .3s ease;
    cursor: pointer;
    font-size: var(--font-size-md);
    font-style: normal;
    font-weight: 600;
    line-height: 1.3;
}

.main-left .settings-list li:first-child {
    border-top: 1px solid var(--border-light);
}

.main-left .description {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 4px;
    padding: 16px 20px 0;
    line-height: 1.5;
}

.main-left .description-settings-card {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 400;
    padding: 16px 0px 20px;
    line-height: 1.5;
}

/* When an element is both a page intro (.description) and has .description-settings-card,
   keep the page intro padding so side inset is preserved and bottom gap is dropped. */
.main-left .description.description-settings-card {
    padding: 16px 20px 10px 0px;
}

/* Tab intro description shown below tabs (e.g. method selection) */
.wp2fa-tab-intro {
    /* border: 1px solid var(--border-color); */
    /* border-radius: 6px; */
    /* padding: 16px 20px; */
    margin: 0 0 16px;
    font-size: var(--font-size-sm);
    line-height: 1.6;
    color: var(--text-body);
}

.wp2fa-tab-intro a {
    color: var(--blue-color);
    text-decoration: none;
}

.wp2fa-tab-intro a:hover {
    text-decoration: underline;
}

.settings-list li:last-child {
    /* border-bottom: 1px solid var(--border-light); */
    border-bottom: none;
}

.settings-list li a {
    flex: 1;
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    /* only animate text color; movement is handled by the <li> so the chevron
     (pseudo element) moves with it as well */
    transition: color .18s cubic-bezier(.2, .8, .2, 1);
}

.settings-list li::after {
    content: "";
    width: 7px;
    height: 12px;
    margin-left: 8px;
    flex-shrink: 0;
    display: inline-block;
    color: #3c434a;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='12' viewBox='0 0 7 12' fill='none'%3E%3Cpath d='M0.9375 0.9375L5.9375 5.9375L0.9375 10.9375' stroke='%23000' stroke-width='1.875' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='12' viewBox='0 0 7 12' fill='none'%3E%3Cpath d='M0.9375 0.9375L5.9375 5.9375L0.9375 10.9375' stroke='%23000' stroke-width='1.875' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.settings-list li:hover,
.settings-list li:focus {
    background: transparent;
    box-shadow: none;
    outline: none;
    /* move the entire list item including the chevron */
    transform: translateX(4px);
}

.settings-list li:hover,
.settings-list li:focus {
    color: var(--blue-color);
    ;
}

/* make the chevron blue on hover as well */
.settings-list li:hover::after,
.settings-list li:focus::after {
    color: var(--blue-color);
}

/* Badge for custom/per-role policy indicator */
.settings-list li .wp-2fa-badge {
    display: inline-block;
    padding: 3px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--blue-color, #2271b1);
    background: rgba(34, 113, 177, 0.08);
    border-radius: 20px;
    margin-left: auto;
    margin-right: 8px;
    white-space: nowrap;
    line-height: 1.6;
}

.cta-title {
    font-weight: 700;
    color: var(--text-dark);
}

.subscribe-card {
    border: 1px solid var(--border-light);
    padding: 14px;
    border-radius: var(--radius-lg);
}

.subscribe-form .regular-text {
    width: 100%;
    margin-bottom: 8px;
}

.subscribe-btn {
    width: 100%;
}

/* ---- Sticky save bar (desktop + mobile identical) ---- */
.save-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 12px 20px;
    background: var(--bg-white);
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Account for the WP admin sidebar so the bar never slides behind it.
   Use the same margin-left values WordPress core applies to #wpcontent
   plus its 20 px padding-left so the footer aligns with page content.  */
@media (min-width: 783px) {
    body:not(.folded) .save-footer {
        left: 160px;
    }

    body.folded .save-footer {
        left: 36px;
    }
}

/* Prevent page content from being hidden behind the sticky bar */
.wp-2fa-settings-wrapper.wp-2fa-settings-new {
    padding-bottom: 68px;
    max-width: 100%;
}

.save-footer .js-save-settings-new {
    white-space: nowrap;
}

.settings-page {
    margin: 0 auto;
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius-lg);
}

.settings-page h2 {
    padding: 0;
}

.breadcrumbs {
    font-size: var(--font-size-base);
    margin-bottom: 24px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.breadcrumbs a {
    color: var(--blue-color);
    text-decoration: none;
}

.breadcrumbs .back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--blue-color);
    color: #fff;
    border-radius: var(--radius-md);
    text-decoration: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    flex-shrink: 0;
}

.breadcrumbs .back-button:active {
    background: #3560d2;
}

.breadcrumbs ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    margin-right: 7px;
    font-size: var(--font-size-xs);
    margin-bottom: 0;
    font-style: normal;
    font-weight: 400;
    line-height: 165%;
    /* 21.45px */
}

.breadcrumbs li:not(:last-child)::after {
    content: '\\';
    color: var(--blue-color);
    margin-left: 8px;
}

.settings-page h1 {
    margin: 0 0 8px 0;
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.intro {
    font-size: var(--font-size-base);
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 712px;
}

.intro a {
    color: #2563eb;
    text-decoration: underline;
}

.intro a:hover {
    color: #1d4ed8;
}

.settings-card {
    margin-bottom: 32px;
    padding: 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
}

.wp2fa-wizard-panel .settings-card {
    border-bottom: none !important;
}

.settings-card:last-child {
    border-bottom: none;
}

.section-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 12px 0;
    line-height: 1.3;
}

.section-sub-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
    margin: 20px 0 8px 0;
}

.section-desc {
    font-size: var(--font-size-base);
    color: var(--text-muted);
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.settings-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 40px;
    padding: 6px 0;
    align-items: flex-start;
}

/* Editor rows: left label-group + right editor */
.settings-label-group {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.settings-label-group .settings-label {
    width: auto;
}

.settings-label-group .description-settings-card {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    line-height: 1.5;
    padding: 0;
    margin: 0;
}

.settings-label-group .extra-text {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    line-height: 1.5;
}

.settings-label {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--text-body);
    width: 200px;
    flex-shrink: 0;
}

.settings-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.number-input-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.number-label {
    font-size: var(--font-size-base);
    color: var(--text-body);
    line-height: 1;
}

.inline-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.url-prefix-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
}

.url-prefix-text {
    font-size: var(--font-size-base);
    color: var(--text-light);
    white-space: nowrap;
    padding: 6px 10px;
    line-height: 1.4;
    flex-shrink: 0;
}

.url-prefix-wrap .regular-text {
    flex: 1;
    min-width: 120px;
}

.url-prefix-actions {
    display: flex;
    gap: 8px;
    /* margin-top: 8px; */Customize 2FA user profile page area
}

.settings-row .description-settings-card {
    flex-basis: 100%;
    padding: 0;
}

.radio-option:hover,
.checkbox-option:hover {
    color: #1a1a1a;
}

/* Animations for inner elements only */
@keyframes radioDotAppear {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes checkmarkAppear {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* When a settings-row has radios but no label column, stack full-width */
.settings-row:not(:has(.settings-label)):has(.radio-option) {
    flex-direction: column;
    gap: 12px;
}

.radio-option,
.checkbox-option {
    font-size: var(--font-size-base);
    color: var(--text-body);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-option input[type="checkbox"]:checked::before,
.radio-option input[type="radio"]:checked::before {
    content: none !important;
}

/* Radio button styling */
.radio-option input[type="radio"] {
    cursor: pointer;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    background: var(--bg-white);
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease;
    position: relative;
}

.radio-option input[type="radio"]:hover {
    border-color: var(--text-muted);
}

.radio-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--blue-color);
    border-radius: 50%;
    animation: radioDotAppear 0.3s ease-out;
}

.radio-option input[type="radio"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--focus-shadow-color-alt);
}

/* Checkbox styling */
.checkbox-option input[type="checkbox"] {
    cursor: pointer;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 2px solid var(--text-placeholder);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    transition: border-color 0.2s ease;
    position: relative;
}

.checkbox-option input[type="checkbox"]:hover {
    border-color: var(--text-muted);
}

.checkbox-option input[type="checkbox"]:checked {
    border-color: var(--blue-color);
    background: var(--bg-white);
}

.checkbox-option input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 13px;
    height: 10px;
    background-color: var(--blue-color);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='10' viewBox='0 0 13 10' fill='none'%3E%3Cpath d='M11 0L4.2 6.8L1.4 4L0 5.4L4.2 9.6L12.4 1.4' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='10' viewBox='0 0 13 10' fill='none'%3E%3Cpath d='M11 0L4.2 6.8L1.4 4L0 5.4L4.2 9.6L12.4 1.4' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
    animation: checkmarkAppear 0.3s ease-out;
}

.checkbox-option input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--focus-shadow-color-alt);
}

.radio-option:hover,
.checkbox-option:hover {
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .settings-page {
        padding: 16px;
    }

    .settings-row {
        flex-direction: column;
        gap: 12px;
    }

    .settings-label-group {
        width: auto;
    }

    .settings-label {
        min-width: unset;
    }

    .breadcrumbs {
        flex-wrap: wrap;
        gap: 8px;
    }

    .breadcrumbs ul {
        flex-wrap: wrap;
    }
}

/* The sticky footer is the sole save UI — hide the redundant header button */
.page-header .js-save-settings-new {
    display: none;
}

/* Responsive grid for small screens */
@media all and (max-width: 980px) {
    .main-settings-new {
        grid-template-columns: 1fr;
    }

    .main-right {
        order: 2;
    }
}

.settings-page {
    display: none;
}

/* Card Container */
.providers-container {
    /* border: 1px solid #e1e1e1;
            border-radius: 4px;
            background: #fff; */
    overflow: hidden;
}

/* Provider Item */
.provider-item {
    margin-top: 8px;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    background: var(--bg-white);
}

.provider-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    background-color: #fafafa45;
    user-select: none;
    transition: background-color 0.2s ease;
}

.provider-summary:hover {
    background-color: var(--bg-light);
}

.provider-name {
    font-size: 16px;
    font-weight: 500;
    color: #24282f;
}

.provider-arrow {
    width: 12px;
    height: 7px;
    color: var(--text-muted);
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23000' stroke-width='1.875' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23000' stroke-width='1.875' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform-origin: center;
}

.provider-item.open .provider-arrow {
    transform: rotate(180deg);
}

/* Provider Content */
.provider-content {
    display: none;
    padding: 16px;
    background-color: var(--bg-white);
    /* border-top: 1px solid var(--border-card); */
}

.provider-item.open .provider-content {
    display: block;
}

/* Provider docs link */
.provider-docs-link {
    text-align: right;
    margin: 0 0 12px 0;
    font-size: var(--font-size-base);
    color: var(--text-muted);
}

.provider-docs-link a {
    color: var(--blue-color);
    text-decoration: underline;
    font-weight: 500;
}

.provider-docs-link a:hover {
    color: #135e96;
}

/* Form Fields */
.form-group {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.form-label {
    flex: 0 0 250px;
    padding-top: 8px;
    font-size: var(--font-size-base);
    font-weight: 500;
    color: #24282f;
}

.form-field {
    flex: 1;
}

.form-input {
    width: 100%;
    /* padding: 8px 12px; */
    /* border: 1px solid #ccc;
            border-radius: 4px; */
    font-size: var(--font-size-base);
    font-family: inherit;
    min-height: 40px !important;
}

.form-input:focus {
    outline: none;
    border-color: var(--blue-color);
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.form-button {
    margin-top: 8px;
    padding: 8px 16px;
    background-color: var(--bg-white);
    color: var(--blue-color);
    border: 1px solid var(--blue-color);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-button:hover {
    background-color: var(--blue-color);
    color: var(--bg-white);
}

/* editor styles */

/* Activate the tab whose preceding radio is checked */
#tab-settings:checked~.tab-nav .tab-label[for="tab-settings"],
#tab-templates:checked~.tab-nav .tab-label[for="tab-templates"],
#tab-sms:checked~.tab-nav .tab-label[for="tab-sms"] {
    color: var(--blue-color);
    border-bottom-color: var(--blue-color);
}

/* Tab panels — all hidden by default */
.tab-panel {
    display: none;
    padding-top: 28px;
}

#tab-settings:checked~.tab-panel-settings,
#tab-templates:checked~.tab-panel-templates,
#tab-sms:checked~.tab-panel-sms {
    display: block;
}

/* ── Tip / notice box ────────────────────────────────────── */
.notice-tip {
    display: flex;
    gap: 12px;
    background: #edf5fc;
    border: 1px solid #d0e4f6;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: var(--font-size-sm);
    color: #444;
    line-height: 1.65;
    margin-top: 20px;
}

.notice-tip-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: var(--blue-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xs);
    font-weight: 700;
    font-style: italic;
    margin-top: 1px;
    user-select: none;
}

.notice-tip-body {
    flex: 1;
}

.notice-tip strong {
    display: inline;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    font-weight: 700;
}

.notice-tip strong::after {
    content: ': ';
}

/* ── Test-email-delivery card ────────────────────────────── */
.delivery-test-card {
    padding-bottom: 24px;
}

.delivery-test-card .section-desc {
    max-width: 400px;
    line-height: 1.55;
}

/* ── Button styles (outline primary, reusable) ───────────── */
.btn-outline {
    display: inline-block;
    padding: 7px 16px;
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--blue-color);
    background: var(--bg-white);
    border: 1px solid var(--blue-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    text-decoration: none;
    line-height: 1.5;
    width: fit-content;
}

.btn-outline:hover {
    background: var(--blue-color);
    color: var(--bg-white);
}

/* ── "Use another email" extra fields ────────────────────── */
.extra-email-fields {
    display: none;
    margin-top: 12px;
    gap: 10px;
    flex-direction: column;
}

#use-another:checked~.settings-control .extra-email-fields {
    display: flex;
}

/* (Works only within the same form context; see note below) */

/* ── Email template accordion ────────────────────────────── */
/* Reuses .provider-item / .provider-summary / .provider-content
           from settings.css, adding only missing bits. */
.template-accordion {
    margin-top: 0;
}

.template-accordion .provider-summary {
    background: var(--bg-white);
}

.template-accordion .provider-desc {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin: 0;
}

.template-accordion .provider-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ── Accordion form rows: extend the existing .settings-row / .settings-label /
           .settings-control classes for use inside .provider-content. Only the
           differences from the base definitions are overridden here. ────────────── */
.provider-content .settings-row {
    padding: 5px 0;
    /* border-bottom: 1px solid var(--border-light); */
    gap: 24px;
}

.provider-content .settings-row:last-child {
    border-bottom: none;
}

.provider-content .settings-label {
    width: 200px;
    padding-top: 8px;
}

.provider-content .settings-control {
    min-width: 0;
}

/* Subject input */
.subject-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-input);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-family: inherit;
    min-height: 38px;
}

.subject-input:focus {
    outline: none;
    border-color: var(--blue-color);
    box-shadow: 0 0 0 2px var(--focus-shadow-color);
}

/* ── Body editor (Visual / Code inner tabs) ──────────────── */
/* Inner tab radios */
.body-editor-radio {
    display: none;
}

.body-editor-wrap {
    border: 1px solid var(--border-input);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.body-editor-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

/* Token list below the editor */
.token-list {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    line-height: 2;
}

.token-list code {
    background: none;
    font-family: inherit;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.token-list .token-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.token-badge {
    display: inline-block;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 2px 6px;
    font-size: var(--font-size-xs);
    color: var(--text-light);
    font-family: monospace;
    line-height: 1.7;
    white-space: nowrap;
}

/* Editor area */
.editor-area {
    width: 100%;
    min-width: 0;
}

/* Visual / Code tab bar at top-right of editor */
.editor-tab-bar {
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid var(--border-medium);
    background: var(--bg-light);
}

.editor-tab-label {
    padding: 7px 14px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
}

.editor-tab-label:hover {
    color: var(--blue-color);
}

#editor-visual:checked~.body-editor-wrap .editor-tab-label[for="editor-visual"],
#editor-code:checked~.body-editor-wrap .editor-tab-label[for="editor-code"] {
    color: var(--blue-color);
    border-bottom-color: var(--blue-color);
    background: var(--bg-white);
}

/* TinyMCE-style toolbar */
.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    background: #f9f9f9;
    border-bottom: 1px solid var(--border-medium);
    flex-wrap: wrap;
}

.toolbar-select {
    padding: 4px 6px;
    border: 1px solid var(--border-input);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    background: var(--bg-white);
    cursor: pointer;
    margin-right: 4px;
}

.toolbar-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    cursor: pointer;
    font-size: var(--font-size-sm);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: background 0.15s, border-color 0.15s;
    padding: 0;
    line-height: 1;
}

.toolbar-btn:hover {
    background: #e8e8e8;
    border-color: #bbb;
}

.toolbar-sep {
    width: 1px;
    height: 20px;
    background: var(--border-medium);
    margin: 0 4px;
}

/* Editor body textarea / visual area */
.editor-visual-body {
    padding: 14px;
    min-height: 160px;
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--text-body);
}

.editor-code-body {
    display: none;
}

#editor-visual:checked~.body-editor-wrap .editor-visual-body {
    display: block;
}

#editor-visual:checked~.body-editor-wrap .editor-code-body {
    display: none;
}

#editor-code:checked~.body-editor-wrap .editor-visual-body {
    display: none;
}

#editor-code:checked~.body-editor-wrap .editor-code-body {
    display: block;
}

.editor-code-body textarea {
    width: 100%;
    min-height: 160px;
    padding: 12px;
    font-family: monospace;
    font-size: var(--font-size-sm);
    border: none;
    resize: vertical;
    outline: none;
    color: var(--text-body);
    background: var(--bg-light);
    line-height: 1.6;
}

/* ── SMS accordion re-uses .provider-item etc ─────────────── */

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 680px) {
    .page-wrapper {
        padding: 16px;
    }

    .tab-label {
        padding: 10px 12px;
        font-size: 11px;
    }

    .provider-content .settings-row {
        flex-direction: column;
        gap: 8px;
    }

    .provider-content .settings-label {
        width: auto;
        padding-top: 0;
    }

    .body-editor-inner {
        flex-direction: column;
    }

    .token-list {}

    .settings-row {
        flex-direction: column;
        gap: 10px;
    }

    .settings-label {
        width: auto;
    }
}

/* ── Pure-CSS tab system ─────────────────────────────────── */
/* Hidden radio inputs drive tab switching with no JS */
.tab-radio {
    display: none !important;
}

.tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-medium);
    margin: 24px -18px 0 -18px;
    flex-wrap: wrap;
}

.tab-label {
    padding: 12px 16px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    letter-spacing: normal;
    text-transform: uppercase;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.tab-label:hover {
    color: var(--blue-color);
    border-bottom-color: var(--blue-color);
}

/* Activate the tab whose preceding radio is checked */
#tab-settings:checked~.tab-nav .tab-label[for="tab-settings"],
#tab-templates:checked~.tab-nav .tab-label[for="tab-templates"],
#tab-sms:checked~.tab-nav .tab-label[for="tab-sms"] {
    color: var(--blue-color);
    border-bottom-color: var(--blue-color);
}

/* Tab panels — all hidden by default */
.tab-panel {
    display: none;
    padding-top: 28px;
}

#tab-settings:checked~.tab-panel-settings,
#tab-templates:checked~.tab-panel-templates,
#tab-sms:checked~.tab-panel-sms {
    display: block;
}

/* ============================================================
   New field types – color, image-select, font-select
   ============================================================ */

/* --- Color picker ------------------------------------------ */
.wp2fa-color-picker-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wp2fa-color-picker-wrap .wp-color-result {
    border-radius: 4px;
    border: 1px solid #bbb;
    cursor: pointer;
}

/* --- Image / logo selector --------------------------------- */
.wp2fa-image-select-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wp2fa-image-select-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.wp2fa-image-desc {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.wp2fa-image-preview {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: 4px;
    background: var(--bg-light);
    max-width: 200px;
    margin-top: 4px;
}

.wp2fa-image-preview.hidden {
    display: none;
}

.wp2fa-image-preview img {
    max-width: 160px;
    max-height: 80px;
    display: block;
    object-fit: contain;
    border-radius: 2px;
}

.wp2fa-media-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-placeholder);
    font-size: 16px;
    line-height: 1;
    padding: 2px 4px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    align-self: flex-start;
}

.wp2fa-media-remove:hover {
    color: #c0392b;
    background: #fee;
}

/* --- Font selector ----------------------------------------- */
.wp2fa-font-select-wrap {
    display: flex;
    align-items: center;
}

.wp2fa-font-select {
    min-width: 240px;
    height: 34px;
    border: 1px solid #bbb;
    border-radius: var(--radius-md);
    padding: 0 8px;
    font-size: var(--font-size-base);
    background: var(--bg-white);
    color: var(--text-body);
    cursor: pointer;
}

.wp2fa-font-select:focus {
    outline: none;
    border-color: var(--blue-color);
    box-shadow: 0 0 0 2px var(--focus-shadow-color);
}

/* Login CSS row – description below the label on the left */
.wp2fa-login-css-row {
    align-items: flex-start;
}

.wp2fa-login-css-label-desc.description {
    padding: 0 0 6px;
    font-size: var(--font-size-xs);
    color: #888;
    width: 200px;
    flex-shrink: 0;
}

.wp2fa-login-custom-css {
    width: 100%;
    min-height: 120px;
    font-family: monospace;
    font-size: var(--font-size-sm);
    resize: vertical;
}

/* Also target the raw textarea inside the login-CSS row (textarea() method
   wraps in body-editor-inner; the class on the setting won't reach it) */
.wp2fa-login-css-row textarea {
    width: 100%;
    min-height: 120px;
    font-family: monospace;
    font-size: var(--font-size-sm);
    resize: vertical;
    box-sizing: border-box;
}

.main-settings-new .disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ============================================================
   Toggle Switch (checkbox styled as a toggle)
   ============================================================ */
.toggle-switch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: var(--font-size-base);
    color: var(--text-body);
    user-select: none;
}

.toggle-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.toggle-slider {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
    background: var(--bg-white);
    border: 1px solid var(--blue-color);
    border-radius: 12px;
    transition: background 0.25s ease, border-color 0.25s ease;
    flex-shrink: 0;
    box-sizing: border-box;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: var(--blue-color);
    border-radius: 50%;
    transition: transform 0.25s ease, background 0.25s ease;
    box-shadow: none;
}

.toggle-switch input[type="checkbox"]:checked+.toggle-slider {
    background: var(--blue-color);
    border-color: var(--blue-color);
}

.toggle-switch input[type="checkbox"]:checked+.toggle-slider::after {
    transform: translateX(20px);
    background: var(--bg-white);
}

.toggle-switch input[type="checkbox"]:focus+.toggle-slider {
    box-shadow: 0 0 0 3px var(--focus-shadow-color);
}

.toggle-label {
    font-weight: 500;
}

/* Toggle rows — reduce vertical gap between toggle and its description */
.settings-row:has(.toggle-switch) {
    row-gap: 4px;
}

.settings-row .toggle-switch~.description-settings-card {
    padding-left: 56px;
}

/* ============================================================
   User Roles Grid (multi-column responsive checkbox grid)
   ============================================================ */
.user-roles-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 0;
    padding: 12px 0;
    margin-left: 35px;
}

.user-roles-grid .user-role-item {
    flex: 0 0 33.333%;
    box-sizing: border-box;
    padding: 4px 8px;
    font-size: var(--font-size-base);
}

@media (max-width: 768px) {
    .user-roles-grid .user-role-item {
        flex: 0 0 50%;
    }
}

@media (max-width: 480px) {
    .user-roles-grid .user-role-item {
        flex: 0 0 100%;
    }
}

/* ============================================================
   Passkeys Settings Page Layout
   ============================================================ */
.wp-2fa-passkeys-settings .main-settings-new.passkeys-main {
    grid-template-columns: 1fr 320px;
    max-width: 100%;
}

.wp-2fa-passkeys-settings .main-settings-new.passkeys-main>form {
    min-width: 0;
}

.wp-2fa-passkeys-settings .main-left {
    padding: 20px;
}

.wp-2fa-passkeys-settings .settings-card {
    padding-bottom: 24px;
}

.wp-2fa-passkeys-settings .passkeys-enforcement-card {
    padding-left: 0;
}

.wp-2fa-passkeys-settings .passkeys-roles-selector {
    margin-left: 30px;
}

/* ============================================================
   Stat Cards (summary statistics row)
   ============================================================ */
.stat-cards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 0;
}

.stat-card {
    flex: 1 1 0;
    min-width: 140px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 16px 20px;
    background: var(--bg-white);
    border: 2px solid var(--blue-color);
    border-radius: var(--radius-md);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--blue-color);
    line-height: 1;
}

.stat-label {
    font-size: var(--font-size-base);
    color: var(--text-light);
    white-space: nowrap;
}

@media (max-width: 680px) {
    .stat-cards-row {
        flex-direction: column;
    }

    .stat-card {
        flex: none;
        width: 100%;
    }
}

/* ============================================================
   Data Table (report tables)
   ============================================================ */
.report-table-wrap {
    overflow-x: visible;
}

@media (max-width: 768px) {
    .report-table-wrap {
        overflow-x: auto;
    }
}

.report-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.report-table-header .section-title {
    margin: 0;
}

.report-table-header .btn-outline {
    flex-shrink: 0;
}

.report-data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 0;
    font-size: var(--font-size-base);
    table-layout: fixed;
}

.report-data-table thead th {
    background: var(--blue-color);
    color: var(--bg-white);
    padding: 12px 12px;
    text-align: center;
    font-weight: 600;
    font-size: var(--font-size-sm);
    line-height: 1.35;
}

.report-data-table thead th:first-child {
    text-align: left;
}

.report-data-table tbody td {
    padding: 12px 12px;
    border-bottom: 1px solid var(--border-light);
    text-align: center;
    color: var(--text-body);
}

.report-data-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
}

.report-data-table tbody tr:last-child td {
    border-bottom: 2px solid var(--blue-color);
}

.report-data-table tbody tr:hover {
    background: var(--bg-hover);
}

/* ============================================================
   Reports Page Layout
   ============================================================ */
.wp-2fa-reports-page .main-settings-new.reports-main {
    grid-template-columns: 1fr;
}

.wp-2fa-reports-page .main-left {
    padding: 20px;
}

/* ============================================================
   Policies New Page
   ============================================================ */

/* Reuse the same two-column grid and card layout as Settings New */
/* .wp-2fa-policies-new .main-settings-new {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    margin-top: 18px;
} */

@media all and (max-width: 980px) {
    .wp-2fa-policies-new .main-settings-new {
        grid-template-columns: 1fr;
    }
}

/* Prevent page content hiding behind the sticky save bar */
.wp-2fa-settings-wrapper.wp-2fa-policies-new {
    padding-bottom: 68px;
    max-width: 100%;
}

/* ============================================================
   Toast Notifications
   ============================================================ */
.wp2fa-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 500;
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wp2fa-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.wp2fa-toast--success {
    background: var(--success-color);
    color: var(--bg-white);
}

.wp2fa-toast--error {
    background: var(--error-color);
    color: var(--bg-white);
}


/* Sidebar (right) */
.mp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mp-sidebar-card {
    background: #fff;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 24px 20px;
}

.mp-sidebar-card-title {
    margin: 0 0 16px;
    padding: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #1d2327;
    text-transform: uppercase;
    border-bottom: 1px solid #dcdcde;
}

/* Premium: link lists */
.mp-sidebar-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mp-sidebar-links li {
    margin-bottom: 10px;
}

.mp-sidebar-links li:last-child {
    margin-bottom: 0;
}

.mp-sidebar-links a {
    color: #2271b1;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
}

.mp-sidebar-links a:hover,
.mp-sidebar-links a:focus {
    color: #135e96;
    text-decoration: underline;
}

/* Premium: promo section */
.mp-sidebar-promo-text {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #3c434a;
}

.mp-sidebar-promo-link {
    display: inline-block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #2271b1;
    text-decoration: none;
}

.mp-sidebar-promo-link:hover,
.mp-sidebar-promo-link:focus {
    color: #135e96;
    text-decoration: underline;
}

.mp-sidebar-divider {
    border: none;
    border-top: 1px solid #dcdcde;
    margin: 16px 0;
}

/* Premium: footer */
.mp-sidebar-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 0;
    font-size: 13px;
    color: #646970;
}

.mp-sidebar-footer-logo {
    height: 18px;
    width: auto;
    vertical-align: middle;
}

.mp-sidebar-footer-icon {
    width: 18px;
    height: 19px;
    flex-shrink: 0;
}

.mp-sidebar-footer-text {
    width: 72px;
    height: 14px;
    flex-shrink: 0;
}

/* Free: upgrade banner */
.mp-sidebar-upgrade {
    border: 2px solid #2271b1;
    border-radius: 8px;
    padding: 28px 24px;
    text-align: start;
}

.mp-sidebar-upgrade-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.mp-sidebar-upgrade-logo {
    width: 36px;
    height: auto;
}

.mp-sidebar-upgrade-title {
    font-size: 18px;
    font-weight: 700;
    color: #1d2327;
}

.mp-sidebar-upgrade-tagline {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #1d2327;
}

.mp-sidebar-upgrade-features {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.mp-sidebar-upgrade-features li {
    position: relative;
    padding-inline-start: 28px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #3c434a;
}

.mp-sidebar-upgrade-features li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232271b1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.mp-sidebar-upgrade-btn {
    display: block;
    width: 100%;
    padding: 12px 24px;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background: var(--blue-color, #2271B1);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s;
    box-sizing: border-box;
}

.mp-sidebar-upgrade-btn:hover,
.mp-sidebar-upgrade-btn:focus {
    background: #135e96;
    color: #fff;
    text-decoration: none;
}

.mp-sidebar-upgrade-guarantee-title {
    margin: 0 0 4px;
    font-size: 14px;
    text-align: center;
    color: #1d2327;
}

.mp-sidebar-upgrade-guarantee {
    margin: 0;
    font-size: 13px;
    text-align: center;
    color: #646970;
}

/* Shared buttons (used on about-us & support pages) */
.mp-about-btn-filled,
.mp-about-btn-outline {
    display: inline-block;
    padding: 8px 24px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-align: center;
    align-self: flex-start;
}

.mp-about-btn-filled {
    background: #2271b1;
    color: #fff !important;
    border: none;
}

.mp-about-btn-filled:hover,
.mp-about-btn-filled:focus {
    background: #135e96;
    color: #fff;
}

.mp-about-btn-outline {
    background: #fff;
    color: #2271b1;
    border: 1px solid #2271b1;
}

.mp-about-btn-outline:hover,
.mp-about-btn-outline:focus {
    background: #f0f7fc;
    color: #135e96;
}

.passkeys-settings-main-wrapper #passkeys-description-item,
.passkeys-settings-main-wrapper .form-group.settings-row,
.passkeys-settings-main-wrapper #passkeys-enforcement-card,
.passkeys-settings-main-wrapper #bypass-2fa-description-item {
    padding: 18px 20px 0 !important;
}

.reports-settings-main-wrapper h2 {

    padding: 0 !important;

}

.main-settings-new.reports-main {
    margin-right: 20px;
}

/* ═══════════════════════════════════════════════════
   Premium Badge & Gate
   ═══════════════════════════════════════════════════ */
.wp2fa-premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-light);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 20px;
    vertical-align: middle;
    user-select: none;
    margin-right: 6px;
}

.wp2fa-premium-badge svg {
    flex-shrink: 0;
}

.checkbox-option .wp2fa-premium-badge,
.toggle-switch .wp2fa-premium-badge {
    vertical-align: middle;
}

.wp2fa-premium-gate-locked {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
    user-select: none;
}

.wp2fa-premium-gate-locked input,
.wp2fa-premium-gate-locked select,
.wp2fa-premium-gate-locked textarea,
.wp2fa-premium-gate-locked button {
    pointer-events: none !important;
}

.wp2fa-premium-gate-locked .wp2fa-premium-badge {
    pointer-events: auto;
    opacity: 1;
}

.wp2fa-premium-methods-preview {
    margin-top: 0;
}

.wp2fa-premium-methods-preview .wp2fa-premium-method-item {
    cursor: default;
}

.wp2fa-premium-methods-preview .wp2fa-sortable-handle {
    opacity: 0.4;
    cursor: default;
}

.wp2fa-premium-methods-preview .wp2fa-sortable-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Locked premium settings list items on the Settings page */
.wp2fa-premium-settings-list {
    border-top: none;
}

.wp2fa-premium-settings-list .wp2fa-premium-settings-item {
    cursor: default;
    opacity: 0.6;
}

.wp2fa-premium-settings-list .wp2fa-premium-settings-item > :not(.wp2fa-premium-badge) {
    pointer-events: none;
}

.wp2fa-premium-settings-list .wp2fa-premium-settings-item:hover,
.wp2fa-premium-settings-list .wp2fa-premium-settings-item:focus {
    transform: none;
    color: inherit;
}

.wp2fa-premium-settings-list .wp2fa-premium-settings-item .wp2fa-premium-badge {
    pointer-events: auto;
    cursor: pointer;
    opacity: 1;
}

.wp2fa-premium-settings-list .wp2fa-premium-settings-item .option-value {
    flex: 1;
}

/* Enterprise upsell banner shown on limited White Labeling tabs */
.wp2fa-enterprise-upsell-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 20px;
    padding: 16px;
    border: 1px solid #d5d7db;
    border-radius: 10px;
    background: #e9eaec;
}

.wp2fa-enterprise-upsell-banner__content {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.wp2fa-enterprise-upsell-banner__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 33px;
    height: 49px;
    flex-shrink: 0;
}

.wp2fa-enterprise-upsell-banner__icon svg {
    display: block;
    width: 33px;
    height: 49px;
}

.wp2fa-enterprise-upsell-banner__text {
    min-width: 0;
}

.wp2fa-enterprise-upsell-banner__title {
    margin: 0 0 6px;
    color: #363f4a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.15;
}

.wp2fa-enterprise-upsell-banner__highlight {
    color: #2271b1;
}

.wp2fa-enterprise-upsell-banner__desc {
    margin: 0;
    color: #5f6670;
    font-size: 14px;
    line-height: 1.35;
}

.wp2fa-enterprise-upsell-banner__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 12px;
    border: 2px solid var(--blue-color);
    border-radius: var(--radius-xl);
    background: transparent;
    color: #2271b1;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.wp2fa-enterprise-upsell-banner__button:hover,
.wp2fa-enterprise-upsell-banner__button:focus {
    border-color: #135e96;
    background: #f0f7fc;
    color: #135e96;
    text-decoration: none;
}

@media (max-width: 1300px) {
    .wp2fa-enterprise-upsell-banner__button {
        min-width: 0;
    }
}

@media (max-width: 980px) {
    .wp2fa-enterprise-upsell-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px;
    }

    .wp2fa-enterprise-upsell-banner__button {
        width: 100%;
        min-width: 0;
    }
}

/* ═══════════════════════════════════════════════════
   Premium Locked Panel (reusable component)
   ═══════════════════════════════════════════════════ */
.wp2fa-premium-locked-panel {
    margin: 0;
    padding: 24px;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
    background: #F0F0F1;
}

/* Remove bottom spacing from settings-card when locked panel follows */
.settings-card + .wp2fa-premium-locked-panel {
    /* margin-top: -32px; */
}

.policies-settings-main-wrapper > .settings-card:has(+ .wp2fa-premium-locked-panel) {
    margin-bottom: 0;
    border-bottom: none;
}

/* White card inside the gray panel */
.wp2fa-premium-locked-panel__card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    padding-bottom: 14px;
}

/* --- Banner --- */
.wp2fa-premium-locked-panel__banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.wp2fa-premium-locked-panel__banner-content {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.wp2fa-premium-locked-panel__banner-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 33px;
    height: 49px;
    flex-shrink: 0;
}

.wp2fa-premium-locked-panel__banner-icon svg {
    display: block;
    width: 33px;
    height: 49px;
}

.wp2fa-premium-locked-panel__banner-text {
    min-width: 0;
}

.wp2fa-premium-locked-panel__banner-title {
    margin: 0 0 4px;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.wp2fa-premium-locked-panel__banner-desc {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.4;
}

.wp2fa-premium-locked-panel__banner-badge.wp2fa-premium-badge {
    margin-left: 0;
    margin-right: 0;
    flex-shrink: 0;
    cursor: pointer;
}

.wp2fa-premium-locked-panel__banner-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 2px solid var(--blue-color);
    border-radius: 10px;
    background: transparent;
    color: var(--blue-color);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.wp2fa-premium-locked-panel__banner-button:hover,
.wp2fa-premium-locked-panel__banner-button:focus {
    border-color: #135e96;
    background: #f0f7fc;
    color: #135e96;
    text-decoration: none;
}

/* --- Items list --- */
.wp2fa-premium-locked-panel__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wp2fa-premium-locked-panel__item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: default;
}

.wp2fa-premium-locked-panel__item:last-child {
    border-bottom: none;
}

.wp2fa-premium-locked-panel__item:first-child {
    border-top: none;
}

.wp2fa-premium-locked-panel__item--hidden {
    display: none;
}

.wp2fa-premium-locked-panel__item--hidden.wp2fa-premium-locked-panel__item--visible {
    display: flex;
}

.wp2fa-premium-locked-panel__item-lock.wp2fa-premium-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    margin-right: 12px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-light);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    font-size: 0;
    letter-spacing: 0;
    line-height: 1;
    gap: 0;
}

.wp2fa-premium-locked-panel__item-lock.wp2fa-premium-badge:hover,
.wp2fa-premium-locked-panel__item-lock.wp2fa-premium-badge:focus {
    background: #f0f7fc;
    border-color: var(--blue-color);
    outline: none;
}

.wp2fa-premium-locked-panel__item-lock.wp2fa-premium-badge svg {
    display: block;
}

.wp2fa-premium-locked-panel__item-lock:not(.wp2fa-premium-badge) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    margin-right: 12px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-light);
    font-size: 0;
    line-height: 1;
}

.wp2fa-premium-locked-panel__item-lock:not(.wp2fa-premium-badge) svg {
    display: block;
}

.wp2fa-premium-locked-panel__item-title {
    flex: 1;
    color: #a7aaad;
    font-size: var(--font-size-md);
    font-weight: 500;
    line-height: 1.4;
}

.wp2fa-premium-locked-panel__item-chevron {
    width: 7px;
    height: 12px;
    color: #c3c4c7;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='12' viewBox='0 0 7 12' fill='none'%3E%3Cpath d='M0.9375 0.9375L5.9375 5.9375L0.9375 10.9375' stroke='%23000' stroke-width='1.875' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='12' viewBox='0 0 7 12' fill='none'%3E%3Cpath d='M0.9375 0.9375L5.9375 5.9375L0.9375 10.9375' stroke='%23000' stroke-width='1.875' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    margin-left: 8px;
    flex-shrink: 0;
    display: inline-block;
}

/* --- Toggle button --- */
.wp2fa-premium-locked-panel__toggle {
  display: inline-block;
  margin: 15px 0px 9px 64px;
  padding: 0;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease;
  font-style: italic;
}

.wp2fa-premium-locked-panel__toggle:hover,
.wp2fa-premium-locked-panel__toggle:focus {
    color: var(--blue-color);
    outline: none;
}

/* Responsive */
@media (max-width: 1300px) {
    .wp2fa-premium-locked-panel__banner {
        gap: 16px;
    }
}

@media (max-width: 980px) {
    .wp2fa-premium-locked-panel__banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .wp2fa-premium-locked-panel__banner-button {
        width: 100%;
        text-align: center;
    }
}

#passkeys-enforcement-card {
    padding-top: 0 !important;
    margin-top: -57px !important
}

#primary-methods-desc-item {
    padding-bottom: 20px !important;
}

#custom-user-page-sub-settings .form-group.settings-row, #trusted-devices-sub-settings .form-group.settings-row {
    margin-left: 57px !important;
}
/* ── WP admin button overrides (repoint #3858e9 → accent) ─── */
.wp-2fa_page .button.button-primary,
.wp-2fa_page .button-primary {
    background: var(--blue-color);
    border-color: var(--blue-color);
    border-radius: var(--radius-md);
    color: #fff;
}

.wp-2fa_page .button.button-primary:hover,
.wp-2fa_page .button-primary:hover {
    background: #135e96;
    border-color: #135e96;
}

.wp-2fa_page .button.button-primary:active,
.wp-2fa_page .button-primary:active {
    background: #0a4b78;
    border-color: #0a4b78;
}

/* Secondary / outline buttons */
.wp-2fa_page .button,
.wp-2fa_page .button-secondary {
    border-radius: var(--radius-md);
    border-color: var(--blue-color);
    color: var(--blue-color);
}

.wp-2fa_page .button:hover,
.wp-2fa_page .button-secondary:hover {
    background: var(--blue-color);
    border-color: var(--blue-color);
    color: #fff;
}

/* Input overrides — radius and border color */
.wp-2fa_page input[type="text"],
.wp-2fa_page input[type="email"],
.wp-2fa_page input[type="url"],
.wp-2fa_page input[type="number"],
.wp-2fa_page input[type="password"],
.wp-2fa_page select,
.wp-2fa_page textarea {
    border-radius: var(--radius-input);
    border-color: var(--border-input);
}

/* Color picker button override */
.wp-2fa_page .wp-color-result,
.wp-2fa_page .button.wp-color-result {
    border-radius: var(--radius-md);
}

.wp-2fa_page .wp-picker-container .wp-color-result-text {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

#passkeys-bypass-card {
    border-bottom: none !important;
}

.no-width .settings-label {
    width: auto !important;
    flex-shrink: 0;
      margin-left: -3px;

}