/* Confirm & pay — white page, top-right login */
html.pb-scroll,
body.pb-shell {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}
.pb-shell {
  --pb-ink: #222;
  --pb-muted: #717171;
  --pb-line: #ebebeb;
  --pb-card: #fff;
  --pb-accent: var(--accent-brown, #8b6914);
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: visible;
  background: #fff;
}
.pb-site-bg { display: none !important; }
.pb-overlay {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  background: #fff;
  padding: 0 0 calc(32px + env(safe-area-inset-bottom));
  display: block;
  box-sizing: border-box;
}
.pb-page {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  color: var(--pb-ink);
  padding: 0 12px;
  box-sizing: border-box;
}
.pb-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 56px;
  padding: 10px 4px;
  margin: 0 0 8px;
  background: #fff;
  border-bottom: 1px solid var(--pb-line);
}
.pb-topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-decoration: none;
  color: var(--pb-ink);
  font-weight: 700;
  font-size: 0.95rem;
}
.pb-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.pb-checkout {
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  padding: 8px 0 24px;
  overflow: visible;
}
.pb-checkout-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.pb-checkout-top h1 {
  margin: 0;
  font-family: var(--font-serif, Georgia, serif);
  font-size: 1.25rem;
  font-weight: 700;
}
.pb-checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.pb-checkout-main { min-width: 0; }
.pb-step {
  border: 1px solid var(--pb-line);
  border-radius: 14px;
  padding: 16px 16px 18px;
  margin-bottom: 12px;
  background: #fff;
}
.pb-step h2 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
}
.pb-step.is-done { opacity: 0.92; }
.pb-muted { color: var(--pb-muted); font-size: 0.9rem; line-height: 1.55; }
.pb-primary-btn,
.pb-pay-inline {
  display: inline-block;
  border: none;
  border-radius: 10px;
  background: var(--pb-accent, #8b6914);
  color: #fff;
  font: inherit;
  font-weight: 650;
  padding: 12px 18px;
  cursor: pointer;
  text-decoration: none;
}
.pb-pay-inline { width: 100%; text-align: center; background: #222; }
.pb-pay-inline:disabled { opacity: 0.45; cursor: not-allowed; }
.pb-pay-inline.needs-login { background: #222; }
.pb-primary-btn:hover,
.pb-pay-inline:not(:disabled):hover { opacity: 0.92; }
.pb-pay-login-hint {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--pb-muted);
}
.pb-contact-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 650;
  margin: 0 0 6px;
}
.pb-contact-input {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--pb-line);
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
}
.pb-head-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.pb-header-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: #222;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  order: 10;
}
.pb-header-login:hover { opacity: 0.9; }
.pb-header-account {
  display: inline-flex;
  align-items: center;
  max-width: min(46vw, 180px);
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--pb-line);
  background: #f7f7f7;
  color: var(--pb-ink);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  order: 10;
}
@media (max-width: 480px) {
  .pb-topbar { padding: 8px 0; min-height: 52px; }
  .pb-header-login {
    height: 32px;
    padding: 0 10px;
    font-size: 0.76rem;
  }
  .pb-topbar-brand span:not(.pb-city-badge) {
    max-width: 36vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .pb-topbar-actions {
    gap: 6px;
  }
  .pb-week {
    margin-right: -4px;
    padding-right: 4px;
  }
}
.pb-login-box {
  border-radius: 12px;
  background: linear-gradient(180deg, #faf8f4 0%, #fff 100%);
  border: 1px solid #ebe3d4;
  padding: 16px;
}
.pb-login-box.is-pulse,
.pb-step.is-need-login {
  box-shadow: 0 0 0 2px rgba(139, 105, 20, 0.35);
  animation: pb-pulse 0.9s ease 2;
}
@keyframes pb-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(139, 105, 20, 0.25); }
  50% { box-shadow: 0 0 0 4px rgba(139, 105, 20, 0.45); }
}
.pb-login-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #9a7420 0%, #8b6914 55%, #6f5410 100%);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(139, 105, 20, 0.28);
}
.pb-login-cta:hover { filter: brightness(1.05); }
.pb-login-cta-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.85rem;
}
.pb-login-done-title {
  margin: 0 0 4px;
  font-weight: 700;
}
.pb-login-switch {
  font-size: 0.85rem;
  color: var(--pb-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pb-summary { min-width: 0; }
.pb-summary-card {
  border: 1px solid var(--pb-line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}
@media (max-width: 859px) {
  .pb-checkout-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .pb-summary { order: -1; }
  .pb-checkout-top h1 { font-size: 1.05rem; }
  .pb-step { padding: 14px; }
  .pb-overlay { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
}
.pb-summary-hero {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--pb-line);
}
.pb-summary-hero img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}
.pb-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
  padding: 8px 0;
  border-bottom: 1px solid #f1f1f1;
}
.pb-summary-row span { color: var(--pb-muted); }
.pb-summary-row-place {
  align-items: center;
  flex-wrap: wrap;
}
.pb-place-select {
  max-width: min(100%, 220px);
  margin-left: auto;
  border: 1px solid var(--pb-line);
  border-radius: 8px;
  background: #fff;
  color: var(--pb-ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  padding: 6px 8px;
  cursor: pointer;
  text-align: right;
}
.pb-place-select:focus {
  outline: 2px solid rgba(139, 105, 20, 0.35);
  outline-offset: 1px;
}
@media (max-width: 480px) {
  .pb-summary-row-place {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .pb-place-select {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    text-align: left;
  }
}
.pb-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 12px;
  font-size: 1rem;
}
.pb-summary-total strong { font-size: 1.2rem; }
@media (min-width: 860px) {
  .pb-checkout-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.85fr);
    align-items: start;
  }
  .pb-summary-card {
    position: sticky;
    top: 72px;
  }
  .pb-page { padding: 0 20px; }
  .pb-overlay {
    padding-bottom: 48px;
  }
}
.pb-sheet {
  background: var(--pb-card);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  overflow: visible;
  position: relative;
}
.pb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--pb-line);
}
.pb-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.pb-head h1 {
  margin: 0;
  font-family: var(--font-serif, Georgia, serif);
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pb-city-badge {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 650;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f3f3;
  color: var(--pb-ink);
  border: 1px solid var(--pb-line);
}
.pb-head-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.pb-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--pb-ink);
  line-height: 1;
}
.pb-close:hover { background: #f3f3f3; }

/* Language square + dropdown */
.pb-lang {
  position: relative;
}
.pb-lang-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--pb-ink);
  padding: 0;
}
.pb-lang-btn:hover,
.pb-lang.is-open .pb-lang-btn {
  border-color: #222;
}
.pb-lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 132px;
  background: #fff;
  border: 1px solid var(--pb-line);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
  padding: 6px;
  z-index: 30;
}
.pb-lang.is-open .pb-lang-menu { display: block; }
.pb-lang-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--pb-ink);
  font-size: 0.88rem;
  font-weight: 550;
}
.pb-lang-menu a:hover { background: #f5f5f5; }
.pb-lang-menu a.is-on {
  background: #222;
  color: #fff;
}

.pb-body { padding: 8px 20px 24px; }
.pb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--pb-line);
}
.pb-row-label { font-size: 1rem; font-weight: 600; }
.pb-stepper { display: flex; align-items: center; gap: 14px; }
.pb-stepper button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #b0b0b0;
  background: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--pb-ink);
}
.pb-stepper button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.pb-stepper span { min-width: 1.2rem; text-align: center; font-weight: 600; }

