/*
 * Ok2Shop — личный кабинет покупателя (templates/account/*). Классы o2a-*.
 * Кнопки — button.o2a-…: тема (Woodmart) оформляет все button правилом :is(button, …), перебиваем специфичностью.
 */

.o2a, .o2a-auth {
	--g: var(--ok2shop-primary, var(--wd-primary-color, #439665));
	--g-d: color-mix(in srgb, var(--g) 80%, #000);
	--g-s: color-mix(in srgb, var(--g) 12%, #fff);
	--g-t: color-mix(in srgb, var(--g) 70%, #000);
	--line: #e9ebe7; --text: #1d2420; --muted: #7a817c; --soft: #f6f7f5;
	--warn: #b45309; --warn-s: #fff4e0; --blue: #2563eb; --blue-s: #e8f0ff; --red: #dc2626; --red-s: #fdecec;
	--r: 18px; --r-s: 12px; --sh: 0 1px 2px rgba(16,24,20,.04), 0 8px 24px rgba(16,24,20,.06);
	color: var(--text);
	font-size: 15px;
	line-height: 1.45;
}
.o2a *, .o2a-auth * { box-sizing: border-box; }
.o2a [hidden], .o2a-auth [hidden] { display: none !important; }
.o2a { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; align-items: start; margin: 8px 0 48px; }
.o2a h1 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.o2a h2 { margin: 0 0 14px; font-size: 18px; font-weight: 600; }
.o2a a { color: inherit; }
.o2a-ic { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.o2a-muted { color: var(--muted); }
.o2a-small { font-size: 13px; }
.o2a-good { color: var(--g-d); }
.o2a-bad { color: var(--red); }

/* Меню слева */
.o2a-side { position: sticky; top: 90px; background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 14px 10px; }
.o2a-who { display: flex; gap: 12px; align-items: center; padding: 6px 10px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; text-decoration: none; }
.o2a-who small { display: block; color: var(--muted); font-size: 12px; }
.o2a-ava { width: 44px; height: 44px; border-radius: 50%; background: var(--g); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; flex: none; }
.o2a-ava--silver { background: linear-gradient(135deg, #c9ced3, #6c757d); }
.o2a-ava--gold { background: linear-gradient(135deg, #e6c06c, #a87b24); }
.o2a-ava--platinum { background: linear-gradient(135deg, #3b4a5a, #0e151c); }
.o2a-nav h6, .o2a-mgrp h6 { margin: 12px 12px 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.o2a-nav a, .o2a-mgrp a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 11px; text-decoration: none; font-size: 14px; transition: background .15s; }
.o2a-nav a:hover { background: var(--soft); }
.o2a-nav a.is-on { background: var(--g-s); color: var(--g-t); font-weight: 500; }
.o2a-nav .o2a-logout { margin-top: 8px; color: var(--muted); }
.o2a-ct { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--g); color: #fff; font-size: 11px; font-style: normal; display: inline-flex; align-items: center; justify-content: center; }
.o2a-ct--w { background: #d97706; }

/* Содержимое */
.o2a-main { min-width: 0; display: grid; gap: 18px; align-content: start; }
.o2a-main.is-loading { opacity: .55; transition: opacity .15s; }
.o2a-card { background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 20px 22px; min-width: 0; }
.o2a-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.o2a-head p { margin: 4px 0 0; }
.o2a-row { display: flex; gap: 10px; align-items: center; }
.o2a-row--sp { justify-content: space-between; }
.o2a-row--wrap { flex-wrap: wrap; }
.o2a-row--end { justify-content: flex-end; }
.o2a-two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.o2a-col { display: grid; gap: 18px; align-content: start; }
.o2a-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.o2a-back { display: none; }
.o2a-sep { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }

/* Кнопки */
.o2a .o2a-btn, .o2a-auth .o2a-btn, a.o2a-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--text); font-weight: 500; font-size: 14px; line-height: 1; text-decoration: none; text-transform: none; letter-spacing: 0; white-space: nowrap; cursor: pointer; transition: border-color .15s, background .15s, color .15s; box-shadow: none; }
.o2a .o2a-btn:hover, .o2a-auth .o2a-btn:hover { border-color: var(--g); color: var(--g-d); background: #fff; }
.o2a .o2a-btn--p, .o2a-auth .o2a-btn--p { background: var(--g); border-color: var(--g); color: #fff; }
.o2a .o2a-btn--p:hover, .o2a-auth .o2a-btn--p:hover { background: var(--g-d); border-color: var(--g-d); color: #fff; }
.o2a .o2a-btn--s { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.o2a .o2a-btn--ghost { border-color: transparent; background: var(--soft); }
.o2a .o2a-btn--danger { color: var(--red); }
.o2a .o2a-btn--danger:hover { border-color: var(--red); color: var(--red); }
.o2a-auth .o2a-btn--lg { height: 50px; width: 100%; font-size: 15px; }
.o2a .o2a-btn[disabled], .o2a-auth .o2a-btn[disabled] { opacity: .55; pointer-events: none; }
.o2a .o2a-link, .o2a-auth .o2a-link { border: 0; background: none; padding: 0; height: auto; color: var(--g-d); font-size: 13px; cursor: pointer; text-decoration: underline; text-transform: none; }
.o2a-link[disabled] { color: var(--muted); text-decoration: none; cursor: default; }

/* Бейджи */
.o2a-bd { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12px; font-weight: 500; background: var(--g-s); color: var(--g-t); white-space: nowrap; }
.o2a-bd i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.o2a-bd--w { background: var(--warn-s); color: var(--warn); }
.o2a-bd--b { background: var(--blue-s); color: var(--blue); }
.o2a-bd--m { background: var(--soft); color: var(--muted); }
.o2a-bd--r { background: var(--red-s); color: var(--red); }

/* Главная */
.o2a-hero { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; }
.o2a-hero--solo { grid-template-columns: 1fr; }
.o2a-hello { background: linear-gradient(120deg, #fff 0%, var(--g-s) 140%); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.o2a-hello p { margin: 6px 0 0; }
.o2a-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.o2a-tile { background: var(--soft); border-radius: 14px; padding: 12px 14px; text-decoration: none; transition: transform .15s; }
.o2a-tile:hover { transform: translateY(-2px); }
.o2a-tile b { display: block; font-size: 22px; font-weight: 600; }
.o2a-tile span { font-size: 12.5px; color: var(--muted); }
.o2a-hero__card { display: block; text-decoration: none; }
.o2a-promo { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; align-items: center; }
.o2a-promo p { margin: 4px 0 0; }
.o2a-prog { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 8px; }
.o2a-prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--g), #d4a443); border-radius: 4px; }
.o2a-tip { display: flex; gap: 14px; align-items: center; }
.o2a-tip > div { flex: 1; }
.o2a-tip p { margin: 2px 0 0; }
.o2a-tg { width: 40px; height: 40px; border-radius: 50%; background: #2aabee; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.o2a-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.o2a-pc { display: grid; gap: 6px; align-content: start; font-size: 13px; line-height: 1.3; }
.o2a-pc a { text-decoration: none; display: grid; gap: 6px; }
.o2a-pc img, .o2a-pc__ph { width: 150px; height: 150px; border-radius: 14px; object-fit: cover; background: var(--soft); display: block; }
.o2a-pc span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Пустые состояния */
.o2a-empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 28px 12px; color: var(--muted); }
.o2a-empty b { color: var(--text); font-size: 16px; }
.o2a-empty p { margin: 0 0 6px; max-width: 420px; }
.o2a-empty .o2a-ic { color: #b9c3bc; }

/* Карта покупателя */
.o2a-lc { position: relative; aspect-ratio: 1.586; border-radius: 20px; padding: 20px 22px; color: #fff; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 14px 34px rgba(0,0,0,.18); isolation: isolate; max-width: 460px; width: 100%; }
.o2a-lc::before { content: ''; position: absolute; inset: -40%; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.45), transparent 40%), repeating-linear-gradient(115deg, rgba(255,255,255,.06) 0 2px, transparent 2px 9px); z-index: -1; }
.o2a-lc--silver { background: linear-gradient(135deg, #d6dade, #8e979f 55%, #6c757d); color: #1f272d; }
.o2a-lc--gold { background: linear-gradient(135deg, #f4d58d, #d4a443 50%, #a87b24); }
.o2a-lc--platinum { background: linear-gradient(135deg, #3b4a5a, #1f2a36 55%, #0e151c); }
.o2a-lc--ghost { background: repeating-linear-gradient(135deg, #f2f4f1 0 10px, #eceee9 10px 20px); color: var(--muted); box-shadow: none; border: 2px dashed #d4d9d3; }
.o2a-lc__top, .o2a-lc__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.o2a-lc__top { align-items: center; }
.o2a-lc__brand { font-weight: 700; letter-spacing: .06em; font-size: 14px; }
.o2a-lc__lv { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.o2a-lc__name { font-size: 14px; opacity: .85; }
.o2a-lc__pct { font-size: 34px; font-weight: 700; line-height: 1; }
.o2a-lc__num { font-size: 15px; letter-spacing: .14em; font-weight: 500; margin-top: 8px; }
.o2a-lc__qr { width: 58px; height: 58px; border-radius: 8px; background: #fff; padding: 4px; flex: none; }
.o2a-lc__qr svg { display: block; width: 100%; height: 100%; }
.o2a-lc--compact { aspect-ratio: auto; min-height: 150px; }
.o2a-lvls { display: grid; gap: 10px; }
.o2a-lvl { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.o2a-lvl.is-on { border-color: var(--g); box-shadow: 0 0 0 3px var(--g-s); }
.o2a-lvl__dot { width: 22px; height: 22px; border-radius: 50%; background: var(--g); }
.o2a-lvl__dot--silver { background: linear-gradient(135deg, #d6dade, #6c757d); }
.o2a-lvl__dot--gold { background: linear-gradient(135deg, #f4d58d, #a87b24); }
.o2a-lvl__dot--platinum { background: linear-gradient(135deg, #3b4a5a, #0e151c); }

/* Заказы */
.o2a-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.o2a-chips a { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line); background: #fff; text-decoration: none; font-size: 13px; }
.o2a-chips a.is-on { background: var(--text); border-color: var(--text); color: #fff; }
.o2a-search input { height: 40px; border-radius: 12px; border: 1px solid var(--line); padding: 0 14px; min-width: 260px; font: inherit; }
.o2a-list { display: grid; gap: 12px; }
.o2a-oc { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: grid; gap: 12px; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.o2a-oc:hover { border-color: color-mix(in srgb, var(--g) 35%, #fff); box-shadow: 0 4px 16px rgba(16,24,20,.05); }
.o2a-thumbs { display: flex; gap: 8px; }
.o2a-thumbs img, .o2a-thumbs span { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--soft); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.o2a-sum { font-size: 18px; font-weight: 600; }
.o2a-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.o2a-steps div { font-size: 11.5px; color: var(--muted); }
.o2a-steps div::before { content: ''; display: block; height: 5px; border-radius: 3px; background: var(--line); margin-bottom: 6px; }
.o2a-steps div.d::before { background: var(--g); }
.o2a-steps div.c { color: var(--g-t); font-weight: 500; }
.o2a-steps div.c::before { background: linear-gradient(90deg, var(--g) 55%, var(--line) 55%); }
.o2a-tl { display: grid; padding-left: 4px; }
.o2a-tl div { position: relative; padding: 0 0 18px 28px; font-size: 14px; }
.o2a-tl div::before { content: ''; position: absolute; left: 0; top: 2px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); background: #fff; }
.o2a-tl div::after { content: ''; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.o2a-tl div:last-child::after { display: none; }
.o2a-tl div.d::before { background: var(--g); border-color: var(--g); }
.o2a-tl div.d::after { background: var(--g); }
.o2a-tl div.c::before { border-color: var(--g); box-shadow: 0 0 0 4px var(--g-s); }
.o2a-tl small { display: block; color: var(--muted); font-size: 12px; }
.o2a-items { display: grid; }
.o2a-it { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.o2a-it:first-child { border-top: 0; padding-top: 0; }
.o2a-it img, .o2a-it__ph { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--soft); }
.o2a-it a { text-decoration: none; }
.o2a-it a:hover { color: var(--g-d); }
.o2a-kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; margin: 0; }
.o2a-kv dt { color: var(--muted); }
.o2a-kv dd { margin: 0; }
.o2a-kv--sum { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 10px; }
.o2a-kv--sum dd { text-align: right; }
.o2a-docs { display: grid; gap: 8px; }
.o2a-docs .o2a-btn { justify-content: flex-start; }

/* Сообщения */
.o2a-threads { display: grid; }
.o2a-thread { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 6px; border-top: 1px solid var(--line); text-decoration: none; }
.o2a-thread:first-child { border-top: 0; }
.o2a-thread small { display: block; }
.o2a-thread__ic { width: 40px; height: 40px; border-radius: 50%; background: var(--g-s); color: var(--g-t); display: flex; align-items: center; justify-content: center; }
.o2a-thread.is-unread b { color: var(--g-t); }
.o2a-thread__meta { display: grid; justify-items: end; gap: 4px; }
.o2a-chat { padding: 0; overflow: hidden; display: grid; }
.o2a-chat__top { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.o2a-msgs { padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--soft); min-height: 320px; max-height: 60vh; overflow: auto; }
.o2a-m { max-width: 75%; padding: 10px 14px; border-radius: 16px; font-size: 14px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05); border-bottom-left-radius: 6px; white-space: normal; overflow-wrap: anywhere; }
.o2a-m small { display: block; font-size: 11px; opacity: .7; margin-bottom: 3px; }
.o2a-m--customer { align-self: flex-end; background: var(--g); color: #fff; border-bottom-left-radius: 16px; border-bottom-right-radius: 6px; }
.o2a-m--ai small { color: var(--g-t); opacity: 1; }
.o2a-sys { align-self: center; font-size: 12px; color: var(--muted); background: #fff; border-radius: 12px; padding: 4px 12px; text-align: center; }
.o2a-compose { display: flex; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); background: #fff; align-items: flex-end; }
.o2a-compose textarea { flex: 1; min-height: 44px; max-height: 160px; border-radius: 12px; border: 1px solid var(--line); padding: 11px 14px; font: inherit; resize: none; }
.o2a-chat__mgr { justify-self: center; margin: 0 0 12px; }

/* Формы */
.o2a-form { display: grid; gap: 12px; }
.o2a-field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.o2a-field input, .o2a-field select, .o2a-field textarea { height: 46px; border-radius: 12px; border: 1.5px solid var(--line); padding: 0 14px; font: inherit; font-size: 15px; color: var(--text); background: #fff; width: 100%; }
.o2a-field input:focus { outline: 0; border-color: var(--g); }
.o2a-contact { padding: 10px 0; border-top: 1px solid var(--line); }
.o2a-contact:first-of-type { border-top: 0; padding-top: 0; }
.o2a-change { margin-top: 12px; padding: 14px; background: var(--soft); border-radius: 14px; }
.o2a-switch { position: relative; display: inline-block; width: 40px; height: 24px; }
.o2a-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.o2a-switch i { position: absolute; inset: 0; border-radius: 12px; background: #d7dbd6; transition: background .15s; }
.o2a-switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.o2a-switch input:checked + i { background: var(--g); }
.o2a-switch input:checked + i::after { transform: translateX(16px); }
.o2a-tbl-wrap { overflow-x: auto; }
.o2a-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.o2a-tbl th { text-align: center; font-weight: 500; color: var(--muted); padding: 8px; font-size: 13px; }
.o2a-tbl th:first-child { text-align: left; }
.o2a-tbl td { padding: 10px 8px; border-top: 1px solid var(--line); text-align: center; }
.o2a-tbl td:first-child { text-align: left; }
.o2a-alert { padding: 12px 14px; border-radius: 12px; background: var(--red-s); color: var(--red); font-size: 14px; }
.o2a-alert--ok { background: var(--g-s); color: var(--g-t); }
.o2a-err { margin: 0; color: var(--red); font-size: 13px; }
.o2a-addrs { display: grid; gap: 10px; }
.o2a-addr { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; flex-wrap: wrap; }
.o2a-addr.is-main { border-color: color-mix(in srgb, var(--g) 40%, #fff); }
.o2a-dialog { border: 0; border-radius: 22px; padding: 24px; width: min(560px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.o2a-dialog::backdrop { background: rgba(17,24,20,.45); }
.o2a-suggest { position: relative; }
.o2a-suggest ul { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; margin: 4px 0 0; padding: 6px; list-style: none; background: #fff; border-radius: 12px; box-shadow: var(--sh), 0 0 0 1px var(--line); max-height: 240px; overflow: auto; }
.o2a-suggest li { padding: 8px 10px; border-radius: 8px; cursor: pointer; color: var(--text); font-size: 14px; }
.o2a-suggest li:hover, .o2a-suggest li.is-on { background: var(--soft); }
.o2a-faq { display: grid; gap: 10px; }
.o2a-faq a { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; }
.o2a-faq a:hover { border-color: var(--g); }
.o2a-embed { overflow: hidden; }

/* Вход */
.o2a-auth { display: flex; justify-content: center; padding: 24px 0 56px; }
.o2a-auth__card { width: 440px; max-width: 100%; background: #fff; border-radius: 24px; box-shadow: var(--sh); padding: 30px; display: grid; gap: 16px; }
.o2a-auth h1 { margin: 0; font-size: 24px; font-weight: 600; }
.o2a-auth p { margin: 0; }
.o2a-tabs3 { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--soft); border-radius: 12px; padding: 4px; }
.o2a-auth .o2a-tabs3 button { border: 0; background: none; height: 38px; border-radius: 9px; font-size: 14px; color: var(--muted); cursor: pointer; text-transform: none; padding: 0; box-shadow: none; }
.o2a-auth .o2a-tabs3 button.is-on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.o2a-pane { display: grid; gap: 12px; }
.o2a-code { display: grid; gap: 10px; justify-items: center; text-align: center; }
.o2a-otp { display: grid; grid-template-columns: repeat(4, 56px); gap: 10px; }
.o2a-otp input { height: 60px; text-align: center; font-size: 24px; border-radius: 14px; border: 1.5px solid var(--line); font-weight: 600; padding: 0; width: 56px; }
.o2a-otp input:focus { outline: 0; border-color: var(--g); }
.o2a-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.o2a-or::before, .o2a-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.o2a-oauth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.o2a-ya, .o2a-vk { width: 22px; height: 22px; border-radius: 50%; background: #fc3f1d; color: #fff; font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
.o2a-vk { border-radius: 6px; background: #0077ff; font-size: 10px; }
.o2a-fine { font-size: 12px; color: var(--muted); text-align: center; }

/* Разделы: баллы, сертификаты, помещения, компании, карты, отзывы, вопросы */
.o2a-big { font-size: 34px; font-weight: 700; color: var(--g-t); line-height: 1.1; margin: 4px 0; }
.o2a-big small { font-size: 16px; font-weight: 500; }
.o2a-lg { font-size: 17px; }
.o2a-ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.o2a-ticks li::before { content: '✓'; color: var(--g); font-weight: 700; margin-right: 8px; }
.o2a-rows { display: grid; }
.o2a-rowline { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.o2a-rowline:first-child { border-top: 0; padding-top: 0; }
.o2a-rowline small { display: block; font-size: 12px; }
.o2a-gifts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 12px; }
.o2a-gift { border-radius: 16px; padding: 16px; background: linear-gradient(135deg, var(--g-s), #fff); border: 1px solid color-mix(in srgb, var(--g) 25%, #fff); display: grid; gap: 6px; }
.o2a-gift.is-off { opacity: .55; }
.o2a-gift__code { font-family: ui-monospace, Consolas, monospace; letter-spacing: .08em; }
.o2a-gift .o2a-big { font-size: 24px; }
.o2a-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.o2a-room { position: relative; border-radius: 16px; padding: 16px; background: var(--soft); }
.o2a-room__plan { position: relative; height: 84px; border: 2px solid color-mix(in srgb, var(--g) 45%, #fff); border-radius: 6px; margin-bottom: 12px; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--g) 8%, #fff) 0 14px, color-mix(in srgb, var(--g) 13%, #fff) 14px 15px); }
.o2a-room__w { position: absolute; top: -9px; left: 30%; font-size: 11px; color: var(--g-t); background: var(--soft); padding: 0 4px; }
.o2a-room__h { position: absolute; right: -6px; top: 30%; transform: translateX(100%); font-size: 11px; color: var(--g-t); padding: 0 4px; }
.o2a-room__act { position: absolute; top: 10px; right: 10px; display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.o2a-room:hover .o2a-room__act, .o2a-room:focus-within .o2a-room__act { opacity: 1; }
.o2a-cards { display: grid; gap: 10px; margin-bottom: 14px; }
.o2a-bank { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.o2a-bank > div { flex: 1; }
.o2a-bank__logo { width: 50px; height: 34px; border-radius: 7px; background: linear-gradient(135deg, #1a1f71, #2a3cb0); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; letter-spacing: .05em; flex: none; }
.o2a-bank__logo--mir { background: linear-gradient(135deg, #0f7b3f, #1fa15a); }
.o2a-bank__logo--mc { background: linear-gradient(135deg, #eb001b, #f79e1b); }
.o2a-note { display: flex; gap: 10px; background: var(--g-s); color: var(--g-t); border-radius: 12px; padding: 12px 14px; font-size: 13px; }
.o2a-it--wide { grid-template-columns: 64px minmax(0, 1fr) auto; }
.o2a-rev { border-top: 1px solid var(--line); }
.o2a-rev:first-child { border-top: 0; }
.o2a-rev > summary { list-style: none; cursor: pointer; border-top: 0; }
.o2a-rev > summary::-webkit-details-marker { display: none; }
.o2a-rev__form { padding: 0 0 16px 78px; }
.o2a-stars { display: flex; gap: 4px; }
.o2a .o2a-stars button { border: 0; background: none; padding: 0; height: auto; font-size: 30px; line-height: 1; color: #d6d9d4; cursor: pointer; box-shadow: none; }
.o2a .o2a-stars button.is-on { color: #f5b301; }
.o2a-stars-ro { color: #f5b301; letter-spacing: 2px; }
.o2a-qa { display: grid; gap: 14px; }
.o2a-qa__item { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 6px; }
.o2a-qa__item p { margin: 0; }
.o2a-qa__ans { background: var(--soft); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.o2a-qa__ans small { display: block; font-size: 12px; }

/* Панель входа в шапке (гость) */
.o2a-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; height: 100%; max-height: none; width: min(460px, 100vw); border: 0; padding: 0; background: #fff; box-shadow: -20px 0 60px rgba(0,0,0,.18); overflow-y: auto; }
.o2a-drawer[open] { animation: o2aSlide .22s ease; }
.o2a-drawer::backdrop { background: rgba(17,24,20,.45); }
@keyframes o2aSlide { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.o2a-drawer .o2a-auth { padding: 0; display: block; }
.o2a-drawer .o2a-auth__card { width: auto; box-shadow: none; border-radius: 0; padding: 56px 28px 28px; }
.o2a-auth__h { font-size: 22px; font-weight: 600; }
.o2a-auth .o2a-drawer__x, .o2a-drawer .o2a-drawer__x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #f6f7f5; font-size: 16px; cursor: pointer; padding: 0; color: #1d2420; z-index: 2; }
.o2a-pass-hint { outline: 3px solid color-mix(in srgb, var(--g) 35%, #fff); border-radius: 18px; }

/* Телефон: меню списком на главной, остальное — с «назад» */
.o2a-mmenu { display: none; }
@media (max-width: 1024px) {
	.o2a { grid-template-columns: 1fr; gap: 14px; }
	.o2a-side { display: none; }
	.o2a-mmenu { display: grid; gap: 12px; }
	.o2a-mgrp > div { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--sh); }
	.o2a-mgrp a { border-radius: 0; padding: 14px 16px; border-top: 1px solid var(--line); font-size: 15px; }
	.o2a-mgrp a:first-child { border-top: 0; }
	.o2a-mgrp a .o2a-ic { color: var(--g); }
	.o2a-mgrp a::after { content: '›'; margin-left: auto; color: var(--muted); font-size: 20px; line-height: 1; }
	.o2a-mgrp a .o2a-ct { margin-left: auto; margin-right: 6px; }
	.o2a-mgrp a .o2a-ct + ::after { margin-left: 0; }
	.o2a-back { display: inline-flex; color: var(--g-d); font-weight: 500; text-decoration: none; }
	.o2a-hero, .o2a-two, .o2a-promo { grid-template-columns: 1fr; }
	.o2a[data-section="home"] .o2a-hero__card { display: none; }
}
@media (max-width: 600px) {
	.o2a h1 { font-size: 22px; }
	.o2a-card { padding: 16px; border-radius: 16px; }
	.o2a-tiles { grid-template-columns: repeat(2, 1fr); }
	.o2a-steps div { font-size: 0; }
	.o2a-grid2 { grid-template-columns: 1fr; }
	.o2a-search input { min-width: 0; width: 100%; }
	.o2a-search { width: 100%; }
	.o2a-m { max-width: 88%; }
	.o2a-auth__card { padding: 22px 18px; border-radius: 20px; }
	.o2a-otp { grid-template-columns: repeat(4, 52px); }
	.o2a-otp input { width: 52px; }
	.o2a-rev__form { padding-left: 0; }
	.o2a-room__act { opacity: 1; }
}

/* Утилиты вместо атрибутов style="" в разметке (класс повторён — сила как у встроенного стиля). */
.o2u-ai-flexnend.o2u-ai-flexnend.o2u-ai-flexnend { align-items: flex-end; }
.o2u-as-start.o2u-as-start.o2u-as-start { align-self: start; }
.o2u-basis-100pct.o2u-basis-100pct.o2u-basis-100pct { flex-basis: 100%; }
.o2u-flex-1.o2u-flex-1.o2u-flex-1 { flex: 1; }
.o2u-flex-1_minw-220.o2u-flex-1_minw-220.o2u-flex-1_minw-220 { flex: 1; min-width: 220px; }
.o2u-h-auto_p-10-14.o2u-h-auto_p-10-14.o2u-h-auto_p-10-14 { height: auto; padding: 10px 14px; }
.o2u-jc-flexnend.o2u-jc-flexnend.o2u-jc-flexnend { justify-content: flex-end; }
.o2u-mt-0.o2u-mt-0.o2u-mt-0 { margin-top: 0; }
.o2u-mt-12.o2u-mt-12.o2u-mt-12 { margin-top: 12px; }
.o2u-w-110.o2u-w-110.o2u-w-110 { width: 110px; }

/* Меню слева: сворачиваемые группы (открыта одна). */
.o2a-ng > summary { display: flex; align-items: center; gap: 8px; margin: 6px 0 2px; padding: 8px 12px; border-radius: 11px; list-style: none; cursor: pointer; user-select: none; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.o2a-ng > summary::-webkit-details-marker { display: none; }
.o2a-ng > summary:hover { background: var(--soft); color: inherit; }
.o2a-ng > summary span { flex: 1; }
.o2a-ng > summary .o2a-ct { margin-left: 0; }
.o2a-ng__chev { flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.o2a-ng[open] > summary .o2a-ng__chev { transform: rotate(90deg); }
.o2a-ng[open] > summary .o2a-ct { display: none; }
.o2a-bank__logo--paypal { background: linear-gradient(135deg, #003087, #009cde); }
.o2a-bank__logo--amex { background: linear-gradient(135deg, #1f72cd, #2e9cf3); }
.o2a-bank__logo--upi, .o2a-bank__logo--jcb, .o2a-bank__logo--disc { background: linear-gradient(135deg, #3b4a5a, #6c757d); }

/* Цифровые покупки: дата, сумма, срок, ключи, файлы. */
.o2a-dg + .o2a-dg { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.o2a-dg__name { margin: 0; }
.o2a-dg__kv { margin: 10px 0 12px; }
.o2a-dg__key { margin: 0 0 12px; }
.o2a-dg__key .o2a-row { gap: 8px; align-items: center; margin-top: 4px; }
.o2a-dg__key .o2a-gift__code { word-break: break-all; }
.o2a-dg__files { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.o2a-dg__size { opacity: .75; font-weight: 400; }
.o2a-dg [aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.o2a-dg__files small.o2a-dg__left { align-self: center; }
.o2a-dg__sites { margin: 0 0 12px; }
.o2a-dg__site-list { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 6px; }
.o2a-dg__site-list li { display: flex; gap: 8px; align-items: center; }
.o2a-dg__site-add { gap: 8px; margin: 6px 0 4px; }
.o2a-dg__site-add input { height: 38px; border-radius: 10px; border: 1.5px solid var(--line); padding: 0 12px; font: inherit; color: var(--text); background: #fff; width: 100%; max-width: 260px; }
/* Мои заявки (услуги). */
.o2a--guest { display: block; max-width: 860px; margin: 0 auto; }
.o2a-req { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.o2a-req__st { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; background: #eef2f6; color: #334; white-space: nowrap; }
.o2a-req__st.is-new, .o2a-req__st.is-access { background: #fff4e0; color: #8a5300; }
.o2a-req__st.is-work, .o2a-req__st.is-decide { background: #e7f0ff; color: #1d4ea8; }
.o2a-req__st.is-done, .o2a-req__st.is-reported, .o2a-req__st.is-closed { background: #e6f6ec; color: #17733a; }
.o2a-req__st.is-canceled { background: #f3f3f3; color: #888; }
.o2a-req__items { margin: 10px 0 0; padding-left: 18px; }
.o2a-req__events { display: grid; margin-bottom: 14px; }
.o2a-req__ev { padding: 10px 0; border-top: 1px solid var(--line); }
.o2a-req__ev:first-child { border-top: 0; }
.o2a-req__ev.is-in > div { font-weight: 500; }
.o2a-req__ev.is-status > div, .o2a-req__ev.is-system > div { color: var(--muted); font-size: 14px; }
.o2a .o2a-form textarea, .o2a--guest .o2a-form textarea { height: auto; min-height: 70px; padding: 10px 14px; }
.o2a-form { display: grid; gap: 12px; }
.o2a-req__host summary { cursor: pointer; margin-bottom: 8px; }
.o2a-req__host .o2a-field { margin-bottom: 10px; }
.o2a-note.is-ok { color: #17733a; }

.o2a .ok2shop-line-meta { display: block; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
