/* === Tlačítka =============================================================== */
.btn {
	display: inline-block;
	font-weight: 500;
	line-height: 1.5;
	text-decoration: none;
	vertical-align: middle;
	cursor: pointer;
	border-radius: var(--radius_btn);
	font-size: 1rem;
	text-transform: uppercase;
	text-align: center;
	padding: .575rem 1.1rem;
	margin: .25rem .125rem;
	transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.btn:focus {
	box-shadow: 0 0 0 .25rem rgba(92,131,50,.25);
	outline: none;
}

.btn_primary {
	color: #ffffff;
	background-color: var(--color_primary_dark);
	border: 1px solid var(--color_primary_dark);
}

.btn_primary:hover {
	background-color: var(--color_primary);
	border-color: var(--color_primary);
	color: #ffffff;
	text-decoration: none;
}

.btn_secondary {
	color: var(--color_primary_dark);
	background-color: #ffffff;
	border: 1px solid var(--color_primary_dark);
}

.btn_secondary:hover {
	border-color: var(--color_primary);
	color: var(--color_primary);
	text-decoration: none;
}

.btn_lgx {
	font-weight: 600;
	border-radius: var(--radius_btn);
	font-size: 1.70rem;
	padding: .855rem 1.7rem;
}

.btn_lg {
	font-weight: 600;
	border-radius: var(--radius_btn);
	font-size: 1.125rem;
	padding: .9rem 2rem;
}

/* Tlačítko "Do košíku" v produktové kartě */
.button_buy {
	display: inline-block;
	width: 100%;
	background-color: var(--color_primary);
	border: 0;
	padding: 10px 16px;
	color: #ffffff;
	font-weight: 600;
	font-size: 16px;
	border-radius: var(--radius_btn);
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	transition: background-color .15s;
}

.button_buy:hover {
	background-color: var(--color_primary_dark);
	color: #ffffff;
	text-decoration: none;
}

/* Tlačítko "Do košíku" v objednávce */
.button_buy_order {
	display: inline-block;
	background-color: var(--color_primary_dark);
	border: 0;
	padding: 10px 13px;
	color: #ffffff;
	text-transform: uppercase;
	font-weight: bold;
	font-size: 16px;
	border-radius: 3px;
	cursor: pointer;
	text-decoration: none;
	transition: background-color .15s;
}

.button_buy_order:hover {
	background-color: var(--color_primary);
	color: #ffffff;
	text-decoration: none;
}

/* === Formuláře ============================================================== */
.form-control,
.form-select {
	display: block;
	width: 100%;
	padding: 10px 14px;
	font-size: 16px;
	line-height: 1.5;
	color: var(--color_text_dark);
	background-color: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: var(--radius_btn);
	transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form-control:focus,
.form-select:focus {
	border-color: var(--color_primary);
	box-shadow: 0 0 0 3px rgba(92,131,50,.2);
	outline: none;
}

.form-control:disabled,
.form-select:disabled,
.form-control[readonly] {
	background-color: #f3f4f6;
	color: #6b7280;
	cursor: not-allowed;
}

textarea.form-control {
	min-height: 120px;
	resize: vertical;
}

/* Wrapper jedné položky formuláře */
.form_group {
	margin-bottom: 16px;
}

/* Popisek nad inputem */
.form_label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: #374151;
	margin-bottom: 6px;
}

/* Hvězdička povinného pole */
.form_required {
	color: var(--color_sale);
	margin-left: 2px;
}

/* Drobná nápověda pod inputem */
.form_hint {
	display: block;
	font-size: 13px;
	color: #6b7280;
	margin-top: 6px;
}

/* Chybová zpráva pod inputem */
.form_error {
	display: block;
	font-size: 13px;
	color: var(--color_error);
	margin-top: 6px;
}

/* Checkbox / radio řádek */
.form_check {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	margin-bottom: 12px;
}

.form_check_input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--color_primary);
	cursor: pointer;
	flex-shrink: 0;
}

.form_check_label {
	font-size: 16px;
	color: var(--color_text_dark);
	cursor: pointer;
	user-select: none;
}

/* Submit přes celou šířku */
.btn_full {
	display: block;
	width: 100%;
	margin: 0;
}


/* === Auth / chybové stránky ================================================= */
.auth_page {
	padding: 0px 16px 80px;
}

.auth_form {
	max-width: 480px;
	margin: 0 auto;
}

.auth_form_wide {
	max-width: 560px;
}

/* Kontaktní stránka — neomezeně široká, sdílí .auth_page jen kvůli paddingu */
.contact_intro {
	font-size: 16px;
	color: var(--color_text_dark);
	margin-bottom: 24px;
	line-height: 1.6;
}

.contact_map {
	border-radius: var(--radius_card);
	overflow: hidden;
	box-shadow: var(--color_shadow_card);
	aspect-ratio: 4 / 3;
	width: 100%;
}

.contact_map iframe {
	display: block;
	border: 0;
	width: 100%;
	height: 100%;
}

@media (max-width: 767.98px) {
	.contact_map {
		margin-top: 24px;
	}
}

.auth_intro {
	font-size: 16px;
	color: #4b5563;
	margin-bottom: 24px;
}

.auth_required_note {
	font-size: 14px;
	color: #6b7280;
	margin: -8px 0 20px;
}

.auth_footer_links {
	border-top: 1px solid #e5e7eb;
	padding-top: 20px;
	margin-top: 24px;
	text-align: center;
	font-size: 16px;
	color: #4b5563;
	line-height: 1.7;
}

.auth_footer_links a {
	color: var(--color_primary);
	font-weight: 500;
}

.auth_footer_links a:hover {
	color: var(--color_primary_dark);
	text-decoration: underline;
}

/* Stránka 404 */
.error_404_number {
	font-size: 96px;
	font-weight: 700;
	line-height: 1;
	color: var(--color_primary);
	margin-bottom: 8px;
}

.error_404_intro {
	font-size: 16px;
	color: #4b5563;
	max-width: 560px;
	margin: 0 auto 24px;
}

