.sendcode-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sendcode-modal.is-open {
    display: flex;
}

.sendcode-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

.sendcode-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
    box-sizing: border-box;
    border-radius: 14px;
    background: #fff;
    padding: 28px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .22);
}

.sendcode-modal__close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.sendcode-modal__title {
    margin: 0 0 14px 0;
    font-size: 22px;
    line-height: 1.2;
    text-align: center;
    color: #111;
}

.sendcode-modal__message {
    margin-bottom: 18px;
    line-height: 1.45;
    text-align: center;
}

.sendcode-modal__message-number {
    font-size: 16;
    font-weight: 700;
    color: #111;
}

.sendcode-modal__label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    color: #111;
}

.sendcode-modal__pin {
    width: 100%;
    box-sizing: border-box;
    height: 52px;
    border: 1px solid #cfd4dc;
    border-radius: 9px;
    padding: 0 14px;
    font-size: 26px;
    letter-spacing: 10px;
    text-align: center;
    outline: none;
    color: #222;
}

.sendcode-modal__pin:focus {
    border-color: #222;
}

.sendcode-modal__attempts {
    min-height: 20px;
    margin: 8px 0 14px;
    font-size: 13px;
    opacity: .7;
    color: #111;
}

.sendcode-modal__verify,
.sendcode-modal__resend {
    width: 100%;
    min-height: 44px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 15px;
}

.sendcode-modal__verify {
    border: 1px solid #111;
    background: #111;
    color: #fff;
}

.sendcode-modal__resend {
    margin-top: 10px;
    border: 1px solid #cfd4dc;
    background: #fff;
    color: #111;
}

.sendcode-modal__verify:disabled,
.sendcode-modal__resend:disabled,
.sendcode-modal__pin:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.sendcode-modal__error {
    min-height: 20px;
    margin-top: 12px;
    font-size: 14px;
    color: #b42318;
}

.sendcode-modal-open {
    overflow: hidden;
}

.sendcode-phone-invalid {
    border-color: #b42318 !important;
}

.sendcode-phone-inline-error {
    margin-top: 5px;
    font-size: 13px;
    color: #b42318;
}

.sendcode-modal__loader {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 10;
    box-sizing: border-box;
    border-radius: 14px;
    background: rgba(255, 255, 255, .94);
    padding: 32px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    text-align: center;
    color: #111;
}

.sendcode-modal.is-loading .sendcode-modal__loader {
    display: flex;
}

.sendcode-modal__spinner {
    width: 38px;
    height: 38px;
    box-sizing: border-box;
    border: 4px solid #d9dde3;
    border-top-color: #111;
    border-radius: 50%;
    animation: sendcode-spin .8s linear infinite;
}

.sendcode-modal__loader-text {
    max-width: 300px;
    font-size: 15px;
    line-height: 1.45;
}

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

@media (prefers-reduced-motion: reduce) {
    .sendcode-modal__spinner {
        animation-duration: 1.6s;
    }
}
