/**
 * Przelacznik rodzaju konta na stronie rejestracji: klient indywidualny / firma.
 * Styl nalezy do modulu B2B, wiec nie ruszamy skompilowanego theme.css motywu.
 */
.ds-account-switch {
    display: flex;
    gap: 8px;
    margin: 0 0 28px;
    padding: 6px;
    background: #f3f4f6;
    border-radius: 12px;
}

.ds-account-switch__item {
    flex: 1 1 0;
    display: block;
    padding: 12px 16px;
    border-radius: 9px;
    text-align: center;
    font-weight: 600;
    line-height: 1.25;
    color: #041e42;
    text-decoration: none;
    transition: background-color .15s ease, box-shadow .15s ease;
}

.ds-account-switch__item:hover,
.ds-account-switch__item:focus {
    color: #041e42;
    text-decoration: none;
    background: #e7e9ee;
}

.ds-account-switch__item--active {
    background: #fff;
    color: #2C46CB;
    box-shadow: 0 1px 3px rgba(4, 30, 66, .16);
}

.ds-account-switch__item--active:hover,
.ds-account-switch__item--active:focus {
    background: #fff;
    color: #2C46CB;
}

.ds-account-switch__hint {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    font-weight: 400;
    color: #6b7280;
}

@media (max-width: 480px) {
    .ds-account-switch {
        flex-direction: column;
    }
}

/* stan ladowania po przelaczeniu rodzaju konta */
.register-form.ds-form-loading {
    pointer-events: none;
}

/* wygaszamy tylko formularz - przelacznik i spinner zostaja czytelne */
.register-form.ds-form-loading > *:not(.ds-account-switch):not(.ds-switch-spinner) {
    opacity: .35;
    transition: opacity .15s ease;
}

.ds-switch-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 22px;
    color: #6b7280;
    font-size: 14px;
}

.ds-switch-spinner__dot {
    width: 20px;
    height: 20px;
    border: 3px solid #d7dae2;
    border-top-color: #2C46CB;
    border-radius: 50%;
    animation: ds-switch-spin .7s linear infinite;
}

@keyframes ds-switch-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .ds-switch-spinner__dot {
        animation-duration: 2s;
    }
}
