/* ════════════════════════════════════════
   Slowdough — 고객 예약 페이지 스타일
   폰트: Pretendard (고딕 계열) — index.html 에서 <link> 로 로드
════════════════════════════════════════ */

/* ── 변수 ── */
:root {
  color-scheme: light;
  --cream: #F5F0E8;
  --warm-white: #FDFAF4;
  --surface: #fff;
  --surface-soft: #f9fafb;
  --charcoal: #2A2520;
  --espresso: #3D2B1F;
  --price-orange: #d81e0c;
  --price-muted: #8f8f8f;
  --sage: #7A8B6F;
  --border: #D4C9B8;
  --line: #d7dee8;
  --line-soft: #e5e7eb;
  --text-strong: #111827;
  --text-body: #1f2937;
  --text-muted: #6b7280;
  --danger: #e11d48;
  --danger-text: #b91c1c;
  --danger-line: #fecaca;
  --warning-bg: #fef3c7;
  --warning-text: #92400e;
  --shadow-soft: 0 1px 4px rgba(0,0,0,.12);
  --shadow-lift: 0 6px 16px rgba(0,0,0,.14);

  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo',
          'Noto Sans KR', sans-serif;

  --text-xs: 12px;
  --text-sm: 14px;
  --text-md: 16px;
  --text-lg: 18px;
  --radius-md: 12px;
  --tap-min: 44px;
  --control-sm-height: 36px;
  --control-sm-min-width: 50px;
  --control-sm-padding-x: 8px;
  --control-radius: 8px;

  --brand-accent: #4a8c3f;
  --brand-accent-strong: #2d5a27;
  --brand-summary-fg: #355d30;
  --brand-summary-bg: #f1f8ee;
  --brand-summary-border: #dbead6;
  --brand-summary-line: #b8ddb0;
  --brand-price-main: var(--brand-accent-strong);
  --btn-bg: linear-gradient(135deg, #2d5a27, #4a8c3f);
  --btn-bg-hover: linear-gradient(135deg, #275025, #3f8a40);
  --btn-height: 52px;
  --qty-size: 32px;
  --qty-color: var(--brand-accent);
  --qty-bg: var(--surface);
  --qty-bg-hover: var(--brand-accent);
  --slot-bg: rgba(74,140,63,0.05);
  --slot-bg-hover: rgba(74,140,63,0.1);
  --slot-border: rgba(74,140,63,0.28);
  --slot-border-hover: #2d5a27;
  --slot-text: #2d5a27;
  --slot-selected: #2d5a27;
  --brand-note: #4a8c3f;
  --modal-title-size: 22px;
  --modal-body-size: 14px;
  --modal-title-line-height: 1.3;
  --modal-line-height: 1.8;
  --modal-detail-size: 13px;
  --modal-detail-line-height: 2;
  --menu-price-main: 22px;
}

/* ── 리셋 ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  word-break: keep-all;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior-y: contain;
}

.pull-refresh {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  left: 50%;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--charcoal);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-56px + var(--pull-refresh-distance, 0px)));
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.pull-refresh.is-visible {
  opacity: 1;
}

.pull-refresh.is-ready {
  background: color-mix(in srgb, var(--brand-accent) 10%, #fff);
  border-color: color-mix(in srgb, var(--brand-accent) 28%, rgba(17, 24, 39, 0.08));
}

.pull-refresh__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(17, 24, 39, 0.18);
  border-top-color: var(--brand-accent-strong);
  border-radius: 999px;
  transform: rotate(0deg);
}

.pull-refresh.is-refreshing .pull-refresh__spinner {
  animation: pullRefreshSpin 0.75s linear infinite;
}

@keyframes pullRefreshSpin {
  to { transform: rotate(360deg); }
}

/* 게시판형 동적 브랜드 예약 */
#dynamicBrandMenuLinks {
  display: contents;
}

.side-menu .menu-private-badge {
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  vertical-align: middle;
}

.coop-member-notice {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(216, 30, 12, 0.07);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
  word-break: keep-all;
}

/* Customer reservation history */
.my-reservations-page,
.my-reservations-page * {
  box-sizing: border-box;
}

.my-reservations-page .page-main-wrap {
  display: block;
  max-width: 100%;
  overflow-x: hidden;
}

.my-reservation-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 0 4px;
  margin-bottom: 10px;
}

.my-reservation-toolbar p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.my-reservation-toolbar .save-btn,
.my-inline-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-body);
  font-weight: 800;
  line-height: 1;
}

.my-inline-btn {
  margin-left: 8px;
}

.my-reservation-message {
  min-height: 0;
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.55;
}

.my-reservation-message[hidden] {
  display: none;
}

.my-reservation-message.notice,
.my-reservation-message.loading,
.my-reservation-message.empty,
.my-reservation-message.error {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--surface);
}

.my-reservation-message.error {
  border-color: var(--danger-line);
  color: #991b1b;
  background: #fff7f7;
}

.my-reservation-list {
  display: grid;
  gap: 12px;
  margin-top: 0;
}

.my-reservation-card {
  --my-card-border: rgba(148, 163, 184, .34);
  --my-card-shadow: 0 8px 22px rgba(15, 23, 42, .065);
  --my-card-muted: #64748b;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--my-card-border);
  border-radius: 16px;
  background: var(--surface);
  padding: 14px;
  box-shadow: var(--my-card-shadow);
  overflow: hidden;
}

.my-reservation-card.is-cancelled {
  opacity: 0.7;
}

.my-reservation-card-head,
.my-reservation-meta,
.my-reservation-actions,
.my-reservation-edit-actions {
  display: grid;
  gap: 8px;
}

.my-reservation-card-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 9px;
}

.my-reservation-title-wrap {
  min-width: 0;
}

.my-reservation-brand {
  color: var(--brand-accent-strong);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
}

.my-reservation-card h3 {
  margin: 4px 0 0;
  font-size: 17px;
  line-height: 1.25;
  color: var(--text-strong);
  overflow-wrap: anywhere;
}

.my-reservation-amount {
  justify-self: end;
  color: var(--brand-accent-strong);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}

.my-reservation-meta {
  grid-template-columns: 1fr 1fr;
  margin-top: 9px;
  gap: 7px 9px;
}

.my-reservation-meta-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--text-body);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
}

.my-reservation-meta-item b {
  color: var(--my-card-muted);
  font-size: 10px;
  font-weight: 950;
  line-height: 1.1;
  white-space: nowrap;
}

