.amazon-sms-modal-open {
    overflow: hidden;
}

.amazon-sms-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    isolation: isolate;
}

.amazon-sms-modal[hidden] {
    display: none !important;
}

.amazon-sms-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
}

.amazon-sms-modal__panel {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 400px;
    background: #1e293b;
    color: #f1f5f9;
    border-radius: 16px;
    padding: 28px 24px 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.amazon-sms-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
}

.amazon-sms-modal__close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.amazon-sms-modal__title {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 700;
}

.amazon-sms-modal__hint {
    margin: 0 0 20px;
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.5;
}

.amazon-sms-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
    font-size: 0.8rem;
    color: #cbd5e1;
}

.amazon-sms-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0f172a;
    color: #fff;
    font-size: 1rem;
}

.amazon-sms-field input:focus {
    outline: none;
    border-color: #6366f1;
}

.amazon-sms-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 14px;
}

.amazon-sms-field--grow {
    flex: 1;
    margin-bottom: 0;
}

.amazon-sms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.amazon-sms-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.amazon-sms-btn--primary {
    width: 100%;
    margin-top: 8px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}

.amazon-sms-btn--primary:hover:not(:disabled) {
    filter: brightness(1.05);
}

.amazon-sms-btn--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    align-self: flex-end;
    margin-bottom: 14px;
}

.amazon-sms-message {
    min-height: 1.25em;
    font-size: 0.85rem;
    margin: 0 0 10px;
    color: #86efac;
}

.amazon-sms-message.is-error {
    color: #fca5a5;
}
