/* GameX modv1 coupon UI. Loaded globally because cart content is Swup-driven. */
.gmx-coupon-field {
    min-width: 0;
}

.gmx-coupon-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.gmx-coupon-row .gmx-input,
.gmx-coupon-input {
    flex: 1 1 auto;
    min-width: 0;
    text-transform: uppercase;
}

.gmx-coupon-btn,
.gmx-coupon-clear {
    border: 0;
    border-radius: 14px;
    min-height: 48px;
    padding: 0 18px;
    font-weight: 900;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    transition: transform .16s ease, opacity .16s ease, box-shadow .16s ease, background .16s ease;
}

.gmx-coupon-btn {
    color: #fff;
    background: linear-gradient(135deg, #ff8a1f, #ff4d00);
    box-shadow: 0 14px 28px rgba(255, 106, 0, .22);
}

.gmx-coupon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(255, 106, 0, .28);
}

.gmx-coupon-btn:disabled,
.gmx-coupon-btn.is-loading {
    opacity: .72;
    cursor: wait;
    transform: none;
}

.gmx-coupon-clear {
    width: 48px;
    padding: 0;
    color: #ef4444;
    background: rgba(239, 68, 68, .12);
}

.gmx-coupon-clear:hover {
    background: rgba(239, 68, 68, .18);
}

.discount_message {
    display: block;
    min-height: 18px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.discount_message.true,
.discount_message.is-success {
    color: #22c55e;
}

.discount_message.false,
.discount_message.is-error {
    color: #ef4444;
}

.discount_message.is-loading {
    color: #f97316;
}

.coupon_completed,
.gmx-coupon-input.is-valid {
    border-color: rgba(34, 197, 94, .75) !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .10);
}

.coupon_danger,
.gmx-coupon-input.is-invalid {
    border-color: rgba(239, 68, 68, .78) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .10);
}

.gmx-coupon-discount-input {
    color: #22c55e !important;
    font-weight: 900 !important;
}

@media (max-width: 640px) {
    .gmx-coupon-row {
        flex-direction: column;
        align-items: stretch;
    }

    .gmx-coupon-btn,
    .gmx-coupon-clear {
        width: 100%;
    }
}
