/* Yobose 1.5 / 4a page-specific public-web overrides. */

/* Communication and 1:1 chat: css/chat-4a.css, css/chat-detail-4a.css, css/chat-host-4a.css */

/* Guest banner (reservations.html 이 공유; 마이페이지는 mypage-4a.css 로 이동) */
.redesign-15 .guest-banner {
    background: #f5f5f3 !important;
    border: 1px solid #ececea !important;
    border-radius: 20px !important;
}

.redesign-15 .guest-banner > div > div:first-child {
    background: #e9fbf4 !important;
    color: #1e8a5e !important;
}

.redesign-15 .guest-banner svg {
    stroke: #1e8a5e;
}

/* Login */
.redesign-15 .login-container {
    justify-content: flex-start;
    padding: 44px 24px 32px;
}

.redesign-15 .login-logo-img {
    height: 56px;
    margin-bottom: 18px;
}

/* HOST 가입 시작(login.html host_intent, 패스트트랙 링크 포함) — LBFLO-701.
   시안: docs/sales/host-fasttrack-start-mockup-v2.html(승인본). 민트(#99F0CE)는 진행 막대·포커스 같은
   포인트에만 쓰고 면 배경에는 쓰지 않는다. 좌우 정렬선 20px, 여백 4/8/12/20/28px. */
.lg4--host {
    --host-green: #197d53;
    --host-field-line: #8d949e;
    --host-sub: #5b6472;
    --host-gutter: 20px;
}

.lg4--host .lg4-bar { height: 56px; padding: 0 var(--host-gutter); }
.lg4--host .lg4-close { margin-left: -12px; }
.lg4--host .lg4-lang { position: relative; padding-right: 0; margin-right: -8px; }

/* 언어 선택: 버튼(44px) + 목록. 이모지·화살표는 aria-hidden, 이름은 aria-label 에 현재 언어를 함께 싣는다. */
.lg4-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 8px;
    border: 0;
    background: none;
    color: var(--host-sub);
    font: 500 14px/1 var(--c4a-font-text);
    cursor: pointer;
}

.lg4-lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 20;
    min-width: 168px;
    margin: 4px 0 0;
    padding: 4px;
    list-style: none;
    border: 1px solid var(--host-field-line);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(17, 24, 39, .12);
}

.lg4-lang-menu[hidden] { display: none; }

.lg4-lang-menu button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: #111827;
    font: 500 15px/1.2 var(--c4a-font-text);
    text-align: left;
    cursor: pointer;
}

.lg4-lang-menu button[aria-current="true"] { color: var(--host-green); font-weight: 700; }
.lg4--host .lg4-main { flex: none; padding: 12px var(--host-gutter) 0; }
.lg4--host .lg4-title { margin-top: 20px; font-size: 26px; line-height: 34px; word-break: keep-all; }

.login-host-intent { margin: 0; text-align: left; }

.login-host-lead {
    margin: 8px 0 0;
    color: var(--host-sub);
    font-size: 15px;
    line-height: 1.6;
    word-break: keep-all;
}

.login-host-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 20px 0 8px;
    padding: 0;
    list-style: none;
}

.login-host-steps li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--host-sub);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    word-break: keep-all;
}

.login-host-steps li::before {
    content: "";
    height: 4px;
    margin-bottom: 4px;
    border-radius: 4px;
    background: #e5e7eb;
}

