/* Shared by the public accommodation summary and its live preview. */
/* Wrapping Elementor containers need a definite widget width before the table is measured. */
:is(.e-con, .e-con-inner) > .elementor-widget:has(.mphbmr-table):not([class*="__width-"]) { width: 100%; }

.mphbmr-table {
	container: mphbmr-accommodation-table / inline-size;
	color: var(--mphbmr-table-text);
	font-family: inherit;
	font-size: 1em;
	line-height: 1.45;
}
.mphbmr-table .mphbmr-table__grid {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	border: 1px solid #ddd5ce;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 14px;
	background: var(--mphbmr-table-row);
	color: inherit;
	font: inherit;
	text-align: start;
}
.mphbmr-table caption {
	margin-block-end: .7em;
	color: inherit;
	font-size: 1.33em;
	font-weight: 700;
	text-align: start;
}
.mphbmr-table .mphbmr-table__grid :is(th, td) {
	padding: 14px 16px;
	border: 0;
	background: transparent;
	color: inherit;
	line-height: inherit;
	text-align: start;
	vertical-align: top;
	overflow-wrap: anywhere;
}
.mphbmr-table .mphbmr-table__grid tr > * + * { border-inline-start: var(--mphbmr-table-column-border, 0px) solid #ddd5ce; }
.mphbmr-table .mphbmr-table__grid thead th {
	background: var(--mphbmr-table-head);
	color: var(--mphbmr-table-head-text);
	font-size: .94em;
	font-weight: 700;
}
.mphbmr-table .mphbmr-table__grid thead th:first-child { width: 40%; border-start-start-radius: 13px; }
.mphbmr-table .mphbmr-table__grid thead th:last-child { border-start-end-radius: 13px; }
.mphbmr-table .mphbmr-table__grid tbody tr { background-color: var(--mphbmr-table-row); color: inherit; }
.mphbmr-table--zebra .mphbmr-table__grid tbody tr:nth-child(even) { background-color: var(--mphbmr-table-alt); }
.mphbmr-table .mphbmr-table__grid tbody :is(th, td) { border-block-start: 1px solid #ddd5ce; }
.mphbmr-table .mphbmr-table__grid tbody tr:last-child > :first-child { border-end-start-radius: 13px; }
.mphbmr-table .mphbmr-table__grid tbody tr:last-child > :last-child { border-end-end-radius: 13px; }
.mphbmr-table .mphbmr-table__grid th[scope="row"] { font-weight: 400; }
.mphbmr-table__room { display: block; font-size: 1.08em; font-weight: 750; }
.mphbmr-table .mphbmr-table__beds,
.mphbmr-table .mphbmr-table__groups { display: grid; gap: .38em; margin: 0; padding: 0; list-style: none; }
.mphbmr-table .mphbmr-table__beds { margin-block-start: .45em; font-size: .91em; }
.mphbmr-table .mphbmr-table__beds li,
.mphbmr-table .mphbmr-table__groups li { margin: 0; padding: 0; list-style: none; }
.mphbmr-table .mphbmr-table__bed svg {
	display: inline-block;
	width: 1.15em;
	height: 1.15em;
	margin-inline-end: .25em;
	vertical-align: -.2em;
	opacity: .8;
}
.mphbmr-table .mphbmr-table__groups li { display: flex; flex-wrap: wrap; align-items: center; gap: .2em .35em; }
.mphbmr-table__guests {
	display: inline-flex;
	gap: .25em;
	align-items: center;
	min-width: 0;
	padding: .15em .4em;
	border-radius: 6px;
	background: color-mix(in srgb, currentColor 8%, transparent);
	font-size: .9em;
}
.mphbmr-table__guests svg { flex: none; }
.mphbmr-table__guests--icons {
	max-inline-size: 100%;
	flex-wrap: wrap;
	gap: .15em;
	padding: .2em 0;
	background: transparent;
}
.mphbmr-table .mphbmr-table__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .45em;
	box-sizing: border-box;
	min-height: 40px;
	padding: .4em .7em;
	border-radius: 7px;
	background: var(--mphbmr-table-link);
	color: var(--mphbmr-table-link-text);
	font-size: .91em;
	font-weight: 650;
	text-align: center;
	text-decoration: none;
}
.mphbmr-table .mphbmr-table__link:hover { filter: brightness(1.15); text-decoration: underline; }
.mphbmr-table .mphbmr-table__link:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
.mphbmr-table__cell-label { display: none; }
.mphbmr-table__value { white-space: pre-line; }

.mphbmr-table--scroll { overflow-x: auto; }
.mphbmr-table--scroll:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.mphbmr-table--scroll .mphbmr-table__grid { min-inline-size: 36rem; }

@container mphbmr-accommodation-table (max-width: 36rem) {
	.mphbmr-table--cards .mphbmr-table__grid { display: block; border: 0; background: transparent; }
	.mphbmr-table caption { display: block; }
	.mphbmr-table--cards .mphbmr-table__grid thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.mphbmr-table--cards .mphbmr-table__grid tbody { display: grid; gap: 12px; }
	.mphbmr-table--cards .mphbmr-table__grid tbody tr { display: grid; border: 1px solid #ddd5ce; border-radius: 13px; overflow: hidden; }
	.mphbmr-table--cards .mphbmr-table__grid tbody :is(th, td) { display: block; padding: 10px 13px; border-inline-start: 0; border-radius: 0; }
	.mphbmr-table--cards .mphbmr-table__grid tbody th[scope="row"] { border-block-start: 0; padding-block: 13px; }
	.mphbmr-table--cards .mphbmr-table__grid tbody tr:last-child > :is(th, td) { border-radius: 0; }
	.mphbmr-table--cards .mphbmr-table__grid tbody tr > .mphbmr-table__empty { display: none; }
	.mphbmr-table--cards .mphbmr-table__room {
		margin: -13px -13px 0;
		padding: 10px 13px;
		background: var(--mphbmr-table-head);
		color: var(--mphbmr-table-head-text);
	}
	.mphbmr-table--cards .mphbmr-table__room:has(+ ul) { margin-block-end: .55em; }
	.mphbmr-table--cards .mphbmr-table__cell-label { display: block; margin-block-end: 4px; font-size: .82em; font-weight: 700; }
	.mphbmr-table--cards .mphbmr-table__link { min-height: 44px; }
}
