/*
 * Tolarie — ucet. Vzor: Portaro apps/tolarie-eshop (design/extracted).
 *
 * Prevzato 1:1 z:
 *   css/12-checkout-account-about.css  (.co-field*, .ac-*)
 *   css/13-order-confirm.css           (.od-*)
 *   css/17-empty-states.css            (.state*)
 *   css/07-listing-detail.css          (.crumbs)
 * Tlacitka, chipy a typografie (.btn, .chip, .h-display, .muted, .mono)
 * uz jsou v tolarie-komponenty.css a tady se neopisuji.
 *
 * Selektory jsou casto o jednu tridu delsi nez v predloze. Duvod: brand.css
 * se nacita az za timhle souborem a jeho `input[type=text]` by jinak prebil
 * vzhled poli z predlohy.
 */

/* --- napojeni na stavajici layout ---------------------------------------
 * Sablony uctu nechavaji `page_headline` prazdny (nadpis kresli az .ac-main
 * nebo karta) a layout `single_col_layout.html` prazdny .info__title skryva.
 * Ten uz taky drzi sirku i odsazeni stranky (.info--siroky = 1280 px),
 * takze .ac a .od uvnitr nej nesmi pridavat dalsi.
 */
.info__body > .ac,
.info__body > .od {
	padding: 0;
	/* .info__body je flex column - auto okraje by jinak zrusily roztazeni */
	width: 100%;
}
.info__body > .ac {
	max-width: none;
}


/* ===== drobeckova navigace (07-listing-detail.css) ===== */


/* ===== formularova pole (12-checkout-account-about.css, sekce 07) ===== */
/* .co-fields je v tolarie-kosik.css - tady byla druha, skoro stejna definice. */
.co-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	/* basic.css dava kazdemu <label> margin; v gridu by se scital s gap */
	margin: 0;
}
.co-field--wide {
	grid-column: 1 / -1;
}
.co-field > span {
	font-size: 12px;
	font-weight: 600;
	color: var(--fg-mute);
	letter-spacing: 0.02em;
}
.co-fields .co-field input,
.co-fields .co-field select,
.co-fields .co-field textarea {
	box-sizing: border-box;
	width: 100%;
	height: 44px;
	padding: 0 14px;
	background: var(--bg);
	border: 1px solid var(--bg-rule);
	border-radius: var(--r-1);
	color: var(--fg);
	font-family: var(--f-body);
	font-size: 15px;
	outline: 0;
}
.co-fields .co-field textarea {
	height: auto;
	min-height: 110px;
	padding: 12px 14px;
	line-height: 1.55;
}
.co-fields .co-field input:focus,
.co-fields .co-field select:focus,
.co-fields .co-field textarea:focus {
	border-color: var(--accent);
}

/* zaskrtavatko (souhlas se zasadami) — v predloze .co-firma */
.co-field--check {
	flex-direction: row;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid var(--bg-rule);
	border-radius: var(--r-1);
}
.co-fields .co-field--check input[type='checkbox'] {
	width: auto;
	height: auto;
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
}
.co-field--check > span {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--fg-soft);
	letter-spacing: 0;
}

.co-field__err {
	font-size: 12px;
	font-weight: 600;
	color: var(--bad);
}
.co-field__help {
	font-size: 12px;
	line-height: 1.5;
	color: var(--fg-faint);
}
.co-fields .co-field.has-error input,
.co-fields .co-field.has-error select {
	border-color: var(--bad);
}

/* chyby mimo pole + recaptcha hlaska */
.co-formerr {
	padding: 12px 14px;
	margin-bottom: 4px;
	border: 1px solid var(--bad);
	border-radius: var(--r-1);
	background: rgba(139, 46, 46, 0.14);
	color: var(--bad);
	font-size: 13.5px;
	font-weight: 600;
}
.co-formerr ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* drobny doprovodny text u formulare (odkaz na zasady, poznamka) */
.co-note {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.55;
	color: var(--fg-mute);
}
.co-note a {
	color: var(--accent-deep);
	font-weight: 600;
}
.co-note a:hover {
	color: var(--accent);
}


