/* Account pages, booking details and classes. Phone first. Loaded after inner.css */

/* ---------- Log in, register, passwords ---------- */
.ac-split { background: var(--as-white); color: var(--as-ink); }
.ac-split__photo { display: none; }
.ac-split__form { padding: 36px clamp(20px, 5vw, 48px) 72px; }
.ac-box { width: 100%; max-width: 460px; margin-inline: auto; }
.in .ac-box h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
.in .ac-lead { margin: 8px 0 26px; color: var(--as-on-light); }
.in .ac-msg { margin: 0 0 22px; padding: 14px 16px; background: #E9F1E6; color: #24451C; font-weight: 500; }
.in .ac-msg.is-error { background: #F8E6E4; color: #7E1F1F; }
.ac-field { margin-bottom: 18px; }
.ac-field label { display: block; margin: 0 0 6px; font-weight: 600; font-size: .9375rem; }
.ac-field small, .ac-step legend small { font-weight: 400; font-size: .875rem; color: var(--as-on-light); }
.ac-field input { display: block; width: 100%; height: 52px; padding: 0 14px; border: 1px solid rgba(26, 26, 26, .38); border-radius: 0; background: var(--as-white); color: var(--as-ink); font: 400 1rem/1.2 var(--as-text); -webkit-appearance: none; appearance: none; }
.ac-field input:focus { outline: 2px solid var(--as-ink); outline-offset: -1px; }
.ac-field input:disabled { background: #F1EFEC; color: var(--as-on-light); }
.ac-field input[aria-invalid="true"] { border-color: #9B2C2C; }
.ac-field input::placeholder { color: #756e65; }
.ac-pass { position: relative; display: block; }
.ac-pass input { padding-right: 54px; }
.ac-pass button { position: absolute; top: 2px; right: 2px; width: 48px; height: 48px; border: 0; background: none; color: var(--as-on-light); cursor: pointer; }
.ac-note { display: block; margin-top: 5px; font-size: .875rem; line-height: 1.45; color: var(--as-on-light); }
.ac-note:empty { display: none; }
.ac-note.is-error { color: #9B2C2C; font-weight: 500; }
.ac-note.is-ok { color: #2C5A22; font-weight: 500; }
.in .ac-aside { margin: -6px 0 20px; text-align: right; font-size: .9375rem; }
.ac-aside a, .ac-alt a, .ac-fine a { display: inline-block; padding-block: 6px; color: var(--as-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.in .ac-alt { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--as-line-light); }
.in .ac-fine { margin-top: 14px; font-size: .875rem; color: var(--as-on-light); }
.ac-steps { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 24px !important; }
.ac-steps[hidden] { display: none; }
.ac-steps li { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 2px solid rgba(26, 26, 26, .16); color: var(--as-on-light); font-size: .9375rem; font-weight: 500; }
.ac-steps span { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border: 1px solid currentColor; border-radius: 50%; font-weight: 600; }
.ac-steps [aria-current] { color: var(--as-ink); border-color: var(--as-ink); font-weight: 600; }
.ac-steps [aria-current] span, .ac-steps .is-done span { background: var(--as-ink); border-color: var(--as-ink); color: var(--as-white); }
.ac-step { margin: 0; padding: 0; border: 0; min-width: 0; }
.ac-step legend { padding: 0; margin-bottom: 16px; font-weight: 600; font-size: 1.125rem; }
.ac-more { margin-bottom: 22px; border-block: 1px solid var(--as-line-light); }
.ac-more summary { display: flex; justify-content: space-between; align-items: center; min-height: 54px; font-weight: 600; cursor: pointer; list-style: none; }
.ac-more summary::-webkit-details-marker { display: none; }
.ac-more summary i { font-size: .75rem; transition: transform .2s; }
.ac-more[open] summary i { transform: rotate(180deg); }
.ac-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ac-row { display: flex; flex-wrap: wrap; gap: 12px; }
.ac-row .as-btn { flex: 1 1 auto; }

/* ---------- Profile, orders, wallet ---------- */
.ac-tabs { background: var(--as-sand); }
.in .ac-tabs ul { display: flex; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.ac-tabs a { display: flex; align-items: center; height: 54px; padding: 0 16px; color: var(--as-ink); font-weight: 500; }
.ac-tabs li:first-child a { margin-left: -16px; }
.ac-tabs [aria-current] { box-shadow: inset 0 -3px 0 var(--as-ink); font-weight: 600; }
.ac-cols { display: grid; gap: 56px; }
.ac-sec + .ac-sec { margin-top: 48px; }
.in .ac-sec > h2, .in .ac-cols h2 { margin-bottom: 20px; font: 600 1.375rem/1.3 var(--as-text); }
.ac-addr { display: grid; gap: 12px; margin-bottom: 18px !important; }
.ac-addr li { padding: 18px; border: 1px solid var(--as-line-light); overflow-wrap: anywhere; }
.ac-addr li.is-default { border-color: var(--as-ink); }
.ac-addr strong { display: block; }
.ac-addr em { display: inline-block; margin-bottom: 4px; font-style: normal; font-size: .875rem; font-weight: 600; color: #6B5943; }
.ac-addr__acts { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 6px; }
.ac-addr__acts form { margin: 0; }
.ac-textbtn { min-height: 44px; padding: 0; border: 0; background: none; color: var(--as-ink); font: 600 .9375rem/1 var(--as-text); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.ac-textbtn.is-danger { color: #9B2C2C; }
.ac-dialog__body { padding: 8px 22px 22px; }
.ac-list { border-bottom: 1px solid var(--as-line-light); }
.ac-list > li { border-top: 1px solid var(--as-line-light); }
.ac-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 18px; padding: 15px 0; }
.ac-line b { font-weight: 600; overflow-wrap: anywhere; }
.ac-line span { font-size: .9375rem; color: var(--as-on-light); }
.ac-line > :nth-child(2) { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--as-ink); }
.ac-line .is-in { color: #2C5A22; }
.ac-line .is-out { color: #9B2C2C; }
.ac-order summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 18px; align-items: center; padding: 18px 0; cursor: pointer; list-style: none; }
.ac-order summary::-webkit-details-marker { display: none; }
.ac-order summary b { font-weight: 600; }
.ac-order summary > span:first-child small { display: block; font-size: .9375rem; color: var(--as-on-light); }
.ac-order summary i { font-size: .75rem; transition: transform .2s; }
.ac-order[open] summary i { transform: rotate(180deg); }
.ac-status { display: inline-block; padding: 3px 10px; background: #F1EFEC; font-size: .875rem; font-weight: 600; white-space: nowrap; }
.ac-status.is-good { background: #E1EDDC; color: #24451C; }
.ac-status.is-bad { background: #F8E6E4; color: #7E1F1F; }
.ac-status.is-wait { background: var(--as-sand); }
.ac-order__body { padding-bottom: 24px; }
.ac-items li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 8px 0; }
.ac-items img { width: 64px; height: 64px; object-fit: cover; background: #F4F3F1; }
.ac-items small { display: block; color: var(--as-on-light); font-size: .875rem; }
.ac-items b { font-weight: 600; font-variant-numeric: tabular-nums; }
.ac-facts { margin-top: 12px !important; padding-top: 12px !important; border-top: 1px solid var(--as-line-light); }
.ac-facts div { display: flex; justify-content: space-between; gap: 24px; padding: 5px 0; }
.ac-facts dt { font-weight: 400; color: var(--as-on-light); }
.ac-facts dd { text-align: right; font-weight: 500; overflow-wrap: anywhere; min-width: 0; }
.ac-facts .is-total dt, .ac-facts .is-total dd { font-weight: 600; font-size: 1.125rem; color: var(--as-ink); }
.ac-balance { display: flex; flex-wrap: wrap; gap: 12px 56px; margin-top: 22px; }
.ac-balance p { margin: 0; color: var(--as-on-dark); }
.ac-balance strong { display: block; font: 600 clamp(2rem, 5vw, 2.75rem)/1.15 var(--as-text); color: var(--as-white); font-variant-numeric: tabular-nums; }
.ac-bar { height: 6px; margin-top: 8px; background: #E7E3DD; }
.ac-bar i { display: block; height: 100%; background: var(--as-ink); }
.ac-how details { border-top: 1px solid var(--as-line-light); }
.ac-how details:last-child { border-bottom: 1px solid var(--as-line-light); }
.ac-how summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 54px; font-weight: 600; cursor: pointer; list-style: none; }
.ac-how summary::-webkit-details-marker { display: none; }
.ac-how summary i { font-size: .75rem; transition: transform .2s; }
.ac-how details[open] summary i { transform: rotate(180deg); }
.ac-how details p { padding-bottom: 18px; max-width: 65ch; color: var(--as-on-light); }
.ac-empty { padding: 28px 20px; background: #F4F3F1; }
.ac-empty .as-btn { margin-top: 16px; }

/* ---------- Booking details ---------- */
.bi-card { max-width: 720px; margin-inline: auto; }
.in .bi-status { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: var(--as-sand); font-weight: 600; }
.in .bi-status.is-good { background: #E1EDDC; color: #24451C; }
.in .bi-status.is-bad { background: #F8E6E4; color: #7E1F1F; }
.in .bi-when { margin: 26px 0 0; font: 600 clamp(1.375rem, 4vw, 1.75rem)/1.35 var(--as-text); }
.bi-when span { display: block; }
.bi-card h3 { margin-top: 32px !important; }
.bi-card .in-actions { margin-top: 32px; }

/* ---------- Classes ---------- */
.cl-group + .cl-group { margin-top: clamp(48px, 6vw, 88px); }
.cl-list { display: grid; gap: 16px; margin-top: 18px !important; }
.cl-item { display: grid; align-content: space-between; gap: 18px; padding: 24px; border: 1px solid var(--as-line-light); }
.in .cl-item h3 { font-size: 1.25rem; }
.cl-item p { margin-top: 8px; color: var(--as-on-light); }
.cl-item ul { display: grid; gap: 4px; margin-top: 14px; font-size: .9375rem; }
.cl-item li { display: grid; grid-template-columns: 28px 1fr; align-items: baseline; }
.cl-item li i { color: #8A7761; font-size: .9375rem; }
.cl-item__end { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cl-item__end b { font-size: 1.375rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.cl-item__end .as-btn { gap: 8px; padding-inline: 20px; }

@media (min-width: 861px) {
    .ac-split { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); min-height: calc(100vh - 77px); }
    .ac-split__photo { display: block; position: relative; background: var(--as-ink); }
    .ac-split__photo img { position: sticky; top: 77px; display: block; width: 100%; height: calc(100vh - 77px); min-height: 560px; object-fit: cover; object-position: 45% 25%; }
    .ac-split__form { align-self: center; padding-block: 64px; }
    .ac-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 96px); align-items: start; }
    .cl-group { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 48px; }
    .cl-list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-top: 0 !important; }
    .cl-group h2 { font-size: clamp(2.375rem, 3vw, 2.75rem); }
}