.my-reservation-meta-item span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.my-reservation-meta-date {
  grid-column: 1 / -1;
  color: #475569;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.my-reservation-meta-phone {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.my-reservation-meta-phone span {
  justify-self: end;
}

.my-reservation-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 8px;
  background: #eef6ee;
  color: #2f6b37;
  font-size: 11.5px;
  font-weight: 950;
  line-height: 1;
}

.my-reservation-status b {
  color: currentColor;
  opacity: .72;
  font-size: 10px;
  font-weight: 950;
  white-space: nowrap;
}

.my-reservation-status.status-cancelled,
.my-reservation-status.status-deleted,
.my-reservation-status.reservation-status-cancelled,
.my-reservation-status.reservation-status-deleted {
  background: #f3f4f6;
  color: var(--text-muted);
}

.my-reservation-status.status-waiting {
  background: #fff7ed;
  color: #c2410c;
}

.my-reservation-status.status-paid {
  background: #eef6ee;
  color: #2f6b37;
}

.my-reservation-status.status-cancel_requested {
  background: var(--warning-bg);
  color: var(--warning-text);
}

.my-reservation-status.reservation-status-pending {
  background: rgba(59, 130, 246, .11);
  color: #1d4ed8;
}

.my-reservation-status.reservation-status-confirmed {
  background: rgba(34, 197, 94, .12);
  color: #14532d;
}

.my-reservation-status.reservation-status-reserved {
  background: rgba(59, 130, 246, .11);
  color: #1d4ed8;
}

.my-reservation-status.reservation-status-cancel_requested {
  background: var(--warning-bg);
  color: var(--warning-text);
}

.my-reservation-status-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 9px;
}

.my-reservation-criteria {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  margin-top: 9px;
  padding: 9px 0;
  border-top: 1px dashed rgba(148, 163, 184, .45);
  border-bottom: 1px dashed rgba(148, 163, 184, .35);
}

.my-reservation-criteria b {
  color: var(--my-card-muted);
  font-size: 10px;
  font-weight: 950;
  line-height: 1.1;
}

.my-reservation-criteria strong {
  min-width: 0;
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.my-reservation-criteria span {
  display: block;
  min-width: 0;
  color: var(--text-body);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.my-reservation-criteria small {
  display: block;
  min-width: 0;
  margin-top: 2px;
  color: var(--my-card-muted);
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.my-reservation-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(120px, .7fr);
  gap: 10px;
  margin-top: 12px;
}

.my-reservation-detail-grid div,
.my-reservation-request {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--surface);
  padding: 10px 12px;
}

.my-reservation-detail-grid b,
.my-reservation-request b {
  display: block;
  margin-bottom: 4px;
  color: var(--my-card-muted);
  font-size: 11px;
  font-weight: 900;
}

.my-reservation-detail-grid p,
.my-reservation-request p {
  margin: 0;
  color: var(--text-body);
  line-height: 1.55;
  font-size: 14px;
  font-weight: 750;
}

.my-reservation-request {
  margin-top: 10px;
  border-style: dashed;
}

.my-reservation-actions {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  margin-top: 9px;
  gap: 7px;
}

.my-reservation-actions button,
.my-reservation-edit-actions button {
  border: 1px solid var(--line);
  background: var(--text-strong);
  color: var(--surface);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.my-reservation-actions button.danger {
  background: var(--surface);
  color: var(--danger-text);
  border-color: var(--danger-line);
}

.my-reservation-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.my-reservation-edit {
  margin-top: 16px;
  border-top: 1px solid #edf0f5;
  padding-top: 16px;
  display: grid;
  gap: 14px;
}

.my-reservation-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.my-reservation-edit label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-size: 12px;
  font-weight: 900;
}

.my-reservation-edit label.wide {
  grid-column: 1 / -1;
}

.my-reservation-edit input,
.my-reservation-edit select,
.my-reservation-edit textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  font: inherit;
  font-size: 14px;
  background: var(--surface);
}

.my-reservation-edit textarea {
  min-height: 86px;
  resize: vertical;
}

.my-reservation-menu-edit {
  display: grid;
  gap: 10px;
}

.my-reservation-menu-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px 92px auto;
  gap: 10px;
  align-items: end;
  border: 1px solid #edf0f5;
  border-radius: 10px;
  padding: 12px;
  background: #fbfcfd;
}

.my-reservation-menu-row strong {
  display: block;
  color: var(--text-strong);
  font-size: 14px;
}

.my-reservation-menu-row span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.my-reservation-menu-row .is-disabled {
  opacity: 0.45;
}

.my-reservation-edit label.my-reservation-bundle {
  align-self: center;
  display: flex;
  grid-auto-flow: column;
  grid-template-columns: auto 1fr;
  align-items: center;
  white-space: nowrap;
}

.my-reservation-bundle input {
  width: 18px;
  min-height: 18px;
  padding: 0;
}

.my-reservation-edit-summary {
  border-radius: 10px;
  padding: 12px 14px;
  background: #f7faf7;
  color: #31543a;
  line-height: 1.5;
  font-size: 14px;
}

.my-reservation-edit-summary small {
  color: #607064;
}

.my-reservation-edit-actions {
  justify-content: flex-end;
}

.my-reservation-edit-actions .ghost {
  background: var(--surface);
  color: var(--text-strong);
}

button,
input,
select,
textarea {
  font-family: var(--font);
}

a,
button,
input,
textarea,
select {
  -webkit-tap-highlight-color: rgba(196, 98, 45, 0.16);
}

:where(button, [role="button"], a, input, select, textarea):focus-visible {
  outline: 2px solid rgba(196, 98, 45, 0.55);
  outline-offset: 2px;
}

:where(
  .my-reservation-toolbar .save-btn,
  .my-inline-btn,
  .my-reservation-actions button,
  .my-reservation-edit-actions button,
  .payment-retry-btn,
  .payment-retry-link,
  .review-auth-login-btn,
  .review-inline-submit,
  .review-inline-cancel
) {
  appearance: none;
  font: inherit;
  border-radius: var(--control-radius);
  min-width: var(--control-sm-min-width);
  min-height: var(--control-sm-height);
  padding: 0 var(--control-sm-padding-x);
  line-height: 1.2;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ══════════════════════════════════════
   HEADER / POSTER
══════════════════════════════════════ */
header {
  background: linear-gradient(135deg, var(--brand-accent-strong) 0%, var(--brand-accent) 60%, var(--brand-accent) 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  color: var(--surface);
}

/* 상단 텍스트 */

/* 피자 이미지 */

/* 메뉴 소개 */
.poster-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.poster-menu-item:last-child { margin-bottom: 0; }

.pmenu-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-accent-subtle, var(--charcoal));
  margin-bottom: 3px;
}
.pmenu-name span {
  font-size: 12px;
  font-weight: 400;
  color: var(--brand-summary-fg);
  margin-left: 4px;
}
.pmenu-desc {
  font-size: 11px;
  font-weight: 400;
  color: var(--brand-summary-fg);
  line-height: 1.7;
}
.pmenu-price { text-align: right; flex-shrink: 0; }
.pmenu-price-val {
  font-size: var(--menu-price-main);
  font-weight: 600;
  color: var(--brand-price-main);
  letter-spacing: -0.5px;
}