/* ===== 09 UCET ===== */
.ac {
	max-width: 1280px;
	margin: 0 auto;
	padding: 28px 32px 48px;
}
.ac__head {
	padding-bottom: 16px;
}
.ac__grid {
	display: grid;
	grid-template-columns: 244px 1fr;
	gap: 30px;
	align-items: start;
}
.ac-main {
	display: flex;
	flex-direction: column;
	gap: 22px;
	min-width: 0;
}
.ac-main__title {
	font-size: 34px;
	margin: 0;
}
.ac-main__top {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 20px;
	flex-wrap: wrap;
}
.ac-main__lead {
	margin: 8px 0 0;
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--fg-mute);
	max-width: 60ch;
}

.ac-nav {
	background: var(--bg-elev);
	border: 1px solid var(--bg-rule);
	border-radius: var(--r-2);
	padding: 18px;
	position: sticky;
	top: 24px;
}
.ac-nav__user {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 16px;
	margin-bottom: 12px;
	border-bottom: 1px solid var(--bg-rule);
}
.ac-nav__avatar {
	width: 44px;
	height: 44px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: var(--accent);
	color: var(--accent-ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--f-display);
	font-weight: 700;
	font-size: 16px;
}
.ac-nav__user strong {
	display: block;
	font-size: 15px;
	color: var(--fg);
	word-break: break-word;
}
.ac-nav__tier {
	font-size: 11.5px;
	color: var(--accent-deep);
	font-weight: 600;
}
.ac-nav__list {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.ac-nav__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: var(--r-1);
	font-size: 14px;
	font-weight: 600;
	color: var(--fg-soft);
}
.ac-nav__item svg {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
	color: var(--fg-mute);
}
.ac-nav__item:hover {
	background: var(--bg-sunk);
	color: var(--fg);
}
.ac-nav__item.is-on {
	background: var(--accent);
	color: var(--accent-ink);
}
.ac-nav__item.is-on svg {
	color: var(--accent-ink);
}
.ac-nav__logout {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--bg-rule);
	font-size: 13px;
	color: var(--fg-mute);
}
.ac-nav__logout svg {
	width: 14px;
	height: 14px;
	flex: 0 0 auto;
}
.ac-nav__logout:hover {
	color: var(--bad);
}

.ac-credit-card {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 16px 24px;
	align-items: center;
	padding: 26px 28px;
	border-radius: var(--r-2);
	background: linear-gradient(120deg, #1a1612, #241b11 70%);
	border: 1px solid var(--accent);
	color: var(--c-paper);
	position: relative;
	overflow: hidden;
}
.ac-credit-card__label {
	font-family: var(--f-mono);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--c-gold-soft);
}
.ac-credit-card__bal {
	font-family: var(--f-display);
	font-weight: 700;
	font-size: 40px;
	color: var(--c-gold-soft);
	line-height: 1.1;
}
.ac-credit-card__bal span {
	font-size: 18px;
}
.ac-credit-card__eq {
	display: block;
	font-size: 13px;
	color: rgba(244, 236, 219, 0.7);
}
.ac-credit-card__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.ac-credit-card__hint {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: rgba(244, 236, 219, 0.65);
	border-top: 1px solid rgba(201, 162, 74, 0.25);
	padding-top: 14px;
}

.ac-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}
.ac-stat {
	background: var(--bg-elev);
	border: 1px solid var(--bg-rule);
	border-radius: var(--r-2);
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.ac-stat strong {
	font-family: var(--f-display);
	font-weight: 700;
	font-size: 22px;
	color: var(--accent-deep);
}
.ac-stat span {
	font-size: 12px;
	color: var(--fg-mute);
}

.ac-block {
	background: var(--bg-elev);
	border: 1px solid var(--bg-rule);
	border-radius: var(--r-2);
	padding: 20px 22px;
}
.ac-block__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	margin-bottom: 14px;
}
.ac-block__title {
	font-family: var(--f-display);
	font-weight: 700;
	font-size: 18px;
	margin: 0;
	color: var(--fg);
}
.ac-block__hint {
	font-size: 12.5px;
	color: var(--fg-mute);
}

