/**
 * TCA Menu Side Cart — base layout; Elementor ({{WRAPPER}}) overrides accents.
 */

/* Prevent full‑width Elementor wrapper from forcing the toggle onto a second row in tight headers */
.elementor-widget-tca_menu_side_cart.elementor-widget,
.elementor-widget-tca_menu_side_cart.elementor-element {
	flex-grow: 0 !important;
	flex-shrink: 0 !important;
	flex-basis: auto !important;
	width: fit-content !important;
	max-width: 100%;
	min-width: 0;
	align-self: center;
}

/* Flexbox Containers / columns: sibling flex rules can still grab 100% width — keep this widget content-sized */
.e-con > .elementor-widget-tca_menu_side_cart.elementor-element,
.elementor-column .elementor-widget-tca_menu_side_cart.elementor-element {
	flex: 0 0 auto !important;
	width: fit-content !important;
	max-width: 100%;
}

.elementor-widget-tca_menu_side_cart .elementor-widget-container {
	display: inline-flex !important;
	align-items: center;
	vertical-align: middle;
	width: auto !important;
	max-width: 100%;
	min-width: 0;
}

.elementor-widget-tca_menu_side_cart .elementor-widget-container > .tca-side-cart {
	flex: 0 0 auto !important;
	min-width: 0;
	max-width: 100%;
}

.tca-side-cart {
	position: relative;
	z-index: 998;
	box-sizing: border-box;
	display: inline-block;
	width: fit-content;
	max-width: 100%;
	min-width: 0;
	vertical-align: middle;
	font-size: 15px;
	line-height: 1.45;
	color: #111111;
	font-weight: 400;
}

.tca-side-cart *,
.tca-side-cart *::before,
.tca-side-cart *::after {
	box-sizing: inherit;
}

/* Menu-trigger ---------------------------------------------------------- */
.tca-side-cart__toggle {
	display: inline-flex;
	align-items: center;
	flex-wrap: nowrap;
	white-space: nowrap;
	max-width: 100%;
	text-decoration: none;
	vertical-align: middle;
	cursor: pointer;
	position: relative;
	background: transparent;
	border: none;
	transition: opacity 0.15s ease;
	gap: 0;
	min-height: 0;
	line-height: 1.25;
	font-size: 15px;
}

.tca-side-cart__toggle:hover,
.tca-side-cart__toggle:focus {
	opacity: 0.82;
	outline: none;
}

.tca-side-cart__frag-toggle,
.tca-side-cart__frag-toggle-inner {
	display: inline-flex;
	align-items: center;
	flex-wrap: nowrap;
	max-width: 100%;
	min-width: 0;
}

.tca-side-cart__frag-toggle-inner {
	column-gap: 8px;
	gap: 8px;
	width: fit-content;
	max-width: 100%;
	min-width: 0;
	flex-wrap: nowrap;
	align-items: center;
}

.tca-side-cart__icon-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 0;
	width: fit-content;
}

.tca-side-cart__bag-svg {
	display: block;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	vertical-align: middle;
}

.tca-side-cart__badge {
	position: absolute;
	top: -3px;
	right: -5px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 14px;
	height: 14px;
	padding: 0 3px;
	border-radius: 50%;
	font-weight: 600;
	font-size: 8px;
	line-height: 1;
	text-align: center;
	letter-spacing: 0;
	box-sizing: border-box;
	flex-shrink: 0;
	transform: translateZ(0);
}

.tca-side-cart__backdrop {
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.28s ease, visibility 0.28s;
	position: fixed;
	inset: 0;
	z-index: 100000;
}

/* Panel shell ---------------------------------------------------------- */
.tca-side-cart__surface {
	position: fixed;
	top: 0;
	bottom: 0;
	max-height: 100vh;
	display: flex;
	flex-direction: column;
	z-index: 100001;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
	opacity: 0;
	visibility: hidden;
	transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.26s ease, visibility 0.26s;
}

