/* This file is reserved for overriding and extending the template styles. */

/* 修復 baguetteBox 在手機滾動後的定位問題 */
#baguetteBox-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
}

/* 確保 body 在 baguetteBox 開啟時不會滾動 */
body.baguetteBox-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* 圖片卡片選取狀態樣式 */
.img-card {
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid #e6e6e6 !important;
    border-radius: var(--border-radius-lg);
}

.card-selected {
    border: 2px solid #a772cb !important;
    box-shadow: 0 0.5rem 1.5rem rgba(13, 110, 253, 0.3) !important;
    transform: translateY(-4px);
}

.card-selected::before {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background-color:#a772cb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.card-selected .card-img-top {
    opacity: 0.95;
}

/* QRCode 頁面樣式 */
#qrcode-container {
    min-height: 300px;
    padding: 20px;
}

#qrcode-container img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-control:disabled,.form-control[readonly]{
    background-color: #ffffff !important;
    opacity:1
}