/* prehled objednavek */
.ac-orders {
	display: flex;
	flex-direction: column;
}
.ac-orders__row {
	display: grid;
	grid-template-columns: 1.1fr 1fr 1fr 1fr 0.9fr 28px;
	gap: 12px;
	align-items: center;
	padding: 12px 4px;
	border-bottom: 1px solid var(--bg-rule-soft);
	font-size: 13.5px;
	color: var(--fg-soft);
}
.ac-orders__row--head {
	font-family: var(--f-mono);
	font-size: 10.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--fg-faint);
	border-bottom: 1px solid var(--bg-rule);
}
.ac-orders__row:last-child {
	border-bottom: 0;
}
.ac-orders__n {
	color: var(--fg);
	font-weight: 600;
}
.ac-orders__n:hover {
	color: var(--accent-deep);
}
.ac-orders__total {
	font-family: var(--f-display);
	font-weight: 700;
	color: var(--fg);
}
.ac-orders__link {
	color: var(--fg-mute);
	display: inline-flex;
}
.ac-orders__link svg {
	width: 14px;
	height: 14px;
}
.ac-orders__link:hover {
	color: var(--accent-deep);
}

/* pohyby na kreditovem konte */
.ac-ledger {
	display: flex;
	flex-direction: column;
}
.ac-ledger__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 4px;
	border-bottom: 1px solid var(--bg-rule-soft);
}
.ac-ledger__row:last-child {
	border-bottom: 0;
}
.ac-ledger__row--head {
	font-family: var(--f-mono);
	font-size: 10.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--fg-faint);
	border-bottom: 1px solid var(--bg-rule);
}
.ac-ledger__info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.ac-ledger__info strong {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--fg);
}
.ac-ledger__info span {
	font-size: 11.5px;
	color: var(--fg-mute);
}
.ac-ledger__amt {
	font-family: var(--f-display);
	font-weight: 700;
	font-size: 16px;
	white-space: nowrap;
}
.ac-ledger__amt.pos {
	color: var(--ok);
}
.ac-ledger__amt.neg {
	color: var(--fg-mute);
}

/* --- formulare v uctu (09.6 nastaveni) --- */
.ac-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.ac-form__actions {
	display: flex;
	gap: 10px;
	margin-top: 4px;
}

/* Strankovani kresli sdilene .slpager__* (core/paginator.html), tady jen odsazeni. */
.ac-block > .slpager__pages {
	margin-top: 16px;
}


/* ===== 09.7 odhlaseni / prihlaseni / registrace / reset hesla ===== */
.ac-logout {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 62vh;
}
.ac-logout__wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
	width: 100%;
	max-width: 480px;
}
.ac-logout--wide .ac-logout__wrap {
	max-width: 720px;
}
.ac-logout__card {
	width: 100%;
	box-sizing: border-box;
	background: var(--bg-elev);
	border: 1px solid var(--bg-rule);
	border-radius: var(--r-2);
	padding: 38px 36px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}
/* karta s formularem — pole potrebuji celou sirku a popisky vlevo */
.ac-logout__card--form {
	text-align: left;
	align-items: stretch;
	gap: 18px;
}
.ac-logout__card--form .ac-logout__title,
.ac-logout__card--form .ac-logout__msg {
	text-align: center;
}
.ac-logout__avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--accent-ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--f-display);
	font-weight: 700;
	font-size: 24px;
}
.ac-logout__avatar svg {
	width: 30px;
	height: 30px;
}
.ac-logout__card--form .ac-logout__avatar {
	align-self: center;
}
.ac-logout__title {
	font-family: var(--f-display);
	font-weight: 700;
	font-size: 26px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 4px 0 0;
	color: var(--fg);
}
.ac-logout__msg {
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--fg-soft);
	margin: 0;
}
.ac-logout__msg strong {
	color: var(--fg);
}
.ac-logout__bal {
	display: flex;
	align-items: center;
	gap: 10px;
	text-align: left;
	padding: 12px 16px;
	background: rgba(201, 162, 74, 0.08);
	border: 1px solid rgba(201, 162, 74, 0.25);
	border-radius: var(--r-1);
	font-size: 13px;
	line-height: 1.5;
	color: var(--fg-soft);
}
.ac-logout__bal strong {
	color: var(--accent-deep);
}
.ac-logout__actions {
	display: flex;
	gap: 10px;
	margin-top: 6px;
	width: 100%;
}
.ac-logout__actions .btn {
	flex: 1;
	justify-content: center;
}
.ac-logout__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 14px;
	font-size: 12.5px;
	color: var(--fg-faint);
}
.ac-logout__links a {
	color: var(--fg-mute);
	font-weight: 600;
}
.ac-logout__links a:hover {
	color: var(--accent-deep);
}

/* recaptcha v registraci — badge se nesmi lepit na tlacitka */
.ac-logout__card .grecaptcha-badge {
	box-shadow: none !important;
}


