/* ===== 2026-12 responsive fixes (Eva's list, point 9) ===== */

/* Price tables: scroll inside their own box on phones instead of widening the page */
@media (max-width: 575px) {
	#primary table {
		display: block;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

/* "Kezdje el most!" pop-up: never larger than the screen */
.slide-out-div.ui-slideouttab-panel {
	box-sizing: border-box;
	max-width: calc(100vw - 24px);
}
.slide-out-div #slidertext {
	max-height: calc(100vh - 70px);   /* fallback */
	max-height: calc(100dvh - 70px);  /* room for the tab + 24px gap */
	overflow-y: auto;
	overscroll-behavior: contain;
}
/* keep the close (X) button pinned to the top while the form scrolls */
.slide-out-div #slidertext > .row:first-child {
	position: sticky;
	top: 0;
	z-index: 5;
	height: 0;
}
.slide-out-div #closecta {
	background: #fff;
	cursor: pointer;
	width: 36px !important;
	height: 36px !important;
	line-height: 24px;
}
.slide-out-div #closectax2 {
	cursor: pointer;
	display: block;
	text-align: center;
	margin: 10px auto 15px !important;
}
@media (max-width: 575px) {
	.slide-out-div.ui-slideouttab-panel {
		margin: 0 12px !important;
	}
	.slide-out-div #slidertext .col-12 {
		padding-left: 8px;
		padding-right: 8px;
	}
}

/* Phones: nothing wider than the screen (sweep of all HU/EN pages, 2026-12-03) */
#primary img {
	max-width: 100%;
	height: auto;
}
#primary a {
	overflow-wrap: anywhere;   /* long URLs on the media page */
}
.wf-cc__inner {               /* current cookie bar */
	box-sizing: border-box;
	max-width: 100%;
}
.page-id-2260 .container > .row {   /* robotikus landing page: container has no padding */
	margin-left: 0;
	margin-right: 0;
}
.bmmcontentdiv img {                /* Andago / PerPedes landing pages set max-width:600px inline */
	max-width: min(600px, 100%) !important;
}
@media (max-width: 575px) {
	#primary .alignnone {           /* WP default 20px right margin pushes full-width images off-screen */
		margin-right: 0;
	}
}