.tca-slide-right .tca-side-cart .tca-side-cart__surface {
	right: 0;
	left: auto;
	transform: translate3d(100%, 0, 0);
}

.tca-slide-left .tca-side-cart .tca-side-cart__surface {
	left: 0;
	right: auto;
	transform: translate3d(-100%, 0, 0);
}

.tca-slide-right .tca-side-cart.tca-side-cart--open .tca-side-cart__surface,
.tca-slide-left .tca-side-cart.tca-side-cart--open .tca-side-cart__surface {
	transform: translate3d(0, 0, 0);
	opacity: 1;
	visibility: visible;
}

.tca-slide-right .tca-side-cart.tca-side-cart--open .tca-side-cart__backdrop,
.tca-slide-left .tca-side-cart.tca-side-cart--open .tca-side-cart__backdrop {
	opacity: 1;
	visibility: visible;
}

.tca-side-cart__panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
	border-bottom: 1px solid #eeeeee;
	width: 100%;
	padding: 20px 24px 18px;
	min-height: 56px;
}

.tca-side-cart__head-title {
	display: inline-block;
	max-width: 78%;
	word-break: break-word;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.28;
	margin: 0;
}

.tca-side-cart__close {
	background: transparent;
	border: none;
	cursor: pointer;
	line-height: 1;
	padding: 6px 8px;
	margin: -4px -4px -4px 0;
	flex-shrink: 0;
	box-shadow: none;
	transition:
		opacity 0.15s ease,
		color 0.15s ease;
	opacity: 0.85;
	border-radius: 0;
	color: #111111;
}

.tca-side-cart__panel-head .tca-side-cart__close:hover,
.tca-side-cart__panel-head .tca-side-cart__close:focus {
	opacity: 1;
	background: transparent !important;
	box-shadow: none !important;
	color: #111111 !important;
}

.tca-side-cart__panel-head .tca-side-cart__close:focus-visible {
	outline: none;
}

.tca-side-cart__scroll {
	flex: 1 1 auto;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	padding: 0;
}

.tca-side-cart__frag-body {
	min-height: 2rem;
}

/* Zij-inhoud: horizontaal ~ design 22–24px */
.tca-side-cart__body-inner {
	padding: 8px 24px 26px;
}

.tca-side-cart__body-inner--empty .tca-side-cart__empty-msg {
	padding: 2rem 1rem;
	text-align: center;
	opacity: 0.72;
}

.tca-side-cart__group {
	margin-bottom: 0;
}

.tca-side-cart__group-title {
	margin: 20px 0 12px;
	padding: 0;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.35;
	border: none;
}

.tca-side-cart__group-title:first-child {
	margin-top: 12px;
}

.tca-side-cart__item {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	column-gap: 14px;
	padding: 16px 0;
	position: relative;
	border-bottom: 1px solid #eeeeee;
	min-width: 0;
	margin: 0;
}

.tca-side-cart__group .tca-side-cart__item:last-of-type {
	border-bottom: none;
}

.tca-side-cart__group + .tca-side-cart__group {
	border-top: 1px solid #eeeeee;
	margin-top: 4px;
}

.tca-side-cart__item-inner {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	row-gap: 6px;
	column-gap: 0;
	padding-right: 0;
	box-sizing: border-box;
}

.tca-side-cart__item-meta {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-right: 26px;
}

/* One row: period (scrolls/truncates) + price pinned right — same row as rental cart rhythm */
.tca-side-cart__item-footer {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	justify-content: stretch;
	column-gap: 12px;
	row-gap: 0;
	width: 100%;
	box-sizing: border-box;
	min-width: 0;
	margin-top: 2px;
}

.tca-side-cart__item-footer--price-only {
	grid-template-columns: minmax(0, 1fr) auto;
}

.tca-side-cart__item-footer--price-only .tca-side-cart__item-price-wrap {
	grid-column: 2;
	justify-self: end;
	margin-left: 0;
}

