.cart-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cart-popup {
    background: white;
    padding: 30px;
    border: 1px solid #ddd;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: slideIn 0.3s ease-in-out;
    position: relative;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cart-popup-content h3 {
    margin-bottom: 20px;
    color: #666;
    font-size: 18px;
}

.cart-popup-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cart, .btn-continue {
    padding: 10px 40px;
    border: 1px solid #666;
    cursor: pointer;
    font-size: 1.5rem;
    font-family: "游ゴシック","Yu Gothic",YuGothic,"Noto Sans","ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","メイリオ",Meiryo,Osaka,"ＭＳ Ｐゴシック","MS PGothic",sans-serif;
    transition: all 0.4s;
    min-width: 140px;
}

.btn-cart {
    background-color: #666;
    color: white;
}

.btn-cart:hover {
    opacity: 0.7;
}

.btn-continue {
    background-color: white;
    color: #666;
}

.btn-continue:hover {
    opacity: 0.7;
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
    .cart-popup {
        padding: 20px;
        width: 95%;
        max-width: 400px;
    }
    
    .cart-popup-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-cart, .btn-continue {
        width: 100%;
        font-size: 1.6rem;
    }
}