.error_404_search {
	max-width: 520px;
	margin: 0 auto 16px;
}

.error_404_recommended {
	margin-top: 16px;
	margin-bottom: 40px;
}

.error_404_recommended h2 {
	margin-bottom: 20px;
}

@media (max-width: 575.98px) {
	.error_404_number {
		font-size: 72px;
	}
}


/* === Produktová karta ======================================================= */
.product_card {
	background-color: #ffffff;
	border-radius: var(--radius_card);
	box-shadow: var(--color_shadow_card);
	border: 1px solid #f0f0f0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: box-shadow .2s ease, transform .2s ease;
}

.product_card:hover {
	box-shadow: var(--color_shadow_card_hover);
	transform: translateY(-2px);
	text-decoration: none;
}

.product_card_photo {
	display: block;
	position: relative;
	background-color: #f8f8f8;
	padding: 12px;
	text-decoration: none;
}

.product_card_photo_img {
	display: block;
	width: 130px;
	height: 180px;
	margin: 0 auto;
	object-fit: contain;
	transition: transform .2s;
}

.product_card:hover .product_card_photo_img {
	transform: scale(1.04);
}

.product_card_body {
	padding: 12px;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 8px;
}

.product_card_name {
	display: block;
	font-size: 16px;
	font-weight: 500;
	color: var(--color_text_dark);
	line-height: 1.4;
	min-height: 2.8em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-decoration: none;
	transition: color .15s;
}

.product_card_name:hover {
	color: var(--color_primary);
	text-decoration: none;
}

.product_card_price {
	font-weight: bold;
	font-size: 17px;
	color: var(--color_primary_deepest);
}

.product_card_price_old {
	font-size: 16px;
	color: var(--color_text_muted);
	text-decoration: line-through;
	margin-left: 6px;
	font-weight: normal;
}

.product_card_footer {
	margin-top: auto;
}

/* Badge novinky / akce */
.product_badge {
	position: absolute;
	top: 8px;
	left: 8px;
	padding: 2px 10px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: bold;
	color: #ffffff;
	text-transform: uppercase;
	z-index: 1;
}

.product_badge_new {
	background-color: var(--color_primary);
}

.product_badge_sale {
	background-color: var(--color_sale);
}

.product_badge_store {
	background-color: var(--color_price);
}

.product_badge_pdf {
	background-color: #5c6bc0;
}

/* Badges — obecné (v kategorii atd.) */
.item_in_action {
	background-color: var(--color_sale);
	color: #ffffff;
	text-align: center;
	padding: 3px 18px;
	margin-top: -30px;
	z-index: 100;
	position: absolute;
}

.item_high_store {
	background-color: var(--color_primary);
	color: #ffffff;
	text-align: center;
	padding: 3px 18px;
	margin-top: -30px;
	z-index: 100;
	position: absolute;
}

.item_in_store {
	background-color: var(--color_primary);
	color: #ffffff;
	text-align: center;
	padding: 3px 10px;
	margin-top: -35px;
	z-index: 100;
	position: absolute;
	border-radius: 3px;
	font-size: 90%;
}

.detail_in_action {
	display: inline-block;
	background-color: var(--color_sale);
	color: #ffffff;
	text-align: center;
	padding: 3px 18px;
}


/* === Carousel sekce ========================================================= */
.carousel_section {
	padding: 48px 0;
}

.carousel_section_gray {
	background-color: var(--color_surface_gray);
}

.carousel_section_white {
	background-color: #ffffff;
}

.carousel_section_header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 32px;
}

.carousel_section_title {
	font-size: 30px;
	font-weight: 700;
	color: var(--color_primary_deepest);
	margin: 0;
}

@media (min-width: 768px) {
	.carousel_section_title {
		font-size: 36px;
	}
}

.carousel_section_link {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--color_primary);
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	transition: color .15s;
}

.carousel_section_link:hover {
	color: var(--color_primary_dark);
	text-decoration: none;
}

.carousel_section_link svg {
	width: 18px;
	height: 18px;
}

/* Splide wrapper — produkty od kraje ke kraji containeru, sipky preteckaji pres hranu */
.carousel_wrapper {
	position: relative;
}

/* Touch swipe na mobilu — prohlížeč musí vědět, že horizontální pohyb si přebírá Splide,
   jinak ho na Androidu interpretuje jako součást vertikálního scrollu. */
.splide--draggable > .splide__track {
	touch-action: pan-y;
}

/* Splide arrows — override default with Figma styl (kruhove, bile bg, primary border) */
.splide__arrow {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-color: #ffffff;
	border: 2px solid var(--color_primary);
	opacity: 1;
	box-shadow: 0 2px 8px rgba(0,0,0,.12);
	transition: background-color .15s;
}

.splide__arrow:hover:not(:disabled) {
	background-color: var(--color_primary);
}

.splide__arrow:hover:not(:disabled) svg {
	fill: #ffffff;
}

.splide__arrow:disabled {
	opacity: .4;
}

.splide__arrow svg {
	width: 18px;
	height: 18px;
	fill: var(--color_primary);
	transition: fill .15s;
}

.splide__arrow--prev {
	left: -22px;
}

.splide__arrow--next {
	right: -22px;
}

.splide__pagination {
	display: none;
}

/* Mobil — zadne sipky, jen swipe */
@media (max-width: 767.98px) {
	.carousel_wrapper .splide__arrow {
		display: none;
	}
}

/* Splide.js slide — padding pouze vertikalne pro stin karty, horizontalni gap resi Splide option */
.splide__slide {
	padding: 4px 0;
	box-sizing: border-box;
	height: auto;
}

/* Karty vyplni cely slot slidu */
.splide__slide .product_card {
	height: 100%;
}

/* Skeleton pred inicializaci Splide — aby karusel nebyl prazdny, nez se nacte JS.
   Zrcadli perPage/gap z ajax/carousel.js pro ruzne breakpointy, aby po mountu nedoslo k poskocenim. */
.splide:not(.is-initialized) .splide__list {
	display: flex;
	flex-wrap: nowrap;
	gap: 16px;
	overflow: hidden;
	list-style: none;
	padding: 0;
	margin: 0;
}

