#dhl-pudo-wrapper {
	margin: 16px 0;
}

#dhl-pudo-wrapper[hidden] {
	display: none;
}

#dhl-pudo-wrapper .button {
	margin-bottom: 10px;
}

.dhl-pudo-selected {
	background: #f8f9fa;
	border: 1px solid #e2e5ea;
	border-radius: 8px;
	padding: 10px 14px;
}

.dhl-pudo-selected-label {
	font-weight: 600;
	margin-right: 6px;
}

.dhl-pudo-status {
	margin: 10px 0 0;
}

.dhl-pudo-status.is-error,
.dhl-pudo-list-status.is-error {
	color: #b32d2e;
}

.dhl-pudo-status.is-info,
.dhl-pudo-list-status.is-info {
	color: #135e96;
}

/* Modal shell */

.dhl-pudo-modal {
	align-items: center;
	display: none;
	inset: 0;
	justify-content: center;
	padding: 16px;
	position: fixed;
	z-index: 9999;
}

.dhl-pudo-modal.is-open {
	display: flex;
}

.dhl-pudo-modal-overlay {
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	background: rgba(0, 0, 0, 0.6);
	inset: 0;
	position: absolute;
}

.dhl-pudo-modal-content {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
	display: flex;
	flex-direction: column;
	height: min(820px, 92vh);
	overflow: hidden;
	position: relative;
	width: min(1100px, 96vw);
	z-index: 1;
}

.dhl-pudo-modal-header {
	align-items: center;
	background: #fff;
	border-bottom: 1px solid #eceef1;
	display: flex;
	flex-shrink: 0;
	justify-content: space-between;
	padding: 18px 24px;
}

.dhl-pudo-modal-heading {
	align-items: center;
	display: flex;
	gap: 12px;
}

.dhl-pudo-modal-logo {
	display: block;
	height: 28px;
	width: auto;
}

.dhl-pudo-modal-header h3 {
	color: #111418;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.3;
	margin: 0;
	padding: 0;
}

.dhl-pudo-modal-close {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 50%;
	color: #6b7280;
	cursor: pointer;
	display: flex;
	font-size: 22px;
	height: 34px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	transition: background-color 0.15s ease, color 0.15s ease;
	width: 34px;
}

.dhl-pudo-modal-close:hover {
	background: #f3f4f6;
	color: #111418;
}

.dhl-pudo-modal-close[hidden] {
	display: none;
}

.dhl-pudo-modal-body {
	display: grid;
	flex: 1;
	grid-template-columns: minmax(300px, 36%) 1fr;
	min-height: 0;
	padding: 0;
}

/* Sidebar */

.dhl-pudo-sidebar {
	border-right: 1px solid #eceef1;
	display: flex;
	flex-direction: column;
	min-height: 0;
	padding: 20px;
	position: relative;
}