/* 안내문구 */
.poster-notice {
  padding: 12px 0 4px;
  font-size: 11px;
  font-weight: 400;
  color: var(--brand-note);
  line-height: 1.2;
  text-align: right;
}
.poster-notice p::before { content: '* '; }

/* ══════════════════════════════════════
   TIME SLOTS
══════════════════════════════════════ */
.slot-btn {
  border: 1.5px solid var(--slot-border);
  background: var(--slot-bg);
  padding: 8px 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--slot-text);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all .2s;
}
.slot-btn .slot-time {
  font-weight: 700;
  font-size: 14px;
  display: block;
  color: var(--charcoal);
}
.slot-btn .slot-remain {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--brand-accent);
  display: block;
  margin-top: 3px;
}
.slot-btn:hover:not(.full):not(.selected) {
  border-color: var(--slot-border-hover);
  background: var(--slot-bg-hover);
}
.slot-btn.selected {
  border-color: var(--slot-selected);
  background: var(--slot-selected);
  color: white;
}
.slot-btn.selected .slot-time { color: var(--surface); }
.slot-btn.selected .slot-remain { color: rgba(255,255,255,0.7); }
.slot-btn.full {
  opacity: .45;
  cursor: not-allowed;
  background: var(--slot-bg);
  border-color: var(--slot-border);
  color: #aaa;
}
.slot-btn.full .slot-remain { color: #aaa; }

/* ══════════════════════════════════════
   PIZZA PICKER
══════════════════════════════════════ */
.pizza-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #e9e3d8;
  gap: 16px;
  flex-wrap: wrap;
}
.pizza-item:last-child { border-bottom: none; }

.pizza-item:has(.qty-val:not([data-val="0"])) {
  border-color: var(--brand-accent-strong);
}
.pizza-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
}
.pizza-title-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pizza-right { display: flex; align-items: center; justify-content: flex-end; flex: 0 0 auto; margin-left: auto; gap: 16px; }

.pizza-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-accent-subtle, var(--charcoal));
  line-height: 1.35;
  white-space: nowrap;
}
.pizza-price {
  color: var(--brand-note);
  margin-top: 2px;
}

/* 수량 컨트롤 */
.qty-ctrl { display: flex; align-items: center; gap: 12px; }
.qty-btn {
  width: var(--qty-size);
  height: var(--qty-size);
  border-radius: 50%;
  border: 1.5px solid var(--qty-color);
  background: var(--qty-bg);
  color: var(--qty-color);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.qty-btn:hover { background: var(--qty-bg-hover); color:var(--surface); border-color: var(--qty-bg-hover);}
.qty-btn:disabled {
  border-color: #e0e0e0;
  color: #ccc;
  cursor: not-allowed;
}
.qty-val { font-size: 18px; font-weight: 700; min-width: 20px; text-align: center; color: var(--brand-accent-strong); }

/* ── 포장 옵션 ── */
.takeout-area {
  width: 100%;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .25s ease, opacity .2s ease, margin .2s ease;
  margin-top: 0;
  display: flex;
  justify-content: flex-end;
}
.pizza-item.has-qty .takeout-area {
  max-height: 80px;
  opacity: 1;
  margin-top: 8px;
}
.takeout-area-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  flex-wrap: wrap;
}
.takeout-area-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-accent);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.takeout-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.takeout-opt {
  border: 1px solid color-mix(in srgb, var(--brand-accent) 38%, #fff);
  background: var(--surface);
  color: #2f3a2d;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  border-radius: 999px;
}
.takeout-opt:hover { border-color: var(--brand-accent); color: var(--brand-accent); background: color-mix(in srgb, var(--brand-accent) 8%, #fff); }
.takeout-opt.selected { background: var(--brand-accent-strong); border-color: var(--brand-accent-strong); color: white; }
.takeout-fee-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-accent-strong);
  background: color-mix(in srgb, var(--brand-accent) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand-accent) 28%, #fff);
  padding: 4px 8px;
  border-radius: 999px;
  display: none;
  margin-left: auto;
}
.takeout-fee-tag.show { display: inline; }

/* ══════════════════════════════════════
   FORM
══════════════════════════════════════ */
/* ══════════════════════════════════════
   SUMMARY
══════════════════════════════════════ */
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--brand-summary-fg);
  border-bottom: 1px solid color-mix(in srgb, var(--brand-summary-border) 55%, #fff);
}
.summary-row:last-child { border: none; }
.summary-row.total {
  padding-top: 8px;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-accent-subtle, var(--brand-accent-strong));
  border-top: 1px solid var(--brand-summary-line);
}
.summary-label { color: color-mix(in srgb, var(--brand-summary-fg) 70%, var(--charcoal)); }

/* ══════════════════════════════════════
   SUBMIT BUTTON
══════════════════════════════════════ */
.submit-btn,
.cb-submit-btn {
  width: 100%;
  min-height: var(--btn-height);
  padding: 16px;
  background: var(--btn-bg);
  color: var(--surface);
  border: none;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  margin-top: 12px;
  border-radius: 12px;
  transition: background .2s, transform .15s, opacity .2s;
  position: relative;
  overflow: hidden;
}
.submit-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background .2s;
}
.submit-btn:hover,
.cb-submit-btn:hover { background: var(--btn-bg-hover); opacity: .92; }
.submit-btn:active,
.cb-submit-btn:active { transform: scale(0.99); }
.submit-btn:disabled,
.cb-submit-btn:disabled { background: var(--border); cursor: not-allowed; opacity: .5; }

/* ══════════════════════════════════════
   MISC
══════════════════════════════════════ */
.notice {
  font-size: 11px;
  font-weight: 400;
  color: var(--sage);
  text-align: center;
  margin-top: 12px;
  line-height: 1.8;
}

.step-subnote {
  margin-top: 14px;
  font-size: 11px;
  color: var(--brand-accent);
}

.is-hidden { display: none; }

.section-top-space { margin-top: 16px; }

