/* ── ACS SmartPoint Modal ─────────────────────────── */
.acs-sp-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9998;
	visibility: hidden;
	opacity: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: opacity .2s ease, visibility .2s ease;
	background: rgba(0, 0, 0, .55);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
}

.acs-sp-container {
	position: relative;
	width: 92%;
	max-width: 1100px;
	height: 88vh;
	overflow: hidden;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
	background: #fff;
}

/* ── Header ──────────────────────────────────────── */
.webexpert-acs-sp-header {
	position: absolute;
	width: 100%;
	text-align: center;
	z-index: 20;
	background: #fff;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-bottom: 1px solid #eee;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

.webexpert-acs-sp-header img {
	display: block;
	margin: auto;
}

.webexpert-acs-sp-close-btn {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border-radius: 50%;
	transition: background .15s;
}

.webexpert-acs-sp-close-btn:hover {
	background: #f0f0f0;
}

.webexpert-acs-sp-close-btn img {
	width: 22px;
	height: 22px;
	pointer-events: none;
}

.webexpert-acs-sp-sidebar-close-btn {
	position: absolute;
	top: 50%;
	left: 12px;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border-radius: 50%;
	transition: background .15s;
}

.webexpert-acs-sp-sidebar-close-btn:hover {
	background: #f0f0f0;
}

.webexpert-acs-sp-sidebar-close-btn img {
	width: 22px;
	height: 22px;
	pointer-events: none;
}

/* ── Footer ──────────────────────────────────────── */
.acs-sp-footer {
	display: none;
}

/* ── Body / Map ──────────────────────────────────── */
.acs-sp-body {
	width: 100%;
	height: 100%;
}

.acs-sp-map {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}

/* ── Search bar ──────────────────────────────────── */
.webexpert-acs-sp-search-wrapper {
	position: absolute;
	width: 100%;
	top: 72px;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	padding: 0 16px;
	box-sizing: border-box;
}

.webexpert-acs-sp-search-inner-wrapper {
	display: flex;
	align-items: center;
	background: #fff;
	border-radius: 28px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
	max-width: 420px;
	width: 100%;
	overflow: hidden;
}

#webexpert-acs-sp-postcode-input {
	flex: 1;
	background: transparent;
	border: none;
	padding: 10px 16px;
	font-size: 14px;
	outline: none;
	min-width: 0;
}

#webexpert-acs-sp-postcode-input:focus {
	outline: none;
	box-shadow: none;
}

#webexpert-acs-map-search-btn,
#webexpert-acs-map-geolocate {
	background: transparent;
	border: none;
	width: 38px;
	height: 38px;
	padding: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border-radius: 50%;
	transition: background .15s;
	margin: 0;
}

#webexpert-acs-map-search-btn:hover,
#webexpert-acs-map-geolocate:hover {
	background: #f0f0f0;
}

#webexpert-acs-map-geolocate img,
#webexpert-acs-map-search-btn img {
	width: 18px;
	height: 18px;
	pointer-events: none;
	opacity: .6;
	transition: opacity .15s;
}

#webexpert-acs-map-geolocate:hover img,
#webexpert-acs-map-search-btn:hover img {
	opacity: 1;
}

/* ── Reload lockers button (in header) ───────────── */
#webexpert-acs-reload-lockers {
	position: absolute;
	top: 50%;
	right: 52px;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 5px 12px;
	background: transparent;
	border: 1px solid #ddd;
	border-radius: 16px;
	font-size: 12px;
	font-weight: 500;
	color: #555;
	cursor: pointer;
	transition: background .15s, border-color .15s;
	white-space: nowrap;
	z-index: 2;
}

#webexpert-acs-reload-lockers:hover {
	background: #f5f5f5;
	border-color: #bbb;
}

#webexpert-acs-reload-lockers .acs-reload-icon {
	flex-shrink: 0;
	transition: transform .3s;
}

