/* =========================================================
   Dutch Detailing Squad – slide-in panel (rechts → links)
   Inloggen / account, winkelwagen, producten on-hold
   ========================================================= */

.ddsq-panel,
.ddsq-panel * {
	box-sizing: border-box;
}

.ddsq-panel-backdrop {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0, 0, 0, .45);
	opacity: 0;
	visibility: hidden;
	transition: opacity .32s ease, visibility 0s linear .32s;
	z-index: 1200;
}

.ddsq-panel-backdrop.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity .32s ease;
}

.ddsq-panel {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 440px;
	max-width: 100vw;
	display: flex;
	flex-direction: column;
	background: var(--ddsq-white, #fff);
	color: var(--ddsq-text, #000);
	font-family: var(--ddsq-font, Arial, Helvetica, sans-serif);
	font-size: 14px;
	line-height: 1.5;
	box-shadow: -8px 0 24px rgba(0, 0, 0, .15);
	transform: translateX(100%);
	visibility: hidden;
	transition: transform .32s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .32s;
	z-index: 1210;
	outline: none;
}

.ddsq-panel.is-open {
	transform: translateX(0);
	visibility: visible;
	transition: transform .32s cubic-bezier(.4, 0, .2, 1);
}

@media (prefers-reduced-motion: reduce) {
	.ddsq-panel,
	.ddsq-panel-backdrop {
		transition: none;
	}
}

.ddsq-panel a {
	color: inherit;
	text-decoration: none;
}

.ddsq-panel ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ddsq-panel svg {
	display: block;
	flex: 0 0 auto;
}

/* ---- Head ---- */

.ddsq-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
	padding: 0 20px 0 24px;
	border-bottom: 1px solid var(--ddsq-border, #e0e0e0);
	flex: 0 0 auto;
}

.ddsq-panel__title {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: 22px;
	line-height: 1.2;
	font-weight: 700;
	color: var(--ddsq-text, #000);
}

.ddsq-panel__close {
	display: flex;
	align-items: center;
	gap: 8px;
	background: none;
	border: 0;
	padding: 8px;
	margin: 0;
	font: inherit;
	font-size: 14px;
	color: var(--ddsq-text, #000);
	cursor: pointer;
	box-shadow: none;
	border-radius: 4px;
}

.ddsq-panel__close:hover {
	color: var(--ddsq-red, #ca0000);
	background: var(--ddsq-grey, #f2f2f2);
}

/* ---- Body ---- */

.ddsq-panel__body {
	flex: 1 1 auto;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.ddsq-panel__block {
	padding: 24px;
	border-bottom: 1px solid var(--ddsq-border, #e0e0e0);
}

.ddsq-panel__block:last-child {
	border-bottom: 0;
}

.ddsq-panel__block-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	padding: 0;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--ddsq-text, #000);
}

.ddsq-panel__block-title svg {
	color: var(--ddsq-red, #ca0000);
}

.ddsq-panel__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 7px;
	border-radius: 11px;
	background: var(--ddsq-red, #ca0000);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

/* ---- Form ---- */

.ddsq-field {
	margin: 0 0 16px;
}

.ddsq-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 700;
	font-size: 14px;
	color: var(--ddsq-text, #000);
}

.ddsq-req {
	color: var(--ddsq-red, #ca0000);
}

.ddsq-field input[type="email"],
.ddsq-field input[type="password"],
.ddsq-field input[type="text"] {
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--ddsq-input-border, #c8c8c8);
	border-radius: 4px;
	background: #fff;
	font: inherit;
	font-size: 16px;
	color: var(--ddsq-text, #000);
	box-shadow: none;
}

.ddsq-field input::placeholder {
	color: var(--ddsq-muted, #555);
	opacity: 1;
}

.ddsq-field input:focus {
	outline: none;
	border-color: var(--ddsq-red, #ca0000);
	box-shadow: 0 0 0 3px rgba(202, 0, 0, .12);
}

.ddsq-field__pw {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ddsq-field__pw input {
	flex: 1 1 auto;
	min-width: 0;
}

.ddsq-field__eye {
	flex: 0 0 44px;
	width: 44px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	color: var(--ddsq-text, #000);
	cursor: pointer;
	box-shadow: none;
	border-radius: 4px;
}

.ddsq-field__eye:hover,
.ddsq-field__eye[aria-pressed="true"] {
	color: var(--ddsq-red, #ca0000);
}

.ddsq-panel__forgot {
	margin: -4px 0 18px;
}

.ddsq-panel .ddsq-panel__forgot a {
	color: var(--ddsq-red, #ca0000);
}

.ddsq-panel__forgot a:hover {
	text-decoration: underline;
}

.ddsq-panel__notices {
	margin-bottom: 16px;
}

.ddsq-panel__notices .woocommerce-error,
.ddsq-panel__notices .woocommerce-message,
.ddsq-panel__notices .woocommerce-info {
	margin: 0 0 8px;
	padding: 12px 14px;
	border: 1px solid var(--ddsq-red, #ca0000);
	border-radius: 4px;
	background: #fff5f5;
	color: var(--ddsq-text, #000);
	list-style: none;
}

/* ---- Buttons ---- */

.ddsq-panel .ddsq-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	padding: 0 20px;
	border: 1px solid var(--ddsq-cta, #ca0000);
	border-radius: 4px;
	background: var(--ddsq-cta, #ca0000);
	color: var(--ddsq-cta-text, #fff);
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	text-decoration: none;
	box-shadow: none;
	margin: 0;
	transition: background-color .15s, border-color .15s, color .15s;
}

.ddsq-panel .ddsq-btn:hover {
	background: var(--ddsq-red-dark, #a30000);
	border-color: var(--ddsq-red-dark, #a30000);
	color: #fff;
}

.ddsq-panel .ddsq-btn--outline {
	background: #fff;
	color: var(--ddsq-red, #ca0000);
}

.ddsq-panel .ddsq-btn--outline:hover {
	background: #fff5f5;
	color: var(--ddsq-red-dark, #a30000);
}

.ddsq-panel .ddsq-btn--block {
	display: flex;
	width: 100%;
}

.ddsq-panel .ddsq-btn--block + .ddsq-btn--block {
	margin-top: 10px;
}

/* ---- Logged in ---- */

.ddsq-panel__welcome {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	font-size: 15px;
}

.ddsq-panel__welcome svg {
	color: var(--ddsq-red, #ca0000);
}

.ddsq-panel__links li a {
	display: block;
	padding: 9px 0;
	border-bottom: 1px solid var(--ddsq-border, #e0e0e0);
}

.ddsq-panel__links li:last-child a {
	border-bottom: 0;
}

.ddsq-panel__links li a:hover {
	color: var(--ddsq-red, #ca0000);
}

/* ---- Items (cart & on-hold) ---- */

.ddsq-panel__items {
	margin: 0 0 12px;
}

.ddsq-panel__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--ddsq-border, #e0e0e0);
	margin: 0;
}

.ddsq-panel__item:last-child {
	border-bottom: 0;
}

.ddsq-panel__thumb {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--ddsq-border, #e0e0e0);
	border-radius: 4px;
	background: #fff;
	overflow: hidden;
}

.ddsq-panel__thumb img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	margin: 0;
}

.ddsq-panel__item-meta {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ddsq-panel__item-name {
	font-weight: 700;
	line-height: 1.3;
}

.ddsq-panel__item-name:hover {
	color: var(--ddsq-red, #ca0000);
}

.ddsq-panel__item-price {
	font-size: 13px;
	color: var(--ddsq-muted, #555);
}

.ddsq-panel__remove {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	color: var(--ddsq-muted, #555);
}

.ddsq-panel__remove:hover {
	background: #fff5f5;
	color: var(--ddsq-red, #ca0000);
}

.ddsq-panel__total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
	border-top: 1px solid var(--ddsq-border, #e0e0e0);
	font-size: 15px;
}

.ddsq-panel__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 8px;
}

.ddsq-panel__empty {
	margin: 0 0 14px;
	color: var(--ddsq-muted, #555);
}

.ddsq-panel__order {
	padding: 12px 0 4px;
	border-top: 1px solid var(--ddsq-border, #e0e0e0);
}

.ddsq-panel__order:first-of-type {
	border-top: 0;
	padding-top: 0;
}

.ddsq-panel__order-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 4px;
}

.ddsq-panel__status {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	background: #fff5f5;
	color: var(--ddsq-red, #ca0000);
	font-size: 12px;
	font-weight: 700;
}

/* Header cart badge wrapper */
.ddsq-cart__badge {
	position: absolute;
	top: 0;
	right: 0;
	width: 0;
	height: 0;
}

.ddsq-cart__badge .ddsq-cart__count {
	top: -6px;
	right: -6px;
}

/* Admin bar offsets */
.admin-bar .ddsq-panel {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .ddsq-panel {
		top: 46px;
	}
}

/* Paneelknoppen nooit de generieke knopstijl geven */
body.ddsq .ddsq-panel .ddsq-panel__close,
body.ddsq .ddsq-panel .ddsq-field__eye {
	background: none;
	border: 0;
	color: var(--ddsq-text, #000);
	box-shadow: none;
}

body.ddsq .ddsq-panel .ddsq-panel__close:hover {
	color: var(--ddsq-red, #ca0000);
	background: var(--ddsq-grey, #f2f2f2);
}

body.ddsq .ddsq-panel .ddsq-field__eye:hover,
body.ddsq .ddsq-panel .ddsq-field__eye[aria-pressed="true"] {
	color: var(--ddsq-red, #ca0000);
}

.ddsq-panel__body {
	-webkit-overflow-scrolling: touch;
}

body.ddsq-panel-open {
	overflow: hidden;
}

@media (max-width: 479px) {
	.ddsq-panel {
		width: 100vw;
	}

	.ddsq-panel__block {
		padding: 20px 16px;
	}

	.ddsq-panel__head {
		padding: 0 12px 0 16px;
	}
}
