/*
  Lounge M Menu QR Guide / Staff Call UI - v16.98 staff call modal UI refine
  - STAFF CALL 보조 라벨의 크기를 한글 버튼명과 맞추되 볼드 속성은 제거한다.
  - 직원 호출 버튼 아래 여백을 늘려 상단 3개 카드와의 간격을 안정화한다.
*/

.staff-call-entry {
  width: 100%;
  max-width: 100%;
  margin: -10px 0 18px;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

body:not(.is-landing) .staff-call-entry {
  display: none !important;
}

body.phone-mode:not(.ipad-detail).is-landing .staff-call-entry {
  /* 아래쪽(12px, 기존 값)을 기준으로 위쪽을 맞춘다. 히어로의 margin-bottom(--landing-section-gap)과
     마진 상쇄가 일어나므로, 상쇄 후 결과가 항상 7px가 되도록 음수 마진으로 역산한다.
     (카드 줄 위쪽 골드 글로우가 아래쪽 여백을 시각적으로 좁아 보이게 해서, 실제 수치는
     아래쪽 12px보다 작게 잡아 착시를 상쇄한다.) */
  margin: calc(7px - var(--landing-section-gap, 18px)) 0 12px !important;
}

.staff-call-open-button {
  min-width: 134px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 7px 18px 8px;
  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)),
    rgba(20, 14, 9, 0.92);
  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;
  line-height: 1.05;
  text-align: center;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.staff-call-open-en {
  color: rgba(218, 180, 102, 0.96);
  font-size: clamp(16px, calc(3.75vw + 1px), 18px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.105em;
}

.staff-call-open-ko {
  color: #f4ead5;
  font-size: clamp(16px, calc(3.75vw + 1px), 18px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.05em;
}

.staff-call-forward-chevron {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 1px;
  border-top: 2px solid rgba(240, 211, 151, 0.94);
  border-right: 2px solid rgba(240, 211, 151, 0.94);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.staff-call-modal[hidden] {
  display: none !important;
}

.staff-call-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
}

.staff-call-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.staff-call-panel {
  --staff-call-pad-x: 22px;
  --staff-call-pad-bottom: 24px;
  position: relative;
  width: min(92vw, 420px);
  max-height: min(82vh, 680px);
  max-height: min(82dvh, 680px, 100%);
  overflow: auto;
  border-radius: 28px;
  border: 1px solid rgba(218, 180, 102, 0.55);
  background:
    radial-gradient(circle at 50% 0%, rgba(109, 78, 39, 0.34), transparent 42%),
    linear-gradient(180deg, rgba(27, 18, 11, 0.98), rgba(7, 6, 5, 0.98));
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 236, 190, 0.14);
  color: #f6eddc;
  padding: 28px var(--staff-call-pad-x) 0;
  scroll-padding-bottom: 88px;
  text-align: center;
}

/* 창 아래 여백은 각 화면이 가진다 — 요청 선택 화면은 아래 고정 영역이 대신 가진다 */
.staff-call-view { padding-bottom: var(--staff-call-pad-bottom); }
.staff-call-view-select { padding-bottom: 0; }

.staff-call-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(218, 180, 102, 0.55);
  background: rgba(0, 0, 0, 0.2);
  color: rgba(244, 219, 161, 0.98);
  font-size: 29px;
  line-height: 34px;
  cursor: pointer;
}

.staff-call-eyebrow {
  margin: 0 0 8px;
  color: rgba(218, 180, 102, 0.95);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.28em;
}

.staff-call-eyebrow-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: min(74%, 280px);
  margin: 0 auto 8px;
  white-space: nowrap;
}

.staff-call-eyebrow-brand::before,
.staff-call-eyebrow-brand::after {
  content: "";
  display: block;
  flex: 1 1 48px;
  height: 2px;
  min-width: 42px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(218, 180, 102, 0.82));
  box-shadow: 0 0 10px rgba(218, 180, 102, 0.12);
}

.staff-call-eyebrow-brand::after {
  background: linear-gradient(90deg, rgba(218, 180, 102, 0.82), transparent);
}

.staff-call-title {
  margin: 0;
  color: #fffaf0;
  font-size: clamp(29px, calc(7.2vw + 1px), 37px);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1.1;
}

.staff-call-view-select .staff-call-title {
  letter-spacing: -0.045em;
}

.staff-call-table {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin: 14px auto 0;
  padding: 5px 14px 6px;
  border-radius: 999px;
  background: rgba(218, 180, 102, 0.12);
  color: #e6c777;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.staff-call-copy,
.staff-call-confirm-copy,
.staff-call-status-copy {
  margin: 18px 0 0;
  color: rgba(242, 231, 211, 0.9);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -0.055em;
}

.staff-call-copy {
  font-size: 21px;
}

.staff-call-confirm-copy strong {
  color: #f0cf80;
  font-weight: 950;
}

.staff-call-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 0;
}

