/* Lounge M Menu Guide — 테이블 차지 버튼 + 안내 창 v1990-beer-borrow-hf150 */

/* 초기 화면 버튼 줄: [직원 호출] [테이블 차지] [신청곡 접수] 세 개가 한 줄에 들어가도록
   세 버튼 모두 폭·여백·글자 크기를 같은 기준으로 줄인다. (.has-table-charge는 table-charge.js가 붙임) */
body.phone-mode:not(.ipad-detail).is-landing .staff-call-entry.has-table-charge {
  gap: 7px;
  padding-inline: 0;
}

.staff-call-entry.has-table-charge .staff-call-open-button,
.staff-call-entry.has-table-charge .table-charge-open-button,
.staff-call-entry.has-table-charge .music-request-open-button {
  flex: 1 1 0;
  min-width: 0;
  max-width: 132px;
  min-height: 36px;
  gap: 6px;
  padding: 7px 8px 8px;
}

.staff-call-entry.has-table-charge .staff-call-open-ko,
.staff-call-entry.has-table-charge .table-charge-open-ko,
.staff-call-entry.has-table-charge .music-request-open-ko {
  font-size: clamp(14px, calc(3.7vw + 1px), 16px);
}

.staff-call-entry.has-table-charge .staff-call-forward-chevron,
.staff-call-entry.has-table-charge .table-charge-forward-chevron,
.staff-call-entry.has-table-charge .music-request-forward-chevron {
  width: 7px;
  height: 7px;
}

.table-charge-open-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(218, 180, 102, 0.72);
  background: linear-gradient(180deg, rgba(55, 39, 22, 0.88), rgba(13, 10, 8, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 231, 173, 0.16), 0 7px 18px rgba(0, 0, 0, 0.24);
  color: #f4ead5;
  font: inherit;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.table-charge-open-ko {
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.05em;
}

.table-charge-forward-chevron {
  flex: 0 0 auto;
  border-top: 2px solid rgba(240, 211, 151, 0.94);
  border-right: 2px solid rgba(240, 211, 151, 0.94);
  transform: rotate(45deg);
}

/* 안내 창 — 신청곡 접수 창과 같은 톤 */
.table-charge-modal[hidden] { display: none !important; }
body.table-charge-modal-open { overflow: hidden; }

.table-charge-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 14px max(16px, env(safe-area-inset-bottom));
}

.table-charge-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.table-charge-panel {
  position: relative;
  width: min(94vw, 430px);
  max-height: min(92vh, 780px);
  max-height: min(92dvh, 780px, 100%);
  overflow-y: auto;
  border: 1px solid rgba(218, 180, 102, 0.38);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(35, 27, 19, 0.99), rgba(12, 10, 8, 0.995));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 237, 195, 0.08);
  color: #f6eddc;
  padding: 26px 20px 0;
  text-align: left;
}

.table-charge-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: rgba(246, 237, 220, 0.7);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.table-charge-eyebrow {
  margin: 0 40px 5px;
  color: #dab466;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.14em;
  white-space: nowrap;
  text-align: center;
}

.table-charge-title {
  margin: 0;
  color: #fffaf0;
  font-size: clamp(25px, calc(6.6vw + 1px), 31px);
  line-height: 1.2;
  letter-spacing: -0.06em;
  text-align: center;
}

.table-charge-title-en {
  display: block;
  margin-top: 4px;
  color: rgba(218, 180, 102, 0.86);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.table-charge-description {
  margin: 8px 2px 0;
  color: rgba(246, 237, 220, 0.74);
  font-size: 15.5px;
  line-height: 1.55;
  letter-spacing: -0.03em;
  word-break: keep-all;
  text-wrap: pretty;
  text-align: center;
}

.table-charge-amount {
  margin: 10px 0 0;
  padding: 9px 13px;
  border: 1px solid rgba(218, 180, 102, 0.32);
  border-radius: 14px;
  background: rgba(218, 180, 102, 0.08);
  color: #efd391;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.03em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.table-charge-waiver {
  margin: 10px 2px 0;
  color: rgba(246, 237, 220, 0.9);
  font-size: 16.5px;
  line-height: 1.55;
  letter-spacing: -0.03em;
  word-break: keep-all;
  text-align: center;
}

.table-charge-block {
  margin-top: 10px;
  padding-top: 11px;
  border-top: 1px solid rgba(218, 180, 102, 0.18);
}

.table-charge-block-title {
  margin: 0 0 4px;
  color: #dab466;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.table-charge-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.table-charge-list li {
  position: relative;
  padding-left: 13px;
  color: rgba(246, 237, 220, 0.82);
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: -0.03em;
  word-break: keep-all;
  font-variant-numeric: tabular-nums;
}

.table-charge-list li::before {
  content: "·";
  position: absolute;
  left: 2px;
  color: #dab466;
  font-weight: 900;
}

.table-charge-english {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(218, 180, 102, 0.18);
  display: grid;
  gap: 3px;
}

.table-charge-english p {
  margin: 0;
  color: rgba(246, 237, 220, 0.6);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
}

.table-charge-confirm {
  display: block;
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  border: 1px solid rgba(218, 180, 102, 0.72);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(122, 85, 36, 0.9), rgba(73, 48, 21, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 231, 173, 0.16), 0 7px 18px rgba(0, 0, 0, 0.24);
  color: #fff6df;
  font: inherit;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -0.02em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.table-charge-confirm:focus:not(:focus-visible) { outline: none; }

/* 첫 방문: [확인 & 매장 안내] (금색) · [확인 & 메뉴로 이동] (테두리) 나란히 */
.table-charge-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.table-charge-actions .table-charge-confirm {
  margin-top: 0;
  padding: 0 6px;
  font-size: 15.5px;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.table-charge-confirm.is-secondary {
  background: rgba(218, 180, 102, 0.06);
  border-color: rgba(218, 180, 102, 0.6);
  box-shadow: none;
  color: #efd391;
}

@media (max-width: 360px) {
  .table-charge-actions .table-charge-confirm { font-size: 14px; }
}

/* hf129 확인 버튼을 창 아래에 고정 — 앱 안 브라우저처럼 보이는 높이가 짧아도 버튼이
   스크롤 밑으로 숨지 않게 한다. 창 아래 여백(14px)은 고정 영역이 대신 가진다. */
.table-charge-dock {
  position: sticky;
  bottom: 0;
  z-index: 1;
  margin: 0 -20px;
  padding: 12px 20px 14px;
  background: linear-gradient(180deg, rgba(12, 10, 8, 0), rgba(12, 10, 8, 0.98) 12px);
}
.table-charge-dock .table-charge-actions,
.table-charge-dock .table-charge-confirm { margin-top: 0; }