.summary-indent {
  padding-left: 14px;
}

.helper-note {
  opacity: .7;
}

/* Quota banner */
.pizza-remain {
  display: inline-block; font-size: 10px; font-weight: 600;
  background: color-mix(in srgb, var(--brand-summary-line) 25%, #fff);
  color: var(--brand-accent-strong);
  border: 1px solid color-mix(in srgb, var(--brand-summary-line) 45%, #fff);
  padding: 1px 7px; border-radius: 10px; margin-left: 6px; vertical-align: middle;
}
.pizza-remain.zero { background: color-mix(in srgb, var(--brand-summary-line) 20%, var(--warm-white)); color: var(--brand-summary-fg); border-color: color-mix(in srgb, var(--brand-summary-line) 40%, #fff); }
.pizza-remain.option { background: #f4ecff; color: #6b3fa0; border-color: #dbc7f5; }
/* Closed state */
.closed-msg h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--espresso);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42,37,32,0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  overflow-y: auto;
  backdrop-filter: blur(3px);
}
.modal-overlay.active {
  display: flex;
}
.modal {
  position: relative;
  background: var(--warm-white);
  max-width: 420px;
  width: 100%;
  padding: 40px 32px;
  text-align: center;
  border-radius: 20px;
  animation: slideUp .35s cubic-bezier(.16,1,.3,1);
  box-sizing: border-box;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal-icon { font-size: 44px; margin-bottom: 16px; }
.modal h3 {
  font-size: var(--modal-title-size);
  font-weight: 800;
  color: var(--espresso);
  margin-bottom: 10px;
  line-height: var(--modal-title-line-height);
  letter-spacing: -0.5px;
}
.modal p {
  font-size: var(--modal-body-size);
  font-weight: 400;
  color: var(--brand-summary-fg);
  line-height: var(--modal-line-height);
}
.modal-detail {
  background: var(--brand-summary-bg);
  border: 1px solid var(--brand-summary-line);
  padding: 16px;
  margin: 20px 0;
  text-align: left;
  font-size: var(--modal-detail-size);
  font-weight: 400;
  line-height: var(--modal-detail-line-height);
}
.bank-transfer-box {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--brand-summary-line);
  border-radius: 8px;
  background: var(--surface);
}

.bank-transfer-box div {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.bank-transfer-box b {
  color: var(--text-muted);
  font-weight: 800;
}

.bank-transfer-box span {
  color: var(--text-strong);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.bank-transfer-box p {
  margin: 4px 0 0;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.45;
}

.bank-transfer-box .bank-transfer-kakaopay {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 4px;
}

.bank-transfer-kakaopay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 10px;
  background: #fee500;
  color: #191600;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
}

.bank-transfer-box .bank-transfer-kakaopay-qr {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  background: var(--surface-soft);
}

.bank-transfer-box .bank-transfer-kakaopay-qr img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--surface);
}

.bank-transfer-box .bank-transfer-kakaopay-qr span {
  color: #374151;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}
.modal-close {
  background: var(--brand-accent-strong);
  color: white;
  border: none;
  padding: 12px 26px;
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .15s;
  min-height: 48px;
  min-width: 140px;
  max-width: 220px;
  border-radius: 10px;
}
.modal-close:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand-accent) 72%, #fff);
  outline-offset: 2px;
}
.modal-close:hover {
  background: color-mix(in srgb, var(--brand-accent) 76%, var(--brand-accent-strong));
  transform: translateY(-1px);
}
.modal-close + .modal-close {
  margin-left: 8px;
}

/* Loading */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--sage);
  font-size: 13px;
  font-weight: 400;
}

.popup-loading-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  line-height: 1.5;
  color: var(--brand-summary-fg);
}

.popup-loading-inline b {
  display: block;
  color: var(--brand-accent-strong);
  font-size: 13px;
  font-weight: 700;
}

.popup-loading-inline small {
  display: block;
  margin-top: 2px;
  color: color-mix(in srgb, var(--brand-summary-fg) 80%, var(--charcoal));
  font-size: 11px;
  font-weight: 500;
}

.popup-loading-spinner {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--brand-accent) 18%, #fff);
  border-top-color: var(--brand-accent-strong);
  animation: popup-loading-spin .72s linear infinite;
}

@keyframes popup-loading-spin {
  to { transform: rotate(360deg); }
}

/* Error */
.error-msg {
  background: color-mix(in srgb, var(--brand-accent) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand-accent) 24%, var(--border));
  color: var(--brand-accent-strong);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  border-radius: 10px;
  display: none;
}
.error-msg.show { display: block; }

.payment-retry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.payment-retry-btn,
.payment-retry-link {
  border: 1px solid var(--brand-accent);
  font-size: 13px;
  font-weight: 800;
}

.payment-retry-btn {
  background: var(--brand-accent);
  color: var(--surface);
}

.payment-retry-link {
  background: var(--surface);
  color: var(--brand-accent-strong);
}

/* ══════════════════════════════════════
   모바일 반응형
══════════════════════════════════════ */
@media (max-width: 600px) {
  body { line-height: 1.6; }
  .page-main-wrap { width: 100%; padding: 0 12px 24px; }
  .pmenu-name span { display: block; margin-left: 0; margin-top: 1px; }
  .pmenu-desc { font-size: 10px; }
  .poster-menu-item { gap: 10px; }

  .pizza-right { gap: 10px; }
  .pizza-name { font-size: var(--text-md); line-height: 1.4; }
  .pizza-price { font-size: var(--text-xs); }
  .qty-btn { width: 32px; height: 32px; font-size: 18px; }
  .qty-val { font-size: 18px; }
  .takeout-area-inner { padding: 8px 10px; gap: 8px; }
  .summary-row { font-size: var(--text-sm); }
  .summary-row.total { font-size: var(--text-lg); }
  :is(.submit-btn, .cb-submit-btn) { padding: 14px 16px; font-size: var(--text-md); min-height: 50px; }
  .modal {
    max-height: calc(100dvh - 32px);
    padding: 28px 20px;
    border-radius: 16px;
  }
  .modal-close {
    width: min(100%, 260px);
    max-width: 100%;
    margin-top: 8px;
  }
  .modal-close + .modal-close {
    margin-left: 0;
  }
  .side-menu { width: min(82vw, 300px); right: calc(min(82vw, 300px) * -1); }
  .side-menu a { min-height: var(--tap-min); font-size: var(--text-md); }

  .cb-header { padding: 40px 16px 24px; }
  .cb-title { font-size: clamp(27px, 8.8vw, 34px); line-height: 1.12; }
  .cb-subtitle { font-size: var(--text-sm); line-height: 1.55; }
  .cb-date { font-size: var(--text-sm); padding: 7px 14px; }
  .cb-menu-card { border-radius: 14px; margin-top: -12px; }
  .cb-menu-body { padding: 16px; }
  .cb-menu-name { font-size: var(--text-lg); line-height: 1.35; }
  .cb-menu-desc { font-size: var(--text-sm); line-height: 1.65; margin-bottom: 12px; }
  .cb-step-card { border-radius: var(--radius-md); padding: 16px; }
  .cb-step-title { font-size: var(--text-md); line-height: 1.45; }
  .og-menu-sel-name { font-size: var(--text-md); }
  .og-menu-sel-price { font-size: var(--text-sm); }
  .dynamic-brand-page .qty-btn { width: 38px; height: 38px; }
  .cb-form-field label { font-size: var(--text-sm); margin-bottom: 6px; }
  .cb-form-field input { font-size: var(--text-md); min-height: var(--tap-min); }
}