.dhl-pudo-sidebar-list {
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.dhl-pudo-sidebar-list[hidden] {
	display: none;
}

.dhl-pudo-search-row {
	flex-shrink: 0;
	margin-bottom: 12px;
	position: relative;
}

.dhl-pudo-search-icon {
	color: #9ca3af;
	height: 17px;
	left: 14px;
	pointer-events: none;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 17px;
}

.dhl-pudo-search-input,
input[type="search"].dhl-pudo-search-input {
	background: #fff;
	border: 1px solid #e2e5ea;
	border-radius: 10px;
	box-shadow: none;
	box-sizing: border-box;
	color: #111418;
	font-size: 14px;
	line-height: 1.4;
	min-height: 44px;
	min-width: 0;
	padding: 10px 14px 10px 40px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	width: 100%;
}

.dhl-pudo-search-input:focus,
input[type="search"].dhl-pudo-search-input:focus {
	border-color: #d40511;
	box-shadow: 0 0 0 3px rgba(212, 5, 17, 0.12);
	outline: none;
}

.dhl-pudo-count {
	color: #6b7280;
	flex-shrink: 0;
	font-size: 12.5px;
	margin: 0 0 12px;
	padding: 0 2px;
}

.dhl-pudo-count[hidden] {
	display: none;
}

.dhl-pudo-list-status {
	flex-shrink: 0;
	font-size: 13px;
	margin: 0 0 10px;
	padding: 0 2px;
}

.dhl-pudo-list-status[hidden] {
	display: none;
}

/* Locker list */

.dhl-pudo-locker-list {
	flex: 1;
	list-style: none;
	margin: 0;
	min-height: 0;
	overflow-y: auto;
	padding: 2px 6px 2px 2px;
	scrollbar-width: thin;
	scrollbar-color: #d5d8dd transparent;
}

.dhl-pudo-locker-list::-webkit-scrollbar {
	width: 6px;
}

.dhl-pudo-locker-list::-webkit-scrollbar-thumb {
	background: #d5d8dd;
	border-radius: 3px;
}

.dhl-pudo-locker-item {
	border: 1px solid #e8eaee;
	border-radius: 12px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin: 0 0 10px;
	padding: 12px 40px 12px 14px;
	position: relative;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.dhl-pudo-locker-item:hover {
	background: #fafafa;
	border-color: #c9cdd4;
}

.dhl-pudo-locker-item strong {
	color: #111418;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}

.dhl-pudo-locker-item.is-selected {
	background: #fff6f6;
	border-color: #d40511;
	box-shadow: 0 0 0 1px #d40511;
}

.dhl-pudo-locker-item.is-selected::after {
	background: #d40511;
	border-radius: 50%;
	color: #fff;
	content: "\2713";
	font-size: 12px;
	font-weight: 700;
	height: 20px;
	line-height: 20px;
	position: absolute;
	right: 12px;
	text-align: center;
	top: 12px;
	width: 20px;
}

.dhl-pudo-locker-type {
	align-self: flex-start;
	border: 1px solid #d1d5db;
	border-radius: 3px;
	color: #4b5563;
	font-size: 11px;
	letter-spacing: 0.02em;
	line-height: 1.6;
	padding: 0 6px;
	text-transform: uppercase;
}

.dhl-pudo-locker-type.is-locker {
	background: #fef3c7;
	border-color: #fcd34d;
	color: #92400e;
}

.dhl-pudo-locker-type.is-servicepoint {
	background: #e0e7ff;
	border-color: #a5b4fc;
	color: #3730a3;
}

.dhl-pudo-locker-address {
	color: #6b7280;
	font-size: 13px;
	line-height: 1.4;
}

.dhl-pudo-locker-hours {
	color: #6b7280;
	font-size: 12px;
	line-height: 1.4;
}

/* Sidebar detail view */

.dhl-pudo-sidebar-detail {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
}

.dhl-pudo-sidebar-detail[hidden] {
	display: none;
}

.dhl-pudo-detail-close {
	align-items: center;
	align-self: flex-end;
	background: transparent;
	border: 0;
	border-radius: 50%;
	color: #6b7280;
	cursor: pointer;
	display: flex;
	flex-shrink: 0;
	font-size: 20px;
	height: 32px;
	justify-content: center;
	line-height: 1;
	margin-bottom: 4px;
	padding: 0;
	transition: background-color 0.15s ease, color 0.15s ease;
	width: 32px;
}

.dhl-pudo-detail-close:hover {
	background: #f3f4f6;
	color: #111418;
}

.dhl-pudo-detail-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	min-height: 0;
	overflow-y: auto;
}

.dhl-pudo-detail-name {
	color: #111418;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	margin: 4px 0 0;
}

.dhl-pudo-detail-address,
.dhl-pudo-detail-hours {
	color: #4b5563;
	font-size: 13.5px;
	line-height: 1.5;
	margin: 0;
}

.dhl-pudo-detail-select {
	flex-shrink: 0;
	margin-top: 16px;
	width: 100%;
}

/* Loading state */

.dhl-pudo-sidebar.is-loading .dhl-pudo-locker-list,
.dhl-pudo-sidebar.is-loading .dhl-pudo-count {
	opacity: 0.45;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

.dhl-pudo-map.is-loading::after {
	background: rgba(255, 255, 255, 0.55);
	content: "";
	inset: 0;
	position: absolute;
	z-index: 1200;
}

.dhl-pudo-map.is-loading::before {
	animation: dhl-pudo-spin 0.7s linear infinite;
	border: 3px solid rgba(212, 5, 17, 0.2);
	border-radius: 50%;
	border-top-color: #d40511;
	content: "";
	height: 30px;
	left: 50%;
	margin: -15px 0 0 -15px;
	position: absolute;
	top: 50%;
	width: 30px;
	z-index: 1201;
}

@keyframes dhl-pudo-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Map */

.dhl-pudo-map-wrap {
	position: relative;
	display: flex;
	min-height: 0;
}

.dhl-pudo-area-search {
	position: absolute;
	top: 14px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 800;
	background: #fff;
	color: #d40511;
	border: 1px solid #e2e5ea;
	border-radius: 999px;
	padding: 8px 18px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(17, 20, 24, 0.18);
	transition: background 0.15s ease, transform 0.15s ease;
}

.dhl-pudo-area-search:hover {
	background: #fff5f5;
	transform: translateX(-50%) translateY(-1px);
}

.dhl-pudo-map {
	height: 100%;
	min-height: 420px;
	position: relative;
	width: 100%;
}

.dhl-pudo-marker {
	background: transparent;
	border: 0;
}

.dhl-pudo-marker svg {
	display: block;
	filter: drop-shadow(0 2px 3px rgba(17, 20, 24, 0.35));
	height: 100%;
	transition: transform 0.15s ease;
	transform-origin: 50% 100%;
	width: 100%;
}

.dhl-pudo-marker .dhl-pudo-marker-pin {
	fill: #d40511;
	stroke: #fff;
	stroke-width: 1.5;
}

.dhl-pudo-marker .dhl-pudo-marker-glyph {
	fill: #fff;
}

.dhl-pudo-marker .dhl-pudo-marker-glyph-window {
	fill: rgba(255, 255, 255, 0.6);
}

.dhl-pudo-marker.is-active svg,
.dhl-pudo-marker.is-selected svg {
	transform: scale(1.18);
}

.dhl-pudo-marker.is-active .dhl-pudo-marker-pin {
	fill: #ffcc00;
	stroke: #111418;
	stroke-width: 1;
}

.dhl-pudo-marker.is-active .dhl-pudo-marker-glyph,
.dhl-pudo-marker.is-active .dhl-pudo-marker-glyph-window {
	fill: #111418;
}

.dhl-pudo-marker.is-selected .dhl-pudo-marker-pin {
	fill: #1a8f4c;
	stroke: #fff;
	stroke-width: 1.5;
}

.dhl-pudo-btn,
button.dhl-pudo-btn {
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid transparent;
	border-radius: 10px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	margin: 0;
	padding: 12px 22px;
	text-transform: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.dhl-pudo-btn-primary,
button.dhl-pudo-btn-primary {
	background: #d40511;
	color: #fff;
}

.dhl-pudo-btn-primary:hover:not(:disabled),
button.dhl-pudo-btn-primary:hover:not(:disabled) {
	background: #b10410;
	color: #fff;
}

.dhl-pudo-btn-primary:disabled,
button.dhl-pudo-btn-primary:disabled {
	cursor: not-allowed;
	opacity: 0.4;
}

body.dhl-pudo-modal-open {
	overflow: hidden;
}

#place_order.dhl-place-order-disabled {
	opacity: 0.6;
}

.dhl-place-order-warning {
	color: #e2401c;
	font-size: 0.85em;
	margin-top: 8px;
}

@media (max-width: 640px) {
	.dhl-pudo-modal {
		padding: 8px;
	}

	.dhl-pudo-modal-content {
		border-radius: 12px;
		height: 94vh;
	}

	.dhl-pudo-modal-body {
		grid-template-columns: 1fr;
		grid-template-rows: minmax(0, 45%) 1fr;
	}

	.dhl-pudo-sidebar {
		border-bottom: 1px solid #eceef1;
		border-right: 0;
		padding: 14px 16px;
	}

	.dhl-pudo-modal-header {
		padding: 14px 16px;
	}

	.dhl-pudo-modal-logo {
		height: 22px;
	}

	.dhl-pudo-map {
		min-height: 240px;
	}
}
