html {
	overflow-x: hidden;
}

body {
	margin: 0;
	padding: 0;
	font-family: var(--font-sans);
	color: white;
	background-color: var(--surface-page);
	font-size: 16px;
	line-height: 28px;
}

#page {
	display: flex;
	min-height: 100vh;
	align-items: flex-start;
}

body.admin-bar #page {
	min-height: calc(100vh - var(--wp-admin--admin-bar--height));
}

.button,
button {
	padding: 14px 18px;
	color: white;
	gap: 10px;
	display: flex;
	align-items: center;
	background-color: var(--action-dark);
	border-radius: 8px;
	border: 2px solid transparent;
	font-size: 16px;
	letter-spacing: 0.8px;
	font-weight: bold;
	text-decoration: none;
	transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
	cursor: pointer;
	box-shadow: none;
}

.button.inverse {
	background-color: white;
	color: var(--action-dark);
	border-color: transparent;
	transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.button.inverse:hover {
	background-color: var(--action-dark);
	color: white;
	border-color: var(--action-dark);
}

.button:disabled,
button:disabled {
	background-color: var(--surface-action);
	border-color: var(--gray-300);
	color: var(--gray-300);
	cursor: default;
}

.button:disabled:hover,
button:disabled:hover {
	background-color: var(--surface-action);
	border-color: var(--gray-300);
	color: var(--gray-300);
}

.button:hover,
button:hover {
	color: var(--action-dark);
	background-color: white;
	border-color: white;
	box-shadow: none;
}

.button svg {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

ul.menu {
	padding: 0;
	margin: 0;
	list-style: none;
	display: flex;
	align-items: center;
	gap: 20px;
}

main {
	flex-grow: 1;
	/* Stretch to full row height so .main-content can flex-grow and keep footer at the viewport bottom when content is short. */
	align-self: stretch;
}

.main {
	display: flex;
	flex-direction: column;
	min-height: 0; /* nodig voor flex-kinderen met flex: 1 */
	min-width: 0; /* voorkomt dat brede inhoud .main oprekt (flex default is auto) */
}

.main-content {
	flex: 1 1 auto;
	min-width: 0; /*zelfde: laat flex-kind krimpen onder inhoudsbreedte */
}

.menu a {
	color: white;
	text-decoration: none;
	display: flex;
	gap: 10px;
	align-items: center;
}

.menu-item-icon {
	vertical-align: middle;
	margin-right: 0;
}

.menu-item-icon-svg {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	width: 1.2em;
	height: 1.2em;
}

.menu-item-icon-svg svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
	color: inherit;
}

.menu-item-icon img,
img.menu-item-icon {
	max-height: 1.2em;
	width: auto;
}

.menu-item.icon_only a {
	font-size: 0;
	line-height: 0;
	gap: 0;
}

.menu-item.icon_only .menu-item-icon-svg {
	width: 24px;
	height: 24px;
}

article {
	padding: 52px 64px 0 61px;
}

body.sidebar-collapsed article {
	padding-left: 50px;
}

body.page-template-template-blank-php article {
	padding: 0;
}

h1, h2, h3, h4, h5, h6,
.h2 {
	margin-top: 0;
	font-family: var(--font-family-headings);
	color: var(--text-headings);
}

h1 {
	font-size: var(--h1-font-size);
	line-height: var(--h1-line-height);
	margin-bottom: 0;
}

article > h1 {
	margin-bottom: 10px;
	font-size: var(--h2-font-size);
	line-height: var(--h2-line-height);
	font-weight: 400;
}

article > h2 {
	font-weight: 500;
	font-size: var(--h3-font-size);
	line-height: var(--h3-line-height);
	margin-bottom: 0;
}

h2,
.h2 {
	font-size: var(--h2-font-size);
	line-height: var(--h2-line-height);
	font-weight: normal;
}

h3 {
	font-weight: 500;
	font-size: var(--h3-font-size);
	line-height: var(--h3-line-height);
}

h4 {
	font-family: var(--font-sans);
	font-weight: bold;
	font-size: var(--h4-font-size);
	line-height: var(--h4-line-height);
	margin-bottom: 4px;
}

h6 {
	font-family: var(--font-sans);
}

p {
	font-size: 16px;
	line-height: 28px;
	margin-bottom: 28px;
	margin-top: 0;
}

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

img {
	max-width: 100%;
	height: auto;
}

article > p:last-child,
article > ul:last-child,
article > ol:last-child {
	padding-bottom: 30px;
}

/* Fluent Forms */
.ff-el-input--label label {
	font-size: 14px;
	line-height: 22px !important;
	font-weight: 700 !important;
	color: var(--surface-card-light);
}

.ff-el-input--content:has(.ff-el-form-check-radio) {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
}

.ff-el-input--content:has(.ff-el-form-check-radio) .ff-el-form-check {
	flex: 0 0 auto;
}

.wc-block-components-form .wc-block-components-text-input label,
.wc-block-components-text-input label {
	color: black !important;
}