.staff-call-option,
.staff-call-primary,
.staff-call-secondary {
  min-height: 48px;
  border-radius: 16px;
  font: inherit;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.055em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.staff-call-option {
  border: 1px solid rgba(218, 180, 102, 0.42);
  background: rgba(255, 244, 214, 0.07);
  color: #f6eddc;
}

/* 버튼 수가 홀수면 마지막 버튼([기타])을 한 줄 전체로 편다 */
.staff-call-option:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.staff-call-option:focus,
.staff-call-open-button:focus,
.staff-call-close:focus,
.staff-call-primary:focus,
.staff-call-secondary:focus,
.staff-call-custom-submit:focus {
  outline: none;
}

.staff-call-option:focus-visible,
.staff-call-open-button:focus-visible,
.staff-call-close:focus-visible,
.staff-call-primary:focus-visible,
.staff-call-secondary:focus-visible,
.staff-call-custom-submit:focus-visible {
  outline: 2px solid rgba(240, 207, 128, 0.82);
  outline-offset: 3px;
  box-shadow:
    0 0 0 4px rgba(218, 180, 102, 0.14),
    inset 0 1px 0 rgba(255, 231, 173, 0.1);
}

.staff-call-option:active,
.staff-call-open-button:active,
.staff-call-primary:active,
.staff-call-secondary:active {
  transform: translateY(1px);
}

.staff-call-custom {
  margin: 12px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(218, 180, 102, 0.22);
  text-align: center;
}

.staff-call-custom-label {
  display: block;
  margin: 0 0 8px;
  color: #f0cf80;
  font-size: 20px;
  font-weight: 900;
  text-align: center;
  letter-spacing: -0.055em;
}

.staff-call-custom-input {
  width: 100%;
  min-height: 76px;
  resize: none;
  box-sizing: border-box;
  border-radius: 16px;
  border: 1px solid rgba(218, 180, 102, 0.48);
  background: rgba(255, 244, 214, 0.07);
  color: #fffaf0;
  padding: 13px 14px;
  font: inherit;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: -0.055em;
  outline: none;
  -webkit-appearance: none;
}

.staff-call-custom-input::placeholder {
  color: rgba(242, 231, 211, 0.46);
  font-weight: 650;
}

.staff-call-custom-input:focus {
  border-color: rgba(240, 207, 128, 0.9);
  box-shadow: 0 0 0 3px rgba(218, 180, 102, 0.14);
}

.staff-call-custom-hint {
  margin: 6px 2px 0;
  color: rgba(242, 231, 211, 0.56);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  letter-spacing: -0.04em;
}

.staff-call-custom-error {
  margin: 8px 2px 0;
  color: #f0cf80;
  font-size: 14px;
  font-weight: 850;
  text-align: center;
  letter-spacing: -0.045em;
}

.staff-call-custom-submit {
  display: block;
  width: 50%;
  min-height: 48px;
  margin: 10px auto 0;
  border-radius: 16px;
  border: 1px solid rgba(218, 180, 102, 0.58);
  background: linear-gradient(180deg, #d9b566, #a77a2e);
  color: #15100a;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.055em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.staff-call-custom-submit:active {
  transform: translateY(1px);
}

.staff-call-custom-submit[disabled] {
  opacity: 0.65;
  cursor: wait;
}

.staff-call-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 24px 0 0;
}

.staff-call-primary,
.staff-call-secondary {
  border: 1px solid rgba(218, 180, 102, 0.58);
}

.staff-call-primary {
  background: linear-gradient(180deg, #d9b566, #a77a2e);
  color: #15100a;
}

.staff-call-secondary {
  background: rgba(255, 244, 214, 0.08);
  color: #f3e5c4;
}

.staff-call-primary[disabled] {
  opacity: 0.65;
  cursor: wait;
}

.staff-call-done {
  width: 100%;
  margin: 24px 0 0;
}

body.staff-call-open {
  overflow: hidden;
}

@media (max-width: 430px) {
  .staff-call-entry {
    margin-top: -12px;
    margin-bottom: 18px;
  }

  .staff-call-open-button {
    min-width: 130px;
    min-height: 35px;
    gap: 8px;
    padding: 7px 16px 8px;
  }

  .staff-call-open-en {
    font-size: clamp(16px, calc(3.75vw + 1px), 18px);
    font-weight: 400;
    letter-spacing: 0.1em;
  }

  .staff-call-panel {
    --staff-call-pad-x: 18px;
    --staff-call-pad-bottom: 22px;
    padding: 27px var(--staff-call-pad-x) 0;
  }
}

/* v1968 매장 밖 방문(네이버 예비석 링크·테이블 코드 없음) 안내 — 신청곡 창의 안내와 같은 모양
   ([기타 요청 보내기] 바로 위, 붉은 글씨, 단어 단위 줄바꿈) */
.staff-call-custom-error.is-offsite-notice {
  margin: 12px 2px 4px;
  color: #efaa94;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.02em;
  word-break: keep-all;
  text-wrap: balance;
}

/* hf129 [기타 요청 보내기]와 그 위 안내를 창 아래에 고정 — 앱 안 브라우저처럼 보이는 높이가
   짧아도 버튼이 스크롤 밑으로 숨지 않게 한다. */
.staff-call-custom-dock {
  position: sticky;
  bottom: 0;
  z-index: 1;
  margin: 0 calc(-1 * var(--staff-call-pad-x));
  padding: 10px var(--staff-call-pad-x) var(--staff-call-pad-bottom);
  background: linear-gradient(180deg, rgba(8, 7, 5, 0), rgba(8, 7, 5, 0.98) 10px);
}
.staff-call-custom-dock .staff-call-custom-error { margin-top: 0; }
.staff-call-custom-dock .staff-call-custom-error.is-offsite-notice { margin-top: 2px; }
.staff-call-custom-dock .staff-call-custom-submit { margin-top: 0; }
.staff-call-custom-dock .staff-call-custom-error:not([hidden]) + .staff-call-custom-submit { margin-top: 10px; }