.splide:not(.is-initialized) .splide__list > .splide__slide {
	flex: 0 0 calc((100% - 4 * 16px) / 5);
	min-width: 0;
}

.splide:not(.is-initialized) .splide__arrow,
.splide:not(.is-initialized) .splide__pagination {
	display: none;
}

@media (max-width: 1319.98px) {
	.splide:not(.is-initialized) .splide__list > .splide__slide {
		flex: 0 0 calc((100% - 3 * 16px) / 4);
	}
}

@media (max-width: 1199.98px) {
	.splide:not(.is-initialized) .splide__list > .splide__slide {
		flex: 0 0 calc((100% - 2 * 16px) / 3);
	}
}

@media (max-width: 767.98px) {
	.splide:not(.is-initialized) .splide__list {
		gap: 12px;
	}
	.splide:not(.is-initialized) .splide__list > .splide__slide {
		flex: 0 0 calc((100% - 12px) / 2);
	}
}

@media (max-width: 479.98px) {
	.splide:not(.is-initialized) .splide__list > .splide__slide {
		flex: 0 0 calc(100% / 1.8 - 12px);
	}
}


/* === Stránkování (legacy — slevy.php, nejprodavanejsi.php) ================= */
.pagging_item {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid #D7D7D7;
	color: var(--color_primary);
	margin: 0 4px 6px;
	border-radius: 4px;
	text-decoration: none;
	transition: background-color .15s, border-color .15s;
}

.pagging_item:hover {
	background-color: var(--color_surface_green);
	border-color: var(--color_primary);
	color: var(--color_primary);
	text-decoration: none;
}

.pagging_item_active {
	background-color: var(--color_primary);
	border-color: var(--color_primary);
	color: #ffffff;
}

.pagging_item_active:hover {
	background-color: var(--color_primary_dark);
	border-color: var(--color_primary_dark);
	color: #ffffff;
}


/* === Stránkování — redesign verze (Figma styl) ============================= */
.paging {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

@media (min-width: 576px) {
	.paging {
		flex-direction: row;
		justify-content: center;
	}
}

.paging_buttons {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
}

.paging_item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--color_primary);
	border-radius: var(--radius_btn);
	color: var(--color_primary);
	background-color: #ffffff;
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	transition: background-color .15s, color .15s;
}

.paging_item:hover {
	background-color: var(--color_surface_green);
	color: var(--color_primary);
	text-decoration: none;
}

.paging_item_active {
	background-color: var(--color_primary);
	border-color: var(--color_primary);
	color: #ffffff;
}

.paging_item_active:hover {
	background-color: var(--color_primary);
	color: #ffffff;
}

.paging_dots {
	color: var(--color_text_muted);
	padding: 0 4px;
	user-select: none;
}

.paging_nav {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 12px;
	border: 1px solid var(--color_primary);
	border-radius: var(--radius_btn);
	color: var(--color_primary);
	background-color: #ffffff;
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	transition: background-color .15s;
}

.paging_nav:hover {
	background-color: var(--color_surface_green);
	color: var(--color_primary);
	text-decoration: none;
}

.paging_nav_disabled {
	opacity: .4;
	cursor: not-allowed;
	pointer-events: none;
}

.paging_nav_label {
	display: inline;
}

@media (max-width: 575.98px) {
	.paging_nav_label {
		display: none;
	}
}

.paging_select_form {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
}

.paging_select_label {
	color: var(--color_text_muted);
	margin: 0;
}

.paging_select {
	padding: 6px 26px 6px 10px;
	border: 1px solid #dddddd;
	border-radius: var(--radius_btn);
	font-size: 16px;
	color: var(--color_text_dark);
	background-color: #ffffff;
	background-image: url('/img/icon-chevron-down.svg');
	background-repeat: no-repeat;
	background-position: right 6px center;
	background-size: 12px;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
}

.paging_select:focus {
	border-color: var(--color_primary);
	outline: none;
}


/* === Newsletter sekce ======================================================= */
.newsletter_section {
	background-color: var(--color_primary);
	padding: 64px 0;
	text-align: center;
}

.newsletter_section_icon {
	width: 64px;
	height: 64px;
	background-color: rgba(255,255,255,.15);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
}

.newsletter_section_icon svg,
.newsletter_section_icon img {
	width: 32px;
	height: 32px;
	color: #ffffff;
	/* SVG soubory maji zeleny stroke — na tmavem bg invertujeme do bile */
	filter: brightness(0) invert(1);
}

.newsletter_section_title {
	font-size: 32px;
	font-weight: bold;
	color: #ffffff;
	margin-bottom: 12px;
}

.newsletter_section_desc {
	font-size: 16px;
	color: rgba(255,255,255,.9);
	margin-bottom: 32px;
}

.newsletter_section_form {
	display: flex;
	gap: 12px;
	max-width: 480px;
	margin: 0 auto;
}

.newsletter_section_input {
	flex: 1;
	padding: 12px 20px;
	border: 0;
	border-radius: var(--radius_btn);
	font-size: 16px;
	color: var(--color_text_dark);
	background-color: #ffffff;
	outline: none;
}

.newsletter_section_input:focus {
	box-shadow: 0 0 0 3px rgba(255,255,255,.4);
}

.newsletter_section_btn {
	padding: 12px 28px;
	background-color: var(--color_primary_dark);
	color: #ffffff;
	border: 0;
	border-radius: var(--radius_btn);
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color .15s;
}

.newsletter_section_btn:hover {
	background-color: var(--color_primary_darker);
}

.newsletter_section_note {
	font-size: 12px;
	color: rgba(255,255,255,.65);
	margin-top: 16px;
}

@media (max-width: 575.98px) {
	.newsletter_section_form {
		flex-direction: column;
	}

	.newsletter_section_title {
		font-size: 26px;
	}
}

/* Footer newsletter (legacy) */
.footer_newsletter_text {
	height: 34px;
	border: 0;
	padding: 4px 10px;
	font-size: 16px;
	margin-bottom: 8px;
	border-radius: 3px;
	width: 200px;
}

