/**
 * Ark Cart Drawer styling
 * Alle kleuren via CSS variabelen — admin kan primary_color, button_bg_color etc. aanpassen
 * zonder deze file aan te raken.
 */

/* Basis drawer container
   Belangrijk: !important op kritieke rules voorkomt dat thema-CSS
   (bijv. globale regels op aside/sidebar) de drawer zichtbaar maakt
   wanneer die dicht hoort te zijn.

   Er is bewust GEEN opacity-transition meer op de outer container:
   de zichtbare fade komt van het overlay-kind (.ark-cart-drawer-overlay)
   en de slide van .ark-cart-drawer-panel-wrap. Een CSS-transition op
   opacity/visibility hier raakte stuck bij snelle DOM-updates na
   cart fragment replacements (WooCommerce added_to_cart flow). */
.ark-cart-drawer {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	z-index: 999999 !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
	font-family: var(--ark-font-family, inherit);
	color: var(--ark-text-color, #3A4F66);
	margin: 0 !important;
	padding: 0 !important;
	width: auto !important;
	height: auto !important;
	float: none !important;
	clear: none !important;
	transform: none !important;
	max-width: none !important;
}

.ark-cart-drawer.is-open {
	visibility: visible !important;
	opacity: 1 !important;
	pointer-events: auto !important;
}

.ark-cart-drawer-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	transition: opacity 0.35s ease;
}

.ark-cart-drawer.is-open .ark-cart-drawer-overlay {
	opacity: 1;
}

/* Panel wrapper (dual-panel layout) */
.ark-cart-drawer-panel-wrap {
	position: absolute;
	top: 0;
	bottom: 0;
	display: flex;
	align-items: stretch;
	max-width: 100vw;
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	width: calc(var(--ark-drawer-width, 480px) + var(--ark-upsell-panel-width, 340px));
}

/* Default (als ark-drawer-right/left class om wat voor reden niet wordt
   toegepast) — zet wrap hoe dan ook off-screen rechts */
.ark-cart-drawer .ark-cart-drawer-panel-wrap {
	right: 0;
	transform: translateX(100%);
}

.ark-drawer-left .ark-cart-drawer-panel-wrap {
	right: auto;
	left: 0;
	transform: translateX(-100%);
}

.ark-cart-drawer.is-open .ark-cart-drawer-panel-wrap {
	transform: translateX(0);
}

/* Cart panel (rechts in dual view) */
.ark-cart-drawer-panel {
	width: var(--ark-drawer-width, 480px);
	max-width: 100vw;
	background: #ffffff;
	box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
}

.ark-drawer-left .ark-cart-drawer-panel {
	box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
}

/* Upsell panel (links in dual view) */
.ark-cart-drawer-upsell-panel {
	width: var(--ark-upsell-panel-width, 340px);
	background: var(--ark-secondary-color, #F2F5F7);
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	overflow: hidden;
}

.ark-cart-drawer-upsell-header {
	padding: 24px 20px 12px;
	flex-shrink: 0;
}

.ark-cart-drawer-upsell-title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 500;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--ark-primary-color, #3A4F66);
}

.ark-cart-drawer-upsell-body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 0 12px 24px;
}

/* Upsell panel items — luxe boutique cards.
   Belangrijk: thema (Blocksy etc.) zet vaak default borders op <button>; we
   resetten die agressief met !important zodat onze cards één cohesief
   visueel blok zijn zonder dubbele frames. */
.ark-upsell-panel-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ark-upsell-panel-item {
	background: transparent;
	border-radius: 4px;
	transition: background 0.2s ease;
	padding: 8px;
}

.ark-upsell-panel-item:hover:not(.is-sold-out) {
	background: rgba(255, 255, 255, 0.55);
}

.ark-upsell-panel-item.is-sold-out {
	opacity: 0.55;
}

/* Card-zone — image + info als link naar productpagina (geen add-to-cart actie) */
.ark-upsell-panel-card {
	display: grid !important;
	grid-template-columns: 80px 1fr;
	gap: 14px;
	align-items: flex-start;
	width: 100%;
	background: transparent !important;
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	color: inherit !important;
	text-decoration: none !important;
	font: inherit !important;
	text-align: left;
	letter-spacing: normal !important;
	text-transform: none !important;
}