.pb-section { padding: 18px 0 8px; }
.pb-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 12px;
}
.pb-section-title button {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: var(--pb-ink);
}
.pb-week {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.pb-day {
  flex: 0 0 auto;
  width: 52px;
  padding: 10px 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  text-align: center;
  color: var(--pb-muted);
  font: inherit;
}
.pb-day strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pb-ink);
  margin-top: 4px;
}
.pb-day.is-past { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
.pb-day.is-selected {
  background: var(--pb-ink);
  color: #fff;
}
.pb-day.is-selected strong { color: #fff; }

.pb-pkg {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--pb-line);
}
.pb-pkg:last-child { border-bottom: none; }
.pb-pkg img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: #f3f3f3;
}
.pb-pkg-meta { min-width: 0; }
.pb-pkg-title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}
.pb-pkg-price {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: var(--pb-ink);
}
.pb-list-price {
  margin-right: 6px;
  color: #999;
  text-decoration: line-through;
  font-weight: 500;
}
.pb-sale-price { font-weight: 700; }
.pb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pb-chip {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--pb-ink);
}
.pb-chip:hover { border-color: #222; }
.pb-chip.is-on {
  background: var(--pb-ink);
  border-color: var(--pb-ink);
  color: #fff;
}
.pb-pkg.is-active .pb-pkg-title { color: var(--pb-accent); }

.pb-note {
  margin: 16px 0 0;
  font-size: 0.78rem;
  color: var(--pb-muted);
  line-height: 1.6;
}

.pb-foot {
  position: sticky;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--pb-line);
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  z-index: 40;
  margin-top: 8px;
}
.pb-foot-inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pb-total-label { font-size: 0.78rem; color: var(--pb-muted); }
.pb-total-amt { font-size: 1.15rem; font-weight: 700; }
.pb-pay {
  border: none;
  border-radius: 10px;
  background: var(--pb-ink);
  color: #fff;
  font: inherit;
  font-weight: 650;
  padding: 14px 22px;
  cursor: pointer;
  white-space: nowrap;
}
.pb-pay:disabled { opacity: 0.45; cursor: not-allowed; }
.pb-pay:not(:disabled):hover { opacity: 0.9; }

.pb-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 50;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.pb-modal.is-open { display: flex; }
.pb-modal-panel {
  width: min(560px, 100%);
  max-height: 85vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 12px 18px 28px;
}
.pb-modal-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}
.pb-cal-month { margin: 18px 0 10px; font-weight: 700; font-size: 1.05rem; }
.pb-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  margin-bottom: 8px;
}
.pb-cal-dow {
  font-size: 0.75rem;
  color: var(--pb-muted);
  padding: 6px 0;
}
.pb-cal-cell {
  aspect-ratio: 1;
  border: none;
  background: transparent;
  border-radius: 50%;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.pb-cal-cell.is-muted {
  color: #ccc;
  text-decoration: line-through;
  cursor: not-allowed;
}
.pb-cal-cell.is-selected {
  background: #222;
  color: #fff;
}
.pb-cal-cell.is-today { box-shadow: inset 0 0 0 1px #222; }

@media (min-width: 720px) {
  .pb-modal { align-items: center; }
  .pb-modal-panel { border-radius: 16px; max-height: 80vh; }
}
