/**
 * WooCommerce Inline Payment Gateway
 * Stylesheet for Buy Now button, cart notification, and instant checkout
 * 
 * @package WC_Inline_Payment
 * @version 1.0.0
 */

/* ===================================
   Custom Cart Notification Popup
   =================================== */

.hal-cart-notification {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.hal-cart-notification.show {
    opacity: 1;
    visibility: visible;
}

.hal-cart-notification-content {
    background: #fff;
    border-radius: 16px;
    padding: 40px 35px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}

.hal-cart-notification.show .hal-cart-notification-content {
    transform: translateY(0) scale(1);
}

.hal-cart-notification-header {
    position: relative;
    margin-bottom: 20px;
}

.hal-close-notification {
    position: absolute;
    top: -20px;
    right: -15px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
    padding: 0;
    width: 30px;
    height: 30px;
}

.hal-close-notification:hover {
    color: #fff;
}

/* Success Checkmark Animation */
.hal-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
}

.hal-success-circle {
    stroke: #4CAF50;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.hal-success-check {
    stroke: #4CAF50;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

.hal-cart-notification h3 {
    font-size: 26px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px;
    line-height: 1.3;
}

.hal-product-name {
    font-size: 15px;
    color: #666;
    margin: 0 0 25px;
    font-weight: 500;
}

.hal-cart-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.hal-view-cart-btn,
.hal-checkout-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    cursor: pointer;
}

.hal-view-cart-btn {
    background: #f0f0f0;
    color: #333;
    border: 2px solid #e0e0e0;
}

.hal-view-cart-btn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hal-checkout-btn {
    background: #4CAF50;
    color: #fff;
    border: 2px solid #4CAF50;
}

.hal-checkout-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.hal-continue-shopping {
    background: transparent;
    border: none;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    padding: 10px;
    transition: color 0.2s;
    text-decoration: underline;
}

.hal-continue-shopping:hover {
    color: #fff;
}

/*a:hover{
	color:#222 !important;
	text-decoration:underline;
}
*/

/* Mobile Responsive */
@media (max-width: 600px) {
    .hal-cart-notification-content {
        padding: 30px 25px;
        width: 95%;
    }
    
    .hal-cart-notification h3 {
        font-size: 22px;
    }
    
    .hal-cart-actions {
        flex-direction: column;
    }
    
    .hal-view-cart-btn,
    .hal-checkout-btn {
        width: 100%;
    }
    
    .hal-success-icon {
        width: 60px;
        height: 60px;
    }
}

/* Hide default WooCommerce message on single product pages */
body.single-product .woocommerce-message, a.added_to_cart.wc-forward {
    display: none !important;
}

button.single_add_to_cart_button[name="add-to-cart"] {
    margin-right: 20px !important;
}