/* css/style.css */
#coupon-window {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: flex-end;
    align-items: flex-start;
    z-index: 999999;
}

.coupon-window-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    max-width: 400px;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    position: relative;
}

.coupon-window-header {
    text-align: center;
    margin-bottom: 20px;
    padding-right: 30px; /* Make space for close button */
}

.coupon-window-header h3 {
    margin: 0;
}

.close-coupon-window {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    color: black;
}

#coupon-code {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
}

#apply-coupon {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    font-size: 16px;
    display: block;
    margin: 0 auto;
}

#available-coupons {
    margin-top: 30px;
}

.coupon-item {
    background-color: #f0f0f0;
    padding: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

.coupon-item:hover {
    background-color: #e0e0e0;
}

.woocommerce-mini-cart__coupon-section {
    margin: 10px 20px;
}

.coupon-button {
    width: 100%;
    text-align: center;
    color: black !important;
    border-color: black !important;
    background-color: white !important;
    transition: all 0.3s ease;
}

.coupon-button:hover {
    color: white !important;
    background-color: black !important;
    border-color: black !important;
}

@media (max-width: 768px) {
    #coupon-window {
        align-items: center;
    }
    
    .coupon-window-content {
        height: auto;
        max-height: 90vh;
    }
}

.wc-mini-cart-popup {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000000;
}

.wc-mini-cart-popup-content {
    background-color: #fff;
    max-width: 300px;
    margin: 100px auto;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

#wc-mini-cart-popup-message {
    margin-bottom: 20px;
}

#wc-mini-cart-popup-close {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 3px;
}

#wc-mini-cart-popup-close:hover {
    background-color: #45a049;
}