.tca-side-cart__item-price-wrap {
	flex-shrink: 0;
	grid-column: 2;
	justify-self: end;
	text-align: right;
	margin: 0;
	padding: 0;
	margin-left: 0;
	white-space: nowrap;
	align-self: end;
}

.tca-side-cart__item-dates {
	grid-column: 1;
	display: inline-flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 6px;
	margin: 0;
	padding-right: 0;
	min-width: 0;
	width: 100%;
	max-width: 100%;
	font-size: 0.8125rem;
	line-height: 1.4;
	opacity: 0.78;
	font-weight: 400;
}

.tca-side-cart__item-dates-text {
	min-width: 0;
	flex: 1 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Portrait thumb (matches tca-cart__item-image 3 / 4) */
.tca-side-cart__item-thumb {
	position: relative;
	flex: 0 0 72px;
	width: 72px;
	min-width: 72px;
	max-width: 72px;
	height: auto;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: #f5f5f5;
	flex-shrink: 0;
	align-self: flex-start;
	border-radius: 2px;
}

.tca-side-cart__item-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tca-side-cart .tca-side-cart__item-remove {
	position: absolute;
	right: 0;
	top: 16px;
	margin: 0;
	-webkit-appearance: none;
	appearance: none;
	background: transparent !important;
	border: 0 none !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	cursor: pointer;
	opacity: 0.55;
	line-height: 1;
	z-index: 2;
	padding: 2px 4px;
	font-size: 1.35rem;
	font-weight: 300;
	transition: opacity 0.15s ease, color 0.15s ease;
	width: auto;
	min-width: auto;
	min-height: auto;
	height: auto;
	color: #999999;
}

.tca-side-cart .tca-side-cart__item-remove:hover,
.tca-side-cart .tca-side-cart__item-remove:focus {
	opacity: 1;
	background: transparent !important;
	border: 0 none !important;
	box-shadow: none !important;
	outline: none !important;
	color: inherit !important;
}

.tca-side-cart__item-price {
	font-weight: 700;
	display: inline-block;
	font-size: 0.9375rem;
	line-height: 1.35;
	white-space: nowrap;
	vertical-align: bottom;
}

.tca-side-cart__item-brand {
	font-size: 0.75rem;
	font-weight: 400;
	line-height: 1.3;
	opacity: 0.7;
	margin: 0;
}

.tca-side-cart__item-name {
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0;
}

.tca-side-cart__item-size {
	font-size: 0.8125rem;
	font-weight: 400;
	opacity: 0.68;
	line-height: 1.35;
	margin: 0;
}

.tca-side-cart__item-cal svg {
	display: block;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	vertical-align: middle;
}

.tca-side-cart__price--toggle {
	flex-shrink: 0;
	white-space: nowrap;
	font-weight: 500;
	font-size: 0.8125rem !important;
	line-height: 1.3;
}

.tca-side-cart__price--toggle .woocommerce-Price-amount {
	font-weight: 500;
	font-size: 0.8125rem !important;
	line-height: 1.3;
}

/* Samenvatting --------------------------------------------------------- */
.tca-side-cart__summary {
	margin: 12px -24px 0;
	padding: 18px 24px 22px;
	border-top: 1px solid #eeeeee;
}

.tca-side-cart__sum-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 12px;
}

.tca-side-cart__sum-row:last-of-type:not(.tca-side-cart__sum-row--total) {
	margin-bottom: 0;
}

.tca-side-cart__sum-label {
	flex: 0 1 auto;
	min-width: 0;
	word-break: break-word;
	font-weight: 500;
}

.tca-side-cart__sum-value {
	flex-shrink: 0;
	text-align: right;
	font-weight: 600;
	line-height: 1.38;
	font-variant-numeric: tabular-nums;
}

.tca-side-cart__sum-row--total {
	margin-top: 16px;
	margin-bottom: 6px;
	padding-top: 4px;
	align-items: baseline;
}

