/**
 * Mini Cart Popup Styling
 */

.mini-cart-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.mini-cart-popup-overlay.active {
    opacity: 1;
}

.mini-cart-popup {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.mini-cart-popup-overlay.active .mini-cart-popup {
    transform: scale(1) translateY(0);
}

.mini-cart-popup-header {
    text-align: center;
    margin-bottom: 24px;
    position: relative;
}

.mini-cart-popup-header .close-popup {
    position: absolute;
    top: -8px;
    right: -8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #64748B;
    padding: 8px;
    line-height: 1;
    transition: color 0.2s ease;
}

.mini-cart-popup-header .close-popup:hover {
    color: #2aa9f8;
}

.mini-cart-popup-header .checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #2aa9f8;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3;
    stroke: #2aa9f8;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

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

.mini-cart-popup-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 8px 0;
    font-family: 'Montserrat', sans-serif;
}

.mini-cart-popup-actions {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.mini-cart-popup-actions .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
    border: none;
    cursor: pointer;
}

.mini-cart-popup-actions .btn-checkout {
    background: linear-gradient(to right, #2aa9f8, #204085);
    color: white;
}

.mini-cart-popup-actions .btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(42, 169, 248, 0.4);
}

.mini-cart-popup-actions .btn-view-cart {
    background: white;
    color: #2aa9f8;
    border: 2px solid #2aa9f8;
}

.mini-cart-popup-actions .btn-view-cart:hover {
    background: #2aa9f8;
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .mini-cart-popup {
        padding: 24px;
    }
    
    .mini-cart-popup-header h3 {
        font-size: 20px;
    }
    
    .mini-cart-popup-header .checkmark {
        width: 60px;
        height: 60px;
    }
}