/* ===== from index.html ===== */
/* ── 햄버거 메뉴 ── */
/* ── 이우락쿱 홈 아이콘 ── */
.rockcoop-home-link,
.popup-notification-btn {
  top: 14px;
  position: fixed;
}

.rockcoop-home-link,
.popup-notification-btn,
.hamburger-auth-icon-wrap {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.rockcoop-home-link {
  left: 14px;
  z-index: 900;
  border-radius: 12px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.rockcoop-home-link:hover,
.rockcoop-home-link:focus-visible,
.popup-notification-btn:hover,
.popup-notification-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lift);
  outline: none;
}

.rockcoop-home-icon {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.popup-notification-btn{
  right: 62px;
  z-index: 901;
  border: 0;
  border-radius: 50%;
  color: #374151;
  cursor: pointer;
  transition: opacity .16s ease, transform .16s ease, box-shadow .16s ease;
}
.popup-notification-btn[hidden]{
  display:none;
}
.popup-notification-icon{
  width:24px;
  height:24px;
}
.popup-notification-badge,
.hamburger-profile-badge{
  position:absolute;
  top:-3px;
  right:-3px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:2px solid var(--surface);
  border-radius:999px;
  background:#ef4444;
  color:var(--surface);
  font-size:10px;
  font-weight:900;
  line-height:1;
  box-shadow:0 2px 6px rgba(239,68,68,.32);
}
.popup-notification-badge[hidden],
.hamburger-profile-badge[hidden],
.popup-menu-open .hamburger-profile-badge{
  display:none;
}
.hamburger-btn {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 900;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: none;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}
.hamburger-auth-icon-wrap{
  position:relative;
  border-radius:50%;
}
.hamburger-auth-icon{
  width:40px;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  color:#4b5563;
}
.hamburger-auth-icon.is-hidden{
  display:none;
}
.hamburger-auth-icon svg{
  width: 100%;
  height: 100%;
}
.hamburger-auth-image{
  display:block;
  width:100%;
  height:100%;
  border-radius:50%;
  object-fit:cover;
  object-position:center;
  border:1px solid #e5e7eb;
  box-sizing:border-box;
}
.hamburger-auth-image.is-hidden{
  display:none;
}

.side-menu{position:fixed;top:0;right:-260px;width:240px;height:100%;background:var(--surface);z-index:800;box-shadow:-4px 0 20px rgba(0,0,0,.12);transition:right .28s ease;padding:70px 0 30px;display:flex;flex-direction:column;}
.side-menu.open{right:0;}
.side-menu-title{font-size:11px;font-weight:600;color:#999;letter-spacing:.08em;padding:0 24px 10px;text-transform:uppercase;}
.side-menu a{display:flex;align-items:center;gap:12px;padding:14px 24px;font-size:15px;color:#222;text-decoration:none;border-bottom:1px solid #f0f0f0;transition:background .15s;}
.side-menu a:hover,.side-menu a.active{background:color-mix(in srgb, var(--brand-accent) 14%, #fff);color:var(--brand-accent-strong);}
.side-menu a.is-hidden{
  display:none;
}
.side-menu a.side-menu-auth-link{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  margin:12px 20px 0;
  padding:0 16px;
  border:0;
  border-radius:12px;
  font-size:15px;
  font-weight:700;
  text-decoration:none;
  transition:filter .15s, transform .15s, background .15s;
}
.side-menu a.kakao-login-short{
  background:#FEE500;
  color:rgba(0,0,0,.85);
}
.side-menu a.kakao-logout-short{
  background:#f5f5f5;
  color:rgba(0,0,0,.85);
  border:1px solid #e3e3e3;
}
.side-menu a.side-menu-auth-link:hover,
.side-menu a.side-menu-auth-link:focus-visible{
  filter:brightness(.98);
  transform:translateY(-1px);
}
.kakao-auth-symbol{
  width:20px;
  height:20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#000;
}
.kakao-auth-symbol svg{
  width:100%;
  height:100%;
  display:block;
  fill:currentColor;
}
.side-menu a.side-menu-auth-link.is-hidden{
  display:none;
}
.side-menu-overlay{position:fixed;inset:0;z-index:700;display:none;}
.side-menu-overlay.open{display:block;}

/* ── 춘분 스타일 ── */
.cb-header{background:linear-gradient(135deg,var(--brand-accent-strong) 0%,var(--brand-accent) 60%,var(--brand-accent) 100%);color:var(--surface);padding:48px 20px 32px;text-align:center;}
.cb-brand-tag{font-size:12px;opacity:.8;margin-bottom:8px;letter-spacing:.04em;}
.cb-title{font-size:32px;font-weight:800;letter-spacing:-.02em;margin-bottom:4px;}
.cb-subtitle{font-size:14px;opacity:.85;margin-bottom:16px;}
.cb-date{font-size:16px;font-weight:600;background:rgba(255,255,255,.18);display:inline-block;padding:6px 16px;border-radius:20px;}
.cb-menu-card{width:100%;max-width:none;margin:0 auto;background:var(--surface);border-radius:16px;box-shadow:0 4px 20px rgba(0,0,0,.08);overflow:hidden;margin-top:-16px;}
.cb-menu-img{display:block;width:100%;height:auto;object-fit:contain;background:#e8f5e9;}
.cb-menu-body{padding:20px;}
.cb-menu-name{font-size:18px;font-weight:700;color:var(--brand-accent-strong);margin-bottom:6px;}
.cb-menu-desc{font-size:14px;color:var(--brand-summary-fg);line-height:1.7;margin-bottom:14px;}

.cb-step-card{background:var(--surface);border-radius:14px;border:1px solid var(--brand-summary-border);padding:20px;margin-bottom:14px;box-shadow:0 4px 14px color-mix(in srgb, var(--brand-accent) 12%, transparent);}
.cb-step-num{font-size:11px;font-weight:700;color:var(--brand-accent);letter-spacing:.06em;text-transform:uppercase;margin-bottom:4px;}
.cb-step-title{font-size:16px;font-weight:600;color:var(--brand-accent-subtle, var(--brand-accent-strong));margin-bottom:14px;}

.closed-msg{text-align:center;padding:40px 20px;color:var(--brand-summary-fg);}
.closed-msg h2{font-size:18px;color:var(--brand-accent-strong);margin-bottom:8px;}

.cb-slots-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;}

.cb-form-grid{display:grid;gap:12px;}
.cb-form-field label{font-size:13px;color:var(--brand-summary-fg);display:block;margin-bottom:4px;}
.cb-form-field input,
.cb-form-field textarea{
  width:100%;
  padding:11px 14px;
  border:1.5px solid color-mix(in srgb, var(--brand-summary-border) 66%, #fff);
  border-radius:8px;
  font-size:15px;
  box-sizing:border-box;
  outline:none;
  transition:border-color .15s;
}
.cb-form-field input:focus,
.cb-form-field textarea:focus{border-color:var(--brand-accent);}
.cb-form-field textarea{
  display:block;
  min-height:74px;
  resize:vertical;
  line-height:1.5;
}

.og-menu-sel-row{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--brand-summary-line);}
.og-menu-sel-row:last-child{border-bottom:none;}

.og-menu-sel-name{font-size:14px;color:var(--charcoal);font-weight:500;}
.og-menu-sel-price{color:var(--brand-accent);margin-top:2px;}
/* ══════════════════════════════════════ 상태 및 유틸리티 ══════════════════════════════════════ */
.active{color:var(--brand-accent-strong);}
.pmenu-info{flex:1;}
.order-summary{display:none;background:var(--brand-summary-bg);border:1px solid var(--brand-summary-border);border-radius:12px;padding:14px 16px;margin:14px 0;font-size:13px;font-weight:400;}
.og-menu-sel-name:hover{text-decoration:underline;}

/* 동적 상태 클래스 */
.has-qty{border-color:var(--brand-accent-strong);}
.selected{border-color:var(--brand-accent-strong);background:color-mix(in srgb, var(--brand-accent-strong) 6%, #fff);}

/* ===== mobile-first full layout ===== */
html, body {
  min-height: 100%;
}

.page {
  display: none;
  min-height: 100dvh;
}

.page.active {
  display: flex;
  flex-direction: column;
}

.page-main-wrap {
  width: min(100%, 480px);
  margin: 0 auto;
  padding: 0 16px 32px;
  flex: 1;
}

.page-main-wrap > * {
  width: 100%;
}

@media (max-width: 380px) {
  .page-main-wrap {
    padding: 0 10px 20px;
  }

  .my-reservation-card {
    padding: 11px;
  }

  .my-reservation-meta {
    gap: 6px 7px;
  }

  .my-reservation-meta-item {
    grid-template-columns: 38px minmax(0, 1fr);
    font-size: 11.5px;
  }

  .my-reservation-status-row,
  .my-reservation-actions {
    gap: 6px;
  }

  .cb-title {
    font-size: 26px;
  }

  .cb-date {
    font-size: 13px;
  }
}

/* ── 소셜/리뷰 UI ── */
.review-section {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--brand-summary-border) 75%, #fff);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--brand-accent) 12%, transparent);
  margin-top: 16px;
  position: relative;
}
.review-section-head {
  display: block;
  padding: 0 0 16px;
}
.review-section-head h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-accent-strong);
  line-height: 1.35;
  margin: 0;
}
.review-summary-inline {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 14px;
  color: var(--brand-summary-fg);
  font-weight: 700;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}
.review-title-wrap {
  min-width: 0;
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.review-summary-count { color: var(--brand-summary-fg); }
.review-auth-message {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--brand-summary-fg);
  background: var(--brand-summary-bg);
  border: 1px solid var(--brand-summary-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.review-auth-login-btn {
  border: 0;
  background: #FEE500;
  color: rgba(0,0,0,.85);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0,0,0,.08);
  transition: filter .15s, transform .15s;
}
.review-auth-login-btn:hover,
.review-auth-login-btn:focus-visible {
  filter: brightness(.98);
  transform: translateY(-1px);
}
.review-auth-message.is-hidden {
  display: none;
}
.review-form {
  margin: 6px 0 16px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--brand-summary-border) 75%, #fff);
  border-radius: 14px;
  background: var(--surface);
}
.review-form-actions {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.review-form textarea,
.review-inline-form textarea {
  width: 100%;
  border: 1px solid var(--brand-summary-line);
  resize: vertical;
  font-family: var(--font);
  color: var(--brand-summary-fg);
}
.review-form textarea {
  border-radius: 10px;
  min-height: 92px;
  padding: 10px;
  background: var(--surface);
}
.review-error {
  margin-top: 8px;
  color: #c04a4a;
  font-size: 12px;
}
.review-list { margin-top: 0; display: flex; flex-direction: column; gap: 0; }
.review-list-title {
  margin: 22px 0 12px;
  font-size:16px;
  font-weight:600;
  color:var(--brand-accent-strong);
  line-height:1.45;
}
.review-empty {
  color: var(--brand-summary-fg);
  font-size: 15px;
  padding: 0 0 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.review-item {
  border: 0;
  border-bottom: 1px solid var(--brand-summary-line);
  background: var(--surface);
  border-radius: 0;
  padding: 8px 0 10px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.review-item-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: var(--brand-accent-strong);
  background: var(--brand-summary-bg);
  border: 1px solid var(--brand-summary-border);
  flex: 0 0 36px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.65);
}
.review-item-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.review-item-body {
  flex: 1;
  min-width: 0;
}
.review-item-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2px;
  margin-bottom: 5px;
}
.review-item-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--charcoal);
}
.review-item-time {
  display:block;
  margin-top: 0;
  font-size: 12px;
  color: var(--brand-summary-fg);
  opacity: .72;
}
.review-item-comment {
  font-size: 14px;
  color: var(--brand-summary-fg);
  line-height: 1.2;
}
.review-item p {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.review-item-action-row {
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  min-height:20px;
}
.review-item-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:0;
  margin-top:0;
  flex:0 0 auto;
}
.review-reaction-actions {
  display:inline-flex;
  align-items:center;
  margin-right:10px;
}
.comment-like-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  overflow: visible;
  border: 0;
  background: transparent;
  padding: 0;
  color: #6f6860;
  cursor: pointer;
  transition:
    color 150ms ease,
    transform 150ms ease;
}
.comment-like-button:hover,
.comment-like-button:focus-visible {
  color: var(--danger);
  transform: translateY(-1px) scale(1.1);
  outline: none;
}
.comment-like-button:active {
  transform: scale(0.9);
}
.comment-like-button-liked {
  color: var(--danger);
  animation: comment-heart-button-pop 360ms cubic-bezier(0.2, 1.7, 0.45, 1);
}
.comment-like-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  transition:
    fill 200ms ease,
    stroke 200ms ease,
    transform 200ms ease;
  filter: drop-shadow(0 0 0 transparent);
}
.comment-like-button-liked .comment-like-icon {
  filter: drop-shadow(0 2px 4px rgb(225 29 72 / 0.32));
  animation: comment-heart-beat 420ms cubic-bezier(0.18, 1.8, 0.42, 1);
}
.comment-like-button-liked::after {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.55rem;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 9999px;
  background: transparent;
  box-shadow:
    0 -0.68rem 0 var(--danger),
    0.58rem -0.36rem 0 #fb7185,
    0.68rem 0.22rem 0 var(--danger),
    0.24rem 0.68rem 0 #fb7185,
    -0.42rem 0.58rem 0 var(--danger),
    -0.7rem -0.08rem 0 #fb7185,
    -0.42rem -0.58rem 0 var(--danger);
  pointer-events: none;
  animation: comment-heart-burst 560ms ease-out forwards;
}
.comment-like-count {
  min-width: 0.5rem;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}
