/**
 * WooCommerce Special Promotion - Frontend Styles
 *
 * @package WooCommerce_Special_Promotion
 */

/* Coupon Modal */
.wcsp-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
}

.wcsp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.wcsp-modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    margin: 10% auto;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000000;
}

.wcsp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.wcsp-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.wcsp-modal-close {
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcsp-modal-close:hover {
    color: #333;
}

.wcsp-modal-body {
    padding: 20px;
}

.wcsp-modal-body p {
    margin: 0 0 15px;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.wcsp-modal-body p:last-child {
    margin-bottom: 0;
}

.wcsp-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e5e5e5;
    text-align: right;
}

.wcsp-modal-ok {
    padding: 10px 30px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.wcsp-modal-ok:hover {
    background: #135e96;
}

/* Coupon Disabled Notice */
.wcsp-coupon-disabled-notice {
    padding: 15px;
    margin: 15px 0;
    background: #e7f3ff;
    border-left: 4px solid #2271b1;
    font-size: 14px;
}

/* Hide default coupon fields when disabled */
.wcsp-coupons-disabled .woocommerce-form-coupon-toggle,
.wcsp-coupons-disabled .coupon,
.wcsp-coupons-disabled form.checkout_coupon,
.wcsp-coupons-disabled .woocommerce-form-coupon {
    display: none !important;
}

/* Price Display with Promotion */
.price del {
    opacity: 0.7;
    text-decoration: line-through;
}

.price ins {
    background: transparent;
    font-weight: 600;
    text-decoration: none;
}

/* Promotion Badge (Optional) */
.wcsp-promotion-badge {
    display: inline-block;
    padding: 4px 10px;
    margin-left: 10px;
    background: #28a745;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
    text-transform: uppercase;
}

/* Responsive Modal */
@media screen and (max-width: 768px) {
    .wcsp-modal-content {
        width: 95%;
        margin: 20% auto;
    }

    .wcsp-modal-header h3 {
        font-size: 16px;
    }

    .wcsp-modal-body {
        padding: 15px;
    }

    .wcsp-modal-footer {
        padding: 10px 15px;
    }
}