.footer_newsletter_add {
	height: 40px;
	background-color: var(--color_primary);
	color: #ffffff;
	border: 0;
	font-size: 16px;
	border-radius: 3px;
	font-weight: bold;
	cursor: pointer;
	padding: 0 16px;
}

.footer_newsletter_del {
	height: 40px;
	background-color: var(--color_primary_darker);
	color: #ffffff;
	border: 1px solid var(--color_primary);
	font-size: 16px;
	border-radius: 3px;
	font-weight: bold;
	cursor: pointer;
	padding: 0 16px;
}


/* === Filtrační sidebar ====================================================== */
.filter_sidebar {
	background-color: #ffffff;
	border-radius: var(--radius_card);
	box-shadow: var(--color_shadow_card);
	padding: 20px;
}

.filter_sidebar_title {
	font-size: 16px;
	font-weight: bold;
	color: var(--color_primary_deepest);
	margin-bottom: 16px;
}

.filter_section {
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid #f0f0f0;
}

.filter_section:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

.filter_section_label {
	font-size: 13px;
	font-weight: 600;
	color: #444444;
	margin-bottom: 12px;
	text-transform: uppercase;
	letter-spacing: .5px;
}

/* Cena range slider */
.filter_range_inputs {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
}

.filter_range_input {
	flex: 1;
	padding: 6px 10px;
	border: 1px solid #dddddd;
	border-radius: 4px;
	font-size: 16px;
	text-align: center;
	width: 100%;
}

.filter_range_input:focus {
	border-color: var(--color_primary);
	outline: none;
}

.filter_range_slider {
	width: 100%;
	accent-color: var(--color_primary);
}

/* Mobilní toggle filtrů */
.filter_mobile_toggle {
	display: none;
	width: 100%;
	padding: 10px 16px;
	background-color: var(--color_primary);
	color: #ffffff;
	border: 0;
	border-radius: var(--radius_btn);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	margin-bottom: 16px;
}

@media (max-width: 767.98px) {
	.filter_mobile_toggle {
		display: block;
	}

	.filter_sidebar {
		display: none;
	}

	.filter_sidebar.is_open {
		display: block;
	}
}


/* === Bootstrap navigace (záložky) ========================================== */
@media (min-width: 581px) {
	.nav .nav-item {
		font-size: 18px;
	}
}

@media (max-width: 580px) {
	.nav .nav-item {
		font-size: 16px;
	}
}

.nav .active {
	color: var(--color_primary_deepest);
	border-color: var(--color_primary_deepest) var(--color_primary_deepest) #ffffff;
}

.nav .nav-link:hover {
	color: var(--color_primary_deepest);
	cursor: pointer;
}


/* === Modální okna =========================================================== */
.info_text {
	display: none;
	max-width: 500px;
	position: fixed;
	top: 20%;
	left: 0;
	right: 0;
	margin: 0 auto;
	background-color: #ffffff;
	border: 1px solid var(--color_primary_dark);
	padding: 10px;
	box-shadow: 10px 10px 24px 11px rgba(179,179,179,1);
	z-index: 100;
}

.info_text_header {
	padding: 2px 0 10px;
	font-size: 18px;
	font-weight: bold;
	text-align: center;
	border-bottom: 1px solid var(--color_primary_dark);
	margin-bottom: 15px;
}

.info_text_close {
	float: right;
	cursor: pointer;
}

.order_zas_select {
	width: 80%;
	max-width: 500px;
	max-height: 400px;
	position: fixed;
	top: 20%;
	left: 0;
	right: 0;
	margin: 0 auto;
	background-color: #ffffff;
	border: 1px solid var(--color_primary_dark);
	padding: 10px;
	box-shadow: 10px 10px 24px 11px rgba(179,179,179,1);
	overflow: auto;
	z-index: 100;
}

.order_zas_select table {
	margin: auto;
}

.order_zas_select td {
	padding: 10px;
}

.order_zas_select input[type="text"] {
	width: 90%;
}


/* === Objednávka — krokovac (sdileny pro stavy 1-4) ========================== */
.order_steps_bar {
	background-color: #ffffff;
	border-bottom: 1px solid #e5e7eb;
	padding: 24px 0;
	margin-bottom: 0;
}

.order_steps_list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 8px;
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}

.order_step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	min-width: 64px;
	max-width: 140px;
	text-align: center;
}

.order_step_circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background-color: #D6D6D6;
	color: #6b7280;
	font-size: 14px;
	font-weight: 700;
	flex-shrink: 0;
}

.order_step.is_active .order_step_circle {
	background-color: var(--color_primary);
	color: #ffffff;
}

.order_step.is_done .order_step_circle {
	background-color: var(--color_primary);
	color: #ffffff;
}

.order_step_check {
	filter: brightness(0) invert(1);
}

.order_step_label {
	font-size: 14px;
	font-weight: 500;
	color: #6b7280;
	line-height: 1.2;
}

.order_step.is_active .order_step_label {
	color: var(--color_primary_deepest);
	font-weight: 600;
}

.order_step.is_done .order_step_label {
	color: var(--color_primary_deepest);
}

.order_step_line {
	flex: 1 1 auto;
	height: 2px;
	background-color: #D6D6D6;
	margin-top: 15px;
	min-width: 16px;
	max-width: 64px;
}

.order_step_line.is_done {
	background-color: var(--color_primary);
}

@media (max-width: 575.98px) {
	.order_steps_bar {
		padding: 16px 0;
	}

	.order_step_circle {
		width: 28px;
		height: 28px;
		font-size: 13px;
	}

	.order_step_label {
		font-size: 12px;
	}

	.order_step_line {
		margin-top: 13px;
		min-width: 8px;
	}

	.order_step {
		min-width: 48px;
	}
}


/* === Košík — H1 + úvodní karty ============================================= */
.order_title {
	margin-top: 32px;
	margin-bottom: 24px;
}


/* === Košík — karta progress dopravy zdarma ================================= */
.order_free_delivery_card {
	background-color: var(--color_surface_green);
	border: 1px solid rgba(91, 131, 43, .2);
	border-radius: var(--radius_card);
	padding: 16px;
	margin-bottom: 24px;
}

