/* Approved 20px box and equally scaled 2.25px frame/check strokes. */
input[type="checkbox"]:not([role="switch"]):not(.checkbox-switch input):not(:where(.deliverability-switch input, .plan-visibility-card > input, .weekday-card > input, .alert-filter-states input, .alert-filter-audience input, .ai-agent-option > input, .feedback-kind input, .billing-choice input, .customize-theme-options input, .domain-option input, .pay-later-choice input, .mood-choices input)),
input[type="checkbox"]:not([role="switch"]):not(.checkbox-switch input):not(:where(.deliverability-switch input, .plan-visibility-card > input, .weekday-card > input, .alert-filter-states input, .alert-filter-audience input, .ai-agent-option > input, .feedback-kind input, .billing-choice input, .customize-theme-options input, .domain-option input, .pay-later-choice input, .mood-choices input)):checked {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    display: inline-block;
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    max-width: 20px;
    max-height: 20px;
    flex: 0 0 20px;
    margin: 0 6px 0 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent url("frame.svg") center / 20px 20px no-repeat;
    vertical-align: middle;
    box-shadow: none;
    cursor: pointer;
    transition: none;
}
input[type="checkbox"]:not([role="switch"]):not(.checkbox-switch input):not(:where(.deliverability-switch input, .plan-visibility-card > input, .weekday-card > input, .alert-filter-states input, .alert-filter-audience input, .ai-agent-option > input, .feedback-kind input, .billing-choice input, .customize-theme-options input, .domain-option input, .pay-later-choice input, .mood-choices input))::before {
    content: "";
    position: absolute;
    box-sizing: border-box;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--modern-checkbox-ink, #202020);
    -webkit-mask: url("check.svg") center / contain no-repeat;
    mask: url("check.svg") center / contain no-repeat;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
}
input[type="checkbox"]:not([role="switch"]):not(.checkbox-switch input):not(:where(.deliverability-switch input, .plan-visibility-card > input, .weekday-card > input, .alert-filter-states input, .alert-filter-audience input, .ai-agent-option > input, .feedback-kind input, .billing-choice input, .customize-theme-options input, .domain-option input, .pay-later-choice input, .mood-choices input)):checked::before {
    opacity: 1;
}
input[type="checkbox"]:not([role="switch"]):not(.checkbox-switch input):not(:where(.deliverability-switch input, .plan-visibility-card > input, .weekday-card > input, .alert-filter-states input, .alert-filter-audience input, .ai-agent-option > input, .feedback-kind input, .billing-choice input, .customize-theme-options input, .domain-option input, .pay-later-choice input, .mood-choices input)):indeterminate::before {
    width: 10px;
    height: 2.25px;
    border-radius: 1.125px;
    -webkit-mask: none;
    mask: none;
    opacity: 1;
}
input[type="checkbox"]:not([role="switch"]):not(.checkbox-switch input):not(:where(.deliverability-switch input, .plan-visibility-card > input, .weekday-card > input, .alert-filter-states input, .alert-filter-audience input, .ai-agent-option > input, .feedback-kind input, .billing-choice input, .customize-theme-options input, .domain-option input, .pay-later-choice input, .mood-choices input)):focus-visible {
    outline: 2px solid var(--modern-checkbox-focus, #803900);
    outline-offset: 3px;
}
input[type="checkbox"]:not([role="switch"]):not(.checkbox-switch input):not(:where(.deliverability-switch input, .plan-visibility-card > input, .weekday-card > input, .alert-filter-states input, .alert-filter-audience input, .ai-agent-option > input, .feedback-kind input, .billing-choice input, .customize-theme-options input, .domain-option input, .pay-later-choice input, .mood-choices input)):disabled {
    opacity: .45;
    cursor: not-allowed;
}
@media (forced-colors: active) {
    input[type="checkbox"]:not([role="switch"]):not(.checkbox-switch input):not(:where(.deliverability-switch input, .plan-visibility-card > input, .weekday-card > input, .alert-filter-states input, .alert-filter-audience input, .ai-agent-option > input, .feedback-kind input, .billing-choice input, .customize-theme-options input, .domain-option input, .pay-later-choice input, .mood-choices input)),
    input[type="checkbox"]:not([role="switch"]):not(.checkbox-switch input):not(:where(.deliverability-switch input, .plan-visibility-card > input, .weekday-card > input, .alert-filter-states input, .alert-filter-audience input, .ai-agent-option > input, .feedback-kind input, .billing-choice input, .customize-theme-options input, .domain-option input, .pay-later-choice input, .mood-choices input)):checked {
        forced-color-adjust: none;
        border: 2px solid ButtonText;
        background: Canvas;
    }
    input[type="checkbox"]:not([role="switch"]):not(.checkbox-switch input):not(:where(.deliverability-switch input, .plan-visibility-card > input, .weekday-card > input, .alert-filter-states input, .alert-filter-audience input, .ai-agent-option > input, .feedback-kind input, .billing-choice input, .customize-theme-options input, .domain-option input, .pay-later-choice input, .mood-choices input))::before {
        background: ButtonText;
    }
    input[type="checkbox"]:not([role="switch"]):not(.checkbox-switch input):not(:where(.deliverability-switch input, .plan-visibility-card > input, .weekday-card > input, .alert-filter-states input, .alert-filter-audience input, .ai-agent-option > input, .feedback-kind input, .billing-choice input, .customize-theme-options input, .domain-option input, .pay-later-choice input, .mood-choices input)):focus-visible {
        outline-color: Highlight;
    }
}

/* Keep transparent controls visible on the shared dark surfaces. */
[data-theme="dark"] input[type="checkbox"]:not([role="switch"]):not(.checkbox-switch input):not(:where(.deliverability-switch input, .plan-visibility-card > input, .weekday-card > input, .alert-filter-states input, .alert-filter-audience input, .ai-agent-option > input, .feedback-kind input, .billing-choice input, .customize-theme-options input, .domain-option input, .pay-later-choice input, .mood-choices input)) {
    --modern-checkbox-ink: #f5f4ee;
    --modern-checkbox-focus: var(--accent, #fa8705);
    background-image: url("frame-light.svg");
}
@media (forced-colors: active) {
    [data-theme="dark"] input[type="checkbox"]:not([role="switch"]):not(.checkbox-switch input):not(:where(.deliverability-switch input, .plan-visibility-card > input, .weekday-card > input, .alert-filter-states input, .alert-filter-audience input, .ai-agent-option > input, .feedback-kind input, .billing-choice input, .customize-theme-options input, .domain-option input, .pay-later-choice input, .mood-choices input)) { background: Canvas; }
}
