/* ONEONELITE Lite - Product Detail Page Styles (extracted)
   注意：僅抽離樣式，未更動任何配色或版面結構 */

/* 變量定義 */
:root {
  --primary-color: #d1080f;
  --primary-hover: rgb(189, 7, 13);
  --secondary-color: #f8f9fa;
  --text-primary: #333;
  --text-secondary: #666;
  --text-light: #767676;
  --border-color: #dee2e6;
  --white: #ffffff;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --danger-hover: #bd2130;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.15);
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --font-xs: 0.75rem;
  --font-sm: 0.875rem;
  --font-md: 1rem;
  --font-lg: 1.1rem;
  --font-xl: 1.2rem;
  --font-2xl: 1.5rem;
  --font-3xl: 2rem;
  --radius-sm: 12px;
  --radius-md: 15px;
  --radius-lg: 20px;
  --transition-base: all 0.2s ease;
  --transition-smooth: all 0.3s ease;
}

/* 商品詳情頁面樣式 */
.product-image { width: 100%; border-radius: var(--radius-md); }
.product-gallery { display: flex; gap: var(--spacing-sm); margin-top: var(--spacing-md); flex-wrap: wrap; }
.gallery-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; border: 2px solid transparent; transition: var(--transition-base); }
.gallery-thumb:hover { border-color: var(--primary-color); }
.gallery-thumb.active { border-color: var(--primary-color); box-shadow: var(--shadow-sm); }

.product-title { font-size: var(--font-2xl); font-weight: 600; color: var(--text-primary); margin-bottom: var(--spacing-md); text-align: left; }
h1.product-title,
.product-info h1.product-title,
body h1.product-title {
  padding: 0 !important;
  margin: 0 0 var(--spacing-md) 0 !important;
  font-size: var(--font-2xl) !important;
  font-weight: 600 !important;
  text-align: left !important;
}
.product-price { font-size: var(--font-2xl); font-weight: bold; color: var(--primary-color); margin-bottom: var(--spacing-md); text-align: left; }