.login-host-steps li.is-now { color: #111827; font-weight: 700; }
.login-host-steps li.is-now::before { background: #99f0ce; box-shadow: inset 0 0 0 1px var(--host-green); }
.login-host-steps small { color: var(--host-sub); font-size: 12px; font-weight: 500; }

.login-host-guide {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--host-green);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.login-host-guide:hover { text-decoration: underline; }

.lg4--host :is(a, button, select):focus-visible {
    outline: 2px solid var(--host-green);
    outline-offset: 2px;
}

/* 로그인 수단: 대표(카카오 등) 1개 풀폭 + 나머지 2열. 홀수로 남는 마지막 칸(이메일 등)은 한 줄을 다 쓴다. */
.lg4--host .lg4-actions { padding: 12px var(--host-gutter) 12px; }
.lg4--host .lg4-lead { height: 56px; }
.lg4--host .lg4-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.lg4--host .lg4-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.lg4--host .lg4-cell {
    gap: 6px;
    height: auto;
    min-height: 48px;
    padding: 6px 8px;
    border-color: var(--host-field-line);
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.25;
    text-align: center;
}

.lg4--host :is(.lg4-lead, .lg4-cell) svg { flex: none; }
.lg4--host #emailAuthForms { margin-top: 12px; }

/* '이미 계정이 있어요 · 로그인' — 같은 페이지 이메일 로그인 폼으로 가는 초록 텍스트 링크 */
.login-host-have-account {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 0;
    color: var(--host-green);
    font: 600 14px/1.3 var(--c4a-font-text);
    text-align: center;
    text-decoration: none;
}

.login-host-have-account:hover { text-decoration: underline; }

.lg4--host .lg4-terms { margin-top: 8px; color: var(--host-sub); font-size: 12px; }
.lg4--host .lg4-foot { margin-top: auto; padding: 0 var(--host-gutter) 20px; }
.lg4--host .site-footer { width: 100%; margin-top: 20px; padding: 12px 0 0; }

/* 쿠키 배너(HOST 가입 시작·링크 오류 화면만): 흰 카드 + 테두리, 버튼 2개 같은 폭. */
body:has(.lg4--host, .host-claim-invalid) .cookie-consent-banner {
    left: 12px;
    right: 12px;
    background: #ffffff;
    border: 1px solid #8d949e;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, .12);
}

body:has(.lg4--host, .host-claim-invalid) .cookie-consent-content {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 20px 20px;
}

body:has(.lg4--host, .host-claim-invalid) .cookie-message { color: #111827; font-size: 13px; line-height: 1.5; }
body:has(.lg4--host, .host-claim-invalid) .cookie-privacy-link { color: #197d53; font-weight: 600; }

body:has(.lg4--host, .host-claim-invalid) .cookie-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

body:has(.lg4--host, .host-claim-invalid) :is(.cookie-btn, .cookie-btn-link) {
    justify-content: center;
    min-height: 48px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    white-space: normal;
    box-shadow: none;
}

body:has(.lg4--host, .host-claim-invalid) .cookie-btn-link { background: #ffffff; border: 1px solid #8d949e; color: #111827; }
body:has(.lg4--host, .host-claim-invalid) .cookie-btn-link:hover { color: #111827; border-color: #6b7280; }
body:has(.lg4--host, .host-claim-invalid) .cookie-btn-primary,
body:has(.lg4--host, .host-claim-invalid) .cookie-btn-primary:hover { background: #111827; color: #ffffff; }

body:has(.lg4--host, .host-claim-invalid) :is(.cookie-btn, .cookie-btn-link):focus-visible { outline: 2px solid #197d53; outline-offset: 2px; }

/* HOST 가입 시작 화면: login.html 이 배너를 법적 고지 뒤 #hostCookieSlot 으로 옮긴다.
   고정 오버레이가 아니라 본문 흐름에 두어 로그인 버튼을 가리지 않는다(시안 v2). */
.lg4--host .login-host-cookie-slot .cookie-consent-banner {
    position: static;
    max-width: none;
    margin: 0 var(--host-gutter) 20px;
    transform: none;
    transition: none;
    z-index: auto;
}

/* 링크 오류 화면은 탭바(70px) 위에 배너가 떠 있으므로 그만큼 더 띄운다. */
body:has(.host-claim-invalid):has(#cookieConsentBanner) {
    padding-bottom: calc(230px + env(safe-area-inset-bottom, 0px));
}

/* 1회용 링크를 쓸 수 없을 때(host_claim_invalid.html) — HOST 가입 시작 화면과 같은 정렬·글자 */
.host-claim-invalid {
    max-width: 480px;
    margin: 0 auto;
    padding: 28px 20px;
    text-align: left;
}

.host-claim-invalid h1 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 26px;
    font-weight: 800;
    line-height: 34px;
    letter-spacing: -.02em;
    word-break: keep-all;
}

.host-claim-invalid p { margin: 0; color: #5b6472; font-size: 15px; line-height: 1.6; word-break: keep-all; }
.host-claim-invalid .host-claim-invalid-hint { margin-top: 8px; font-size: 14px; }

.host-claim-invalid-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    margin-top: 28px;
    border-radius: 14px;
    background: #111827;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.host-claim-invalid-cta:focus-visible { outline: 2px solid #197d53; outline-offset: 2px; }

.redesign-15 .login-subtitle {
    max-width: 320px;
    margin-bottom: 24px;
    color: #111111;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.4;
}

.redesign-15 .login-features {
    background: #111111;
    color: #ffffff;
    border-radius: 20px;
    padding: 8px 16px;
    box-shadow: none;
}

.redesign-15 .login-feature {
    border-color: rgba(255, 255, 255, .14);
}

.redesign-15 .login-feature-icon {
    background: #e9fbf4;
    color: #1e8a5e;
}

.redesign-15 .login-feature-text {
    color: #ffffff;
}

.redesign-15 .btn-provider-primary,
.redesign-15 .btn-email-submit,
.redesign-15 .btn-primary {
    min-height: 44px;
    border-radius: 12px;
    box-shadow: none;
}

/* Points: 충전 화면 스타일은 css/charge-4a.css 가 갖는다. */
.redesign-15 .mypage-points-value {
    font-variant-numeric: tabular-nums;
}

/* Actual call runtime is the only fixed ink surface. */
.redesign-15 .call-page {
    background: #111111;
    color: #ffffff;
}

.redesign-15 .call-page :where(.call-card, .call-info, .balance-display) {
    background: #1b1b1b;
    border-color: rgba(255, 255, 255, .12);
    box-shadow: none;
}

.redesign-15 .call-page :where(.call-control, .call-action-btn) {
    box-shadow: none;
}