.ark-upsell-panel-card:hover .ark-upsell-panel-title,
.ark-upsell-panel-card:focus .ark-upsell-panel-title {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Image kolom — links, vierkant, met badge en sold-out overlay */
.ark-upsell-panel-image {
	display: block;
	position: relative;
	width: 80px;
	height: 80px;
	overflow: hidden;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.5);
	flex-shrink: 0;
}

.ark-upsell-panel-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ark-upsell-panel-badge {
	display: inline-block;
	align-self: flex-start;
	background: var(--ark-primary-color, #3A4F66);
	color: #ffffff;
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	padding: 2px 7px;
	border-radius: 2px;
	line-height: 1.4;
	margin-bottom: 2px;
}

.ark-upsell-panel-soldout-overlay {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.7);
	color: var(--ark-text-color, #3A4F66);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

/* Info kolom — titel + prijs */
.ark-upsell-panel-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	padding-top: 2px;
}

.ark-upsell-panel-title {
	font-size: 0.85rem;
	line-height: 1.35;
	color: var(--ark-text-color, #3A4F66);
	font-weight: 400;
	letter-spacing: 0.02em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	word-break: break-word;
}

.ark-upsell-panel-price {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--ark-text-color, #3A4F66);
	line-height: 1.3;
}

.ark-upsell-panel-price del,
.ark-upsell-panel-price del .amount,
.ark-upsell-panel-price del bdi {
	font-weight: 400;
	color: rgba(0, 0, 0, 0.4);
	text-decoration: line-through;
}

.ark-upsell-panel-price ins,
.ark-upsell-panel-price ins .amount,
.ark-upsell-panel-price ins bdi {
	background: transparent;
	text-decoration: none;
}

.ark-upsell-panel-price del {
	margin-left: 6px;
}

/* Pills — direct toevoegen */
.ark-upsell-panel-options {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin: 8px 0 0 94px; /* 80px image + 14px gap = uitgelijnd onder de info-kolom */
}

.ark-upsell-panel-option {
	min-width: 28px;
	height: 28px;
	padding: 0 8px;
	font-size: 0.72rem;
	font-weight: 500;
	background: #ffffff !important;
	color: var(--ark-text-color, #3A4F66) !important;
	border: 1px solid rgba(0, 0, 0, 0.12) !important;
	border-radius: 2px !important;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	letter-spacing: 0.02em;
	box-shadow: none !important;
	font-family: inherit !important;
	text-transform: none !important;
}

.ark-upsell-panel-option:hover:not(:disabled):not(.is-out-of-stock) {
	background: var(--ark-button-bg-color, #000000) !important;
	color: var(--ark-button-text-color, #ffffff) !important;
	border-color: var(--ark-button-bg-color, #000000) !important;
}

.ark-upsell-panel-option:disabled,
.ark-upsell-panel-option.is-out-of-stock {
	opacity: 0.35;
	cursor: not-allowed;
	text-decoration: line-through;
}

.ark-upsell-panel-option.is-color {
	min-width: 24px;
	width: 24px;
	height: 24px;
	padding: 0;
	border-radius: 50% !important;
}

/* Wide variant voor "Toevoegen" / "Kies opties" — zelfde stijl, breder */
.ark-upsell-panel-option-wide {
	padding: 0 14px;
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ark-upsell-panel-option-swatch {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
}

.ark-upsell-panel-option.is-loading {
	opacity: 0.5;
	pointer-events: none;
}

/* Korte groene flash na succesvolle add */
.ark-upsell-panel-option.is-added {
	background: #2fa86a !important;
	color: #ffffff !important;
	border-color: #2fa86a !important;
	transform: scale(1.05);
}

/* Sold-out label onderin (alleen wanneer hele product is uitverkocht) */
.ark-upsell-panel-soldout-label {
	display: block;
	margin: 8px 0 0 94px;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(0, 0, 0, 0.55);
}

/* Header */
.ark-cart-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 24px 28px;
	flex-shrink: 0;
}

.ark-cart-drawer-title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 500;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--ark-primary-color, #3A4F66);
}

.ark-cart-drawer-close {
	background: rgba(0, 0, 0, 0.05);
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ark-text-color, #3A4F66);
	transition: background 0.2s ease;
}

.ark-cart-drawer-close:hover {
	background: rgba(0, 0, 0, 0.1);
}

/* Body (scrolbaar) */
.ark-cart-drawer-body {
	flex: 1 1 auto;
	overflow-y: auto;
	overflow-x: hidden;
}

/* Progress bar */
.ark-progress-wrapper {
	padding: 18px 28px 20px;
}

.ark-progress-message {
	font-size: 0.9rem;
	line-height: 1.5;
	margin-bottom: 10px;
}

.ark-progress-reached .ark-progress-message {
	font-weight: 500;
}

.ark-progress-reached .ark-progress-message strong {
	color: #3a7a3a;
}

.ark-progress-bar-container {
	width: 100%;
	height: 6px;
	background: rgba(0, 0, 0, 0.08);
	border-radius: 3px;
	overflow: hidden;
	position: relative;
}

.ark-progress-bar-fill {
	height: 100%;
	background: linear-gradient(90deg, #82c682 0%, #5ac6f4 100%);
	border-radius: 3px;
	transition: width 0.5s ease;
	position: relative;
}

.ark-progress-reached .ark-progress-bar-fill {
	background: linear-gradient(90deg, #5fbe5f 0%, #4abb6e 100%);
}

.ark-progress-icon {
	position: absolute;
	right: -8px;
	top: 50%;
	transform: translateY(-50%);
	color: #3a7a3a;
}

/* Empty cart */
.ark-empty-cart {
	padding: 60px 28px;
	text-align: center;
}

.ark-empty-cart svg {
	color: var(--ark-primary-color, #3A4F66);
	margin-bottom: 20px;
	opacity: 0.3;
}

.ark-empty-cart-text {
	font-size: 1rem;
	margin: 0 0 24px;
	color: var(--ark-text-color, #3A4F66);
}

.ark-continue-shopping {
	display: inline-block;
	padding: 12px 32px;
	background: var(--ark-button-bg-color, #000000);
	color: var(--ark-button-text-color, #fff);
	text-decoration: none;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-size: 0.85rem;
	border-radius: 2px;
	transition: opacity 0.2s ease;
}

.ark-continue-shopping:hover {
	opacity: 0.9;
}

/* Cart items */
.ark-cart-items {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ark-cart-item {
	display: flex;
	gap: 16px;
	padding: 20px 28px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	transition: opacity 0.3s ease;
}

.ark-cart-item.is-removing {
	opacity: 0.3;
}

.ark-cart-item-image {
	flex-shrink: 0;
	width: 70px;
	height: 70px;
	background: rgba(0, 0, 0, 0.02);
	overflow: hidden;
	border-radius: 50%;
}

.ark-cart-item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ark-cart-item-details {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-width: 0;
}

.ark-cart-item-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 8px;
}

.ark-cart-item-title {
	font-size: 0.95rem;
	margin: 0;
	font-weight: 400;
	line-height: 1.3;
}

.ark-cart-item-title a {
	color: inherit;
	text-decoration: none;
}

.ark-cart-item-title a:hover {
	text-decoration: underline;
}

.ark-cart-item-remove {
	background: none;
	border: none;
	cursor: pointer;
	color: rgba(0, 0, 0, 0.4);
	padding: 4px;
	flex-shrink: 0;
	transition: color 0.2s ease;
}

.ark-cart-item-remove:hover {
	color: var(--ark-primary-color, #3A4F66);
}

.ark-cart-item-variation {
	font-size: 0.8rem;
	color: rgba(0, 0, 0, 0.6);
	margin-top: 4px;
}

.ark-cart-item-variation p {
	margin: 0;
}

.ark-cart-item-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 10px;
}

/* Quantity selector */
.ark-cart-item-quantity {
	display: inline-flex;
	align-items: center;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 2px;
	overflow: hidden;
}

.ark-qty-btn {
	background: none;
	border: none;
	width: 28px;
	height: 28px;
	cursor: pointer;
	font-size: 1rem;
	color: var(--ark-text-color, #3A4F66);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.ark-qty-btn:hover {
	background: rgba(0, 0, 0, 0.05);
}

.ark-qty-input {
	width: 32px;
	text-align: center;
	border: none;
	background: transparent;
	font-size: 0.9rem;
	padding: 0;
	-moz-appearance: textfield;
}

.ark-qty-input::-webkit-outer-spin-button,
.ark-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.ark-cart-item-price {
	font-weight: 500;
	font-size: 0.95rem;
}

/* Mobile inline upsells (alleen zichtbaar op mobiel) */
.ark-upsells-mobile {
	display: none;
	padding: 24px 28px;
	background: rgba(0, 0, 0, 0.02);
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ark-upsells-mobile .ark-upsells-heading {
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--ark-primary-color, #3A4F66);
	margin: 0 0 16px;
}

/* .ark-upsells-list verwijderd — mobile gebruikt nu direct .ark-upsell-panel-list
   uit cart-drawer-upsell-panel.php. */

/* Legacy mobile upsell card CSS verwijderd — sinds de mobile-template refactor
   gebruiken zowel desktop als mobiel cart-drawer-upsell-panel.php met de
   .ark-upsell-panel-* classes. De .ark-upsell-add / .ark-upsell-select-variant
   classes blijven bestaan als JS-event hooks op de nieuwe pills, maar krijgen
   hun styling van .ark-upsell-panel-option. */

/* Extras: gift wrap en note — UITGESCHAKELD in template, verbergen via CSS
   als failsafe voor cached/oude markup. */
.ark-cart-extras {
	display: none !important;
}

.ark-gift-wrap-label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-size: 0.9rem;
	margin-bottom: 12px;
}

.ark-gift-wrap-toggle {
	accent-color: var(--ark-button-bg-color, #000000);
}

.ark-gift-price-strike {
	text-decoration: line-through;
	text-decoration-color: var(--ark-primary-color, #3A4F66);
	text-decoration-thickness: 1.5px;
	color: inherit;
}

.ark-cart-note-wrapper {
	margin-top: 8px;
	text-align: center;
}

.ark-cart-note-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: pointer;
	padding: 10px;
	font-size: 0.85rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ark-text-color, #3A4F66);
	list-style: none;
}

.ark-cart-note-toggle::-webkit-details-marker {
	display: none;
}

.ark-cart-note-input {
	width: 100%;
	margin-top: 10px;
	padding: 10px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 2px;
	font-family: inherit;
	font-size: 0.9rem;
	resize: vertical;
	text-align: left;
}

/* Footer */
.ark-cart-drawer-footer {
	flex-shrink: 0;
	padding: 20px 28px 24px;
	background: #fff;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.ark-cart-subtotal-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 6px;
}

.ark-cart-subtotal-label {
	font-size: 1.05rem;
	color: var(--ark-primary-color, #3A4F66);
	letter-spacing: 0.05em;
	font-weight: 500;
}

.ark-cart-subtotal-value {
	font-size: 1.1rem;
	font-weight: 500;
}

.ark-cart-tax-note {
	font-size: 0.75rem;
	color: rgba(0, 0, 0, 0.55);
	margin: 0 0 16px;
}

.ark-tax-included {
	/* staat naast shipping note */
}

.ark-cart-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.ark-checkout-button,
.ark-view-cart-button {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14px 12px;
	text-decoration: none;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	font-size: 0.8rem;
	font-weight: 500;
	border-radius: 2px;
	transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
	text-align: center;
	min-height: 48px;
}

.ark-checkout-button {
	background: var(--ark-button-bg-color, #000000);
	color: var(--ark-button-text-color, #fff);
	border: 1px solid var(--ark-button-bg-color, #000000);
}

.ark-checkout-button:hover {
	opacity: 0.9;
	color: var(--ark-button-text-color, #fff);
}

.ark-view-cart-button {
	background: transparent;
	color: var(--ark-text-color, #3A4F66);
	border: 1px solid rgba(0, 0, 0, 0.25);
}

.ark-view-cart-button:hover {
	background: rgba(0, 0, 0, 0.04);
	color: var(--ark-text-color, #3A4F66);
}

/* Variant popup */
.ark-variant-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	animation: arkFadeIn 0.25s ease;
}

@keyframes arkFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.ark-variant-popup {
	background: #fff;
	border-radius: 4px;
	width: 100%;
	max-width: 420px;
	padding: 28px;
	position: relative;
	max-height: 90vh;
	overflow-y: auto;
}

.ark-variant-popup-close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ark-text-color, #3A4F66);
}

.ark-variant-popup-close:hover {
	background: rgba(0, 0, 0, 0.05);
}

/* Verberg img wanneer er geen src is — voorkomt dat de browser een kapot-icoon
   laat zien als er toch ergens een lege src ingesteld wordt. */
.ark-variant-popup-image:not([src]),
.ark-variant-popup-image[src=""] {
	display: none;
}

.ark-variant-popup-image {
	width: 120px;
	height: 120px;
	object-fit: cover;
	display: block;
	margin: 0 auto 16px;
	border-radius: 2px;
}

.ark-variant-popup-title {
	font-size: 1.1rem;
	font-weight: 400;
	text-align: center;
	margin: 0 0 8px;
}

.ark-variant-popup-price {
	text-align: center;
	font-weight: 500;
	margin-bottom: 20px;
	color: var(--ark-primary-color, #3A4F66);
}

.ark-variant-attribute {
	margin-bottom: 16px;
}

.ark-variant-attribute-label {
	display: block;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 8px;
	color: rgba(0, 0, 0, 0.7);
}

.ark-variant-options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ark-variant-option {
	padding: 8px 14px;
	border: 1px solid rgba(0, 0, 0, 0.2);
	background: #fff;
	cursor: pointer;
	border-radius: 2px;
	font-size: 0.85rem;
	transition: all 0.2s ease;
}

.ark-variant-option:hover {
	border-color: var(--ark-button-bg-color, #000000);
}

.ark-variant-option.is-selected {
	background: var(--ark-button-bg-color, #000000);
	color: var(--ark-button-text-color, #fff);
	border-color: var(--ark-button-bg-color, #000000);
}

.ark-variant-option.is-unavailable {
	opacity: 0.4;
	cursor: not-allowed;
	text-decoration: line-through;
}

.ark-variant-option-color {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	padding: 0;
	border: 2px solid rgba(0, 0, 0, 0.15);
}

.ark-variant-option-color.is-selected {
	border-color: var(--ark-button-bg-color, #000000);
	box-shadow: 0 0 0 2px #fff inset;
}

.ark-variant-popup-add-btn {
	width: 100%;
	padding: 14px;
	background: var(--ark-button-bg-color, #000000);
	color: var(--ark-button-text-color, #fff);
	border: none;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	font-size: 0.9rem;
	cursor: pointer;
	border-radius: 2px;
	margin-top: 12px;
	transition: opacity 0.2s ease;
}

.ark-variant-popup-add-btn:not(:disabled):hover {
	opacity: 0.9;
}

.ark-variant-popup-add-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/* Toast meldingen */
.ark-toast-container {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1000001;
	display: flex;
	flex-direction: column;
	gap: 8px;
	pointer-events: none;
}

.ark-toast {
	background: #2C2C2C;
	color: #fff;
	padding: 12px 20px;
	border-radius: 2px;
	font-size: 0.9rem;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	animation: arkToastIn 0.3s ease;
	pointer-events: auto;
	max-width: 320px;
}

.ark-toast.is-error {
	background: #a02a2a;
}

.ark-toast.is-success {
	background: #3a7a3a;
}

@keyframes arkToastIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Loading states */
.ark-cart-drawer.is-loading .ark-cart-drawer-body::after,
.ark-cart-drawer.is-loading .ark-cart-drawer-upsell-body::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.4);
	z-index: 10;
	pointer-events: none;
}

/* Floating cart toggle button — gebruikt eigen kleur-vars zodat admin 'm
   onafhankelijk kan stylen van de checkout-knop. */
.ark-floating-cart {
	position: fixed;
	z-index: 999998;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--ark-floating-bg-color, #3A4F66);
	color: var(--ark-floating-icon-color, #ffffff);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
	padding: 0;
}

.ark-floating-cart:hover {
	transform: scale(1.05);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.ark-floating-cart:active {
	transform: scale(0.98);
}

.ark-floating-bottom-right { right: 20px; bottom: 20px; }
.ark-floating-bottom-left  { left: 20px;  bottom: 20px; }
.ark-floating-top-right    { right: 20px; top: 20px; }
.ark-floating-top-left     { left: 20px;  top: 20px; }

.ark-floating-cart .ark-cart-count {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 11px;
	background: var(--ark-floating-badge-bg-color, #000000);
	color: var(--ark-floating-badge-text-color, #ffffff);
	font-size: 0.75rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s ease;
}

.ark-floating-cart .ark-cart-count[data-count="0"] {
	display: none;
}

.ark-floating-hide-empty.is-empty {
	opacity: 0;
	pointer-events: none;
	transform: scale(0.6);
}

.ark-floating-cart.is-pulsing .ark-cart-count {
	animation: arkCartPulse 0.5s ease;
}

@keyframes arkCartPulse {
	0%   { transform: scale(1); }
	50%  { transform: scale(1.35); }
	100% { transform: scale(1); }
}

body.ark-drawer-open .ark-floating-cart {
	opacity: 0;
	pointer-events: none;
}

/* ==========================================================================
   Shortcode cart icon: [ark_cart_icon]
   Plaatsbaar in menu's, widgets, page builder elementen.
   Erft text-color van zijn parent (zodat hij overal past), drie style-varianten.
   ========================================================================== */
.ark-cart-icon-shortcode {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	position: relative;
	color: inherit;
	text-decoration: none !important;
	line-height: 1;
	cursor: pointer;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.ark-cart-icon-shortcode:hover {
	opacity: 0.75;
}

.ark-cart-icon-shortcode:active {
	transform: scale(0.96);
}

.ark-cart-icon-shortcode .ark-cart-icon-svg {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ark-cart-icon-shortcode .ark-cart-icon-svg svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* Count-badge — gebruikt dezelfde .ark-cart-count class als floating button
   zodat WooCommerce-fragments hem automatisch updaten zonder pagina-reload. */
.ark-cart-icon-shortcode .ark-cart-count {
	position: absolute;
	top: -6px;
	right: -8px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--ark-floating-badge-bg-color, #000000);
	color: var(--ark-floating-badge-text-color, #ffffff);
	font-size: 0.65rem;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	pointer-events: none;
}

.ark-cart-icon-shortcode .ark-cart-count.ark-cart-count-hidden,
.ark-cart-icon-shortcode .ark-cart-count[data-count="0"]:not(.ark-cart-count-show-zero) {
	display: none;
}

/* Style: boxed — vierkant met border */
.ark-cart-icon-shortcode.ark-cart-icon-style-boxed {
	padding: 8px 10px;
	border: 1px solid currentColor;
	border-radius: 4px;
}

/* Style: circle — rond, gevuld */
.ark-cart-icon-shortcode.ark-cart-icon-style-circle {
	padding: 10px;
	background: var(--ark-floating-bg-color, #3A4F66);
	color: var(--ark-floating-icon-color, #ffffff);
	border-radius: 50%;
}

.ark-cart-icon-shortcode.ark-cart-icon-style-circle:hover {
	opacity: 1;
	filter: brightness(0.9);
}

/* Betaalmethode iconen onder de checkout knop */
.ark-payment-icons-wrapper {
	margin-top: 16px;
	text-align: center;
}

.ark-payment-icons-heading {
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(0, 0, 0, 0.5);
	margin: 0 0 10px;
}

.ark-payment-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	align-items: center;
}

.ark-payment-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	opacity: 0.95;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.ark-payment-icon:hover {
	opacity: 1;
	transform: translateY(-1px);
}

.ark-payment-icon svg {
	display: block;
	height: 24px;
	width: auto;
}

/* =========================================================
   RESPONSIVE — dual-panel op desktop, single + inline upsell op mobiel
   ========================================================= */

/* Verberg upsell zijpaneel onder 900px, toon mobile upsell inline */
@media (max-width: 900px) {
	.ark-cart-drawer-upsell-panel {
		display: none;
	}

	.ark-cart-drawer-panel-wrap {
		width: var(--ark-drawer-width, 480px);
	}

	.ark-upsells-mobile {
		display: block;
	}
}

@media (max-width: 640px) {
	.ark-cart-drawer-panel-wrap {
		width: 100vw;
	}

	.ark-cart-drawer-panel {
		width: 100vw;
	}

	.ark-cart-drawer-header {
		padding: 18px 20px;
	}

	.ark-cart-item,
	.ark-upsells-mobile,
	.ark-cart-extras,
	.ark-cart-drawer-footer {
		padding-left: 20px;
		padding-right: 20px;
	}

	.ark-progress-wrapper {
		padding: 16px 20px;
	}

	.ark-cart-actions {
		grid-template-columns: 1fr;
	}

	.ark-floating-cart {
		width: 52px;
		height: 52px;
	}

	.ark-floating-bottom-right,
	.ark-floating-bottom-left {
		bottom: 16px;
	}

	.ark-floating-bottom-right { right: 16px; }
	.ark-floating-bottom-left  { left: 16px; }

	.ark-payment-icon svg {
		height: 20px;
	}
}