#webexpert-acs-reload-lockers.acs-loading {
	pointer-events: none;
	opacity: .85;
}

#webexpert-acs-reload-lockers.acs-loading .acs-reload-icon {
	animation: acs-spin .8s linear infinite;
}

@keyframes acs-spin {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}

/* ── Sidebar ─────────────────────────────────────── */
.webexpert-acs-sp-sidebar {
	position: absolute;
	height: calc(100% - 60px);
	width: 300px;
	transform: translateX(-100%);
	transition: transform .3s cubic-bezier(.4, 0, .2, 1);
	background: #fff;
	top: 60px;
	left: 0;
	z-index: 2;
	border-right: 1px solid #eee;
	box-shadow: 2px 0 8px rgba(0, 0, 0, .06);
}

.webexpert-acs-sp-sidebar.open {
	transform: translateX(0);
}

.webexpert-acs-sp-sidebar-points-list-wrapper {
	height: 100%;
	overflow: hidden;
}

.webexpert-acs-sp-sidebar-points-list {
	overflow-y: auto;
	height: 100%;
	padding: 8px 0;
	-webkit-overflow-scrolling: touch;
}

.webexpert-acs-sp-sidebar-points-list-item {
	display: flex;
	align-items: center;
	padding: 12px 16px;
	text-decoration: none !important;
	color: #555;
	font-size: 13px;
	line-height: 1.4;
	transition: background .15s;
	border-left: 3px solid transparent;
}

.webexpert-acs-sp-sidebar-points-list-item:hover {
	background: #fafafa;
	border-left-color: #ddd;
}

.webexpert-acs-sp-sidebar-points-list-item.active {
	background: #fef2f2;
	border-left-color: #e31e24;
}

.webexpert-acs-sp-sidebar-points-list-item.active .webexpert-acs-sp-sidebar-points-list-item-title {
	color: #e31e24;
}

.webexpert-acs-sp-sidebar-points-list-item img {
	width: 28px;
	height: 33px;
	object-fit: contain;
	flex-shrink: 0;
}

.webexpert-acs-sp-sidebar-points-list-item-content {
	display: flex;
	flex-direction: column;
	padding-left: 10px;
	min-width: 0;
}

