@media (max-width: 767px) {
	html,
	body {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		overflow-x: clip;
	}

	body .container,
	body .container-fluid,
	body main,
	body .header,
	body .footer {
		min-width: 0;
		max-width: 100%;
	}

	/* Compact fixed header. */
	.header__top {
		padding: 4px 0;
	}

	.header__ai-bar {
		display: flex;
		min-height: 44px;
		align-items: center;
		justify-content: center;
		flex-wrap: nowrap;
		gap: 6px;
		line-height: 1.2;
	}

	.header__ai-bar-label {
		display: none;
	}

	.header__top .header__ai-bar-link {
		display: inline-flex;
		min-width: 0;
		min-height: 44px;
		align-items: center;
		justify-content: center;
		padding: 7px 11px;
		border: 1px solid #d8d8d8;
		border-radius: 8px;
		background: #fff;
		text-align: center;
		text-decoration: none;
	}

	.header__top .header__ai-bar-link.is-withdrawal {
		flex: 0 1 auto;
	}

	.header__middle .container {
		padding-top: 2px;
		padding-bottom: 2px;
	}

	.header__controls-item,
	.navbar-toggler,
	.header__blocks-close {
		min-width: 44px;
		min-height: 44px;
	}

	.header__blocks-inside {
		max-height: calc(100dvh - 108px);
	}

	.header__controls-search-wrap.is-opened {
		top: 52px;
	}

	.main-menu-wrap {
		height: calc(100dvh - 108px);
		padding-bottom: env(safe-area-inset-bottom);
	}

	.main-menu-wrap .header__menu-level-1 {
		padding-top: 3px;
		padding-bottom: 3px;
	}

	.main-menu-wrap .header__menu-level-1 a,
	.main-menu-wrap .header__menu-level-2 a {
		display: flex;
		min-height: 44px;
		align-items: center;
		touch-action: manipulation;
	}

	/* Consistent mobile form controls. */
	body input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
	body select,
	body textarea,
	body .edd-select {
		min-height: 44px;
		font-size: 16px;
		line-height: 1.4;
		touch-action: manipulation;
	}

	body textarea {
		padding-top: 11px;
		padding-bottom: 11px;
	}

	body label:has(> input[type="checkbox"]) {
		display: flex;
		min-height: 44px;
		align-items: flex-start;
		gap: 9px;
		padding-top: 10px;
		padding-bottom: 10px;
		cursor: pointer;
	}

	body label > input[type="checkbox"] {
		width: 20px;
		height: 20px;
		flex: 0 0 20px;
		margin-top: 1px;
	}

	.custom-form__cherad.is-regions .custom-form__cherad-radio + .custom-form__label,
	.custom-form__cherad.is-transport .custom-form__cherad-radio + .custom-form__label,
	.custom-form__cherad .custom-form__cherad-checkbox + .custom-form__label,
	.custom-form__cherad .custom-form__cherad-radio + .custom-form__label {
		min-height: 44px;
		align-items: center;
	}

	/* Product filter sheet. */
	.filter-panel-close {
		width: 44px;
		min-width: 44px;
		height: 44px;
	}

	.component__filter .filter-search-control,
	.component__filter input,
	.component__filter select,
	.component__filter button {
		min-height: 44px;
	}

	.component__filter .component__sizes-item,
	.component__filter .component__colors-item,
	.component__filter .filter-choice {
		min-height: 44px;
	}

	/* Checkout step navigation and options. */
	body .component.component--basket .component__table {
		display: block;
		width: 100%;
		min-width: 0;
		max-width: 100%;
		margin-bottom: 0;
		border-collapse: separate;
	}

	body .component.component--basket .component__table > tbody {
		display: block;
		width: 100%;
	}

	body .component.component--basket .component__table tr:first-child {
		display: none !important;
	}

	body .component.component--basket .component__table tr:not(.component__discount-row) {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"product product"
			"quantity total";
		gap: 12px 16px;
		width: 100%;
		padding: 14px 0 16px;
		position: relative;
		border-bottom: 1px solid #dedbd5;
	}

	body .component.component--basket .component__table tr:not(.component__discount-row) > td {
		display: block;
		width: auto;
		padding: 0;
		border: 0;
	}

	body .component.component--basket .component__table tr:not(.component__discount-row) > td.is-desktop {
		display: none !important;
	}

	body .component.component--basket .component__table td.component__product {
		grid-area: product;
		display: grid !important;
		grid-template-columns: 66px minmax(0, 1fr);
		column-gap: 12px;
		align-items: start;
		padding-right: 48px !important;
	}

	body .component.component--basket .component__table td.component__product .component__image {
		grid-column: 1;
		grid-row: 1 / span 2;
		width: 66px;
		margin: 0 !important;
		float: none !important;
	}

	body .component.component--basket .component__table td.component__product .component__label {
		grid-column: 2;
		grid-row: 1;
		display: block;
		width: auto;
		overflow-wrap: anywhere;
		line-height: 1.45 !important;
	}

	body .component.component--basket .component__table td.component__product .component__info {
		grid-column: 2;
		grid-row: 2;
		display: flex;
		width: auto;
		flex-wrap: wrap;
		gap: 2px 8px;
		margin: 0 !important;
		line-height: 1.45 !important;
	}

	body .component.component--basket .component__table tr:not(.component__discount-row) > td:nth-child(2) {
		grid-area: quantity;
		align-self: center;
	}

	body .component.component--basket .component__table tr:not(.component__discount-row) > td:nth-child(2)::before {
		content: "Počet kusů";
		display: block;
		margin-bottom: 5px;
		color: #666;
		font-size: 11px;
		line-height: 1.2;
	}

	body .component.component--basket .component__table tr:not(.component__discount-row) .component__stepper {
		width: 128px;
		margin: 0;
	}

	body .component.component--basket .component__table tr:not(.component__discount-row) .component__stepper-minus,
	body .component.component--basket .component__table tr:not(.component__discount-row) .component__stepper-plus {
		width: 36px;
		height: 36px;
	}

	body .component.component--basket .component__table tr:not(.component__discount-row) td.component__price {
		grid-area: total;
		align-self: end;
		min-width: 85px;
		text-align: right;
		font-family: Supreme-Bold, Arial, sans-serif;
		font-size: 16px;
		line-height: 1.25;
	}

	body .component.component--basket .component__table tr:not(.component__discount-row) td.component__price::before {
		content: "Celkem";
		display: block;
		margin-bottom: 3px;
		color: #666;
		font-family: Supreme-Regular, Arial, sans-serif;
		font-size: 11px;
		line-height: 1.2;
	}

	body .component.component--basket .component__table tr:not(.component__discount-row) td.component__btn {
		width: 44px;
		height: 44px;
		position: absolute;
		top: 14px;
		right: 0;
	}

	body .component.component--basket .component__table .component__remove {
		width: 44px;
		height: 44px;
	}

	body .component.component--basket .component__table tr.component__discount-row {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
		width: 100%;
		padding: 14px 0;
		position: static;
	}

	body .component.component--basket .component__table tr.component__discount-row > td {
		display: block;
		width: auto;
		padding: 0;
		border: 0;
	}

	body .component.component--basket .component__table tr.component__discount-row > td:last-child {
		display: none;
	}

	body .component.component--basket .component__discount-wrap > span {
		display: block;
		margin-bottom: 7px;
	}

	body .component.component--basket .component__discount-wrap > form {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 8px;
		align-items: center;
	}

	body .component.component--basket .component__discount-wrap input {
		width: 100% !important;
		max-width: none;
		margin: 0 !important;
	}

	body .component.component--basket .component__discount-wrap button {
		width: auto;
		white-space: nowrap;
	}

	body .component.component--basket .component__total {
		font-family: Supreme-Bold, Arial, sans-serif;
		font-size: 18px;
	}

	body .component.component--basket .component__total #PageBasketPrice {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		gap: 16px;
	}

	body .component.component--basket .component__total .component__total-wrap {
		margin-left: auto;
	}

	.component--basket-stepper .component__inside {
		display: flex;
		gap: 7px;
		overflow-x: auto;
		padding-top: 4px;
		padding-bottom: 8px;
		scroll-snap-type: x proximity;
		overscroll-behavior-inline: contain;
		-webkit-overflow-scrolling: touch;
	}

	.component--basket-stepper .component__item {
		display: flex;
		flex: 0 0 auto;
		min-height: 44px;
		align-items: center;
		padding: 8px 12px;
		border: 1px solid #d9d9d9;
		border-radius: 8px;
		background: #fff;
		white-space: nowrap;
		scroll-snap-align: start;
	}

	.component--basket-stepper .component__item.is-active {
		border-color: #242424;
		background: #242424;
		color: #fff;
	}

	.custom-form__cherad-item,
	.custom-form__cherad.is-regions .custom-form__cherad-item {
		min-height: 44px;
	}

	/* AI support controls. */
	.vr-close {
		width: 44px;
		min-width: 44px;
		height: 44px;
	}

	.vr-quick {
		gap: 8px;
		padding: 10px 12px;
		scroll-padding-inline: 12px;
		scroll-snap-type: x proximity;
	}

	.vr-quick button {
		min-height: 44px;
		padding: 10px 14px;
		border-radius: 9px;
		font-size: 14px;
		line-height: 1.25;
		touch-action: manipulation;
	}

	.vr-language,
	#VylohaReception select,
	#VylohaReception .edd-select {
		min-height: 44px;
		font-size: 16px;
	}

	body #VylohaReception .vr-panel {
		position: fixed !important;
		top: max(12px, env(safe-area-inset-top)) !important;
		right: 12px !important;
		bottom: calc(76px + env(safe-area-inset-bottom)) !important;
		left: 12px !important;
		width: auto !important;
		height: auto !important;
		max-width: none !important;
		max-height: none !important;
	}

	/* Content and policy pages. */
	.component--content img,
	.component--content video,
	.component--content iframe {
		max-width: 100%;
		height: auto;
	}

	.component--content p,
	.component--content li {
		overflow-wrap: anywhere;
	}

	.component--content table.cms-editor-table {
		display: block;
		width: 100%;
		max-width: 100%;
		margin-right: 0;
		margin-left: 0;
		overflow-x: auto;
		border-spacing: 0;
	}

	.component--content table.cms-editor-table th,
	.component--content table.cms-editor-table td {
		padding-right: 12px;
		padding-left: 12px;
		overflow-wrap: anywhere;
	}

	.account-page .container {
		overflow-x: clip;
	}

	/* Product grids: keep controls obvious and stable. */
	.component--list .component__item .btn-default {
		min-width: 44px;
		min-height: 44px;
		touch-action: manipulation;
	}

	body .component.component--list .component__item .btn-default {
		width: 100%;
		min-width: 0;
		height: auto;
		margin-top: 5px;
		padding: 8px 10px;
		justify-content: space-between;
		font-size: 12px;
		line-height: 1.2;
	}

	body .component.component--list .component__item .btn-default span {
		display: inline-block;
	}

	body .component.component--list .component__item .btn-default:after {
		flex: 0 0 auto;
	}

	.component--list .component__prices,
	.component--list .component__info {
		align-items: center;
	}

	.component--pagination a,
	.component--pagination button {
		min-width: 44px;
		min-height: 44px;
	}

	.footer a,
	.footer button {
		touch-action: manipulation;
	}
}

@media (max-width: 359px) {
	.header__logo {
		margin-right: auto;
	}

	.header__logo img {
		width: 75px;
	}

	.header__middle .container {
		flex-wrap: nowrap;
	}

	.header__middle .navbar-toggler {
		width: 44px;
		min-width: 44px;
		flex: 0 0 44px;
	}

	.header__controls {
		flex: 0 1 auto !important;
		width: auto !important;
		min-width: 0;
		margin-left: auto;
	}

	.header__controls .header__controls-item.is-lang {
		display: none !important;
	}

	.header__controls .header__controls-item {
		margin-right: 4px !important;
	}
}
