:root {
    --rfs-accent: #7b3039;
    --rfs-accent-dark: #65252d;
    --rfs-ink: #282321;
    --rfs-muted: #746c67;
    --rfs-surface: #fbf8f3;
    --rfs-border: #d9d0c5;
    --rfs-radius: 14px;
}

.rfs-switch {
    min-width: 0;
    margin: 0 0 34px;
    padding: 22px;
    border: 1px solid rgba(123, 48, 57, .18);
    border-radius: calc(var(--rfs-radius) + 3px);
    background: linear-gradient(145deg, #fff 0%, var(--rfs-surface) 100%);
    box-shadow: 0 15px 38px rgba(45, 35, 30, .08);
}

.rfs-switch legend {
    display: block;
    width: 100%;
    margin: 0 0 15px;
    padding: 0;
    color: var(--rfs-ink);
    font: inherit;
    font-size: 16px;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
}

.rfs-switch__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.rfs-option {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 25px;
    align-items: center;
    min-height: 68px;
    margin: 0;
    padding: 13px 15px;
    overflow: hidden;
    border: 1px solid var(--rfs-border);
    border-radius: var(--rfs-radius);
    background: rgba(255, 255, 255, .75);
    color: var(--rfs-ink);
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.rfs-option:hover {
    border-color: rgba(123, 48, 57, .48);
    transform: translateY(-1px);
}

.rfs-option.is-selected {
    border-color: var(--rfs-accent);
    background: var(--rfs-accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(123, 48, 57, .2);
}

.rfs-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.rfs-option:focus-within {
    outline: 3px solid rgba(123, 48, 57, .2);
    outline-offset: 2px;
}

.rfs-option__icon,
.rfs-option__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rfs-option__icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rfs-option__check {
    width: 24px;
    height: 24px;
    opacity: 0;
    transform: scale(.7);
    transition: opacity .18s ease, transform .18s ease;
}

.rfs-option__check svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rfs-option.is-selected .rfs-option__check {
    opacity: 1;
    transform: scale(1);
}

.rfs-option__label {
    min-width: 0;
    padding: 0 8px;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.25;
}

.rfs-switch__status {
    display: none;
    margin: 14px 2px 0;
    color: var(--rfs-muted);
    font-size: 13px;
    line-height: 1.45;
}

.rfs-switch__status.is-visible {
    display: block;
}

.rfs-switch.is-loading {
    opacity: .76;
    pointer-events: none;
}

.rfs-hidden-field {
    display: none !important;
}

body.rfs-is-pickup #billing_first_name_field,
body.rfs-is-pickup #billing_last_name_field,
body.rfs-is-pickup #billing_phone_field,
body.rfs-is-pickup #billing_email_field {
    display: block !important;
}

@media (max-width: 560px) {
    .rfs-switch {
        margin-bottom: 28px;
        padding: 17px;
        border-radius: var(--rfs-radius);
    }

    .rfs-switch legend {
        font-size: 15px;
    }

    .rfs-switch__options {
        gap: 9px;
    }

    .rfs-option {
        grid-template-columns: 27px minmax(0, 1fr) 18px;
        min-height: 62px;
        padding: 10px;
    }

    .rfs-option__icon svg {
        width: 23px;
        height: 23px;
    }

    .rfs-option__check svg {
        width: 18px;
        height: 18px;
    }

    .rfs-option__label {
        padding: 0 5px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rfs-option,
    .rfs-option__check {
        transition: none;
    }
}