.review-action-btn {
  position:relative;
  border:0;
  background:transparent;
  padding:0;
  font-size:12px;
  font-weight:700;
  color:#9b948c;
  cursor:pointer;
}
.review-action-btn + .review-action-btn {
  margin-left:14px;
}
.review-action-btn + .review-action-btn::before {
  content:"|";
  position:absolute;
  left:-9px;
  color:#d2cbc3;
  font-weight:400;
}
.review-action-btn:hover,
.review-action-btn:focus-visible,
.review-action-btn.is-active {
  color:var(--brand-accent-strong);
}
.review-action-delete {
  color:#9b5a50;
}
.review-action-delete:hover,
.review-action-delete:focus-visible {
  color:#7d3f35;
}
@keyframes comment-heart-beat {
  0% {
    transform: scale(0.72) rotate(-8deg);
  }
  42% {
    transform: scale(1.42) rotate(5deg);
  }
  68% {
    transform: scale(0.92) rotate(-2deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}
@keyframes comment-heart-button-pop {
  0% {
    transform: scale(0.94);
  }
  55% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes comment-heart-burst {
  0% {
    opacity: 0.9;
    transform: scale(0.35);
    filter: blur(0);
  }
  65% {
    opacity: 0.75;
  }
  100% {
    opacity: 0;
    transform: scale(1.85);
    filter: blur(0.5px);
  }
}
.review-replies {
  margin-top:8px;
  padding-left:8px;
  border-left:2px solid var(--brand-summary-line);
}
.review-reply-item {
  display:flex;
  gap:8px;
  padding:8px 0 0;
}
.review-reply-avatar {
  width:28px;
  height:28px;
  flex-basis:28px;
  font-size:12px;
}
.review-reply-head {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  margin-bottom:3px;
}
.review-item-foot {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:3px;
}
.review-inline-form-wrap {
  margin-top:6px;
}
.review-inline-form {
  border:1px solid var(--brand-summary-line);
  border-radius:10px;
  padding:8px;
  background:var(--surface);
}
.review-inline-form textarea {
  min-height:58px;
  border-radius:8px;
  padding:8px;
}
.review-inline-actions {
  display:flex;
  justify-content:flex-end;
  gap:6px;
  margin-top:6px;
}
.review-inline-submit,
.review-inline-cancel {
  border:1px solid var(--brand-summary-border);
  font-size:12px;
  font-weight:700;
  background:var(--surface);
  color:var(--brand-summary-fg);
}
.review-inline-submit {
  background:var(--brand-accent);
  border-color:var(--brand-accent);
  color:var(--surface);
}
.review-submit-btn {
  border-radius: 10px;
}
@media (max-width: 680px) {
  .review-section { padding: 16px; }
  .review-section-head h3 {
    font-size: var(--text-lg);
  }
  .review-summary-inline {
    font-size: 13px;
    flex-wrap: nowrap;
    gap: 5px;
  }
}

/* Final layer for board-style dynamic brand reservation pages */
.dynamic-brand-page .dynamic-brand-body {
  white-space: normal;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.dynamic-brand-page .dynamic-menu-list {
  display: grid;
  gap: 14px;
}

.dynamic-brand-page .dynamic-menu-item {
  grid-template-columns: minmax(0, 1fr) auto;
  row-gap: 14px;
}

.dynamic-brand-page .dynamic-menu-item .pizza-right {
  align-items: center;
  width: 100%;
  justify-content: flex-end;
  gap: 22px;
}

.dynamic-brand-page .dynamic-menu-item .og-menu-sel-price {
  margin-top: 0;
  min-width: 250px;
}

.dynamic-brand-page .dynamic-menu-item .takeout-area {
  grid-column: 1 / -1;
}

.dynamic-brand-page .pizza-item.has-qty .takeout-area {
  max-height: 260px;
}

.dynamic-brand-page .takeout-area-inner {
  flex-wrap: wrap;
}

.dynamic-brand-page .takeout-bundle-opts {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.dynamic-brand-page .takeout-bundle-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-note);
  margin-right: 2px;
}

.dynamic-brand-page .takeout-bundle-opt {
  border-style: dashed;
}

.dynamic-brand-page .cb-step-card.is-disabled {
  opacity: 0.58;
  pointer-events: none;
}

.dynamic-brand-page .slot-empty-state {
  grid-column: 1 / -1;
  min-height: 64px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(17, 24, 39, 0.24);
  border-radius: 10px;
  color: #6b7280;
  background: rgba(17, 24, 39, 0.035);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 14px;
}

/* 조합원 가격 표시 */
.pmenu-price-val,.pizza-price{display:flex;flex-direction:column;align-items:flex-end;gap:6px;line-height:1.25;}
.regular-price-line,.coop-price-line{display:flex;align-items:center;justify-content:flex-end;gap:6px;white-space:nowrap;line-height:1.15;}
.regular-price-line,.regular-price-line.no-discount,.coop-price-line,.coop-price-line.active{color:var(--price-orange);}
.regular-price-line{opacity:1;}
.regular-price-line.no-discount{text-decoration:none;font-weight:800;gap:9px;}
.regular-price-line.no-discount .price-amount,.coop-price-line .price-amount{font-size:23px;font-weight:800;line-height:1.15;letter-spacing:-.06em;}
.regular-price-line.muted{gap:5px;color:var(--price-muted);opacity:1;text-decoration:none;}
.regular-price-line.muted .price-label{color:var(--price-muted);font-size:14px;font-weight:400;line-height:1.15;}
.regular-price-line.muted .price-value{color:var(--price-muted);text-decoration:none;}
.regular-price-line.muted .price-value .price-label{color:var(--price-muted);}
.regular-price-line.muted .price-amount{color:inherit;font-size:14px;font-weight:400;line-height:1.15;letter-spacing:-.03em;}
.coop-price-line{align-items:center;gap:9px;font-weight:800;}
.price-value{display:inline-flex;align-items:baseline;gap:0;}
.discount-rate-badge{display:inline-flex;align-items:center;height:20px;padding:0 12px 0 7px;background:var(--price-orange);color:var(--surface);font-size:12px;font-weight:800;line-height:1;clip-path:polygon(0 0,100% 0,88% 100%,0 100%);}
.price-label{font-size:12px;font-weight:400;}
.price-amount{font-size:19px;}
.coop-summary-badge{display:inline-flex;margin-left:4px;padding:1px 6px;border-radius:999px;background:#fff2cc;color:var(--price-orange);font-size:11px;font-weight:800;vertical-align:middle;}
@media (max-width:480px){.regular-price-line,.coop-price-line{gap:4px}}


.order-summary .summary-price--coop{display:flex;flex-direction:column;align-items:flex-end;gap:2px;line-height:1.2;}
.order-summary .summary-regular-price,.order-summary .summary-coop-price{display:flex;align-items:baseline;justify-content:flex-end;gap:5px;white-space:nowrap;}
.order-summary .summary-regular-price{color:#9a8f83;text-decoration:line-through;text-decoration-thickness:1px;text-decoration-color:rgba(154,143,131,.8);}
.order-summary .summary-coop-price{color:var(--price-orange);font-weight:900;}
.order-summary .summary-price-label{font-size:.72em;font-weight:700;}

/* 긴 브랜드 본문/제목 줄바꿈 보정 */
.dynamic-brand-page .cb-title,
.dynamic-brand-page .cb-subtitle,
.dynamic-brand-page .pmenu-name,
.dynamic-brand-page .pizza-name,
.dynamic-brand-page .poster-notice {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.dynamic-brand-page .cb-subtitle {
  white-space: normal;
}

/* 2026-05-16 popup brand payment method selector */
.payment-method-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.payment-method-options.is-hidden {
  display: none;
}
.payment-method-option {
  width: 100%;
  text-align: left;
  border: 1.5px solid color-mix(in srgb, var(--brand-summary-border) 72%, #fff);
  border-radius: 12px;
  background: var(--surface);
  color: var(--charcoal);
  padding: 13px 14px;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
}
.payment-method-option:hover {
  transform: translateY(-1px);
  border-color: var(--brand-accent);
}
.payment-method-option.selected {
  border-color: var(--brand-accent);
  background: color-mix(in srgb, var(--brand-summary-bg) 82%, #fff);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
}
.payment-method-option strong {
  display: block;
  font-size: 14px;
  color: var(--brand-accent-strong);
  margin-bottom: 4px;
}
.payment-method-option span {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: var(--brand-summary-fg);
}
.payment-expected-panel {
  margin-top: 0;
}
.payment-expected-panel + .payment-method-options {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--brand-summary-border) 64%, #fff);
}
.payment-expected-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-summary-fg);
  margin-bottom: 8px;
}
.payment-expected-empty {
  font-size: 22px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--brand-accent-strong);
}
.payment-expected-panel .order-summary {
  margin: 0;
}
@media (max-width: 560px) {
  .payment-method-options { grid-template-columns: 1fr; }
}

.modal-icon-close {
  appearance: none;
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0 0 2px;
  border: 1px solid color-mix(in srgb, var(--brand-summary-line) 72%, #fff);
  border-radius: 999px;
  background: color-mix(in srgb, var(--warm-white) 88%, #f3f4f6);
  color: var(--brand-summary-fg);
  font-family: var(--font);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}

.modal-icon-close:hover,
.modal-icon-close:focus-visible {
  background: var(--brand-accent-strong);
  border-color: var(--brand-accent-strong);
  color: var(--surface);
  outline: none;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .dynamic-brand-page .cb-menu-img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  .dynamic-brand-page .dynamic-menu-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .dynamic-brand-page .dynamic-menu-item .pizza-right {
    width: 100%;
    justify-content: flex-end;
    gap: 14px;
  }

  .dynamic-brand-page .dynamic-menu-item .og-menu-sel-price {
    min-width: 0;
  }

  .my-reservation-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .my-reservations-page,
  .my-reservations-page .cb-header,
  .my-reservations-page .page-main-wrap {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .my-reservations-page .cb-header {
    min-width: 0;
  }

  .my-reservations-page .cb-header .cb-subtitle {
    display: block;
    width: auto;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    padding-inline: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: keep-all;
    text-align: center;
    line-height: 1.55;
    box-sizing: border-box;
  }

  .my-reservation-list,
  .my-reservation-card {
    max-width: 100%;
    min-width: 0;
  }

  .my-reservation-card {
    padding: 12px;
  }

  .my-reservation-detail-grid,
  .my-reservation-edit-grid,
  .my-reservation-menu-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .my-reservation-meta,
  .my-reservation-status-row,
  .my-reservation-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .my-reservation-meta-item {
    grid-template-columns: 46px minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
  }

  .my-reservation-meta-phone,
  .my-reservation-meta-phone span {
    text-align: left;
    justify-self: stretch;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .my-reservation-status,
  .my-reservation-actions button,
  .my-reservation-edit-actions button {
    width: 100%;
    max-width: 100%;
  }

  .my-reservation-actions button.danger {
    grid-column: auto;
  }
}

/* ── 접근성: prefers-reduced-motion 사용자는 애니메이션 최소화 ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .pull-refresh.is-refreshing .pull-refresh__spinner {
    animation: none !important;
  }
}
