/* ================================
   重複購入確認モーダル
================================ */
#duplicateModal.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 400;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

/* モーダル本体 */
#duplicateModal .modal-content {
    background-color: #f4f4f4;
    margin: auto;
    width: 90vw;
    max-width: 560px;
    box-shadow: 0 5px 8px 0 rgba(0,0,0,0.2),0 7px 20px 0 rgba(0,0,0,0.17);
    animation-name: modalopen;
    animation-duration: 1s;
    z-index: 300;
}

#duplicateModal .modal-content h1 {
    border-left: none;
    color: #cc3a00;
}

#duplicateModal .modal-content h1::after {
    border-bottom: none;
}

#duplicateModal .modal-header h1 {
    margin: 1rem 0;
}

#duplicateModal .modal-header {
    background: #fff3f2;
    padding: 3px 15px;
    display: flex;
    justify-content: space-between;
}

#duplicateModal .modal-body {
    padding: 10px 20px;
    background: #fcfcfc;
}

#duplicate-modal {
    padding-top: 20px;
    padding-bottom: 20px;
}

#duplicate-modal p {
    font-size: 1em;
    line-height: 1.5em;
    margin: 1rem 1em 3rem;
}

#duplicate-modal #duplicate-works-container {
    margin: 1rem auto;
}

#duplicate-works-container .duplicate-title {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0.5rem;
}
#duplicate-works-container .duplicate-title-label {
    font-size: 0.9rem;
    font-weight: 500;
    padding-left: 0.5rem;
    min-width: 60px;
}
#duplicate-works-container .duplicate-title-name {
    font-size: 1rem;
    font-weight: 600;
}

/* ボタンエリア */
#duplicateModal .modal-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 1rem;
}

/* ボタン共通 */
#duplicateModal .modal-btns button {
    flex: 1;
    height: 44px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    border: none;
}

/* 買わないボタン */
#dup-cancel {
    background: #0092cc;
    color: #fff;
}

#dup-cancel i {
    padding-right: 0.5rem;
}
    /* 買うボタン */
#dup-ok {
    background: #ecf0f1;
    color: #333;

}

@media (min-width: 768px) {
    #duplicateModal .modal-content p {
        font-size: 1.1em;
    }
}
