.rr-kaartje-cta {
	margin: 0 0 0.75rem;
}

.rr-kaartje-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 0.85rem;
	min-height: 3.25rem;
	padding: 0.55rem 0.85rem;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	background: #f7f8f6;
	box-shadow: none;
}

.rr-kaartje-cta__copy {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
	flex: 1 1 12rem;
}

.rr-kaartje-cta__title {
	display: block;
	margin: 0;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.3;
	color: #0a3d24;
}

.rr-kaartje-cta__text {
	display: block;
	margin: 0;
	font-size: 0.85rem;
	font-weight: 400;
	line-height: 1.35;
	color: rgba(0, 0, 0, 0.58);
}

body.woocommerce-cart #main-container .rr-kaartje-cta__button.button.alt {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: 0 0 auto;
	width: auto !important;
	max-width: 100% !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0.4rem 0.7rem !important;
	border: 1px solid rgba(10, 61, 36, 0.22) !important;
	border-radius: 6px !important;
	background: #f7f8f6 !important;
	background-color: #f7f8f6 !important;
	background-image: none !important;
	color: #0a3d24 !important;
	-webkit-text-fill-color: #0a3d24 !important;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	line-height: 1.25 !important;
	text-align: center !important;
	white-space: nowrap;
	box-shadow: none !important;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
	--theme-button-background-initial-color: #f7f8f6 !important;
	--theme-button-background-hover-color: #e9eee9 !important;
	--theme-button-text-initial-color: #0a3d24 !important;
	--theme-button-text-hover-color: #0a3d24 !important;
	--theme-button-border-radius: 6px !important;
	--theme-palette-color-1: #f7f8f6 !important;
}

body.woocommerce-cart #main-container .rr-kaartje-cta__button.button.alt::before,
body.woocommerce-cart #main-container .rr-kaartje-cta__button.button.alt::after {
	content: none !important;
	display: none !important;
}

body.woocommerce-cart #main-container .rr-kaartje-cta__button.button.alt:hover,
body.woocommerce-cart #main-container .rr-kaartje-cta__button.button.alt:focus {
	background: #e9eee9 !important;
	background-color: #e9eee9 !important;
	border-color: rgba(10, 61, 36, 0.35) !important;
	color: #0a3d24 !important;
	-webkit-text-fill-color: #0a3d24 !important;
	box-shadow: none !important;
}

@media (max-width: 767px) {
	.rr-kaartje-cta__inner {
		flex-wrap: nowrap;
		min-height: 0;
		padding: 0.45rem 0.5rem 0.45rem 0.75rem;
	}

	.rr-kaartje-cta__copy {
		flex: 1 1 auto;
	}

	.rr-kaartje-cta__title {
		white-space: nowrap;
	}

	.rr-kaartje-cta__text {
		display: none;
	}

	body.woocommerce-cart #main-container .rr-kaartje-cta__button.button.alt {
		padding: 0.35rem 0.6rem !important;
		font-size: 0.82rem !important;
	}
}

@media (max-width: 360px) {
	.rr-kaartje-cta__inner {
		gap: 0.4rem;
		padding-left: 0.6rem;
	}

	.rr-kaartje-cta__title {
		font-size: 0.85rem;
	}

	body.woocommerce-cart #main-container .rr-kaartje-cta__button.button.alt {
		padding: 0.35rem 0.5rem !important;
		font-size: 0.76rem !important;
	}
}

body.woocommerce-cart .rr-kaartje-dialog__cancel {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.65rem 1.25rem;
	border-radius: 4px !important;
	border: 1px solid rgba(0, 0, 0, 0.18) !important;
	background: #fff !important;
	background-color: #fff !important;
	color: rgba(0, 0, 0, 0.82) !important;
	font-weight: 600;
	box-shadow: none !important;
}

body.woocommerce-cart .rr-kaartje-dialog__cancel:hover,
body.woocommerce-cart .rr-kaartje-dialog__cancel:focus {
	background: #f7f7f7 !important;
	background-color: #f7f7f7 !important;
}

.rr-kaartje-dialog {
	width: min(720px, calc(100vw - 2rem));
	max-height: calc(100vh - 2rem);
	padding: 0;
	border: 0;
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
	color: inherit;
	overflow: auto;
}

