/* Winkelmand opslaan – Binnendeuren.shop */
:root {
	--bdsc-blue: #3271c1;
	--bdsc-blue-dark: #275a9b;
	--bdsc-dark: #323232;
	--bdsc-grey: #6b7280;
	--bdsc-border: #dde1ef;
	--bdsc-field: #f5f6fa;
	--bdsc-error: #c0392b;
	--bdsc-success: #3d8b3d;
}

/* ---------- Knop onder de producttabel ---------- */
.bdsc-save-wrap {
	display: flex;
	justify-content: flex-end;
	width: 100%;
	margin-top: 16px;
}

.bdsc-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 26px;
	border: 0;
	border-radius: 9999px;
	background: var(--bdsc-blue);
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background-color .15s ease, transform .15s ease;
}
.bdsc-trigger:hover { background: var(--bdsc-blue-dark); color: #fff; }
.bdsc-trigger:active { transform: translateY(1px); }
.bdsc-trigger:focus-visible { outline: 3px solid rgba(50, 113, 193, .35); outline-offset: 2px; }
.bdsc-trigger .bdsc-icon { flex-shrink: 0; }

@media (max-width: 639px) {
	.bdsc-save-wrap { justify-content: stretch; }
	.bdsc-trigger { width: 100%; }
}

/* ---------- Popup ---------- */
.bdsc-modal[hidden] { display: none !important; }
.bdsc-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-family: inherit;
}
.bdsc-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 24, 33, .55);
	animation: bdsc-fade .18s ease-out;
}
.bdsc-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 36px 36px 32px;
	border-radius: 20px;
	background: #fff;
	color: var(--bdsc-dark);
	box-shadow: 0 24px 60px rgba(20, 24, 33, .25);
	animation: bdsc-pop .2s ease-out;
	outline: none;
}
@media (max-width: 480px) {
	.bdsc-modal__dialog { padding: 28px 20px 24px; border-radius: 16px; }
}

.bdsc-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 9999px;
	background: transparent;
	color: var(--bdsc-dark);
	cursor: pointer;
}
.bdsc-modal__close:hover { background: #f0f2f7; }

.bdsc-modal .bdsc-modal__title {
	margin: 0 44px 8px 0;
	color: var(--bdsc-blue);
	font-family: inherit;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.15;
}
.bdsc-modal .bdsc-modal__text {
	margin: 0 0 24px;
	color: var(--bdsc-dark);
	font-size: 16px;
	line-height: 1.5;
}
.bdsc-modal .bdsc-small { font-size: 14px; color: var(--bdsc-grey); margin-top: -12px; }
.bdsc-modal .bdsc-small a { color: var(--bdsc-blue); text-decoration: underline; }

.bdsc-actions { display: flex; flex-direction: column; gap: 12px; }

.bdsc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 54px;
	padding: 0 24px;
	border: 2px solid transparent;
	border-radius: 9999px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.bdsc-btn:focus-visible { outline: 3px solid rgba(50, 113, 193, .35); outline-offset: 2px; }
.bdsc-btn[disabled] { opacity: .7; cursor: wait; }
.bdsc-btn--primary { background: var(--bdsc-blue); color: #fff; }
.bdsc-btn--primary:hover { background: var(--bdsc-blue-dark); }
.bdsc-btn--outline { background: #fff; border-color: var(--bdsc-blue); color: var(--bdsc-blue); }
.bdsc-btn--outline:hover { background: #f0f5fc; }
.bdsc-btn--dark { background: var(--bdsc-dark); color: #fff; }
.bdsc-btn--dark:hover { background: #1f1f1f; }

.bdsc-is-loading .bdsc-icon:not(.bdsc-icon--loader-circle) { display: none; }
.bdsc-icon--loader-circle { animation: bdsc-spin .8s linear infinite; }

/* Formulier */
.bdsc-form { margin: 0; }
.bdsc-field { margin: 0 0 16px; }
.bdsc-field label {
	display: block;
	margin: 0 0 6px;
	color: var(--bdsc-dark);
	font-size: 15px;
	font-weight: 600;
}
.bdsc-field input {
	display: block;
	width: 100%;
	height: 50px;
	padding: 0 20px;
	border: 1px solid var(--bdsc-border);
	border-radius: 9999px;
	background: var(--bdsc-field);
	color: var(--bdsc-dark);
	font-family: inherit;
	font-size: 16px;
	box-shadow: none;
	transition: border-color .15s ease, background-color .15s ease;
}
.bdsc-field input:focus { outline: none; border-color: var(--bdsc-blue); background: #fff; box-shadow: 0 0 0 3px rgba(50, 113, 193, .15); }
.bdsc-field input[aria-invalid="true"] { border-color: var(--bdsc-error); }

.bdsc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.bdsc-note { margin: -4px 0 18px; color: var(--bdsc-grey); font-size: 13px; line-height: 1.5; }

.bdsc-error {
	margin: 12px 0 16px;
	padding: 10px 14px;
	border-radius: 12px;
	background: #fdf0ee;
	color: var(--bdsc-error);
	font-size: 14px;
	line-height: 1.4;
}
.bdsc-error[hidden] { display: none; }
.bdsc-view[data-view="choose"] .bdsc-error { margin-bottom: 0; }

.bdsc-back {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 18px auto 0;
	padding: 6px 10px;
	border: 0;
	background: none;
	color: var(--bdsc-dark);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.bdsc-back:hover { color: var(--bdsc-blue); }

.bdsc-success-icon { color: var(--bdsc-success); margin: 0 0 12px; line-height: 0; }

html.bdsc-modal-open { overflow: hidden; }

@keyframes bdsc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bdsc-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes bdsc-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
	.bdsc-modal__backdrop, .bdsc-modal__dialog { animation: none; }
}