.order_free_delivery_header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.order_free_delivery_icon {
	display: inline-block;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	background-color: var(--color_primary);
	-webkit-mask: url(/img/icon-truck.svg) no-repeat center / contain;
	mask: url(/img/icon-truck.svg) no-repeat center / contain;
}

.order_free_delivery_text {
	margin: 0;
	font-size: 16px;
	font-weight: 500;
	color: var(--color_primary_deepest);
}

.order_free_delivery_text_done {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.order_free_delivery_text_done img {
	color: var(--color_success);
}


/* === Košík — prázdný kosík ================================================== */
.order_empty {
	text-align: center;
	padding: 64px 16px;
}

.order_empty_icon {
	color: #d1d5db;
	margin-bottom: 16px;
}

.order_empty_text {
	font-size: 20px;
	color: #6b7280;
	margin-bottom: 24px;
}


/* === Košík — layout ========================================================= */
.order_layout {
	margin-bottom: 32px;
}


/* === Košík — tabulka položek (desktop) ===================================== */
.order_table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid #e5e7eb;
	border-radius: var(--radius_card);
	overflow: hidden;
	background-color: #ffffff;
}

.order_table_head {
	background-color: var(--color_surface_green);
}

.order_table_head th {
	padding: 16px;
	font-size: 14px;
	font-weight: 600;
	color: var(--color_primary_deepest);
	text-align: center;
	text-transform: none;
	white-space: nowrap;
}

.order_table_head th.order_table_th_item {
	text-align: left;
}

.order_table_th_remove {
	width: 56px;
}

/* slaby oddelovac mezi radky polozek (mezi sousedy, ne nad prvnim) */
.order_table_row + .order_table_row > td {
	border-top: 1px solid #f0f0f0;
}

.order_table_row td {
	padding: 16px;
	vertical-align: middle;
	text-align: center;
}

.order_table_row td.order_table_cell_item {
	text-align: left;
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 220px;
}

.order_table_item_photo {
	display: block;
	flex-shrink: 0;
	width: 64px;
	height: 80px;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	overflow: hidden;
	background-color: #ffffff;
}

.order_table_item_photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.order_table_item_name {
	font-size: 16px;
	font-weight: 500;
	color: var(--color_primary_deepest);
	line-height: 1.4;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.order_table_item_name:hover {
	color: var(--color_primary);
	text-decoration: none;
}

.order_table_stock_ok {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	font-weight: 500;
	color: var(--color_success);
}

.order_table_stock_ok img {
	color: var(--color_success);
}

.order_table_stock_no {
	display: inline-block;
	font-size: 14px;
	font-weight: 500;
	color: var(--color_error);
}

.order_table_stock_note {
	display: block;
	font-size: 12px;
	color: #6b7280;
	margin-top: 4px;
}

.order_table_cell_price,
.order_table_cell_sum {
	font-size: 16px;
	color: var(--color_text_dark);
	white-space: nowrap;
}

.order_table_cell_sum b {
	font-weight: 700;
	color: var(--color_primary_deepest);
}

.order_table_remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 6px;
	transition: background-color .15s;
}

.order_table_remove:hover {
	background-color: #fef2f2;
	text-decoration: none;
}

.order_table_remove_icon {
	display: inline-block;
	width: 18px;
	height: 18px;
	background-color: #9ca3af;
	-webkit-mask: url(/img/icon-trash.svg) no-repeat center / contain;
	mask: url(/img/icon-trash.svg) no-repeat center / contain;
	transition: background-color .15s;
}

.order_table_remove:hover .order_table_remove_icon {
	background-color: var(--color_error);
}


/* === Košík — counter (-/input/+) =========================================== */
.order_count {
	display: inline-flex;
	align-items: center;
	border: 1px solid #d1d5db;
	border-radius: var(--radius_btn);
	overflow: hidden;
	background-color: #ffffff;
}

.order_count_btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 40px;
	background-color: transparent;
	border: 0;
	color: #4b5563;
	cursor: pointer;
	padding: 0;
	transition: background-color .15s;
}

.order_count_btn:hover {
	background-color: #f9fafb;
}

.order_count_input {
	width: 48px;
	height: 40px;
	text-align: center;
	border: 0;
	border-left: 1px solid #d1d5db;
	border-right: 1px solid #d1d5db;
	font-size: 16px;
	font-weight: 500;
	color: var(--color_text_dark);
	outline: none;
	-moz-appearance: textfield;
	background-color: #ffffff;
}

.order_count_input::-webkit-outer-spin-button,
.order_count_input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}


/* === Košík — tabulka -> karty na mobilu (<768px) =========================== */
@media (max-width: 767.98px) {
	.order_table {
		display: block;
		border: 0;
		background-color: transparent;
		overflow: visible;
	}

	.order_table_head {
		display: none;
	}

	.order_table tbody {
		display: block;
	}

	.order_table_row {
		display: block;
		border: 1px solid #e5e7eb;
		border-radius: var(--radius_card);
		padding: 16px;
		margin-bottom: 16px;
		background-color: #ffffff;
		position: relative;
	}

	.order_table_row td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 8px 0;
		text-align: right;
		border: 0;
	}

	.order_table_row td::before {
		content: attr(data-label);
		font-size: 14px;
		font-weight: 500;
		color: #6b7280;
		text-align: left;
		margin-right: 12px;
	}

	.order_table_cell_item {
		display: flex;
		justify-content: flex-start;
		text-align: left;
		gap: 12px;
		min-width: 0;
		padding-bottom: 12px;
		margin-bottom: 8px;
		border-bottom: 1px solid #f3f4f6;
	}

	.order_table_cell_item::before {
		display: none;
	}

	.order_table_item_photo {
		width: 64px;
		height: 80px;
	}

	.order_table_cell_remove {
		position: absolute;
		top: 8px;
		right: 8px;
		padding: 0;
	}

	.order_table_cell_remove::before {
		display: none;
	}
}


