/**
 * Mode d'exploitation (test ⇄ production) toggle switch.
 * Rendered by ConfigPage::render_mode_cursor() on the wizard's final step
 * and on the standalone settings page.
 */
.p4a-mode-cursor {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.p4a-mode-cursor .p4a-mode-label {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #646970;
}
.p4a-mode-cursor .p4a-mode-label.p4a-active-test { color: #f59e0b; }
.p4a-mode-cursor .p4a-mode-label.p4a-active-live { color: #15803d; }

.p4a-switch {
    position: relative;
    display: inline-block;
    width: 62px;
    height: 32px;
}
.p4a-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.p4a-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #22c55e;
    border-radius: 32px;
    transition: .25s;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .15);
}
.p4a-switch-slider::before {
    content: "";
    position: absolute;
    height: 26px;
    width: 26px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: .25s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.p4a-switch input:checked + .p4a-switch-slider           { background: #f59e0b; }
.p4a-switch input:checked + .p4a-switch-slider::before   { transform: translateX(30px); }

.p4a-mode-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 6px;
    padding: 16px 22px;
    margin-bottom: 18px;
    max-width: 820px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}
.p4a-mode-section h2 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 600;
    padding: 0 0 10px;
    border: 0;
    border-bottom: 1px solid #f0f0f1;
    color: var(--wp-admin-theme-color, #2271b1);
}
