/**
 * Add-to-cart success popup — styles
 * Pair with the updated card.js (showSuccessPopup)
 */

body.card-atc-popup-open {
    overflow: hidden;
}

.card-atc-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 16px;
    animation: card-atc-fade-in 0.2s ease-out;
}

@keyframes card-atc-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.card-atc-popup {
    background: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: card-atc-slide-up 0.25s ease-out;
}

@keyframes card-atc-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card-atc-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 4px 8px;
}

.card-atc-popup-close:hover {
    color: #000;
}

.card-atc-popup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    font-size: 16px;
}

.card-atc-popup-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2ecc71;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}

.card-atc-popup-body {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
}

.card-atc-popup-image {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
    flex-shrink: 0;
}

.card-atc-popup-info {
    flex: 1;
    min-width: 0;
}

.card-atc-popup-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.card-atc-popup-attrs {
    color: #777;
    font-size: 13px;
    margin-bottom: 6px;
}

.card-atc-popup-qty {
    font-size: 13px;
    color: #444;
    margin-bottom: 4px;
}

.card-atc-popup-price {
    font-weight: 600;
    font-size: 15px;
}

.card-atc-popup-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid #eee;
}

.card-atc-popup-cart-summary {
    font-size: 13px;
    color: #555;
    margin-bottom: 14px;
}

.card-atc-popup-actions {
    display: flex;
    gap: 10px;
}

.card-atc-popup-continue,
.card-atc-popup-checkout {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid #ddd;
    transition: background 0.15s;
}

.card-atc-popup-continue {
    background: #fff;
    color: #333;
}

.card-atc-popup-continue:hover {
    background: #f5f5f5;
}

.card-atc-popup-checkout {
    background: #2ecc71;
    color: #fff;
    border-color: #2ecc71;
}

.card-atc-popup-checkout:hover {
    background: #27ae60;
}