.webexpert-acs-sp-sidebar-points-list-item-title {
	font-weight: 600;
	color: #1a1a1a;
	font-size: 13px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.webexpert-acs-sp-sidebar-points-list-item-address {
	color: #888;
	font-size: 12px;
	margin-top: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ── Google InfoWindow overrides ─────────────────── */
.gm-style-iw-chr {
	display: none !important;
}

.gm-style-iw-c {
	padding: 0 !important;
	border-radius: 10px !important;
	box-shadow: 0 4px 20px rgba(0, 0, 0, .15) !important;
	max-width: 340px !important;
	overflow: hidden !important;
}

.gm-style-iw-d {
	overflow: hidden !important;
	max-height: none !important;
}

.gm-style-iw-tc {
	display: none !important;
}

/* ── InfoWindow content ──────────────────────────── */
.acs-big-infowindow {
	width: 310px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 13px;
}

.webexpert-acs-iw-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	background: #f8f8f8;
	border-bottom: 1px solid #eee;
	border-radius: 10px 10px 0 0;
}

.acs-iw-title {
	font-weight: 700;
	font-size: 14px;
	color: #1a1a1a;
	flex: 1;
	padding-right: 8px;
}

.webexpert-acs-iw-close {
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: #999;
	text-decoration: none !important;
	border-radius: 50%;
	transition: background .15s, color .15s;
	flex-shrink: 0;
	line-height: 1;
}

.webexpert-acs-iw-close:hover {
	background: #eee;
	color: #333;
}

.webexpert-acs-iw-body {
	padding: 14px 16px;
}

/* Info rows */
.webexpert-acs-iw-row {
	margin: 0 0 8px;
	color: #444;
	font-size: 13px;
	line-height: 1.5;
	display: flex;
	align-items: flex-start;
	gap: 4px;
}

.webexpert-acs-iw-row:last-child {
	margin-bottom: 0;
}

.acs-iw-icon {
	flex-shrink: 0;
	width: 18px;
	text-align: center;
}

.webexpert-acs-iw-row.webexpert-acs-iw-shop-services {
	font-size: 11px;
	color: #888;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.webexpert-acs-iw-row.webexpert-acs-iw-note {
	font-size: 11px;
	color: #999;
	font-style: italic;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* COD badge */
.acs-iw-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 600;
}

.acs-iw-badge-green {
	background: #e8f5e9;
	color: #2e7d32;
}

/* Working hours */
.acs-iw-hours {
	background: #f9f9f9;
	padding: 10px 12px;
	margin: 12px 0;
	border-radius: 8px;
	border: 1px solid #f0f0f0;
}

.acs-iw-hours-title {
	font-weight: 600;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: #666;
	margin-bottom: 6px;
}

.acs-iw-hour-row {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	padding: 3px 0;
	color: #444;
}

.acs-iw-hour-row.acs-iw-closed {
	color: #bbb;
}

/* Select button */
.webexpert-acs-iw-selected {
	display: block;
	width: 100%;
	padding: 10px;
	margin-top: 14px;
	background: #e31e24 !important;
	color: #fff !important;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s, transform .1s;
	text-align: center;
	letter-spacing: .01em;
}

.webexpert-acs-iw-selected:hover {
	background: #c41a1f !important;
}

.webexpert-acs-iw-selected:active {
	transform: scale(.98);
}

/* ── Google autocomplete dropdown ────────────────── */
.pac-container {
	z-index: 999999 !important;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
	border: none;
	margin-top: 4px;
}

/* ── Accessibility ───────────────────────────────── */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

/* ── Checkout shipping label UI ──────────────────── */
.we-acs-selected-locker {
	line-height: 1.5;
}

/* ── Responsive: Tablet ──────────────────────────── */
@media (max-width: 1024px) {
	.acs-sp-container {
		width: 96%;
		height: 92vh;
		margin: 0;
		border-radius: 10px;
	}

	.webexpert-acs-sp-sidebar {
		width: 260px;
	}

	.acs-big-infowindow {
		width: 280px;
	}
}

/* ── Responsive: Mobile ──────────────────────────── */
@media (max-width: 575.98px) {
	.acs-sp-wrapper {
		align-items: flex-end;
	}

	.acs-sp-container {
		width: 100%;
		height: 95vh;
		border-radius: 16px 16px 0 0;
		margin: 0;
	}

	.webexpert-acs-sp-search-wrapper {
		padding: 0 10px;
	}

	.webexpert-acs-sp-search-inner-wrapper {
		max-width: 100%;
	}

	.webexpert-acs-sp-sidebar {
		width: 100%;
		height: 45%;
		top: auto;
		bottom: 0;
		left: 0;
		transform: translateY(100%);
		border-right: none;
		border-top: 1px solid #eee;
		border-radius: 16px 16px 0 0;
		box-shadow: 0 -4px 16px rgba(0, 0, 0, .1);
	}

	.webexpert-acs-sp-sidebar.open {
		transform: translateY(0);
	}

	/* InfoWindow */
	.gm-style-iw-c {
		max-width: calc(100vw - 60px) !important;
	}

	.acs-big-infowindow {
		width: 100%;
		max-width: none;
	}

	.webexpert-acs-iw-row.webexpert-acs-iw-shop-services,
	.webexpert-acs-iw-row.webexpert-acs-iw-note {
		display: none;
	}

	.acs-iw-hours {
		padding: 8px 10px;
		margin: 8px 0;
	}

	.webexpert-acs-iw-selected {
		padding: 12px;
		font-size: 15px;
	}
}