/* === Košík — dárkový box ==================================================== */
.order_gift_progress {
	background-color: var(--color_surface_green);
	border: 1px solid rgba(91, 131, 43, .2);
	border-radius: var(--radius_card);
	padding: 16px;
	margin-top: 32px;
}

.order_gift_progress_text {
	margin: 12px 0 0;
	font-size: 16px;
	color: var(--color_primary_deepest);
}

.order_gift_card {
	background-color: var(--color_surface_green);
	border: 2px solid var(--color_primary);
	border-radius: var(--radius_card);
	padding: 24px;
	margin-top: 32px;
}

.order_gift_card_header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
}

.order_gift_card_icon {
	display: inline-block;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	background-color: var(--color_primary);
	-webkit-mask: url(/img/icon-gift.svg) no-repeat center / contain;
	mask: url(/img/icon-gift.svg) no-repeat center / contain;
}

.order_gift_card_title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: var(--color_primary_deepest);
}

.order_gift_grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

@media (min-width: 992px) {
	.order_gift_grid {
		grid-template-columns: repeat(5, 1fr);
	}
}

@media (max-width: 767.98px) {
	.order_gift_grid {
		grid-template-columns: 1fr;
	}
}

.order_gift_item {
	display: flex;
	flex-direction: column;
	border: 2px solid #e5e7eb;
	border-radius: var(--radius_card);
	background-color: #ffffff;
	overflow: hidden;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s;
	position: relative;
	margin: 0;
}

.order_gift_item:hover {
	border-color: rgba(91, 131, 43, .5);
}

.order_gift_item.is_selected,
.order_gift_item:has(.order_gift_item_radio:checked) {
	border-color: var(--color_primary);
	box-shadow: 0 0 0 3px rgba(91, 131, 43, .2);
}

.order_gift_item:has(.order_gift_item_radio:focus-visible) {
	border-color: var(--color_primary);
	box-shadow: 0 0 0 3px rgba(91, 131, 43, .35);
}

.order_gift_item_photo {
	max-width: 100%;
	max-height: 80px;
	width: auto;
	object-fit: contain;
	display: block;
	margin-inline: auto;
}

/* radio je vizuálně skrytý, výběr značí rámeček (viz .order_gift_item:has(...)) */
.order_gift_item_radio {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.order_gift_item_body {
	padding: 16px;
}

.order_gift_item_name {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: var(--color_primary_deepest);
	line-height: 1.3;
}


/* === Košík — souhrn objednávky (pravý sticky panel) ======================== */
.order_summary_card {
	background-color: var(--color_surface_green);
	border: 1px solid rgba(91, 131, 43, .2);
	border-radius: var(--radius_card);
	padding: 24px;
}

@media (min-width: 992px) {
	.order_summary_card {
		position: sticky;
		top: 155px;
	}
}

.order_summary_title {
	margin: 0 0 24px;
	font-size: 20px;
	font-weight: 700;
	color: var(--color_primary_deepest);
}

.order_summary_row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 6px 0;
	font-size: 16px;
	color: #4b5563;
}

.order_summary_value {
	font-weight: 500;
	color: var(--color_text_dark);
}

.order_summary_separator {
	border-top: 1px solid rgba(91, 131, 43, .25);
	margin: 16px 0;
}

.order_summary_total_label {
	font-size: 18px;
	font-weight: 700;
	color: var(--color_primary_deepest);
}

.order_summary_total {
	font-size: 24px;
	font-weight: 700;
	color: var(--color_primary_deepest);
	white-space: nowrap;
}

.order_summary_cta {
	display: block;
	width: 100%;
	margin-top: 20px;
	font-weight: 600;
	background-color: var(--color_primary);
	border-color: var(--color_primary);
}

.order_summary_cta:hover {
	background-color: var(--color_primary_dark);
	border-color: var(--color_primary_dark);
}

.order_summary_hint {
	margin: 12px 0 0;
	text-align: center;
	font-size: 13px;
	color: #6b7280;
}


/* === Košík — informační pruh pod košíkem =================================== */
.order_info_strip {
	background-color: #f5f5f5;
	padding: 48px 0;
	margin-top: 32px;
}

.order_info_strip_row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 16px;
	color: #374151;
	line-height: 1.6;
	margin: 0 0 16px;
}

.order_info_strip_row:last-child {
	margin-bottom: 0;
}

.order_info_strip_icon {
	display: inline-block;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	margin-top: 2px;
	background-color: var(--color_primary);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

.order_info_strip_icon_invoice {
	-webkit-mask-image: url(/img/icon-file-text.svg);
	mask-image: url(/img/icon-file-text.svg);
}

.order_info_strip_icon_package {
	-webkit-mask-image: url(/img/icon-package.svg);
	mask-image: url(/img/icon-package.svg);
}

.order_info_strip_icon_mail {
	-webkit-mask-image: url(/img/icon-mail.svg);
	mask-image: url(/img/icon-mail.svg);
}

.order_info_strip a {
	color: var(--color_primary);
	font-weight: 500;
}

.order_info_strip a:hover {
	color: var(--color_primary_dark);
	text-decoration: underline;
}


/* === Košík — doporučené produkty ============================================ */
.order_recommended {
	margin-top: 32px;
	margin-bottom: 48px;
}

.order_recommended_title {
	margin: 0 0 24px;
}


/* === Košík — mobilní fixed bottom bar ======================================= */
.order_mobile_bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: #ffffff;
	border-top: 2px solid var(--color_primary);
	box-shadow: 0 -8px 24px rgba(0, 0, 0, .18);
	padding: 12px 16px;
	z-index: 40;
}

.order_mobile_bar_inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

/* stacked varianta - cena nad tlacitkem, tlacitko na plnou sirku (krok 3 s delsim textem 'Dokoncit') */
.order_mobile_bar_inner_stacked {
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
}

.order_mobile_bar_inner_stacked .order_mobile_bar_total {
	flex-direction: row;
	justify-content: space-between;
	align-items: baseline;
}

.order_mobile_bar_inner_stacked .order_mobile_bar_cta {
	width: 100%;
	white-space: normal;
	line-height: 1.2;
}