.rr-kaartje-dialog::backdrop {
	background: rgba(0, 0, 0, 0.5);
}

.rr-kaartje-dialog__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
	gap: 1.5rem;
	margin: 0;
	padding: 1.75rem 1.5rem 1.5rem;
}

.rr-kaartje-dialog__inner:not(:has(.rr-kaartje-dialog__visual)) {
	grid-template-columns: 1fr;
}

.rr-kaartje-dialog__close {
	position: absolute;
	top: 0.5rem;
	right: 0.75rem;
	padding: 0.25rem 0.5rem;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.rr-kaartje-dialog__visual img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.rr-kaartje-dialog__title {
	margin: 0 0 0.35rem;
	font-size: 1.25rem;
}

.rr-kaartje-dialog__intro {
	margin: 0 0 1rem;
}

.rr-kaartje-dialog__label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
}

body.woocommerce-cart #main-container .rr-kaartje-dialog .rr-kaartje-dialog__textarea,
body.woocommerce-cart .rr-kaartje-dialog__textarea,
.rr-kaartje-dialog__textarea {
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-height: 10rem;
	padding: 0.55rem 0.65rem;
	resize: vertical;
	border: 1px solid #5c5c5c !important;
	border-radius: 4px !important;
	background: #fff !important;
	font: inherit;
	box-shadow: none !important;
}

body.woocommerce-cart #main-container .rr-kaartje-dialog .rr-kaartje-dialog__textarea:focus,
body.woocommerce-cart .rr-kaartje-dialog__textarea:focus,
.rr-kaartje-dialog__textarea:focus {
	border-color: #404040 !important;
	outline: 2px solid rgba(0, 0, 0, 0.1) !important;
	outline-offset: 1px;
}

.rr-kaartje-dialog__meta {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin: 0.4rem 0 1rem;
	font-size: 0.875rem;
	opacity: 0.85;
}

.rr-kaartje-dialog__counter {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.rr-kaartje-dialog__counter.is-over {
	color: #b42318;
	font-weight: 600;
	opacity: 1;
}

.rr-kaartje-dialog__form {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/*
 * Dialog staat in wp_footer (buiten #main-container) — selectors moeten op .rr-kaartje-dialog zelf.
 */
body.woocommerce-cart .rr-kaartje-dialog .rr-kaartje-dialog__actions {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
	grid-auto-flow: row !important;
	align-items: stretch !important;
	gap: 0.5rem !important;
	margin: 0.85rem 0 0 !important;
	width: 100% !important;
	max-width: 100% !important;
}

body.woocommerce-cart .rr-kaartje-dialog .rr-kaartje-dialog__actions > .button {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	min-height: 2.5rem !important;
	margin: 0 !important;
	padding: 0.5rem 0.35rem !important;
	box-sizing: border-box !important;
	float: none !important;
	clear: none !important;
	text-align: center !important;
	white-space: normal !important;
	overflow-wrap: anywhere;
	font-size: 0.8125rem !important;
	line-height: 1.2 !important;
}

body.woocommerce-cart .rr-kaartje-dialog .rr-kaartje-dialog__submit {
	background: var(--reisreport-cta-bg, #f8bf00) !important;
	background-color: var(--reisreport-cta-bg, #f8bf00) !important;
	color: #000 !important;
	border-radius: 4px !important;
	border: 1px solid rgba(0, 0, 0, 0.12) !important;
	font-weight: 400 !important;
}

.rr-kaartje-dialog__error {
	margin: 0 0 0.5rem;
	color: #b42318;
	font-weight: 600;
}

@media (max-width: 640px) {
	.rr-kaartje-dialog__inner {
		grid-template-columns: 1fr;
	}

	.rr-kaartje-dialog__visual {
		display: none;
	}

	body.woocommerce-cart .rr-kaartje-dialog .rr-kaartje-dialog__actions > .button {
		font-size: 0.78rem !important;
		min-height: 2.35rem !important;
		padding: 0.4rem 0.25rem !important;
	}

	.rr-kaartje-dialog__textarea {
		min-height: 8.5rem;
	}
}
