/**
 * Checkout coupon field – loaded separately so live deploy/cache bust stays reliable.
 * Uses ID selectors to override global input/button resets and WooCommerce styles.
 */
#checkout-view #checkout-coupon-wrap.checkout-coupon-box {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color, rgba(15, 23, 42, 0.08));
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

#checkout-view #checkout-coupon-wrap > label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
}

#checkout-view #checkout-coupon-wrap .checkout-coupon-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

#checkout-view #checkout-coupon-code.checkout-coupon-input,
#checkout-view #checkout-coupon-wrap input#checkout-coupon-code {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color, rgba(15, 23, 42, 0.12)) !important;
    border-radius: var(--radius-sm, 6px);
    background: var(--bg-surface-solid, #ffffff) !important;
    color: var(--text-primary, #0f172a) !important;
    font-size: 14px;
    line-height: 1.4;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    min-height: 44px;
}

#checkout-view #checkout-coupon-code:focus {
    outline: none;
    border-color: var(--accent, #059669) !important;
    box-shadow: 0 0 0 3px var(--accent-light, rgba(5, 150, 105, 0.08));
}

#checkout-view #checkout-coupon-apply.btn-coupon-apply,
#checkout-view #checkout-coupon-wrap button#checkout-coupon-apply {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 10px 16px;
    border: none !important;
    border-radius: var(--radius-sm, 6px);
    background: linear-gradient(135deg, #54dbff 0%, #008aff 52%, #0056b4 100%) !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    min-height: 44px;
}

#checkout-view #checkout-coupon-apply:hover:not(:disabled) {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

#checkout-view #checkout-coupon-apply:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

#checkout-view #checkout-coupon-message.checkout-coupon-message {
    margin: 0;
    font-size: 12.5px;
    font-weight: 600;
}

#checkout-view #checkout-coupon-message.is-success {
    color: var(--success, #059669);
}

#checkout-view #checkout-coupon-message.is-error {
    color: var(--danger, #ef4444);
}