.order_mobile_bar_total {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.order_mobile_bar_label {
	font-size: 13px;
	color: #6b7280;
}

.order_mobile_bar_price {
	font-size: 20px;
	font-weight: 700;
	color: var(--color_primary_deepest);
	white-space: nowrap;
}

.order_mobile_bar_cta {
	white-space: nowrap;
	padding: 10px 20px;
	font-weight: 600;
	margin: 0;
	background-color: var(--color_primary);
	border-color: var(--color_primary);
}

.order_mobile_bar_cta:hover {
	background-color: var(--color_primary_dark);
	border-color: var(--color_primary_dark);
}

.order_mobile_bar_spacer {
	height: 80px;
}

.order_delivery_item {
	cursor: pointer;
	border: 1px solid #d6d6d6;
	padding: 20px 8px;
	margin-top: 10px;
}

.order_delivery_item_active {
	background-color: var(--color_primary);
	border: 1px solid var(--color_primary);
}

.order_delivery_item_active a,
.order_delivery_item_active a:hover {
	color: #D3012E;
}

.order_delivery_item span {
	color: #d2002d;
	font-weight: bold;
}

.order_item_price_col {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin-left: auto;
}

.order_item_price_col img {
	flex-shrink: 0;
}

.order_carrier_photo {
	max-height: 40px;
	margin: 0 5px;
	max-width: 48px;
}

.order_free_delivery_progress_box {
	display: block;
	width: 100%;
	height: 15px;
	background-color: #ffffff;
	border: 1px solid rgba(91, 131, 43, .2);
	border-radius: 100px;
	overflow: hidden;
}

.order_free_delivery_progress {
	display: block;
	background-color: var(--color_primary);
	height: 100%;
	border-radius: 100px;
	transition: width .3s ease;
}

.order_balikovna_whisper_box {
	border: 1px solid #dddddd;
	background-color: #ffffff;
	padding: 0;
	font-size: 16px;
}

.order_balikovna_whisper_item {
	padding: 4px 5px;
	border-bottom: 1px solid #eeeeee;
}

.order_balikovna_whisper_item:hover {
	background-color: #dddddd;
}

.order_balikovna_whisper_item span {
	display: block;
	font-size: 11px;
	font-weight: normal;
	color: #444444;
}


/* === Moje objednávky ======================================================== */
.my_orders {
	width: 100%;
	border-spacing: 0;
}

.my_orders td {
	padding: 8px;
	border-bottom: 1px solid #dedede;
	display: table-cell;
}


/* === Stavové zprávy (legacy) ================================================ */
.left_action_box_item span {
	display: block;
	color: #141B25;
	padding: 5px 5px 5px 50px;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
}


/* === Modál (sdílený shell) =================================================== */
.modal_backdrop {
	display: none;
	position: fixed;
	inset: 0;
	background-color: rgba(0, 0, 0, .5);
	z-index: 19999;
	padding: 16px;
	overflow-y: auto;
}

.modal_backdrop.is_open {
	display: flex;
	align-items: center;
	justify-content: center;
	animation: modal_fadein .12s ease-out;
}

body.modal_is_open {
	overflow: hidden;
}

.modal_box {
	background-color: #ffffff;
	border-radius: var(--radius_card);
	box-shadow: var(--color_shadow_card_hover);
	width: 100%;
	max-width: 560px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 24px;
}

.modal_header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--color_border_green);
	margin-bottom: 16px;
}

.modal_title_wrap {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.modal_icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background-color: var(--color_primary);
	border-radius: 50%;
	flex-shrink: 0;
}

.modal_icon img {
	width: 20px;
	height: 20px;
	filter: brightness(0) invert(1);
}

.modal_title {
	margin: 0;
	font-size: 20px;
	font-weight: 500;
	color: var(--color_primary_deepest);
	line-height: 1.3;
}

.modal_close {
	background: none;
	border: 0;
	padding: 6px;
	cursor: pointer;
	border-radius: var(--radius_btn);
	flex-shrink: 0;
	transition: background-color .15s;
}

.modal_close:hover {
	background-color: var(--color_surface_gray);
}

.modal_close img {
	display: block;
	width: 20px;
	height: 20px;
}

.modal_body {
	font-size: 16px;
	line-height: 1.5;
	color: var(--color_text_dark);
}


/* === Modál „přidáno do košíku" ============================================== */

/* Header v košíkovém modálu bez spodní čáry — produkt níže je už v odlišeném boxu */
.cart_modal .modal_header {
	border-bottom: 0;
	padding-bottom: 0;
	margin-bottom: 16px;
}

.cart_modal_product {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	padding: 12px;
	background-color: #e5e7eb;
	border-radius: var(--radius_btn);
}

.cart_modal_product_photo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	background-color: #ffffff;
	border-radius: var(--radius_btn);
	flex-shrink: 0;
	overflow: hidden;
}

.cart_modal_product_photo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.cart_modal_product_name {
	font-size: 16px;
	font-weight: 500;
	color: var(--color_text_dark);
	line-height: 1.4;
}

.cart_modal_progress_wrap {
	margin-bottom: 20px;
}

.cart_modal_progress_text {
	margin-top: 8px;
	font-size: 16px;
	color: var(--color_text_dark);
}

.cart_modal_actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.cart_modal_actions form {
	flex: 1 1 200px;
	margin: 0;
}

.cart_modal_actions .btn {
	display: block;
	width: 100%;
	margin: 0;
}

.cart_modal_suggests {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--color_border_green);
}

.cart_modal_suggests_title {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 500;
	color: var(--color_primary_deepest);
}

.cart_modal_suggests_grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

.cart_modal_suggest_item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
	padding: 8px;
	border-radius: var(--radius_btn);
	text-decoration: none;
	color: var(--color_text_dark);
	transition: background-color .15s;
}

.cart_modal_suggest_item:hover {
	background-color: var(--color_surface_gray);
	color: var(--color_text_dark);
	text-decoration: none;
}

.cart_modal_suggest_item_photo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
}

