/* =============================================
   COUPON CODE SECTION - sharasa Summerangan 2026
   Add this AFTER your existing style CSS links
   ============================================= */

/* Coupon Wrapper */
.coupon-wrapper {
    margin-top: 14px;
    background: #fffbf0;
    border: 1.5px dashed #f5a623;
    border-radius: 10px;
    padding: 12px 14px;
}

.coupon-label {
    font-size: 13px;
    font-weight: 700;
    color: #555;
    margin-bottom: 8px;
    display: block;
}

.coupon-label span {
    color: #f5a623;
}

/* Input Row */
.coupon-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.coupon-input {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Nunito', sans-serif;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
    /* text-transform: uppercase; */
    letter-spacing: 0.5px;
}

.coupon-input:focus {
    border-color: #f5a623;
    box-shadow: 0 0 0 3px rgba(245,166,35,0.12);
}

.coupon-input.error {
    border-color: #e74c3c;
    background: #fff5f5;
}

.coupon-input.success {
    border-color: #27ae60;
    background: #f0fff6;
}

/* Apply Button */
.coupon-apply-btn {
    padding: 8px 16px;
    background: #f5a623;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.1s;
}

.coupon-apply-btn:hover {
    background: #e0941a;
    transform: translateY(-1px);
}

.coupon-apply-btn:active {
    transform: translateY(0);
}

/* Validation Messages */
.coupon-msg {
    font-size: 12px;
    margin-top: 6px;
    font-weight: 600;
    display: none;
    border-radius: 5px;
    padding: 5px 10px;
}

.coupon-msg.error {
    display: block;
    color: #c0392b;
    background: #fdecea;
    border-left: 3px solid #e74c3c;
}

.coupon-msg.success {
    display: block;
    color: #1e8449;
    background: #eafaf1;
    border-left: 3px solid #27ae60;
}

/* Discount Badge (shows after valid coupon) */
.discount-badge {
    display: none;
    align-items: center;
    gap: 6px;
    background: #eafaf1;
    border: 1px solid #27ae60;
    border-radius: 6px;
    padding: 5px 10px;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #1e8449;
}

.discount-badge.visible {
    display: flex;
}

.discount-badge .remove-coupon {
    margin-left: auto;
    cursor: pointer;
    color: #c0392b;
    font-size: 14px;
    line-height: 1;
    background: none;
    border: none;
    font-weight: 900;
    padding: 0 2px;
}

/* Pay Now Button (shows after valid coupon) */
.coupon-pay-btn {
    display: none;
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
    text-align: center;
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, #27ae60, #1e8449);
    color: #fff;
    transition: opacity 0.2s, transform 0.1s;
    text-decoration: none;
}

.coupon-pay-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

.coupon-pay-btn.visible {
    display: block;
}

/* Divider */
.coupon-divider {
    text-align: center;
    font-size: 11px;
    color: #aaa;
    margin: 10px 0 4px;
    font-style: italic;
}

/* Shake animation for wrong coupon */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.coupon-input.shake {
    animation: shake 0.4s ease;
}