.discount-badges { display: flex; gap: var(--spacing-sm); margin-bottom: var(--spacing-lg); flex-wrap: wrap; justify-content: flex-start; }
.badge-discount { padding: 0 1rem; border-radius: 16px; font-weight: 500; font-size: var(--font-sm); color: white; height: 32px; display: inline-flex; align-items: center; justify-content: center; line-height: 1.5; }
.badge-green { background-color: #28a745; }
.badge-success { background-color: #28a745; }
.badge-orange { background-color: #fd7e14; }
.badge-blue { background-color: #0d6efd; }
.badge-red { background-color: #dc3545; }

.action-buttons { display: flex; gap: 1rem; margin-bottom: 2rem; }
.btn { text-align: center !important; line-height: 1.5 !important; height: auto !important; }
/* 確保 btn-lottery 樣式優先級 */
.btn.btn-lottery,
.btn-lottery {
  flex: 1;
  background-color: var(--primary-color);
  color: white;
  font-size: 1rem !important;
  border: none;
  border-radius: 24px !important;
  transition: var(--transition-base);
  cursor: pointer;
  text-align: center;
  height: 48px !important;
  line-height: 1.5 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}
.btn.btn-lottery:hover,
.btn-lottery:hover {
  background-color: var(--primary-hover);
  color: white;
  border-radius: 24px !important;
  transform: none;
}
.btn-lottery:disabled { background-color: #a9a9a9; color: #313131; cursor: not-allowed; }

.product-details { margin-top: 2rem; }
.detail-tabs { display: flex; border-bottom: 2px solid #f0f0f0; margin-bottom: 2rem; }
.detail-tab { padding: 1rem 2rem; font-weight: 500; color: var(--text-secondary); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: var(--transition-base); }
.detail-tab.active { color: var(--primary-color); border-bottom-color: var(--primary-color); }
.detail-section { margin-bottom: 2rem; display: none; }
.detail-section.active { display: block; }
.detail-content { color: var(--text-secondary); line-height: 1.6; }
.product-info-text { line-height: 1.8; }
.product-info-text strong { color: var(--text-primary); margin-right: 0.5rem; }

/* 籤紙列表樣式 */
.ticket-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.ticket-item {
  background: white;
  padding: 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  flex: 1 1 calc(20% - 0.5rem);
  transition: var(--transition-smooth);
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.ticket-item .lock-icon { position: absolute; top: 5px; left: 5px; width: 20px; height: 20px; background-color: rgb(208 208 208 / 60%); color: #7e7e7e; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 10px; cursor: pointer; transition: var(--transition-base); z-index: 3; }
.ticket-item .lock-icon:hover { background-color: rgba(0, 0, 0, 0.8); transform: scale(1.1); }
.ticket-item .hash-tooltip {
  position: fixed;
  background-color: rgba(0, 0, 0, 0.95);
  color: white;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-family: monospace;
  z-index: 99999;
  display: none;
  word-break: break-all;
  width: 150px;
  line-height: 1.3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  text-align: left;
}
.ticket-item.used .hash-tooltip {
  width: 180px;
}
.ticket-item .lock-icon:hover + .hash-tooltip {
  display: block;
}
.ticket-item .prize-info {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffd700;
  font-weight: bold;
  font-size: 0.75rem;
}
.ticket-item:hover { box-shadow: var(--shadow-lg); border-color: rgba(151, 68, 240, 0.3); }
.ticket-item.selected { border: 2px solid var(--primary-color); background-color: #f8f5ff; position: relative; }
.ticket-item.selected .ticket-number { color: var(--text-primary); }
.ticket-item.selected::after { content: '\f00c'; font-family: 'Font Awesome 5 Free'; font-weight: 900; position: absolute; top: -8px; right: -8px; background-color: var(--primary-color); color: white; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; animation: scaleIn 0.2s ease-out; }
.ticket-item.used {
  background: #f1f1f1 !important;
  color: #6c757d !important;
  border: 2px solid #dee2e6 !important;
}
.ticket-item.used::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, transparent 48.5%, rgba(220, 53, 69, 0.7) 48.5%, rgba(220, 53, 69, 0.7) 51.5%, transparent 51.5%);
  z-index: 4;
  pointer-events: none;
  display: block !important;
}
.ticket-item.used .ticket-number {
  color: #6c757d;
}
.ticket-item.used .lock-icon {
  background-color: #28a745;
  color: white;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(40, 167, 69, 0.4);
  font-size: 12px;
  font-weight: bold;
}
.ticket-number { font-size: 1.2rem; font-weight: bold; color: var(--text-primary); margin: 0; position: relative; z-index: 3; }
.hash-icon { font-size: 1rem; color: var(--primary-color); cursor: pointer; padding: 0.25rem; border-radius: 50%; transition: var(--transition-base); }
.hash-icon:hover { background-color: rgba(151, 68, 240, 0.1); }

/* 選中的籤紙樣式 */
.selected-tickets-container { margin-top: var(--spacing-lg); padding: var(--spacing-md); background-color: var(--secondary-color); border-radius: var(--radius-md); }
.selected-tickets-title { font-weight: 600; margin-bottom: var(--spacing-sm); color: var(--text-primary); }
.selected-tickets-list { display: flex; flex-wrap: wrap; gap: var(--spacing-xs); }
.selected-ticket-item { background-color: var(--primary-color); color: white; padding: 0.25rem 0.5rem; border-radius: var(--radius-sm); font-size: var(--font-sm); cursor: pointer; }
.selected-ticket-item:hover { background-color: var(--primary-hover); }

/* 獎品名稱樣式 */
.prize-name { display: flex; align-items: center; gap: 0.5rem; position: relative; }
.prize-name.is-finished { opacity: 0.5; }
.prize-name .badge { font-weight: normal; font-size: 0.75rem; padding: 0.25rem 0.5rem; min-width: 40px; text-align: center; }
.prize-finished { position: absolute; top: 50%; transform: translateY(-50%); color: var(--danger); font-weight: bold; width: 80px; height: auto; pointer-events: none; z-index: 1; }
tr:nth-child(odd) .prize-name.is-finished .prize-finished { left: 25%; transform: translate(-50%, -50%); }
tr:nth-child(even) .prize-name.is-finished .prize-finished { left: 38%; transform: translate(-50%, -50%); }

/* 計時器卡片樣式 */
.card { border: none; border-radius: var(--radius-md); box-shadow: var(--shadow-md); overflow: hidden; max-width: 100%; margin: 0; }
.card-header { background-color: #222222 !important; color: white; padding: 0.75rem 1.25rem; border-bottom: none; }
.card-body { padding: 1.25rem; }

/* 倒數計時器樣式 */
.clock { min-height: 120px; display: flex; justify-content: center; align-items: center; }
.flip-clock-wrapper { margin: 0 auto; }
.flip-clock-label { display: none !important; }
.flip-clock-wrapper ul { position: relative; float: left; margin: 5px; width: 60px; height: 90px; font-size: 80px; font-weight: bold; line-height: 87px; border-radius: 6px; background: #000; }
.flip-clock-wrapper ul li { z-index: 1; position: absolute; left: 0; top: 0; width: 100%; height: 100%; line-height: 87px; text-decoration: none; }
.flip-clock-wrapper ul li:first-child { z-index: 2; }
.flip-clock-wrapper ul li a { display: block; height: 100%; perspective: 200px; color: #ccc; overflow: hidden; text-align: center; text-decoration: none; position: relative; }

/* 跑馬燈樣式 */
.custom-marquee { background: #01ece9; padding: 10px 20px; overflow: hidden; position: relative; height: 36px; display: flex; align-items: center; font-size: 1rem; width: 100%; min-width: 0; box-sizing: border-box; }
#marquee-content { display: inline-block; color: #000; white-space: nowrap; will-change: transform; animation: marquee-move 6s linear; width: 100%; }
@keyframes marquee-move { 0% { transform: translateX(calc(100% + 20px)); } 100% { transform: translateX(calc(-100% - 20px)); } }

/* 圍觀人數和狀態樣式 */
.info h4 { background-color: #2d2d2d !important; color: #fff !important; font-size: 16px !important; margin: 0; padding: 0.5rem; }
.info h5 { background-color: #ee7200 !important; color: #fff !important; font-size: 16px !important; margin: 0; padding: 0.5rem; }

/* 商品資訊區域整體樣式 */
.col-md-6 { text-align: left; }
.col-md-6 * { text-align: inherit; }

/* 配率表樣式 */
.pro-group { margin-bottom: 2rem; }
.lottery-info-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--border-color); }
.title-text { display: flex; align-items: center; gap: 0.5rem; font-size: var(--font-lg); font-weight: 600; color: var(--text-primary); }
.title-text i { color: var(--primary-color); }
.btn-verify-outline { background: transparent; border: 1px solid var(--primary-color); color: var(--primary-color); border-radius: 18px; font-size: var(--font-sm); height: 36px; }
.btn-verify-outline:hover { background-color: var(--primary-color); color: white; border-radius: 18px; transform: none; transition: background-color 0.2s ease, color 0.2s ease; }
.prize-list .table { margin-bottom: 0; }
.prize-list .table th { background-color: #f8f9fa; border-bottom: 2px solid var(--border-color); font-weight: 600; padding: 0.75rem; white-space: nowrap; }
.prize-list .table th:nth-child(2), .prize-list .table th:nth-child(3) { width: 100px; min-width: 100px; }
.prize-list .table td { padding: 0.75rem; border-bottom: 1px solid var(--border-color); vertical-align: middle; white-space: nowrap; }
.prize-list .table td:nth-child(1) { max-width: 200px; word-wrap: break-word; white-space: normal; }
.prize-list .table td:nth-child(2), .prize-list .table td:nth-child(3) { width: 100px; min-width: 100px; text-align: right; }
.prize-list .table-light { background-color: #f8f9fa; }
.prize-list .table-light td { font-weight: 600; }
.quantity-info { text-align: right; }
.quantity-total { font-weight: 500; }

/* 抽選歷史表格樣式 */
.lottery-history-table { width: 100%; margin-bottom: 1rem; }
.lottery-history-table th { padding: 0.75rem; background-color: #f8f9fa; border-bottom: 1px solid #dee2e6; font-weight: 600; text-align: left; }
.lottery-history-table td { padding: 0.75rem; border-bottom: 1px solid #dee2e6; font-size: 0.875rem; }
.lottery-history-table .hash-cell { font-family: monospace; color: #666; }

/* 票券標籤樣式 */
.ticket-tabs { display: flex; gap: var(--spacing-sm); margin-bottom: var(--spacing-md); flex-wrap: wrap; }
.ticket-tab { padding: 0 1rem; height: 36px; display: inline-flex; align-items: center; justify-content: center; background-color: var(--white); border: 1px solid var(--border-color); border-radius: 18px; cursor: pointer; transition: var(--transition-base); font-size: var(--font-sm); }
.ticket-tab:hover { background-color: var(--primary-color); color: white; border-color: var(--primary-color); border-radius: 18px; }

/* 按鈕樣式 */
.btn-verify { background-color: var(--primary-color); color: white; border: none; padding: 0.5rem 1rem; border-radius: 20px; transition: var(--transition-base); cursor: pointer; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.875rem; font-weight: 500; }
.btn-verify:hover { background-color: var(--primary-hover); color: white; transform: none; }

/* 確保 btn-verify-outline 樣式優先級 */
.btn.btn-verify-outline,
.btn-verify-outline.btn-sm,
.btn-verify-outline {
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  background-color: transparent;
  padding: 0 1rem !important;
  border-radius: 18px !important;
  transition: var(--transition-base);
  cursor: pointer;
  height: 36px !important;
  line-height: 1.5 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem !important;
  font-weight: 500;
}
.btn.btn-verify-outline:hover,
.btn-verify-outline.btn-sm:hover,
.btn-verify-outline:hover {
  background-color: var(--primary-color);
  color: white;
  border-radius: 18px !important;
}

/* 確保 btn-solid 樣式優先級 */
.btn.btn-solid,
.btn-solid {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0 1.5rem !important;
  border-radius: 24px !important;
  font-weight: 500;
  transition: var(--transition-base);
  cursor: pointer;
  height: 48px !important;
  line-height: 1.5 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem !important;
}
.btn.btn-solid:hover,
.btn-solid:hover {
  background-color: var(--primary-hover);
  transform: none;
  color: white;
  border-radius: 24px !important;
}

/* 麵包屑導航 */
.breadcrumb { background: var(--white); border-radius: var(--radius-lg); font-size: 1.05rem; font-weight: 500; margin-bottom: 1.5rem; padding: 0.75rem 1rem; box-shadow: var(--shadow-sm); }
.breadcrumb-item + .breadcrumb-item::before { color: #bbb; }
.breadcrumb-item a { color: var(--text-light); text-decoration: none; transition: var(--transition-base); }
.breadcrumb-item a:hover { color: var(--text-secondary); }
.breadcrumb-item.active { color: var(--text-secondary); font-weight: 600; }

/* Modal 樣式 - 與lite主題一致 */
.modal { z-index: 9999; }
.modal-content { border: none; border-radius: 15px; background: var(--white); overflow: hidden; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15); }
.modal-header { position: relative; background: var(--primary-color); border: none; text-align: center; padding: 1rem; min-height: 60px; }
.modal-header h3, .modal-header .modal-title { color: #fff; font-size: 1.2rem; font-weight: 600; margin: 0; text-align: center; }
.modal-body { padding: 3rem; color: var(--text-secondary); font-size: 1rem; text-align: center; }
.modal-body p { text-align: center; margin: 0 auto 20px; }
.modal-footer { border: none; text-align: center; padding: 1rem 3rem 3rem; }
.modal .btn-close { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); background: none; border: none; color: white; font-size: 1.5rem; opacity: 0.8; transition: opacity 0.2s; }
.modal .btn-close:hover { opacity: 1; transform: translateY(-50%); }
.modal-lg .modal-body { text-align: left; padding: 2rem; }
.modal-lg .modal-body p { text-align: left; }
.modal .form-group { text-align: left; margin: 0 0 20px 0; }
.modal .form-group label { margin: 0 0 5px 0; font-weight: 500; color: var(--text-primary); }
.modal .form-control { border-radius: var(--radius-sm); border: 1px solid var(--border-color); padding: 0.75rem; font-size: 1rem; transition: var(--transition-base); }
.modal .form-control:focus { border-color: var(--primary-color); box-shadow: 0 0 0 0.2rem rgba(151, 68, 240, 0.25); }
#ticketModal .modal-body { padding: 1rem; }
#drawResultModal .modal-body { padding: 2rem; text-align: center; }

/* 驗證工具樣式 */
.verify-tool-form { background: var(--secondary-color); padding: 1.5rem; border-radius: var(--radius-lg); }
.verify-tool-form .form-label { color: var(--text-primary); font-weight: 500; margin-bottom: 0.5rem; }
.verify-steps { counter-reset: step; }
.verify-step { position: relative; padding-left: 2rem; margin-bottom: 1rem; }
.verify-step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 1.5rem; height: 1.5rem; background: var(--primary-color); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: var(--font-sm); }

/* 支付介面樣式 */
.payment-amount-card {
  background: #d1ecf1;
  border: 1px solid #bee5eb;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.amount-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.amount-info i {
  font-size: 1.25rem;
  color: #0c5460;
}

.amount-label {
  font-size: var(--font-md);
  color: #0c5460;
}

.amount-value {
  font-size: var(--font-md);
  font-weight: 700;
  color: #0c5460;
}

.countdown-info {
  text-align: right;
}

.countdown-label {
  font-size: 0.75rem;
  color: #6c757d;
  margin-bottom: 0;
}

.countdown-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #dc3545;
  font-family: 'Courier New', monospace;
}

.payment-form {
  margin-bottom: 1.5rem;
}

.payment-form .form-group {
  margin-bottom: 1.25rem;
}

.payment-form .form-label {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: var(--font-md);
}

.payment-form .form-label i {
  color: var(--primary-color);
  font-size: var(--font-sm);
}

.payment-input-wrapper {
  background: var(--white);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
  min-height: 48px;
  display: flex;
  align-items: center;
}

.payment-input-wrapper:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(209, 8, 15, 0.1);
}

.security-notice {
  background: #d1ecf1;
  border: 1px solid #bee5eb;
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.security-icon {
  flex-shrink: 0;
  width: auto;
  height: auto;
  color: #0c5460;
  font-size: 1rem;
  display: flex;
  align-items: flex-start;
  padding-top: 0.125rem;
}

.security-content {
  flex: 1;
  text-align: left;
}

.security-title {
  font-weight: 600;
  color: #0c5460;
  margin-bottom: 0.25rem;
  font-size: var(--font-md);
}

.security-desc {
  font-size: 0.9rem;
  color: #0c5460;
  line-height: 1.5;
}

.payment-error {
  background-color: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: var(--font-sm);
}

.payment-submit-btn {
  background-color: var(--primary-color) !important;
  color: white !important;
  border: none !important;
  border-radius: 24px !important;
  height: 48px !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  transition: var(--transition-base);
}

.payment-submit-btn:hover:not(:disabled) {
  background-color: var(--primary-hover) !important;
  transform: none;
}

.payment-submit-btn:disabled {
  background-color: #a9a9a9 !important;
  color: #313131 !important;
  cursor: not-allowed;
}

/* 動畫 */
@keyframes scaleIn { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* 響應式設計 */
@media (max-width: 576px) {
  .breadcrumb-item.active { display: none !important; }
  .product-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: flex-start;
  }
  .gallery-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
  }

  /* 支付介面手機版樣式 */
  .payment-amount-card {
    padding: 0.875rem 1rem;
  }

  .amount-info i {
    font-size: 1rem;
  }

  .amount-label,
  .amount-value {
    font-size: 0.9rem;
  }

  .countdown-label {
    font-size: 0.7rem;
  }

  .countdown-value {
    font-size: 1rem;
  }

  .security-notice {
    padding: 0.875rem;
  }

  .security-icon {
    font-size: 0.9rem;
  }

  .security-title {
    font-size: 0.9rem;
  }

  .security-desc {
    font-size: 0.8rem;
  }
  .product-title { font-size: 1.4rem !important; font-weight: 600 !important; }
  h1.product-title,
  .product-info h1.product-title,
  body h1.product-title {
    padding: 0 !important;
    margin: 0 0 1rem 0 !important;
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    text-align: left !important;
  }
  .product-price { font-size: 1.2rem !important; font-weight: bold !important; }
  .action-buttons { flex-direction: column; }
  .btn-lottery { width: 100% !important; height: 48px !important; border-radius: 24px !important; flex: none !important; }
  .btn-solid { width: 100% !important; height: 48px !important; border-radius: 24px !important; padding: 0 1.5rem !important; flex: none !important; }
  .btn-verify { height: 48px !important; border-radius: 24px !important; flex: none !important; }
  .btn-verify-outline { height: 48px !important; border-radius: 24px !important; flex: none !important; }
  .detail-tabs { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .detail-tab { padding: 1rem; }
  .ticket-item { flex: 1 1 calc(33.333% - 0.5rem); }
}

@media (max-width: 767.98px) {
  .ticket-item { flex: 1 1 calc(25% - 0.5rem); padding: 0.3rem !important; }
  .prize-name { font-size: 0.875rem; }
  .lottery-history-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .lottery-history-table td { padding: 0.625rem; font-size: 0.8125rem; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
  .lottery-history-table .hash-cell { font-size: 0.75rem; }
  .lottery-history-table td:not(.hash-cell) { min-width: 80px; }
  .product-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: flex-start;
  }
  .gallery-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
  }
  .prize-list .table th:nth-child(2), .prize-list .table th:nth-child(3) { width: 80px; min-width: 80px; font-size: 0.875rem; }
  .prize-list .table td:nth-child(2), .prize-list .table td:nth-child(3) { width: 80px; min-width: 80px; font-size: 0.875rem; }
  .prize-list .table td:nth-child(1) { max-width: 150px; font-size: 0.875rem; }
}

/* ============================================
   以下樣式從 product-detail.blade.php 抽離
   ============================================ */

/* 抽選結果模態框樣式 */
.prize-results-container {
  padding: 1rem;
}

.prize-result-item {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  padding: 1rem;
}

.prize-result-item:last-child {
  margin-bottom: 0;
}

.prize-result-item.first-prize {
  /* 移除特殊樣式，與普通獎品保持一致 */
}

.prize-image-container {
  flex-shrink: 0;
  margin-right: 1rem;
}

.prize-result-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  background: #f8f9fa;
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.prize-result-details {
  flex: 1;
  min-width: 0;
}

.prize-result-details .prize-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 0.75rem 0;
}

/* 移除首獎特殊顏色 */

/* 緊湊型資訊顯示 */
.prize-info-compact {
  margin-top: 0.5rem;
}

.info-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.info-label {
  color: #666;
  font-weight: 500;
}

.info-value {
  color: #333;
  font-weight: 600;
}

.info-separator {
  color: #ccc;
  margin: 0 0.25rem;
}

.decrypt-string {
  word-break: break-all;
  max-width: 200px;
}

/* Hash tooltip 樣式 */
.hash-trigger {
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #28a745;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  /* Ensure parent is relative for tooltip positioning */
  overflow: visible;
}

.hash-trigger:hover {
  background-color: rgba(40, 167, 69, 0.1);
}

.hash-trigger .hash-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.9);
  color: white;
  padding: 0.75rem;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  max-width: 500px;
  word-break: break-all;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  min-width: 120px;
  min-height: 2.5em;
  box-sizing: border-box;
}

.hash-trigger:hover .hash-tooltip {
  display: block;
}

/* 移除獨立的手機版Hash區域 */

.hash-trigger-mobile {
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #28a745;
  font-weight: 500;
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  border: 1px solid #28a745;
  background: #f8fff8;
  white-space: nowrap;
}

.hash-tooltip-mobile {
  position: fixed;
  background: rgba(0,0,0,0.95);
  color: white;
  padding: 1rem;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  max-width: 90vw;
  word-break: break-all;
  display: none;
  z-index: 1050;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* 沒有獎品時的樣式 */
.no-prize-container {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 12px;
  margin: 1rem;
}

.no-prize-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.no-prize-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 0.5rem;
}

.no-prize-subtitle {
  font-size: 0.9rem;
  color: #999;
}

/* 手機版響應式 */
@media (max-width: 768px) {
  .prize-results-container {
    padding: 0.75rem;
  }

  .prize-result-item {
    flex-direction: row;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .prize-image-container {
    margin-right: 0.75rem;
    margin-bottom: 0;
  }

  .prize-result-image {
    width: 60px;
    height: 60px;
  }

  .prize-result-details {
    flex: 1;
    text-align: left;
  }

  .prize-result-details .prize-name {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .info-item {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .info-separator {
    display: inline !important;
  }

  .decrypt-string {
    max-width: none;
    word-break: break-all;
  }

  .no-prize-container {
    padding: 2rem 1rem;
  }
}

/* PC版Hash顯示樣式 */
.hash-display {
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid #f0f0f0;
}

.hash-label {
  color: #666;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.hash-value {
  color: #333;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  word-break: break-all;
  background: #f8f9fa;
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #e9ecef;
}

@media (max-width: 767.98px) {
  .hash-display {
    display: none !important;
  }
}

/* 商家資訊按鈕區樣式 */
.merchant-info-bar {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid #e9ecef;
}

.info-badge {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  color: #495057;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.info-badge i {
  color: #dc3545;
  font-size: 0.9rem;
}

.social-links-inline {
  display: flex;
  gap: 0.5rem;
}

.social-icon-inline {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.social-icon-inline.fb {
  background: #1877f2;
  color: white;
}

.social-icon-inline.fb:hover {
  background: #166fe5;
  color: white;
  transform: translateY(-1px);
}

.social-icon-inline.ig {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
}

.social-icon-inline.ig:hover {
  color: white;
  transform: translateY(-1px);
}

.social-icon-inline.youtube {
  background: #ff0000;
  color: white;
}

.social-icon-inline.youtube:hover {
  background: #e60000;
  color: white;
  transform: translateY(-1px);
}

.social-icon-inline.line {
  background: #00c300;
  color: white;
}

.social-icon-inline.line:hover {
  background: #00a300;
  color: white;
  transform: translateY(-1px);
}

/* 左側群組（出貨天數 + 代幣儲值） */
.left-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* 代幣數和儲值按鈕組合 */
.coins-topup-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 用戶代幣數顯示 */
.user-coins-display {
  background: #fff;
  border: 1px solid #ffc107;
  border-radius: 20px;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  white-space: nowrap;
}

.coins-amount {
  font-weight: 600;
  color: #dc3545;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .merchant-info-bar .row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .merchant-info-bar .col-auto {
    flex: 1 1 auto;
    min-width: 0;
  }

  .merchant-info-bar .col-auto.ms-auto {
    margin-left: 0 !important;
    flex: 0 0 auto;
  }

  .social-links-inline {
    justify-content: center;
    flex-wrap: wrap;
  }

  .info-badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }

  .user-coins-display {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
}

@media (max-width: 576px) {
  /* 商家資訊區域專用樣式 - 提高特異性避免影響其他組件 */
  .merchant-info-bar .row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .merchant-info-bar .col-auto {
    width: 100%;
    justify-content: center;
  }

  /* 左側群組在手機版保持水平排列 */
  .merchant-info-bar .left-group {
    justify-content: center;
    gap: 0.75rem;
  }

  /* 社群連結在手機版居中顯示 */
  .merchant-info-bar .social-links-inline {
    justify-content: center;
  }

  /* 出貨天數在手機版樣式調整 - 限制在商家資訊區域 */
  .merchant-info-bar .info-badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }

  /* 代幣顯示在手機版樣式調整 - 限制在商家資訊區域 */
  .merchant-info-bar .user-coins-display {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }

  /* 確保計時器卡片的手機版樣式正確應用 */
  @media (max-width: 991px) {
    .timer-card .mobile-status-modern {
      height: 28px !important;
      padding: 0 0.5rem !important;
      border-radius: 14px !important;
    }

    .timer-card .status-badge {
      font-size: 10.5px !important;
      gap: 0.25rem !important;
      padding: 0.1rem 0.3rem !important;
    }
  }

  @media (max-width: 480px) {
    .timer-card .mobile-status-modern {
      height: 24px !important;
      padding: 0 0.5rem !important;
      border-radius: 12px !important;
    }

    .timer-card .status-badge {
      font-size: 10px !important;
      gap: 0.2rem !important;
      padding: 0.05rem 0.2rem !important;
    }
  }
}

/* 儲值未啟用模態框樣式 - 紅色主題與 showPaymentGuideModal 一致 */
#topupDisabledModal .modal-content {
  border-radius: 15px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

#topupDisabledModal .modal-header {
  border-bottom: none;
  border-radius: 15px 15px 0 0;
  height: 30px;
  display: flex;
  align-items: center;
}

#topupDisabledModal .modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
}

#topupDisabledModal .modal-title i {
  color: #ffc107;
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-option .contact-link {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
  border: 1px solid #f8d7da;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #495057;
}

.contact-option .contact-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.15);
  border-color: #dc3545;
  color: #495057;
  text-decoration: none;
}

.contact-option .contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  border-radius: 50%;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.contact-option .contact-icon i {
  font-size: 0.85rem;
}

.contact-option .contact-info {
  flex: 1;
}

.contact-option .contact-label {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.contact-option .contact-value {
  color: #495057;
  font-weight: 600;
  font-size: 0.95rem;
}

.social-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f8d7da;
}

.social-title {
  color: #495057;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

#topupDisabledModal .social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  text-decoration: none !important;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  color: white !important;
}

#topupDisabledModal .social-link span {
  color: white !important;
}

#topupDisabledModal .social-link i {
  color: white !important;
}

#topupDisabledModal .social-link.fb {
  background: #1877f2;
}

#topupDisabledModal .social-link.fb:hover {
  background: #166fe5;
  transform: translateY(-1px);
  color: white !important;
  text-decoration: none !important;
}

#topupDisabledModal .social-link.fb:hover span,
#topupDisabledModal .social-link.fb:hover i {
  color: white !important;
}

#topupDisabledModal .social-link.ig {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

#topupDisabledModal .social-link.ig:hover {
  transform: translateY(-1px);
  color: white !important;
  text-decoration: none !important;
}

#topupDisabledModal .social-link.ig:hover span,
#topupDisabledModal .social-link.ig:hover i {
  color: white !important;
}

#topupDisabledModal .social-link.youtube {
  background: #ff0000;
}

#topupDisabledModal .social-link.youtube:hover {
  background: #e60000;
  transform: translateY(-1px);
  color: white !important;
  text-decoration: none !important;
}

