/**
 * Confirm Modal 樣式
 */

/* Modal 內容區域 */
#globalConfirmModal .confirm-modal-message {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    white-space: pre-line; /* 保留換行 */
    max-height: 60vh;
    overflow-y: auto;
}

/* Modal 標題圖示 */
#globalConfirmModal .modal-title i {
    font-size: 1.3em;
}

/* Modal 按鈕間距 */
#globalConfirmModal .modal-footer {
    gap: 8px;
}

/* 不同類型的顏色強調 */
#globalConfirmModal .modal-header {
    padding: 1.25rem 1.5rem;
}

#globalConfirmModal .modal-body {
    padding: 1rem 1.5rem 1.5rem;
}

#globalConfirmModal .modal-footer {
    padding: 1rem 1.5rem 1.25rem;
}

/* 訊息區域樣式 */
#globalConfirmModal .confirm-modal-message {
    padding: 0.5rem 0;
}

/* 滾動條樣式 (針對長訊息) */
#globalConfirmModal .confirm-modal-message::-webkit-scrollbar {
    width: 6px;
}

#globalConfirmModal .confirm-modal-message::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#globalConfirmModal .confirm-modal-message::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

#globalConfirmModal .confirm-modal-message::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 遮罩背景 */
#globalConfirmModal.modal {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Modal 進場動畫 */
#globalConfirmModal.fade .modal-dialog {
    transition: transform 0.2s ease-out;
}

#globalConfirmModal.show .modal-dialog {
    transform: none;
}

/* 按鈕樣式調整 */
#globalConfirmModal .btn {
    min-width: 80px;
    font-weight: 500;
}

/* 危險操作的按鈕顏色 */
#globalConfirmModal .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

#globalConfirmModal .btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* 警告操作的按鈕顏色 */
#globalConfirmModal .btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

#globalConfirmModal .btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    color: #212529;
}

/* 響應式調整 */
@media (max-width: 576px) {
    #globalConfirmModal .modal-dialog {
        margin: 1rem;
    }
    
    #globalConfirmModal .confirm-modal-message {
        font-size: 14px;
    }
}

/* 購物車折疊區塊樣式 */
.card-header .btn-link {
    color: #212529;
    text-decoration: none;
}

.card-header .btn-link:hover {
    color: #007bff;
    text-decoration: none;
}

.card-header .btn-link i.bi-chevron-down {
    transition: transform 0.2s ease;
    font-size: 1.2em;
}

.card-header .btn-link:not(.collapsed) i.bi-chevron-down {
    transform: rotate(180deg);
}

.card-header .btn-link:focus {
    box-shadow: none;
    outline: none;
}

