.checkout-coupon-area {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.checkout-coupon-group {
    display: flex;
    gap: 0.5rem;
}

.checkout-coupon-input {
    flex: 1;
    padding: 0.55rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.8125rem;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.04em;
    outline: none;
    background: #ffffff;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkout-coupon-input:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

.btn-apply-checkout-coupon {
    background: #2e7d32;
    color: #ffffff;
    border: none;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-apply-checkout-coupon:hover {
    background: #1b5e20;
}

.btn-view-all-coupons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #1e293b;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-view-all-coupons:hover {
    background: #f1f5f9;
    border-color: #2e7d32;
    color: #2e7d32;
}

.btn-view-all-coupons i {
    color: #2e7d32;
}

.coupons-count-pill {
    background: #e2e8f0;
    color: #334155;
    font-size: 0.6875rem;
    padding: 0.1rem 0.45rem;
    border-radius: 12px;
    font-weight: 700;
}

.coupon-modal-backdrop {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    box-sizing: border-box;
}

.coupon-modal-backdrop.open,
.coupon-modal-backdrop.show {
    display: flex;
}

.coupon-modal-window {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    border-radius: 14px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 3rem);
    margin: auto;
    overflow: hidden;
    position: relative;
    z-index: 1000000;
    animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Nirmala UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.coupon-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.coupon-modal-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
}

.coupon-modal-title i {
    color: #2e7d32;
}

.btn-close-coupon-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-close-coupon-modal:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.coupon-modal-body {
    padding: 1rem 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.coupon-modal-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.9rem 1.1rem;
    background: #ffffff;
    transition: all 0.2s ease;
}

.coupon-modal-card.card-eligible {
    border-color: #bbf7d0;
    background: #fafffa;
}

.coupon-modal-card.card-eligible:hover {
    border-color: #2e7d32;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.08);
}

.coupon-modal-card.card-applied {
    border-color: #10b981;
    background: #ecfdf5;
}

.coupon-modal-card.card-disabled {
    opacity: 0.82;
    background: #f8fafc;
    border-color: #e2e8f0;
}

.coupon-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.coupon-card-code-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f0fdf4;
    color: #166534;
    border: 1px dashed #86efac;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-family: monospace;
}

.coupon-card-code-badge.badge-code-locked,
.coupon-modal-card.card-disabled .coupon-card-code-badge {
    background: #f1f5f9;
    color: #64748b;
    border: 1px dashed #cbd5e1;
}

.btn-modal-apply {
    background: #2e7d32;
    color: #ffffff;
    border: none;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-modal-apply:hover {
    background: #1b5e20;
}

.btn-modal-apply.disabled {
    background: #e2e8f0 !important;
    color: #64748b !important;
    cursor: not-allowed !important;
    border: 1px solid #cbd5e1 !important;
    pointer-events: none;
}

.coupon-status-applied {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #059669;
    background: #dcfce7;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    font-size: 0.7188rem;
    font-weight: 700;
}

.coupon-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.coupon-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.coupon-card-discount {
    font-size: 0.8125rem;
    color: #059669;
    font-weight: 700;
    font-family: "Nirmala UI", system-ui, sans-serif;
}

.coupon-modal-card.card-disabled .coupon-card-discount {
    color: #64748b;
}

.coupon-card-meta-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.7188rem;
    color: #64748b;
    margin-top: 2px;
}

.coupon-card-minspend {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 400;
    font-family: "Nirmala UI", system-ui, sans-serif;
}

.coupon-margin-status.eligible {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #059669;
    font-weight: 600;
}

.coupon-card-shortfall {
    font-size: 0.7188rem;
    color: #dc2626;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-weight: 600;
    margin-top: 6px;
    background: #fef2f2;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #fecaca;
    line-height: 1.4;
    font-family: "Nirmala UI", system-ui, sans-serif;
}

.coupon-card-shortfall i {
    margin-top: 2px;
    flex-shrink: 0;
}

.coupon-modal-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #94a3b8;
}

.coupon-modal-empty i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.coupon-modal-empty p {
    margin: 0;
    font-size: 0.8438rem;
}