#topupDisabledModal .social-link.youtube:hover span,
#topupDisabledModal .social-link.youtube:hover i {
  color: white !important;
}

#topupDisabledModal .social-link.line {
  background: #00c300;
}

#topupDisabledModal .social-link.line:hover {
  background: #00a300;
  transform: translateY(-1px);
  color: white !important;
  text-decoration: none !important;
}

#topupDisabledModal .social-link.line:hover span,
#topupDisabledModal .social-link.line:hover i {
  color: white !important;
}

/* 商品詳情頁面已載入 store-enhanced.css，包含正確的 buyer-modal 樣式修正 */
/* 支付相關 Modal 樣式已移至 Livewire PaymentModals 組件 */

/* 發票資訊區塊樣式 */
.invoice-section {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
}

.invoice-section h6 {
  color: #333;
  font-weight: 600;
  margin-bottom: 1rem;
}

.invoice-section .form-group {
  margin-bottom: 1rem;
}

.invoice-section .form-label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.5rem;
}

.invoice-section .form-control,
.invoice-section .form-select {
  border-radius: 6px;
  border: 1px solid #dee2e6;
  padding: 0.5rem 0.75rem;
  transition: border-color 0.2s ease;
}

.invoice-section .form-control:focus,
.invoice-section .form-select:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.invoice-fields {
  animation: fadeIn 0.3s ease-in;
}

