
	/* 1: tlačítko nastavení cookies je zpět — uživatel musí mít možnost
 	   souhlas kdykoliv změnit. Vzhled řeší snippet "GT - formulare". */

	/* 2: Obchod je běžný odkaz a v menu stojí těsně před jazykem. */
	html body #masthead .main-header-menu > .gt-menu-obchod {
		order: 40 !important;
	}
	html body #masthead .main-header-menu > .menu-item-shop,
	html body #masthead .main-header-menu > li[class*="menu-item-shop"] {
		order: 40 !important;
	}
	html body #masthead .main-header-menu > .gt-lang {
		order: 41 !important;
	}
	html body #masthead .main-header-menu > .gt-menu-obchod > a,
	html body #masthead .main-header-menu > .menu-item-shop > a,
	html body #masthead .main-header-menu > li[class*="menu-item-shop"] > a,
	html body .ast-mobile-popup-content .gt-menu-obchod > a,
	html body .ast-mobile-popup-content .menu-item-shop > a,
	html body .ast-mobile-popup-content li[class*="menu-item-shop"] > a {
		display: flex !important;
		align-items: center !important;
		height: 100% !important;
		min-height: 44px !important;
		margin: 0 !important;
		padding: 0 10px !important;
		border: 0 !important;
		border-radius: 0 !important;
		background: transparent !important;
		box-shadow: none !important;
		color: #f2f4f7 !important;
		font: inherit !important;
		font-weight: 400 !important;
		line-height: 1.6 !important;
		text-decoration: none !important;
	}
	html body #masthead .main-header-menu > .gt-menu-obchod > a:hover,
	html body #masthead .main-header-menu > .gt-menu-obchod > a:focus-visible,
	html body #masthead .main-header-menu > .menu-item-shop > a:hover,
	html body #masthead .main-header-menu > .menu-item-shop > a:focus-visible,
	html body #masthead .main-header-menu > li[class*="menu-item-shop"] > a:hover,
	html body #masthead .main-header-menu > li[class*="menu-item-shop"] > a:focus-visible,
	html body .ast-mobile-popup-content .gt-menu-obchod > a:hover,
	html body .ast-mobile-popup-content .gt-menu-obchod > a:focus-visible,
	html body .ast-mobile-popup-content .menu-item-shop > a:hover,
	html body .ast-mobile-popup-content .menu-item-shop > a:focus-visible,
	html body .ast-mobile-popup-content li[class*="menu-item-shop"] > a:hover,
	html body .ast-mobile-popup-content li[class*="menu-item-shop"] > a:focus-visible {
		background: transparent !important;
		color: #f43b2a !important;
	}

	/* 3: textové údaje v detailu objednávky musí být na tmavém pozadí čitelné. */
	html body.woocommerce-account .woocommerce-MyAccount-content mark.order-number,
	html body.woocommerce-account .woocommerce-MyAccount-content mark.order-date,
	html body.woocommerce-account .woocommerce-MyAccount-content mark.order-status {
		background: transparent !important;
		color: #fff !important;
		font-weight: 700 !important;
	}
	html body.woocommerce-account .woocommerce-MyAccount-content > p:first-child {
		color: #f2f4f7 !important;
	}

	/* 4: fakturační adresa v detailu objednávky začíná vlevo. */
	html body.woocommerce-account .woocommerce-customer-details,
	html body.woocommerce-account .woocommerce-customer-details .woocommerce-columns--addresses {
		width: 100% !important;
		max-width: none !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		text-align: left !important;
	}
	html body.woocommerce-account .woocommerce-customer-details .woocommerce-columns--addresses {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 16px !important;
		align-items: start !important;
	}
	html body.woocommerce-account .woocommerce-customer-details .woocommerce-column--billing-address,
	html body.woocommerce-account .woocommerce-customer-details .woocommerce-column--shipping-address {
		float: none !important;
		clear: both !important;
		width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		text-align: left !important;
	}
	html body.woocommerce-account .woocommerce-customer-details .woocommerce-column--billing-address {
		grid-column: 1 !important;
		grid-row: 1 !important;
	}
	html body.woocommerce-account .woocommerce-customer-details .woocommerce-column--shipping-address {
		grid-column: 2 !important;
		grid-row: 1 !important;
	}
	@media (max-width: 767px) {
		html body.woocommerce-account .woocommerce-customer-details .woocommerce-columns--addresses {
			grid-template-columns: 1fr !important;
		}
		html body.woocommerce-account .woocommerce-customer-details .woocommerce-column--billing-address,
		html body.woocommerce-account .woocommerce-customer-details .woocommerce-column--shipping-address {
			grid-column: 1 !important;
			grid-row: auto !important;
		}
	}

	/* 5: odhlášení je dostupné v uživatelském menu, ne znovu v patičce účtu. */
	.gt-ucet-pata > a[href*="customer-logout"] { display: none !important; }

	/* 6: úvody Herních článků a Herního průvodce kopírují šířku běžných postů. */
	@media (min-width: 922px) {
		html body.page-id-184 #primary article .entry-header[class],
		html body.page-id-157 #primary article .entry-header[class] {
			width: min(100%, 1000px) !important;
			max-width: 1000px !important;
			float: none !important;
			margin-left: auto !important;
			margin-right: auto !important;
		}
		html body.page-id-184 #primary article .entry-content[class],
		html body.page-id-157 #primary article .entry-content[class] {
			width: min(100%, 1000px) !important;
			max-width: 1000px !important;
			float: none !important;
			margin-left: max(0px, calc((100% - 1000px) / 2)) !important;
			margin-right: auto !important;
		}
	}

	/* 6b: popis kategorií herních článků začíná přesně nad textem karet.
	 * Astra mu standardně přidává 54px vnitřní odsazení, zatímco obsah
	 * karty začíná o 27px dříve. Sjednotíme levý okraj i zarovnání textu. */
	@media (min-width: 922px) {
		html body.archive:not(.category-recenze) .ast-archive-description {
			padding-left: 0 !important;
			padding-right: 0 !important;
			text-align: left !important;
		}
	}

	/* 6c: stránka Projekty má stejnou středovou osu jako její obsah.
	 * Astra nechává titul i entry-content na levém okraji širokého
	 * kontejneru, takže na velkých monitorech vzniká výrazně prázdný
	 * prostor vpravo. Omezíme oba bloky na společných 1000px a vystředíme je. */
	@media (min-width: 922px) {
		html body.page-id-170 #primary article .entry-header,
		html body.page-id-170 #primary article .entry-content {
			width: min(100%, 1000px) !important;
			max-width: 1000px !important;
			margin-left: auto !important;
			margin-right: auto !important;
		}
	}

	/* 7: starší objednávky na nástěnce účtu – metadata využijí celou kartu.
	 * Řádky zůstanou v jedné linii, ale datum, stav a cena dostanou
	 * vlastní prostor; cena se zarovná k pravému okraji. */
	@media (min-width: 922px) {
		html body.woocommerce-account .gt-starsi ul li > a {
			grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) max-content !important;
			justify-content: stretch !important;
			column-gap: 16px !important;
			padding-left: 16px !important;
			padding-right: 16px !important;
		}
		html body.woocommerce-account .gt-starsi ul li > a > span {
			justify-self: start !important;
			min-width: 0 !important;
		}
		html body.woocommerce-account .gt-starsi ul li > a > span:last-child {
			justify-self: end !important;
			text-align: right !important;
		}
	}

	/* 8: vyhledání na prázdném archivu recenzí má zřetelný odstup tlačítka. */
	body.category-recenze .page-content .search-form {
		display: flex !important;
		flex-direction: column !important;
		align-items: flex-start !important;
		gap: 16px !important;
		height: auto !important;
	}
	body.category-recenze .page-content .search-form label,
	body.category-recenze .page-content .search-form .search-field {
		width: 100% !important;
	}
	body.category-recenze .page-content .search-form > .search-submit {
		margin: 0 !important;
	}

	/* 8b: tlačítko Detail výdejního místa v objednávce je menší a vpravo. */
	html body.woocommerce-account .woocommerce-table--order-details a.button[target="_blank"][href*="zasilkovna.cz/pobocky"] {
		display: table !important;
		width: auto !important;
		max-width: 100% !important;
		min-height: 0 !important;
		margin: 10px 0 0 auto !important;
		padding: 9px 18px !important;
		font-size: 15px !important;
		line-height: 1.25 !important;
		border-radius: 999px !important;
		text-align: center !important;
		white-space: normal !important;
	}

	/* 8c: text karet článků začíná na stejné svislici jako náhledový obrázek. */
	@media (min-width: 922px) {
		html body .ast-article-post .post-content > .cat-links,
		html body .ast-article-post .post-content > .entry-title,
		html body .ast-article-post .post-content > .entry-header,
		html body .ast-article-post .post-content > .ast-excerpt-container,
		html body .ast-article-post .post-content > .entry-content {
			display: block !important;
			width: calc(100% + 54px) !important;
			max-width: none !important;
			margin-left: -27px !important;
			margin-right: -27px !important;
		}
	}

	/* 9: rozbalené hledání leží pod hlavičkou a nepřekrývá odkazy menu. */
	@media (min-width: 922px) {
		html body #ast-desktop-header .ast-search-menu-icon.slide-search.ast-dropdown-active .search-form {
			top: calc(100% + 53px) !important;
			right: -18px !important;
			left: auto !important;
			width: min(360px, calc(100vw - 40px)) !important;
			padding: 4px !important;
			border: 1px solid #2a3441 !important;
			border-radius: 8px !important;
			background: #111722 !important;
			box-shadow: 0 14px 36px rgba(0,0,0,.4) !important;
			z-index: 1000 !important;
		}
	}

	/* 10: stejná výška, pozadí a logo hlavičky na HP, archivech i článcích. */
	@media (min-width: 922px) {
		html body #masthead,
		html body #ast-desktop-header,
		html body #ast-desktop-header .ast-primary-header-bar,
		html body #ast-desktop-header .site-primary-header-wrap {
			min-height: 131px !important;
		}
		html body #ast-desktop-header .ast-primary-header-bar {
			background: #07090d !important;
			border-bottom: 1px solid #151b24 !important;
		}
		html body #ast-desktop-header .custom-logo {
			width: 147px !important;
			height: auto !important;
		}
	}
	