/* Основные стили для попапа */
.wc-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Затемнение фона */
.wc-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

/* Контент попапа */
.wc-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 550px;
    animation: slideIn 0.3s ease-out;
}

/* Анимация появления */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Заголовок попапа */
.wc-popup-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.wc-popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.wc-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    font-weight: 300;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.wc-popup-close:hover {
    color: #111827;
}

/* Тело попапа */
.wc-popup-body {
    padding: 24px;
}

.wc-popup-body p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #374151;
}

/* Футер попапа */
.wc-popup-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
}

/* Кнопки */
.wc-popup-btn {
    flex: 1;
    display: inline-block;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.wc-popup-btn-cart {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.wc-popup-btn-cart:hover {
    background: #e5e7eb;
    color: #111827;
    text-decoration: none;
}

.wc-popup-btn-checkout {
    background: #5dab1d;
    color: white;
    border: none;
}

.wc-popup-btn-checkout:hover {
    background: #5dab1d;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 640px) {
    .wc-popup-content {
        width: 95%;
        margin: 0 10px;
    }
    
    .wc-popup-footer {
        flex-direction: column;
    }
    
    .wc-popup-btn {
        text-align: center;
    }
    
    .wc-popup-header h3 {
        font-size: 16px;
    }
    
    .wc-popup-body p {
        font-size: 14px;
    }
}