/* Comptoir Pro: delivery (address, map with a pin, zones). Uses the free plugin variables. */

.dstk-comptoir-details__zone {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 0.9em;
	color: var(--dstk-comptoir-muted);
}

.dstk-comptoir-details__zone.is-ok {
	color: #15803d;
}

.dstk-comptoir-details__zone.is-ok::before {
	content: "✓ ";
}

.dstk-comptoir-details__zone.is-ko {
	color: #b91c1c;
}

/* -------------------------------------------------------------- Delivery map */

.dstk-comptoir-details .dstk-comptoir-fields {
	padding: 0;
	border: 0;
}

.dstk-comptoir-details__map .dstk-comptoir-hint {
	margin: 6px 0 0;
	color: var(--dstk-comptoir-muted);
	font-size: 0.85em;
}

.dstk-comptoir-map {
	height: 220px;
	border: 1px solid var(--dstk-comptoir-border);
	border-radius: 12px;
	--dstk-map-accent: var(--dstk-comptoir-accent);
}

.dstk-comptoir-map__pin {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	margin: -40px 0 0 -15px;
	color: var(--dstk-comptoir-accent);
	filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
	pointer-events: none;
	transition: transform 0.15s ease;
}

.dstk-comptoir-map.is-dragging .dstk-comptoir-map__pin {
	transform: translateY(-8px);
}


/* ---------------------------------------------- Map (assets/js/map.js) */

.dstk-map {
	position: relative;
	overflow: hidden;
	background: #e5e7eb;
}

.dstk-map:not(.is-ready)::after {
	content: "";
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(45deg, #eef0f3 0 12px, #e5e7eb 12px 24px);
}

.dstk-map__view {
	position: absolute;
	inset: 0;
	cursor: grab;
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
}

.dstk-map.is-dragging .dstk-map__view {
	cursor: grabbing;
}

.dstk-map__view:focus-visible {
	outline: 3px solid var(--dstk-map-accent, #2271b1);
	outline-offset: -3px;
}

.dstk-map__tiles img {
	position: absolute;
	top: 0;
	left: 0;
	width: 256px;
	max-width: none;
	height: 256px;
	pointer-events: none;
}

.dstk-map__overlay {
	position: absolute;
	top: 0;
	left: 0;
	overflow: visible;
	pointer-events: none;
}

.dstk-map__overlay [data-dstk-map-handle] {
	pointer-events: all;
}

.dstk-map__ctrl {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dstk-map__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: #fff;
	color: #111827;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.dstk-map__credit {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 3;
	padding: 1px 6px;
	background: rgba(255, 255, 255, 0.85);
	color: #374151;
	font-size: 11px;
}

.dstk-map__credit a {
	color: inherit;
}

.dstk-comptoir-pin {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	align-items: center;
	font-size: 0.9em;
}

.dstk-comptoir-pin.is-ok {
	color: #15803d;
}

.dstk-comptoir-pin.is-todo {
	color: #b91c1c;
}

/* ------------------------------ Courier tracking (assets/js/pro-tracking.js) */

.dstk-comptoir-track {
	margin: 10px 0;
	padding: 12px;
	border: 1px solid var(--dstk-comptoir-border);
	border-radius: 12px;
}

.dstk-comptoir-track p {
	margin: 0 0 6px;
}

.dstk-comptoir-track__status {
	font-weight: 600;
}

.dstk-comptoir-track__info,
.dstk-comptoir-track__legend {
	color: var(--dstk-comptoir-muted);
	font-size: 0.85em;
}

.dstk-comptoir-track__map {
	height: 240px;
	margin-top: 8px;
}

.dstk-comptoir-track__legend {
	display: flex;
	gap: 14px;
	margin-top: 6px !important;
}

.dstk-comptoir-track__legend span::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 5px;
	border-radius: 50%;
	vertical-align: -1px;
}

.dstk-comptoir-track__legend .is-courier::before {
	background: #2563eb;
}

.dstk-comptoir-track__legend .is-you::before {
	background: #dc2626;
}
