.teleotp-shell {
    margin: 0 auto 1.5rem;
    max-width: 607px;
    width: 100%;
}

.teleotp-tabs {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
    margin: 0 11px 1.6rem;
}

.teleotp-tabs button {
    background: #fff;
    border: 1px solid #b8c5d8;
    border-radius: 10px;
    color: #34445a;
    cursor: pointer;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    min-height: 54px;
}

.teleotp-tabs button[aria-selected="true"] {
    background: linear-gradient(110deg, #0879e8, #8526c5);
    border-color: transparent;
    color: #fff;
}

.teleotp-otp-panel[hidden] {
    display: none !important;
}

.teleotp-card-form {
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 10px;
    margin: 0;
    overflow: hidden;
}

.teleotp-card-body {
    padding: 48px 54px 52px;
}

.teleotp-heading {
    color: #172033;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.25;
    margin: 0 0 8px;
}

.teleotp-subtitle {
    color: #68778b;
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0 0 30px;
}

.teleotp-phone-label,
.teleotp-code-label {
    color: #172033;
    display: block;
    font-size: 1.05rem;
    font-weight: 500;
    margin: 0 0 .55rem;
}

.teleotp-phone-label {
    margin-top: 0;
}

.teleotp-phone {
    background: #e8f0fe;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-sizing: border-box;
    color: #172033;
    font: inherit;
    min-height: 44px;
    width: 100%;
}

.teleotp-shell .iti {
    width: 100%;
}

.teleotp-shell .iti input[type="tel"] {
    background: #e8f0fe;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-sizing: border-box;
    color: #172033;
    font: inherit;
    min-height: 44px;
    width: 100%;
}

.teleotp-send,
.teleotp-confirm {
    align-items: center;
    background: #111827;
    border: 0;
    border-radius: 9px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 500;
    justify-content: center;
    margin-top: 1.25rem;
    min-height: 44px;
    min-width: 138px;
    padding: .6rem .9rem;
}

.teleotp-send {
    width: 100%;
}

.teleotp-resend {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #26354a;
    cursor: pointer;
    font: inherit;
    margin-top: .65rem;
    min-height: 40px;
    padding: .5rem .85rem;
}

.teleotp-send:disabled,
.teleotp-confirm:disabled,
.teleotp-resend:disabled {
    cursor: not-allowed;
    opacity: .6;
}

.teleotp-captcha {
    margin-top: 1rem;
}

.teleotp-code-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-8px);
    transition: max-height .35s ease, opacity .3s ease, transform .35s ease;
}

.teleotp-code-panel.is-open {
    max-height: 340px;
    opacity: 1;
    transform: translateY(0);
}

.teleotp-code-label {
    margin-top: 1rem;
}

.teleotp-digits {
    box-sizing: border-box;
    direction: ltr;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
    width: 100%;
}

.teleotp-digit {
    appearance: none;
    background: #e8f0fe;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-sizing: border-box;
    color: #172033;
    display: block;
    font: inherit;
    font-size: 1.3rem;
    margin: 0;
    min-height: 48px;
    min-width: 0;
    padding: 0 .2rem;
    text-align: center;
    width: 100%;
}

.teleotp-digits > .teleotp-digit:focus {
    box-shadow: none;
    outline: 3px solid #ffbf47;
    outline-offset: -3px;
    position: relative;
    transform: none;
    z-index: 1;
}

.teleotp-timer {
    color: #d31919;
    font-weight: 700;
    margin: .75rem 0 0;
}

.teleotp-status {
    border: 1px solid transparent;
    border-radius: 4px;
    display: block;
    margin: .75rem 0 0;
    padding: .75rem 1.25rem;
}

.teleotp-status:empty,
.teleotp-status[hidden] {
    display: none;
}

.teleotp-status.alert-info {
    background-color: #d9edf7;
    border-color: #bce8f1;
    color: #31708f;
}

.teleotp-status.alert-success {
    background-color: #dff0d8;
    border-color: #d6e9c6;
    color: #3c763d;
}

.teleotp-status.alert-warning {
    background-color: #fcf8e3;
    border-color: #faebcc;
    color: #8a6d3b;
}

.teleotp-status.alert-danger {
    background-color: #f2dede;
    border-color: #ebccd1;
    color: #a94442;
}

.teleotp-card-footer {
    background: #f7f7f8;
    border-top: 1px solid #dedede;
    color: #718096;
    font-size: 12px;
    line-height: 1.4;
    padding: 16px 24px;
    text-align: center;
}

.teleotp-native-powered {
    border-top: 1px solid #e1e3e6;
    color: #718096;
    font-size: 12px;
    line-height: 1.4;
    margin-top: 1.25rem;
    padding-top: .75rem;
    text-align: center;
}

.teleotp-shell :focus-visible {
    outline: 3px solid #ffbf47;
    outline-offset: 2px;
}

@media (max-width: 575px) {
    .teleotp-card-body {
        padding: 28px 22px 32px;
    }

    .teleotp-heading {
        font-size: 1.7rem;
    }

    .teleotp-subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
    }
}

@media (max-width: 380px) {
    .teleotp-tabs {
        gap: 6px;
        margin-right: 6px;
        margin-left: 6px;
    }

    .teleotp-tabs button {
        font-size: .95rem;
        min-height: 48px;
    }

    .teleotp-card-body {
        padding-right: 16px;
        padding-left: 16px;
    }

    .teleotp-digits {
        gap: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .teleotp-code-panel {
        transition: none;
    }
}
