.modal-backdrop-icard #dialog {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    padding: 24px;
    border-radius: 8px;
    z-index: 1000;
    width: 480px; /* 固定寬度 */  
    height: 185px; /* 固定高度 */
}

/*小於992px 會變成328px*/
@media (max-width: 992px) {
    .modal-backdrop-icard #dialog {
        width: 426px; /* 小於992px時的寬度 */
    }
}

.modal-backdrop-icard .modal {
    display: block; /* 用於顯示彈窗 */
}

/* 視窗背景遮罩 */
.modal-backdrop-icard {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.hidden {
    display: none;
}

.modal-backdrop-icard #iCardLoginTitle {
    margin-bottom: 20px; /* 下邊距 */
    font-weight: 1000; /* 粗體字 */
    font-size: 18px; /* 字體大小 */
    line-height: 24px; /* 行高 */
    color: #4A4A4A; /* 字體顏色，這裡可以根據需要調整 */
    margin-right: 4px; /* 右邊距 */
}

.modal-backdrop-icard #iCardLoginMessage {
    font-size: 14px; /* 字體大小 */
    font-weight: 700; /* 粗體字 */
    line-height: 20px; /* 行高 */
    color: #6B7280; /* 字體顏色，這裡可以根據需要調整 */
    margin-bottom: 32px; /* 下邊距 */
}

.modal-backdrop-icard .flex {
    display: flex;
    justify-content: center; /* 使按鈕居中 */
    gap: 16px; /* 增加按鈕間的間距 */
}

.modal-backdrop-icard .custom-cancel-btn,
.modal-backdrop-icard .custom-confirm-btn {
    width: 132px; /* 固定寬度 */
    height: 32px; /* 固定高度 */
    font-size: 14px; /* 字體大小 */
    border-radius: 4px; /* 圓角 */
    border: none; /* 移除邊框 */
    cursor: pointer; /* 鼠標懸停時顯示為手型 */
}

.modal-backdrop-icard .custom-cancel-btn {
    background-color: #ccc; /* 取消按鈕的背景顏色 */
    color: #fff; /* 取消按鈕的文字顏色 */
}

.modal-backdrop-icard .custom-confirm-btn {
    background-color: #00acbe; /* 確認按鈕的背景顏色 */
    color: #fff; /* 確認按鈕的文字顏色 */
}

/* 增加懸停效果 */
.modal-backdrop-icard .custom-cancel-btn:hover {
    background-color: #b3b3b3; /* 懸停顏色 */
}

.modal-backdrop-icard .custom-confirm-btn:hover {
    background-color: #008b99; /* 懸停顏色 */
}

.modal-backdrop-icard #closeBtn {
    position: absolute; /* 確保使用絕對定位 */
    top: 10px; /* 距離上邊界的距離 */
    right: 10px; /* 距離右邊界的距離 */
    width: 40px; /* 寬度 */
    height: 40px; /* 高度 */
    display: flex; /* 使用 Flexbox 進行內容居中 */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    cursor: pointer; /* 鼠標懸停時顯示為手型 */
    background: transparent; /* 背景透明 */
    border: none; /* 無邊框 */
    color: #000; /* 字體顏色 */
    font-size: 20px; /* 字體大小 */
}

.modal-backdrop-icard #closeBtn:hover {
    color: #ff0000; /* 懸停時的顏色 */
}

.modal-backdrop-icard a {
    color: #00acbe;
}