.shima-otp-shell {
    direction: rtl;
    width: 100%;
    max-width: 520px;
    margin: 48px auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.shima-otp-shell * {
    box-sizing: border-box;
}

.shima-otp-card {
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 22px;
    padding: 32px;
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.07);
}

.shima-otp-brand {
    margin-bottom: 28px;
}

.shima-otp-brand__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #08783f;
}

.shima-otp-title {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.35;
}

.shima-otp-subtitle {
    margin: 0;
    color: #666666;
    font-size: 15px;
    line-height: 1.8;
}

.shima-otp-alert {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.8;
}

.shima-otp-alert[data-type="success"] {
    background: #eef9f2;
    border: 1px solid #cfead8;
    color: #176536;
}

.shima-otp-alert[data-type="error"] {
    background: #fff2f2;
    border: 1px solid #f0cccc;
    color: #982f2f;
}

.shima-otp-form {
    margin: 0;
}

.shima-otp-field {
    margin-bottom: 20px;
}

.shima-otp-field label,
.shima-otp-channel legend {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
}

.shima-otp-field input {
    width: 100%;
    min-height: 52px;
    padding: 10px 14px;
    border: 1px solid #d7d7d7;
    border-radius: 12px;
    background: #ffffff;
    font-size: 17px;
    outline: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.shima-otp-field input:focus {
    border-color: #08783f;
    box-shadow:
        0 0 0 3px rgba(8, 120, 63, 0.10);
}

.shima-otp-channel {
    margin: 0 0 22px;
    padding: 0;
    border: 0;
}

.shima-otp-channel__item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 13px 14px;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    cursor: pointer;
}

.shima-otp-channel__item input {
    margin: 0;
}

.shima-otp-channel__item span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shima-otp-channel__item strong {
    font-size: 14px;
}

.shima-otp-channel__item small {
    color: #777777;
    font-size: 12px;
}

.shima-otp-button {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 12px;
    background: #08783f;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.shima-otp-button:hover {
    filter: brightness(0.94);
}

.shima-otp-button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.shima-otp-help {
    margin: 14px 0 0;
    text-align: center;
    color: #777777;
    font-size: 12px;
    line-height: 1.8;
}

.shima-otp-back,
.shima-otp-resend {
    appearance: none;
    border: 0;
    background: transparent;
    color: #08783f;
    font: inherit;
    cursor: pointer;
}

.shima-otp-back {
    margin: 0 0 20px;
    padding: 0;
    font-size: 13px;
}

.shima-otp-resend {
    display: block;
    margin: 18px auto 0;
    padding: 6px;
    font-size: 13px;
}

.shima-otp-resend:disabled {
    color: #999999;
    cursor: default;
}

@media (max-width: 600px) {

    .shima-otp-shell {
        margin: 24px auto;
        padding: 0 12px;
    }

    .shima-otp-card {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .shima-otp-title {
        font-size: 23px;
    }
}
