/**
 * Sombroek Keukens - inline datepicker
 * v1.0.0
 */

.sdp {
	--sdp-accent: #ffb800;
	--sdp-text: #333;
	--sdp-muted: #9a9a9a;
	--sdp-border: #e2e2e2;
	--sdp-hover: #f5f5f5;

	max-width: 420px;
	padding: 16px;
	border: 1px solid var(--sdp-border);
	border-radius: 6px;
	background: #fff;
	color: var(--sdp-text);
	font-size: 15px;
	line-height: 1.3;
	-webkit-tap-highlight-color: transparent;
}

.sdp__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.sdp__title {
	flex: 1;
	text-align: center;
	font-weight: 700;
	text-transform: capitalize;
}

.sdp__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	margin: 0;
	border: 1px solid var(--sdp-border);
	border-radius: 4px;
	background: #fff;
	color: var(--sdp-text);
	cursor: pointer;
}

.sdp__nav svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sdp__nav:hover:not([disabled]) {
	background: var(--sdp-hover);
}

.sdp__nav[disabled] {
	opacity: .35;
	cursor: default;
}

.sdp__grid {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	table-layout: fixed;
}

.sdp__grid th,
.sdp__grid td {
	padding: 2px;
	border: 0;
	text-align: center;
	background: none;
}

.sdp__grid th {
	padding-bottom: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--sdp-muted);
	text-transform: lowercase;
}

.sdp__grid th abbr {
	border: 0;
	text-decoration: none;
	cursor: default;
}

.sdp__day {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	padding: 0;
	margin: 0;
	border: 1px solid transparent;
	border-radius: 4px;
	background: none;
	color: var(--sdp-text);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
}

.sdp__day:hover:not([disabled]) {
	background: var(--sdp-hover);
	border-color: var(--sdp-border);
}

.sdp__day:focus-visible {
	outline: 2px solid var(--sdp-accent);
	outline-offset: 1px;
}

.sdp__day.is-disabled,
.sdp__day[disabled] {
	color: var(--sdp-muted);
	opacity: .45;
	cursor: default;
}

.sdp__day.is-selected {
	background: var(--sdp-accent);
	border-color: var(--sdp-accent);
	color: #1a1a1a;
	font-weight: 700;
}

.sdp__hint {
	margin: 12px 0 0;
	font-size: 13px;
	color: var(--sdp-muted);
}

/* Het GF-datumveld dient alleen nog als opslag */
.gform_wrapper .gfield.sdp-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 480px) {
	.sdp {
		padding: 12px;
		font-size: 16px;
	}

	.sdp__day {
		min-height: 46px;
	}
}
