/* tea-group.css — 👥 揪團免運（拼團 v1，innovation ⑩，2026-07-18）
   overlay 家族（z 10060）：深綠夜色 veil＋宣紙面板（語彙同 tea-cellar/tea-gift）。
   高度 vh fallback＋dvh 兩行；勿再往內加 backdrop-filter（手機穩定性規範）。 */
.hh-gp-overlay {
  position: fixed; inset: 0; z-index: 10060;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(24, 32, 26, 0);
  transition: background 0.25s ease;
  pointer-events: none;
}
.hh-gp-overlay.is-open { background: rgba(24, 32, 26, 0.55); pointer-events: auto; }
.hh-gp-panel {
  width: 100%; max-width: 520px;
  max-height: 88vh; max-height: 88dvh;
  overflow-y: auto;
  background: linear-gradient(180deg, #faf6ec, #f2ead6);
  border-radius: 22px 22px 0 0;
  padding: 20px 18px calc(26px + env(safe-area-inset-bottom, 0px));
  position: relative;
  transform: translateY(30px); opacity: 0;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.24s ease;
}
.hh-gp-overlay.is-open .hh-gp-panel { transform: translateY(0); opacity: 1; }
.hh-gp-close {
  appearance: none; -webkit-appearance: none;
  position: absolute; top: 10px; right: 10px;
  width: 44px; height: 44px;
  border: none; background: none;
  font-size: 17px; color: #8a8069; cursor: pointer;
}
.hh-gp-head { display: flex; align-items: center; gap: 10px; margin: 4px 4px 14px; }
.hh-gp-ico { font-size: 26px; }
.hh-gp-head h3 { font: 700 20px/1.3 "Noto Serif TC", "Noto Serif TC Fallback", serif; color: #2c3a2e; margin: 0; letter-spacing: 0.1em; }
.hh-gp-loading { text-align: center; padding: 40px 0; color: #8a7a5c; }

/* 規則列表 */
.hh-gp-rules {
  margin: 12px 2px 8px; padding: 14px 14px 14px 34px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(148, 114, 62, 0.28);
  border-radius: 14px;
  display: grid; gap: 8px;
}
.hh-gp-rules li { font: 500 13.5px/1.7 var(--font-ui, sans-serif); color: #4a4334; }
.hh-gp-note { font: 500 11.5px/1.7 var(--font-ui, sans-serif); color: #9a8f76; margin: 6px 4px 0; }
.hh-gp-center { text-align: center; padding: 16px 0; }

/* 按鈕 */
.hh-gp-btn {
  appearance: none; -webkit-appearance: none;
  display: flex; align-items: center; justify-content: center;
  width: 100%; box-sizing: border-box;
  cursor: pointer; text-decoration: none; text-align: center;
  border: none; border-radius: 999px;
  min-height: 48px; padding: 13px 22px;
  font: 700 14.5px/1 var(--font-ui, sans-serif); letter-spacing: 0.08em;
  background: #2c3a2e; color: #f5efe0;
}
.hh-gp-btn + .hh-gp-btn { margin-top: 0; }
.hh-gp-create, .hh-gp-cta { margin-top: 14px; }
.hh-gp-line { background: #06c755; color: #fff; }
.hh-gp-ghost { background: rgba(255, 255, 255, 0.8); color: #2c3a2e; border: 1px solid rgba(148, 114, 62, 0.4); }
.hh-gp-actions { display: grid; gap: 10px; margin: 12px 0 4px; }

/* 分享畫面 */
.hh-gp-lead { font: 600 14px/1.7 "Noto Serif TC", "Noto Serif TC Fallback", serif; color: #2c3a2e; margin: 4px 2px 10px; }
.hh-gp-already { font: 600 12px/1.6 var(--font-ui, sans-serif); color: #94723e; margin: 0 2px 6px; }
.hh-gp-link {
  font: 600 12.5px/1.5 ui-monospace, monospace;
  color: #4a4334; word-break: break-all;
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed rgba(148, 114, 62, 0.5);
  border-radius: 12px; padding: 12px;
}

/* 團頁（親友著陸） */
.hh-gp-creator { font: 600 12.5px/1.6 var(--font-ui, sans-serif); color: #8a7a5c; margin: 0 2px 8px; letter-spacing: 0.04em; }
.hh-gp-progress { font: 700 16px/1.5 "Noto Serif TC", "Noto Serif TC Fallback", serif; color: #2c3a2e; margin: 2px 2px 10px; }
.hh-gp-bar {
  height: 8px; border-radius: 999px; overflow: hidden;
  background: rgba(148, 114, 62, 0.18);
  border: 1px solid rgba(148, 114, 62, 0.25);
}
.hh-gp-bar i { display: block; height: 100%; background: linear-gradient(90deg, #7a8b6f, #94723e); transition: width 0.4s ease; }
.hh-gp-cd { font: 600 12.5px/1.6 var(--font-ui, sans-serif); color: #9d3f2e; margin: 10px 2px 0; min-height: 1.2em; }
.hh-gp-done { font: 700 15px/1.8 "Noto Serif TC", "Noto Serif TC Fallback", serif; color: #2c6e49; margin: 10px 2px 14px; }
.hh-gp-expired { font: 600 13.5px/1.9 var(--font-ui, sans-serif); color: #5a5240; margin: 10px 2px 14px; }

/* 購物車入口列（沿用 .hh-cart-gift-entry 燙金襯線列；此處只補間距差異） */
.hh-cart-group-entry { margin-top: 8px; }
.hh-cart-group-entry[hidden] { display: none; } /* .hh-gift-open 的 display:flex 會蓋掉 hidden */

@media (prefers-reduced-motion: reduce) {
  .hh-gp-overlay, .hh-gp-panel, .hh-gp-bar i { transition: none; }
}
@media (min-width: 1024px) {
  .hh-gp-overlay { align-items: center; }
  .hh-gp-panel { border-radius: 22px; max-height: 86vh; max-height: 86dvh; }
}