/* ===== 13 DETAIL OBJEDNAVKY (13-order-confirm.css) ===== */
.od {
	max-width: 1200px;
	margin: 0 auto;
	padding: 28px 32px 48px;
}
.od__head {
	padding-bottom: 20px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--bg-rule);
}
.od__titlerow {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-top: 12px;
}
.od__title {
	font-size: 34px;
	margin: 0;
}
.od__titlerow .muted {
	margin: 4px 0 0;
	font-size: 13.5px;
}
.od__grid {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 24px;
	align-items: start;
}
.od__main {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}
.od-block {
	background: var(--bg-elev);
	border: 1px solid var(--bg-rule);
	border-radius: var(--r-2);
	padding: 22px 24px;
}
.od-block__title {
	font-family: var(--f-display);
	font-weight: 700;
	font-size: 18px;
	margin: 0 0 16px;
	color: var(--fg);
}
.od-items {
	display: flex;
	flex-direction: column;
}
.od-item {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 14px;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid var(--bg-rule-soft);
}
.od-item:last-child {
	border-bottom: 0;
}
.od-item__info {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.od-item__info strong {
	font-size: 14px;
	font-weight: 600;
	color: var(--fg);
}
.od-item__info span {
	font-size: 12px;
	color: var(--fg-mute);
}
.od-item__price {
	font-family: var(--f-display);
	font-weight: 700;
	font-size: 15px;
	color: var(--fg);
	white-space: nowrap;
}
.od-side {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.od-card {
	background: var(--bg-elev);
	border: 1px solid var(--bg-rule);
	border-radius: var(--r-2);
	padding: 20px 22px;
}
.od-card__title {
	font-family: var(--f-display);
	font-weight: 700;
	font-size: 16px;
	margin: 0 0 14px;
	color: var(--fg);
	/* brand.css kresli `aside h3` jeste po starem pravem sloupci (podklad,
	 * zlata linka vlevo) - v karte detailu objednavky to nepatri. */
	background: none;
	border-left: 0;
	text-shadow: none;
}
.od-dl {
	margin: 0 0 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.od-dl > div {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.od-dl dt {
	font-family: var(--f-mono);
	font-size: 10.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fg-faint);
}
.od-dl dd {
	margin: 0;
	font-size: 13.5px;
	color: var(--fg);
	line-height: 1.5;
}
.od-card__rows {
	display: flex;
	flex-direction: column;
	gap: 8px;
	border-top: 1px solid var(--bg-rule);
	padding-top: 14px;
}
.od-card__rows > div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 13.5px;
	color: var(--fg-mute);
}
.od-card__rows > div span:last-child {
	color: var(--fg);
	font-weight: 600;
}
.od-card__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	border-top: 1px solid var(--bg-rule);
	margin-top: 12px;
	padding-top: 14px;
}
.od-card__total span {
	font-family: var(--f-display);
	font-weight: 700;
	font-size: 15px;
	color: var(--fg);
}
.od-card__total strong {
	font-family: var(--f-display);
	font-weight: 700;
	font-size: 22px;
	color: var(--accent-deep);
}
.od-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.od-action {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 14px;
	border: 1px solid var(--bg-rule);
	border-radius: var(--r-1);
	font-size: 13.5px;
	font-weight: 600;
	color: var(--fg-soft);
}
.od-action svg {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
	color: var(--accent-deep);
}
.od-action:hover {
	border-color: var(--accent);
	color: var(--accent-deep);
	background: rgba(201, 162, 74, 0.06);
}


/* ===== prazdne stavy (17-empty-states.css) ===== */
/* Zaklad .state je v tolarie-obsah.css. Byval napsany i tady, se dvema jinymi
   hodnotami (velikost ikony, verzalky v nadpisu) - obsah.css se nacita pozdeji,
   takze zdejsi verze stejne nikdy neplatila. Zustava jen modifikator nize. */
/* stav uvnitr karty (.ac-block) — stejna stavba, jen mensi */
.state--inline {
	padding: 18px 0 6px;
}
.state--inline .state__icon {
	width: 56px;
	height: 56px;
	margin-bottom: 16px;
}
.state--inline .state__icon svg {
	width: 24px;
	height: 24px;
}
.state--inline .state__title {
	font-size: 20px;
}
.state--inline .state__text {
	font-size: 14px;
	margin-bottom: 18px;
}