/* 發票提示訊息樣式 */
.invoice-notice {
  background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
  border-left: 4px solid #2196f3;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.invoice-notice > i {
  color: #2196f3;
  font-size: 1.1rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.invoice-notice-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.invoice-notice-item {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: #495057;
  line-height: 1.4;
}

.invoice-notice-item i {
  font-size: 0.875rem;
  flex-shrink: 0;
}

.invoice-notice-item span {
  font-weight: 500;
}

/* 響應式：手機版調整 */
@media (max-width: 576px) {
  .invoice-notice {
    padding: 0.6rem 0.8rem;
  }

  .invoice-notice-item {
    font-size: 0.8rem;
  }

  .invoice-notice > i {
    font-size: 1rem;
  }
}

/* 統一編號驗證相關樣式 */
#companyTaxId {
  padding-right: 40px;
}

#companyTaxId.validating {
  border-color: #ffc107;
}

#companyTaxId.valid {
  border-color: #28a745;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2328a745'%3E%3Cpath d='M12.736 3.97a.733.733 0 0 1 1.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 0 1-1.065.02L3.217 8.384a.757.757 0 0 1 0-1.06.733.733 0 0 1 1.047 0l3.052 3.093 5.4-6.425a.247.247 0 0 1 .02-.022Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
}

#companyTaxId.invalid {
  border-color: #dc3545;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23dc3545'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z'/%3E%3Cpath d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
}

.tax-id-spinner {
  pointer-events: none;
}

#taxIdValidationMessage {
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.5rem;
}

#taxIdValidationMessage.valid {
  color: #28a745;
}

#taxIdValidationMessage.invalid {
  color: #dc3545;
}

#taxIdValidationMessage i {
  font-size: 1rem;
}


