/* Components shared by MianXiang and YuanFen. Colours come from each app's --accent tokens. */
.hidden { display: none !important; }

.card-box {
  background: var(--card);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 16px;
  border: 1.5px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.box-label { font-size: 10px; letter-spacing: 3px; color: var(--accent); text-transform: uppercase; margin-bottom: 10px; }

.price-box { display: flex; justify-content: space-between; align-items: center; }
.price-amount { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--accent-deep); text-align: right; }
.price-sub { font-size: 13px; color: var(--text-light); }
.curr-toggle { display: flex; gap: 6px; margin-top: 4px; justify-content: flex-end; }
.curr-toggle button {
  font-size: 11px; padding: 4px 10px; border-radius: 20px; cursor: pointer; font-family: Lato, sans-serif;
  border: 1.5px solid rgba(0,0,0,0.12); background: transparent; color: var(--text-light);
}
.curr-toggle button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-light); color: var(--accent-deep); }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text); line-height: 1.5; margin-top: 12px; text-align: left; cursor: pointer; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent-deep); flex: none; }
.consent a { color: var(--accent-deep); }
.consent.error { color: #c0392b; }

.notice { border-radius: 16px; padding: 16px 20px; margin-bottom: 16px; text-align: center; font-size: 14px; line-height: 1.6; }
.notice-ok { background: var(--accent-light); color: var(--accent-deep); border: 2px solid rgba(0,0,0,0.05); }
.notice-error { background: #fff4f2; color: #9b2c1f; border: 2px solid #f5c6bd; text-align: left; }
.notice-error strong { display: block; margin-bottom: 4px; }
.notice-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.notice-actions button {
  padding: 10px 18px; border-radius: 50px; font-family: Lato, sans-serif; font-size: 14px; cursor: pointer;
  border: 1.5px solid var(--accent); background: white; color: var(--accent-deep);
}
.notice-actions button.primary { background: var(--accent-deep); color: white; border-color: var(--accent-deep); }

.included-list { list-style: none; display: grid; gap: 8px; font-size: 14px; color: var(--text); line-height: 1.5; }
.included-list li { display: flex; gap: 10px; }

.disclaimer { font-size: 12px; color: var(--text-light); line-height: 1.6; text-align: center; margin-top: 16px; opacity: 0.85; }

.site-footer { text-align: center; padding: 32px 0 0; font-size: 12px; color: var(--text-light); line-height: 2; }
.site-footer nav { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.site-footer a { color: var(--text-light); }
.site-footer .footer-brand { letter-spacing: 4px; text-transform: uppercase; font-size: 11px; opacity: 0.5; }

.input-error { border-color: #e74c3c !important; }
.field-hint { font-size: 12px; color: #c0392b; margin-top: 6px; min-height: 0; }

button:focus-visible, input:focus-visible, a:focus-visible, .upload-zone:focus-visible, .upload-slot:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Legal pages */
.legal { max-width: 720px; margin: 0 auto; padding: 40px 20px 80px; position: relative; z-index: 1; line-height: 1.75; font-size: 15px; }
.legal h1 { font-family: 'Playfair Display', serif; font-size: 30px; color: var(--accent-deep); margin-bottom: 4px; }
.legal h2 { font-family: 'Playfair Display', serif; font-size: 19px; color: var(--accent-deep); margin: 28px 0 8px; }
.legal p, .legal li { margin-bottom: 10px; }
.legal ul { padding-left: 22px; }
.legal .updated { font-size: 13px; color: var(--text-light); margin-bottom: 24px; }
.legal a { color: var(--accent-deep); }
