@charset "UTF-8";

/* =========================================
   カートページ 数量制限エラーテキスト
========================================= */
.cart-limit-error-msg {
    display: block;
    color: #cc0000;
    font-size: 12px;
    font-weight: bold;
    margin-top: 8px;
    padding: 5px 8px;
    background-color: #ffeeee;
    border: 1px solid #ffcccc;
    border-radius: 3px;
    line-height: 1.4;
    text-align: left;
    max-width: 90%;
    box-sizing: border-box;
    margin: 5px auto 0;
}

/* =========================================
   商品ページ ポップアップ用
========================================= */
.limit-modal-overlay {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    animation: fadeInLimit 0.3s ease;
}

.limit-modal-content {
    background-color: #fff;
    padding: 40px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    width: fit-content;
    text-align: center;
    animation: slideDownLimit 0.3s ease;
    max-width: 90%;
    box-sizing: border-box;
}

.limit-modal-text {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    margin: 0;
    font-weight: bold;
    text-align: left;
}

.limit-modal-text::before {
    content: "!";
    display: block;
    font-size: 24px;
    color: #fff;
    background-color: #cd5c5c;
    width: 45px;
    height: 45px;
    line-height: 46px;
    border-radius: 50%;
    margin: 0 auto 15px auto;
    font-weight: 600;
    font-family: "游ゴシック" , "Yu Gothic" , "游ゴシック体" , "YuGothic" , "ヒラギノ角ゴ Pro W3" , "Hiragino Kaku Gothic Pro" , "Meiryo UI" , "メイリオ" , Meiryo , "ＭＳ Ｐゴシック" , "MS PGothic" , sans-serif;
    text-align: center;
}

.limit-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.limit-modal-close:hover {
    color: #333;
}

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

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