/* ==========================================================================
   E-Moto Park: zjednodušená hlavička v košíku a pokladně, návrh 2026-10-20
   Markup generuje parts/header-custom.php, když emoto_is_checkout_flow():
   logo · telefony · Můj účet. Bez vyhledávání, menu a promo lišty.
   Žádný border-radius (na webu se nepoužívá).
   ========================================================================== */

body.emoto-checkout-flow .site-header-wrap > :not(.emoto-checkout-header) {
	display: none !important;
}

.emoto-checkout-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #000;
	color: #fff;
	border-bottom: 1px solid #222;
}
.emoto-checkout-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	max-width: 1240px;
	min-height: 76px;
	margin: 0 auto;
	padding: 0 16px;
}
.emoto-checkout-header__logo {
	color: #ffde00;
	font-family: "Chakra Petch", sans-serif;
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}
.emoto-checkout-header__back {
	color: #bdbdbd;
	font-size: 15px;
	text-decoration: none;
	white-space: nowrap;
}
.emoto-checkout-header__back:hover {
	color: #fff;
	text-decoration: underline;
}
.emoto-checkout-header__contact {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-left: auto;
}
.emoto-checkout-header__label {
	color: #bdbdbd;
	font-size: 14px;
	white-space: nowrap;
}
.emoto-checkout-header__phone {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
}
.emoto-checkout-header__phone:hover .emoto-checkout-header__phone-number {
	text-decoration: underline;
}
.emoto-checkout-header__phone-icon {
	display: inline-flex;
	color: #ffde00;
}
.emoto-checkout-header__phone-icon svg {
	width: 22px;
	height: 22px;
}
.emoto-checkout-header__phone-text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}
.emoto-checkout-header__phone-name {
	color: #bdbdbd;
	font-size: 13px;
}
.emoto-checkout-header__phone-number {
	font-size: 16px;
	font-weight: 700;
}

/* Šablona na počítači posouvá přilepenou hlavičku nahoru o promo lištu + 32 px horní lišty
   (custom.css, header.wp-block-template-part { top: calc(...) }). Tady obě lišty nejsou. */
@media (min-width: 1200px) {
	body.emoto-checkout-flow header.wp-block-template-part {
		top: var(--admin-bar-offset, 0px) !important;
	}
}

/* Kroky 1–2–3: menší mezery (šablona: 64 px nad, 40 px pod) */
body.emoto-checkout-flow ol.cart-header {
	margin-top: 32px !important;
	margin-bottom: 16px !important;
}
body.emoto-checkout-flow.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart {
	margin-top: 8px !important;
}
/* Číslo kroku (::before s display:block uvnitř odkazu) nikdy podtržené: odkaz bez podtržení,
   při najetí se podtrhne jen popisek (span) */
body.emoto-checkout-flow ol.cart-header li > a,
body.emoto-checkout-flow ol.cart-header li > a:hover,
body.emoto-checkout-flow ol.cart-header li > a:focus {
	text-decoration: none !important;
}
body.emoto-checkout-flow ol.cart-header li > a:hover > span,
body.emoto-checkout-flow ol.cart-header li > a:focus-visible > span {
	text-decoration: underline;
}

/* Můj účet */
.emoto-checkout-header__account {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #fff;
	font-size: 15px;
	text-decoration: none;
	white-space: nowrap;
}
.emoto-checkout-header__account svg {
	width: 26px;
	height: 26px;
	color: #ffde00;
}
.emoto-checkout-header__account:hover span {
	text-decoration: underline;
}

/* Souhrn košíku se lepí pod nižší hlavičku */
@media (min-width: 1024px) {
	body.emoto-checkout-flow.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__sidebar {
		top: 100px;
	}
}

/* Tablet: bez popisku „Potřebujete poradit?“ */
@media (max-width: 1023px) {
	.emoto-checkout-header__label {
		display: none;
	}
}

/* Mobil: logo + jeden telefon (Radim) jako ikona s číslem, bez odkazu zpět (logo vede do e-shopu) */
@media (max-width: 640px) {
	.emoto-checkout-header__inner {
		min-height: 60px;
		gap: 12px;
	}
	.emoto-checkout-header__logo {
		font-size: 22px;
	}
	.emoto-checkout-header__back {
		display: none;
	}
	.emoto-checkout-header__phone + .emoto-checkout-header__phone {
		display: none;
	}
	.emoto-checkout-header__phone-name {
		font-size: 12px;
	}
	.emoto-checkout-header__phone-number {
		font-size: 15px;
	}
	.emoto-checkout-header__account span {
		display: none;
	}
}

