.em-appt-widget {
	--em-btn-bg: #0376da;
	--em-btn-text: #ffffff;
	--em-popup-header-bg: #0376da;
	--em-popup-bg: #ffffff;
	--em-slot-selected: #0376da;
	--em-text: #1f2937;
	--em-btn-radius: 8px;
	--em-fab-bg: #0376da;
	--em-fab-icon: #ffffff;

	display: inline-block;
}

.em-appt-open-btn {
	background: var( --em-btn-bg );
	color: var( --em-btn-text );
	border: none;
	padding: 12px 26px;
	border-radius: var( --em-btn-radius );
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	line-height: 1.4;
}

.em-appt-open-btn:hover,
.em-appt-open-btn:focus {
	filter: brightness( 0.92 );
}

.em-appt-fab {
	position: fixed;
	bottom: 24px;
	width: 58px;
	height: 58px;
	border-radius: 999px;
	background: var( --em-fab-bg );
	color: var( --em-fab-icon );
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 20px rgba( 0, 0, 0, .25 );
	cursor: pointer;
	z-index: 99999;
}

.em-appt-fab--left {
	left: 24px;
}

.em-appt-fab--right {
	right: 24px;
}

.em-appt-fab:hover,
.em-appt-fab:focus {
	filter: brightness( 0.94 );
}

@media ( max-width: 480px ) {
	.em-appt-fab {
		bottom: 16px;
		width: 52px;
		height: 52px;
	}
	.em-appt-fab--left {
		left: 16px;
	}
	.em-appt-fab--right {
		right: 16px;
	}
}

.em-appt-overlay {
	position: fixed;
	inset: 0;
	background: rgba( 15, 18, 22, .55 );
	z-index: 100000;
}

.em-appt-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate( -50%, -50% );
	width: 100%;
	max-width: 440px;
	max-height: 88vh;
	overflow-y: auto;
	background: var( --em-popup-bg );
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba( 0, 0, 0, .25 );
	z-index: 100001;
}

.em-appt-modal-header {
	position: sticky;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var( --em-popup-header-bg );
	color: #fff;
	padding: 16px 20px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 12px 12px 0 0;
}

.em-appt-modal-close {
	background: transparent;
	border: none;
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
}

.em-appt-modal-body {
	padding: 20px;
	color: var( --em-text );
	font-size: 14px;
}

/* Datum- en tijdlijsten */
.em-appt-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.em-appt-list-item {
	margin-bottom: 8px;
}

.em-appt-date-btn,
.em-appt-time-btn {
	width: 100%;
	text-align: left;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 12px 14px;
	font-size: 14px;
	color: var( --em-text );
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	gap: 10px;
}

.em-appt-time-btn {
	display: inline-flex;
	width: auto;
	min-width: 90px;
	justify-content: center;
	margin: 0 8px 8px 0;
}

.em-appt-times-wrap {
	display: flex;
	flex-wrap: wrap;
}

.em-appt-date-btn:hover,
.em-appt-time-btn:hover {
	border-color: var( --em-slot-selected );
	color: var( --em-slot-selected );
}

.em-appt-date-count {
	color: #6b7280;
	font-size: 12px;
}

.em-appt-back-btn {
	background: none;
	border: none;
	color: var( --em-slot-selected );
	font-size: 13px;
	cursor: pointer;
	padding: 0 0 14px 0;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.em-appt-cal {
	max-width: 100%;
}

.em-appt-cal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.em-appt-cal-title {
	font-weight: 600;
	font-size: 14px;
	text-transform: capitalize;
}

.em-appt-cal-nav {
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	width: 30px;
	height: 30px;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	color: var( --em-text );
}

.em-appt-cal-nav:disabled {
	opacity: .35;
	cursor: default;
}

.em-appt-cal-grid {
	display: grid;
	grid-template-columns: repeat( 7, 1fr );
	gap: 4px;
}

.em-appt-cal-dow {
	text-align: center;
	font-size: 11px;
	font-weight: 600;
	color: #9ca3af;
	padding-bottom: 4px;
}

.em-appt-cal-cell {
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.em-appt-cal-day {
	border-radius: 6px;
	font-size: 13px;
	border: 1px solid transparent;
	background: transparent;
	color: var( --em-text );
}

.em-appt-cal-day.is-available {
	background: #f9fafb;
	border-color: #e5e7eb;
	cursor: pointer;
	font-weight: 600;
}

.em-appt-cal-day.is-available:hover {
	border-color: var( --em-slot-selected );
	color: var( --em-slot-selected );
}

.em-appt-cal-day.is-disabled {
	color: #d1d5db;
}

.em-appt-cal-empty {
	visibility: hidden;
}

.em-appt-step-heading {
	font-size: 15px;
	font-weight: 600;
	margin: 0 0 14px 0;
}

/* Formulier */
.em-appt-field {
	margin-bottom: 14px;
}

.em-appt-field label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
	font-size: 13px;
}

.em-appt-field input[type="text"],
.em-appt-field input[type="email"],
.em-appt-field input[type="tel"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d0d5dd;
	border-radius: 6px;
	font-size: 14px;
	box-sizing: border-box;
}

.em-appt-field-error {
	color: #b3261e;
	font-size: 12px;
	margin-top: 4px;
	display: none;
}

.em-appt-field.has-error input {
	border-color: #b3261e;
}

.em-appt-field.has-error .em-appt-field-error {
	display: block;
}

.em-appt-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.em-appt-submit-btn {
	background: var( --em-btn-bg );
	color: var( --em-btn-text );
	border: none;
	padding: 12px 20px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	width: 100%;
}

.em-appt-submit-btn:disabled {
	opacity: .6;
	cursor: default;
}

.em-appt-form-error {
	background: #fdecea;
	color: #b3261e;
	padding: 10px 12px;
	border-radius: 6px;
	font-size: 13px;
	margin-bottom: 14px;
}

/* Bevestiging */
.em-appt-success-icon {
	width: 48px;
	height: 48px;
	border-radius: 999px;
	background: #e6f4ea;
	color: #1e7e34;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	margin: 0 auto 16px auto;
}

.em-appt-success-title {
	text-align: center;
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 6px 0;
}

.em-appt-success-details {
	text-align: center;
	margin: 0 0 20px 0;
}

.em-appt-close-btn {
	display: block;
	margin: 0 auto;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 10px 20px;
	font-size: 13px;
	cursor: pointer;
}

.em-appt-loading {
	color: #6b7280;
	font-size: 13px;
}

.em-appt-manage-box {
	max-width: 420px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 20px;
	background: var( --em-popup-bg );
	color: var( --em-text );
}

.em-appt-manage-result {
	font-size: 13px;
	margin: 10px 0;
	color: #1e7e34;
}

@media ( max-width: 480px ) {
	.em-appt-modal {
		max-width: 94vw;
	}
}
