/* WCQO Funeral Checkout - 獨立喪禮結帳頁面 */
.wcqo-funeral-app { max-width: 960px; margin: 0 auto; padding: 16px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.wcqo-f-section { background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.wcqo-f-title { font-size: 18px; font-weight: 700; margin: 0 0 16px; color: #333; }
.wcqo-f-label { font-size: 14px; font-weight: 600; color: #555; margin-bottom: 8px; display: block; }
.wcqo-f-step { margin-bottom: 16px; }
.wcqo-f-input { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 15px; box-sizing: border-box; transition: border-color 0.2s; }
.wcqo-f-input:focus { border-color: #8B0000; outline: none; box-shadow: 0 0 0 2px rgba(139,0,0,0.1); }
#wcqo-f-delivery-date::-webkit-calendar-picker-indicator { opacity: 1 !important; cursor: pointer; }
#wcqo-f-delivery-date::-webkit-inner-spin-button { display: block !important; }
#wcqo-f-delivery-date { -webkit-appearance: auto !important; }
textarea.wcqo-f-input { resize: vertical; }
.wcqo-f-field { margin-bottom: 14px; }
.wcqo-f-field label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 4px; }
.wcqo-f-field .req { color: #c00; }
.wcqo-f-hint { font-size: 12px; color: #888; margin: -8px 0 12px; }

/* Type buttons */
.wcqo-f-types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.wcqo-f-type-btn { padding: 12px; border: 2px solid #ddd; border-radius: 8px; background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; text-align: center; }
.wcqo-f-type-btn:hover { border-color: #8B0000; }
.wcqo-f-type-btn.active { border-color: #8B0000; background: #8B0000; color: #fff; }

/* Summary */
.wcqo-f-summary { background: #f8f8f0; border: 1px solid #e0dcc0; border-radius: 8px; padding: 12px; font-size: 15px; text-align: center; }

/* Buttons */
.wcqo-f-btn-primary { display: block; width: 100%; padding: 14px; background: #8B0000; color: #fff; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: background 0.2s; margin-top: 12px; }
.wcqo-f-btn-primary:hover { background: #6d0000; }
.wcqo-f-btn-secondary { display: block; width: 100%; padding: 12px; background: #fff; color: #8B0000; border: 2px solid #8B0000; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; margin-top: 12px; }
.wcqo-f-btn-secondary:hover { background: #fff5f5; }
.wcqo-f-btn-submit { display: block; width: 100%; padding: 16px; background: #28a745; color: #fff; border: none; border-radius: 10px; font-size: 18px; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.wcqo-f-btn-submit:hover { background: #218838; }
.wcqo-f-btn-submit:disabled { background: #999; cursor: not-allowed; }

/* Cart */
.wcqo-f-cart-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: #f9f9f9; border: 1px solid #eee; border-radius: 8px; margin-bottom: 8px; }
.wcqo-f-cart-item-info { font-size: 14px; }
.wcqo-f-cart-remove { background: none; border: none; color: #c00; font-size: 18px; cursor: pointer; padding: 4px 8px; }
.wcqo-f-cart-total { text-align: right; font-size: 16px; padding: 8px 0; border-top: 2px solid #8B0000; margin-top: 8px; }

/* Upload box */
.wcqo-f-upload-box { border: 2px dashed #ccc; border-radius: 12px; padding: 30px; text-align: center; cursor: pointer; transition: all 0.2s; color: #999; }
.wcqo-f-upload-box:hover, .wcqo-f-upload-box.drag-over { border-color: #8B0000; background: #fff5f5; }
.wcqo-f-upload-box svg { stroke: #999; margin-bottom: 8px; }
.wcqo-f-upload-box p { margin: 0; font-size: 14px; }
.wcqo-f-upload-box p.file-name { color: #333; font-weight: 600; }

/* OCR */
.wcqo-f-loading { text-align: center; padding: 16px; }
.wcqo-f-loading .spinner { width: 32px; height: 32px; border: 3px solid #eee; border-top-color: #8B0000; border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
.wcqo-f-error { background: #ffe0e0; color: #c00; padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-top: 10px; }
.wcqo-f-obit-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.wcqo-f-obit-thumb { width: 120px; height: auto; border-radius: 6px; border: 1px solid #ddd; }
.wcqo-f-ocr-summary-box { background: #f0f8f0; border: 1px solid #c0dcc0; border-radius: 8px; padding: 12px; font-size: 14px; margin-top: 12px; }

/* Inscriptions */
.wcqo-f-insc-group-title { font-size: 15px; font-weight: 700; margin: 16px 0 8px; padding-bottom: 6px; border-bottom: 2px solid #8B0000; }
.wcqo-f-insc-card { background: #f9f9f9; border: 1px solid #eee; border-radius: 8px; padding: 14px; margin-bottom: 10px; }
.wcqo-f-insc-pair-label { font-size: 13px; font-weight: 600; color: #8B0000; margin-bottom: 8px; }
.wcqo-f-insc-row { display: flex; gap: 8px; margin-bottom: 8px; }
.wcqo-f-insc-half { flex: 1; }
.wcqo-f-insc-half label, .wcqo-f-insc-field label { font-size: 12px; color: #888; display: block; margin-bottom: 2px; }
.wcqo-f-insc-field { margin-bottom: 6px; }

/* Address selector */
.wcqo-f-address-selector { margin-top: 12px; padding: 12px; background: #f8f8ff; border: 1px solid #dde; border-radius: 8px; }
.wcqo-f-radio { display: block; padding: 6px 0; font-size: 14px; cursor: pointer; }
.wcqo-f-radio input { margin-right: 6px; }

/* Venue alerts */
.wcqo-f-alert { padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-top: 8px; }
.wcqo-f-alert-warning { background: #fff8e0; border: 1px solid #f0d860; }
.wcqo-f-alert-danger { background: #ffe0e0; border: 1px solid #f0a0a0; }
.wcqo-f-alert-info { background: #e8f4ff; border: 1px solid #a0c8f0; }

/* Preview */
#wcqo-f-preview-content { font-size: 14px; line-height: 1.8; }

/* Recommended */
.wcqo-f-rec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wcqo-f-rec-item { cursor: pointer; border: 2px solid #eee; border-radius: 8px; overflow: hidden; transition: all 0.2s; }
.wcqo-f-rec-item:hover { border-color: #8B0000; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.wcqo-f-rec-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.wcqo-f-rec-price { text-align: center; padding: 6px; font-size: 14px; font-weight: 700; color: #8B0000; }

/* Success */
.wcqo-f-success { text-align: center; padding: 40px 20px; }
.wcqo-f-success-icon { font-size: 64px; margin-bottom: 16px; }
.wcqo-f-success h2 { color: #28a745; margin-bottom: 12px; }

/* Mobile */
@media (max-width: 480px) {
    .wcqo-funeral-app { padding: 8px; }
    .wcqo-f-section { padding: 14px; }
    .wcqo-f-types { grid-template-columns: repeat(2, 1fr); }
    .wcqo-f-rec-grid { grid-template-columns: repeat(2, 1fr); }
    .wcqo-f-insc-row { flex-direction: column; gap: 6px; }
}
/* Recommended item active + name */
.wcqo-f-rec-item.active { border-color: #8B0000; background: #fff5f5; }
.wcqo-f-rec-name { text-align: center; padding: 0 6px; font-size: 12px; color: #666; line-height: 1.3; margin: 0; font-weight: normal; }

/* Flower photos slider */
.wcqo-f-photo-row { margin-bottom:16px; }
.wcqo-f-photo-row-title { font-size:14px; font-weight:700; color:#555; margin:0 0 8px; padding-left:4px; }
.wcqo-f-slider-wrap { position:relative; overflow:hidden; }
.wcqo-f-slider { display:flex; gap:10px; overflow-x:auto; scroll-behavior:smooth; -webkit-overflow-scrolling:touch; scrollbar-width:none; padding:4px 0; }
.wcqo-f-slider::-webkit-scrollbar { display:none; }
.wcqo-f-slider-item { flex:0 0 auto; width:160px; border:1px solid #eee; border-radius:10px; overflow:hidden; background:#fff; transition:transform 0.2s, box-shadow 0.2s; }
.wcqo-f-slider-item:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.1); }
.wcqo-f-slider-item img { width:100%; aspect-ratio:1; object-fit:cover; display:block; cursor:pointer; }
.wcqo-f-slider-item .caption { font-size:11px; color:#666; padding:6px 8px; text-align:center; line-height:1.3; }
.wcqo-f-slider-item .caption .price { color:#8B0000; font-weight:700; font-size:13px; }
.wcqo-f-slider-btn { position:absolute; top:50%; transform:translateY(-60%); width:32px; height:32px; border-radius:50%; background:rgba(255,255,255,0.9); border:1px solid #ddd; font-size:18px; cursor:pointer; z-index:2; display:flex; align-items:center; justify-content:center; box-shadow:0 2px 6px rgba(0,0,0,0.1); }
.wcqo-f-slider-btn:hover { background:#fff; box-shadow:0 2px 8px rgba(0,0,0,0.15); }
.wcqo-f-slider-btn.prev { left:4px; }
.wcqo-f-slider-btn.next { right:4px; }
@media (max-width:480px) { .wcqo-f-slider-item { width:140px; } }

/* Flower Card Inline Preview */
.wcqo-fc-inline-preview {
    margin-top: 12px;
    padding: 12px;
    background: #fdf8f8;
    border: 1px solid #f0d0d0;
    border-radius: 8px;
}
.wcqo-fc-inline-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}
.wcqo-fc-inline-preview-header span {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}
.wcqo-fc-confirm-btn {
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}
.wcqo-fc-confirm-btn:hover { background: #43A047; }
.wcqo-fc-expand-btn {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 13px;
    cursor: pointer;
    width: 100%;
}
.wcqo-fc-expand-btn:hover { background: #eee; }
.wcqo-fc-disclaimer {
    font-size: 11px;
    color: #999;
    text-align: center;
    margin-top: 6px;
    margin-bottom: 0;
}
.wcqo-fc-inline-preview-body {
    text-align: center;
}

/* Placeholder text - lighter color to distinguish from filled content */
.wcqo-f-input::placeholder,
.wcqo-p-input::placeholder,
.wcqo-input::placeholder,
input.wcqo-f-input::placeholder,
input.wcqo-p-input::placeholder,
textarea::placeholder {
  color: #b0b0b0 !important;
  opacity: 1;
  font-style: italic;
}

/* Cart qty controls */
.wcqo-f-cart-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.wcqo-f-cart-item-info {
    flex: 0 0 auto;
}
.wcqo-f-cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}
.wcqo-f-cart-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ccc;
    border-radius: 50%;
    background: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    color: #333;
}
.wcqo-f-cart-qty-btn:hover {
    background: #f0f0f0;
    border-color: #999;
}
.wcqo-f-cart-qty-num {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
}
.wcqo-f-cart-subtotal {
    flex: 1;
    text-align: right;
    color: #666;
    font-size: 14px;
}
.wcqo-f-cart-remove-group {
    flex: 0 0 auto;
}