.cart_modal_suggest_item_photo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

/* 14px je vyjimka povolena pro caption v karte doporuceneho produktu */
.cart_modal_suggest_item_name {
	font-size: 14px;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@keyframes modal_fadein {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@media (max-width: 575.98px) {
	.modal_box {
		padding: 16px;
	}

	.modal_title {
		font-size: 18px;
	}

	.cart_modal_actions form {
		flex: 1 1 100%;
	}

	.cart_modal_suggests_grid {
		grid-template-columns: 1fr;
	}

	.cart_modal_suggest_item {
		flex-direction: row;
		text-align: left;
	}
}


/* === Objednávka — krok 2 (zadání údajů) ==================================== */
.order_section {
	background-color: #fff;
	border: 1px solid #e5e7eb;
	border-radius: var(--radius_card);
	padding: 24px;
	margin-bottom: 20px;
}

.order_section_title {
	margin: 0 0 20px;
	font-size: 20px;
	font-weight: 700;
	color: var(--color_primary_deepest);
}

.order_section_hint {
	margin: -8px 0 16px;
	font-size: 14px;
	color: #6b7280;
}

.order_section.hidden {
	display: none;
}

.order_subsection {
	margin-top: 12px;
}

.order_subsection.hidden {
	display: none;
}

/* dvousloupcovy layout dopravy + platby */
.order_delivery_pay_row .order_subsection_title {
	margin-top: 0;
	margin-bottom: 16px;
	font-size: 18px;
	font-weight: 700;
	color: var(--color_primary_deepest);
}

/* toggle na vrcholu praveho sloupce dvousloupce - zarovnani s prvnim inputem v levem sloupci */
.order_delivery_pay_row > [class*="col-"] > .order_toggle_row:first-child {
	margin-top: 0;
}

/* v pravem sloupci fakturační adresy nechceme horizontální oddělovač po rozkliknutí togglu */
.order_delivery_pay_row .order_subsection {
	margin-top: 12px;
	padding-top: 0;
	border-top: none;
}

.order_section_divider {
	margin: 0 0 24px;
	border: 0;
	border-top: 1px solid var(--color_border_green);
	opacity: 1;
}

/* vetsi mezera mezi dopravou a platbou na desktop */
@media (min-width: 768px) {
	.order_delivery_pay_row {
		--bs-gutter-x: 3rem;
	}
}

/* radio input v polozkach dopravy/platby skryjeme - aktivni stav indikuje box */
.order_delivery_item input[type="radio"] {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* focus state pro klavesovou navigaci */
.order_delivery_item:focus-within {
	outline: 2px solid var(--color_primary);
	outline-offset: 2px;
}

/* horizontalni oddelovac v sekci (mezi collapsible bloky a checkboxy) */
.order_section_divider {
	height: 1px;
	background-color: #e5e7eb;
	margin: 24px 0;
	border: 0;
}

.order_subsection_title {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 600;
	color: var(--color_primary_deepest);
}

.order_toggle_row {
	margin-top: 16px;
}

.order_toggle_label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 16px;
	color: var(--color_text_dark);
	user-select: none;
}

.order_toggle_label input[type=checkbox] {
	width: 18px;
	height: 18px;
	cursor: pointer;
}

.order_checkbox_label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-size: 16px;
	line-height: 1.5;
	color: var(--color_text_dark);
	margin-top: 24px;
}

.order_checkbox_label + .order_checkbox_label {
	margin-top: 12px;
}

.order_checkbox_label input[type=checkbox] {
	margin-top: 3px;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	cursor: pointer;
}

.order_delivery_list,
.order_payment_list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.order_delivery_list .order_delivery_item,
.order_payment_list .order_delivery_item {
	margin-top: 0;
	border-radius: 8px;
}

.order_form_actions {
	display: flex;
	gap: 12px;
	justify-content: space-between;
	align-items: center;
	margin-top: 24px;
	flex-wrap: wrap;
}

/* min-width jen pro velke tlacitko (Pokracovat/Dokoncit), Zpet zustava prirozene velikosti */
.order_form_actions .btn_lg {
	min-width: 180px;
}

/* Pokracovat je v HTML drive (aby Enter ve formulari spustil Pokracovat), ale vizualne ma byt vpravo */
.order_form_actions input[name="back"] {
	order: 1;
}

.order_form_actions input[name="next"] {
	order: 2;
}

@media (max-width: 991.98px) {
	/* na mobilu/tabletu je "pokracovat" ve fixed bottom baru,
	   v obsahu zustava jen "zpet" - menci, ne pres celou sirku */
	.order_form_actions {
		justify-content: flex-start;
	}

	.order_form_actions .btn {
		width: auto;
		min-width: 0;
	}
}

@media (max-width: 575.98px) {
	.order_section {
		padding: 16px;
	}
}


/* === Krok 3 - shrnuti objednavky (rekapitulacni bloky) ===================== */

/* nadpis nad blokem adres */
.order_recap_subtitle {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 600;
	color: var(--color_primary_deepest);
}

/* vypis adresy (fakturacni, dodaci, point) - radek po radku, normalni text */
.order_recap_address {
	margin: 0;
	font-style: normal;
	font-size: 16px;
	line-height: 1.6;
	color: var(--color_text_dark);
}

.order_recap_note {
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
	color: var(--color_text_dark);
}

/* doprava, platba, kupon, poznamka - prosty text pod sebou */
.order_recap_lines p {
	margin: 0 0 4px;
	font-size: 16px;
	line-height: 1.5;
	color: var(--color_text_dark);
}

.order_recap_lines p:last-child {
	margin-bottom: 0;
}

.order_terms_text {
	margin: 0 0 6px;
	font-size: 14px;
	line-height: 1.6;
	color: #6b7280;
}

.order_terms_text:last-child {
	margin-bottom: 0;
}

.order_terms_text a {
	color: var(--color_primary_deepest);
	text-decoration: underline;
}

/* read-only varianta tabulky polozek v rekapitulaci - mensi cell padding */
.order_table_recap .order_table_row td {
	padding: 14px 16px;
}
