/* A single semantic input enables OS autofill while the code remains visually separated. */
.otp-inputs {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 10px;
    direction: ltr;
    margin: 6px 0 2px;
}

.otp-code-input,
.otp-code-input:focus {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    color: transparent;
    background: transparent;
    caret-color: transparent;
    -webkit-text-fill-color: transparent;
    cursor: text;
}

.otp-time [hidden] {
    display: none;
}

.otp-resend-link {
    padding: 0;
    border: 0;
    color: #2679ec;
    background: transparent;
    font-weight: 700;
    cursor: pointer;
}

.otp-digit {
    display: grid;
    place-items: center;
    width: 48px;
    height: 58px;
    padding: 0;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    direction: ltr;
    background: #f4f5f7;
    border: 1px solid #dfe3e9;
    border-radius: 12px;
}

.otp-inputs:focus-within .otp-digit {
    border-color: #9da4ae;
    background: #fff;
    box-shadow: 0 0 0 3px #20202012;
}

.otp-digit.is-filled {
    border-color: #222;
}

@media (max-width: 390px) {
    .otp-inputs {
        gap: 6px;
    }

    .otp-digit {
        width: 42px;
        height: 54px;
    }
}