/* ==========================================================================
   Patička v košíku a pokladně (paticka-navrh.php): jeden řádek odkazů + copyright,
   pod ní přepínač jazyků WPML
   ========================================================================== */
.emoto-checkout-footer {
	margin-top: 48px;
	border-top: 1px solid #e5e5e5;
	color: #6b6b6b;
	font-size: 14px;
	line-height: 1.5;
}
.emoto-checkout-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	max-width: 1240px;
	margin: 0 auto;
	padding: 20px 16px;
}
.emoto-checkout-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
}
.emoto-checkout-footer__links a {
	color: #6b6b6b;
	text-decoration: none;
}
.emoto-checkout-footer__links a:hover {
	color: #000;
	text-decoration: underline;
}
.emoto-checkout-footer__copy {
	margin: 0;
}
body.emoto-checkout-flow .wpml-ls-statics-footer {
	margin: 0 auto 24px !important;
	padding: 0 !important;
	font-size: 14px;
	text-align: center;
}
@media (max-width: 640px) {
	.emoto-checkout-footer__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
	.emoto-checkout-footer__links {
		gap: 8px 16px;
	}
}

/* Kroky 1–2–3 na mobilu: širší, menší písmo a menší kroužky, popisky na jeden řádek */
@media (max-width: 640px) {
	body.emoto-checkout-flow ol.cart-header {
		max-width: none !important;
		margin-left: -8px !important;
		margin-right: -8px !important;
	}
	body.emoto-checkout-flow ol.cart-header li {
		padding: 0 2px !important;
		font-size: 12px !important;
		white-space: nowrap;
	}
	body.emoto-checkout-flow ol.cart-header li > *::before {
		width: 32px !important;
		height: 32px !important;
		margin-bottom: 6px !important;
		font-size: 14px !important;
		line-height: 30px !important;
	}
	body.emoto-checkout-flow ol.cart-header li > * > span::after {
		top: 16px !important;
	}
}

/* Tlačítko šablony „nahoru“ (#emoto-scroll-top) v košíku a pokladně skrýt: na mobilu překrývá přilepené „Pokračovat“ */
body.emoto-checkout-flow #emoto-scroll-top {
	display: none !important;
}

/* ==========================================================================
   Platební ikony pod tlačítkem: souhrn košíku i souhrn v kroku 2 pokladny
   (markup z emoto_payment_icons() v kosik-duvera-navrh.php). Ikony bez podkladu.
   ========================================================================== */
.emoto-cart-trust {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 16px;
	font-size: 14px;
	line-height: 1.4;
	color: #222;
}
/* Platební ikony: stejná sada a styl jako v patičce (custom.css .footer-custom__payment), jen menší */
.emoto-cart-trust .emoto-cart-trust__payments {
	justify-content: center;
	gap: 6px 12px;
	opacity: 0.85;
}
.emoto-cart-trust .emoto-cart-trust__payments .footer-custom__payment-item {
	height: 22px;
}
/* Opticky srovnané velikosti (obrázky mají různě velké okraje):
   Visa vyplňuje celý obrázek → nižší, Google Pay o něco menší, Apple Pay je v rámečku karty → vyšší.
   Mastercard a Bitcoin mají z patičky 70 % výšky položky. */
.emoto-cart-trust .emoto-cart-trust__payments .footer-custom__payment-item--visa img {
	height: 13px;
}
.emoto-cart-trust .emoto-cart-trust__payments .footer-custom__payment-item--googlepay img {
	height: 18px;
}
.emoto-cart-trust .emoto-cart-trust__payments .footer-custom__payment-item--applepay {
	height: 26px;
}
.emoto-cart-trust .emoto-cart-trust__payments .footer-custom__payment-lock {
	width: 17px;
	height: 17px;
	flex-basis: 17px;
}
.emoto-cart-trust .emoto-cart-trust__payments .footer-custom__payment-label {
	font-size: 12px;
}

/* Šířka pravého panelu se souhrnem v košíku i v krocích 2 a 3 pokladny (kosik.css, pokladna.css):
   36 % šířky obsahu, nejméně 380 px, nejvíc 440 px (při plné šířce 1240 px). */
body.emoto-checkout-flow {
	--emoto-summary-w: clamp(380px, 36%, 440px);
}
