@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

/* ── Backdrop ────────────────────────────────────────────── */
.promocode-modal-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    font-family: 'Lato', sans-serif;
}

.promocode-modal-backdrop.is-visible {
    display: flex;
}

/* ── Dialog ──────────────────────────────────────────────── */
.promocode-modal {
    position: relative;
    background: #fff;
    width: min(90vw, 590px);
    border-radius: 20px;
    padding: 0;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    z-index: 1;
    text-align: left;
}

.promocode-modal__body {
    padding: 48px 40px 40px;
}

.promocode-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    border: none;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    color: #000;
    font-weight: 400;
    padding: 0;
    width: 32px;
    height: 32px;
}

.promocode-modal__title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 28px;
    color: #000;
    line-height: 1.2;
    text-align: center;
}

/* ── Info / Error alerts ─────────────────────────────────── */
.promocode-modal__info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
}

.promocode-modal__error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
}

/* ── Form ────────────────────────────────────────────────── */
.promocode-modal__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 0;
}

.promocode-modal__input-group {
    display: flex;
    flex-direction: column;
    padding: 0 24px;
}

.promocode-modal input[type="text"].promocode-modal__input {
    width: 100%;
    padding: 18px 24px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    text-transform: none;
    letter-spacing: normal;
    background: #fff !important;
    color: #000 !important;
    box-sizing: border-box;
    outline: none;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
}

.promocode-modal__input::placeholder {
    color: #9ca3af;
    font-size: 15px;
    font-weight: 400;
}

.promocode-modal input[type="text"].promocode-modal__input:focus {
    outline: none !important;
    border-color: #000 !important;
    box-shadow: none !important;
}

.promocode-modal__submit-row {
    display: flex;
    justify-content: center;
}

.promocode-modal__submit {
    background: #000;
    color: #fff;
    border: none;
    padding: 18px 56px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.promocode-modal__submit:hover {
    opacity: 0.9;
}

.promocode-modal__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Area form ───────────────────────────────────────────── */
.promocode-modal__area-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.promocode-modal__selection {
    font-size: 15px;
    color: #333;
    margin: 0;
}

.promocode-modal__select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 15px;
    background: #fff;
    color: #111827;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.promocode-modal__select:focus {
    outline: none;
    border-color: #000;
}

/* ── Utility classes ─────────────────────────────────────── */
.d-none {
    display: none !important;
}

.mt-3 {
    margin-top: 12px;
}

/* ── Trigger button ──────────────────────────────────────── */
.code-promo-trigger {
    border: 1px solid #333;
    padding: 10px 20px;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease, border-color 0.2s ease;
    font-weight: 500;
    white-space: nowrap;
    font-family: 'Lato', sans-serif;
}

.code-promo-trigger:hover {
    background: #f9fafb;
    border-color: #111;
    color: #333;
}

.code-promo-trigger i {
    font-size: 18px;
    line-height: 1;
}

/* ── Body lock ───────────────────────────────────────────── */
body.promocode-modal-open {
    overflow: hidden;
}