.tca-side-cart__sum-label--total {
	font-weight: 700;
	font-size: 1rem;
}

.tca-side-cart__sum-value--total .woocommerce-Price-amount {
	font-weight: 700 !important;
	font-size: 1.22rem !important;
}

.tca-side-cart__sum-note {
	flex-shrink: 0;
	text-align: right;
	max-width: 58%;
	word-break: break-word;
	line-height: 1.42;
	opacity: 0.88;
}

.tca-side-cart__deposit-box {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 14px 0 0;
	padding: 12px 14px;
	line-height: 1.42;
	box-sizing: border-box;
	border-radius: 4px;
	border-style: solid;
	border-width: 1px;
	border-color: rgba(0, 0, 0, 0.1);
	/* Fallback only; the Elementor widget's own selectors override these. */
	background-color: #eff6ff;
	color: #1e40af;
}

.tca-side-cart__deposit-text {
	flex: 1 1 auto;
	min-width: 0;
}

.tca-side-cart__deposit-icon {
	flex-shrink: 0;
	padding-top: 1px;
	line-height: 0;
	color: inherit;
}

.tca-side-cart__deposit-icon svg {
	display: block;
	width: 15px;
	height: 15px;
}

.tca-side-cart__sum-divider {
	height: 1px;
	width: 100%;
	margin: 14px 0 14px;
}

.tca-side-cart__vat-note {
	display: block;
	margin: 0 0 0;
	padding-top: 0;
	font-weight: 400;
	line-height: 1.5;
	opacity: 0.68;
	max-width: 100%;
	word-break: break-word;
	font-size: 0.8125rem;
}

/* Knoppen + footer ------------------------------------------------------ */
.tca-side-cart__actions {
	display: flex;
	flex-direction: column;
	row-gap: 12px;
	padding: 0 0 6px;
}

.tca-side-cart__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
	min-height: 0;
	text-align: center;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.33;
	cursor: pointer;
	text-decoration: none;
	border-style: solid;
	border-width: 1px;
	border-color: transparent;
	padding: 15px 22px;
	font-size: 0.75rem;
	transition: opacity 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
	word-break: break-word;
	border-radius: 2px;
}

/* Low-specificity fallback so the buttons are never left with the theme's own
   link/button colours when the Elementor widget has not been styled yet.
   Elementor's own selectors (.elementor-element-x .tca-side-cart__btn--primary)
   are more specific and still win. */
.tca-side-cart__btn--primary {
	background-color: #000;
	color: #fff;
}

.tca-side-cart__btn--outline {
	background-color: #fff;
	color: #000;
}

.tca-side-cart .tca-side-cart__btn.tca-side-cart__btn--primary {
	border-color: transparent;
}

.tca-side-cart .tca-side-cart__btn.tca-side-cart__btn--outline {
	border-style: solid;
	border-width: 1px;
	border-color: currentColor;
}

.tca-side-cart .tca-side-cart__btn.tca-side-cart__btn--outline:visited {
	border-color: currentColor;
	color: inherit;
}

.tca-side-cart__btn--primary:hover,
.tca-side-cart__btn--outline:hover {
	opacity: 0.92;
	text-decoration: none;
}

.tca-side-cart__btn--outline:hover {
	opacity: 0.88;
}

.tca-side-cart__secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 14px 8px 20px;
	font-size: 0.8125rem;
	line-height: 1.4;
	font-weight: 400;
	opacity: 0.8;
	text-align: center;
}

.tca-side-cart__secure-icon {
	flex-shrink: 0;
	opacity: inherit;
	line-height: 0;
	display: inline-flex;
}

.tca-side-cart__secure-icon svg {
	width: 13px;
	height: 13px;
	display: block;
}

.tca-side-cart__empty-cta-wrap {
	text-align: center;
	margin-top: 0.65rem;
}

.tca-side-cart__empty-shop {
	font-weight: 500;
	text-decoration: underline;
}
