/* Grouped shipping methods (pickup / courier / store pickup) */
ul#shipping_method.tc-shipping-methods {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: left;
}

.tc-shipping-methods__heading {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0.55rem 0.85rem;
	background: #f4f5f6;
	border: 1px solid #e2e2e2;
	border-bottom: none;
	border-radius: 8px 8px 0 0;
	list-style: none;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-transform: uppercase;
	color: #3a3a3a;
}

.tc-shipping-methods__heading:not(:first-child) {
	margin-top: 0.85rem;
}

.tc-shipping-methods__heading-icon {
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

.tc-shipping-methods__heading-icon--pickup {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-11a7 7 0 1 0-14 0c0 4.8 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-11a7 7 0 1 0-14 0c0 4.8 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
}

.tc-shipping-methods__heading-icon--courier {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='7' width='15' height='10' rx='1.5'/%3E%3Cpath d='M16 11h4l3 3v3h-7'/%3E%3Ccircle cx='6.5' cy='18.5' r='1.8'/%3E%3Ccircle cx='18.5' cy='18.5' r='1.8'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='7' width='15' height='10' rx='1.5'/%3E%3Cpath d='M16 11h4l3 3v3h-7'/%3E%3Ccircle cx='6.5' cy='18.5' r='1.8'/%3E%3Ccircle cx='18.5' cy='18.5' r='1.8'/%3E%3C/svg%3E");
}

.tc-shipping-methods__heading-icon--local {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 4l9 6.5'/%3E%3Cpath d='M5 10v9h14v-9'/%3E%3Cpath d='M10 19v-6h4v6'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 4l9 6.5'/%3E%3Cpath d='M5 10v9h14v-9'/%3E%3Cpath d='M10 19v-6h4v6'/%3E%3C/svg%3E");
}

ul#shipping_method.tc-shipping-methods > li.tc-shipping-methods__method {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin: 0;
	padding: 0;
	background: #fff;
	border-left: 1px solid #e2e2e2;
	border-right: 1px solid #e2e2e2;
	border-bottom: 1px solid #eee;
	list-style: none;
}

ul#shipping_method.tc-shipping-methods > li.tc-shipping-methods__method--last {
	border-bottom: 1px solid #e2e2e2;
	border-radius: 0 0 8px 8px;
}

ul#shipping_method.tc-shipping-methods > li.tc-shipping-methods__method:hover {
	background: #fafafa;
}

ul#shipping_method.tc-shipping-methods > li.tc-shipping-methods__method:has(input:checked) {
	background: #f4faf5;
}

ul#shipping_method.tc-shipping-methods > li.tc-shipping-methods__method > input[type="radio"] {
	clip: auto !important;
	clip-path: none !important;
	position: static !important;
	flex: 0 0 auto;
	width: 1.05em;
	height: 1.05em;
	margin: 0 0 0 0.9rem;
	accent-color: #3bb54a;
}

ul#shipping_method.tc-shipping-methods > li.tc-shipping-methods__method > label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 1 1 auto;
	gap: 0.75rem;
	margin: 0;
	padding: 0.8rem 0.9rem 0.8rem 0;
	cursor: pointer;
	font-weight: 400;
	line-height: 1.35;
	text-align: left;
}

ul#shipping_method.tc-shipping-methods > li.tc-shipping-methods__method > label:before {
	display: none !important;
}

ul#shipping_method.tc-shipping-methods > li.tc-shipping-methods__method:has(input:checked) > label {
	font-weight: 600;
}

ul#shipping_method.tc-shipping-methods li span.amount {
	float: none;
	margin-left: auto;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	color: #111;
}

.woocommerce-checkout .tc-czech-shipping-pickup th,
.woocommerce-checkout .tc-czech-shipping-pickup td {
	padding-top: 0.35rem;
}

ul#shipping_method.tc-shipping-methods > li.tc-shipping-methods__pickup-slot {
	display: block;
	margin: 0;
	padding: 0.75rem 0.9rem 0.9rem;
	list-style: none;
	background: #f4faf5;
	border-left: 1px solid #e2e2e2;
	border-right: 1px solid #e2e2e2;
	border-bottom: 1px solid #e2e2e2;
	border-radius: 0 0 8px 8px;
}

ul#shipping_method.tc-shipping-methods > li.tc-shipping-methods__pickup-slot[hidden] {
	display: none !important;
}

ul#shipping_method.tc-shipping-methods:has(#tc-czech-shipping-pickup-slot:not([hidden])) > li.tc-shipping-methods__method--last[data-tc-shipping-group="pickup"] {
	border-radius: 0;
	border-bottom: 1px solid #eee;
}

.tc-czech-shipping-pickup__heading {
	margin: 0 0 0.5rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #3a3a3a;
}

.tc-czech-shipping-pickup__root {
	display: block;
}

.tc-czech-shipping-pickup__root[hidden] {
	display: none !important;
}

.tc-czech-shipping-pickup__selected {
	margin-top: 0.75rem;
	padding: 0.75rem;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	background: #f6f7f7;
	font-size: 0.95em;
}

.tc-czech-shipping-pickup__label {
	display: block;
	margin-bottom: 0.25rem;
}

.tc-czech-shipping-pickup__notice {
	margin-top: 0.75rem;
	padding: 0.65rem 0.75rem;
	border-radius: 6px;
	font-size: 0.92em;
	line-height: 1.4;
}

.tc-czech-shipping-pickup__notice--info {
	background: #e7f5ea;
	border: 1px solid #b7e0c0;
	color: #1e4620;
}

.tc-czech-shipping-pickup__notice--error {
	background: #fde8e8;
	border: 1px solid #f0b4b4;
	color: #8a1f1f;
}

.tc-czech-shipping-map-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(0, 0, 0, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.tc-czech-shipping-map-modal[hidden] {
	display: none !important;
}

.tc-czech-shipping-map-modal__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(1100px, 100%);
	height: min(82vh, 760px);
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.tc-czech-shipping-map-modal__close {
	position: absolute;
	top: 8px;
	right: 10px;
	z-index: 3;
	border: 0;
	background: #1d2327;
	color: #fff;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.tc-czech-shipping-map-modal__layout {
	display: flex;
	flex: 1 1 auto;
	min-height: 0;
	height: 100%;
}

.tc-czech-shipping-map-modal__filters {
	flex: 0 0 240px;
	width: 240px;
	padding: 1.15rem 1rem 1rem;
	background: #f6f7f7;
	border-right: 1px solid #e2e2e2;
	overflow: auto;
}

.tc-czech-shipping-map-modal__filters-title {
	margin: 0 0 0.75rem;
	padding-right: 2.25rem;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #3a3a3a;
}

.tc-czech-shipping-map-modal__filters-list {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.tc-czech-shipping-map-modal__filter {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 0;
	font-size: 0.92em;
	line-height: 1.35;
	cursor: pointer;
}

.tc-czech-shipping-map-modal__filter input {
	flex: 0 0 auto;
	margin: 0.15rem 0 0;
	accent-color: #3bb54a;
}

.tc-czech-shipping-map-modal__filter-text {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.tc-czech-shipping-map-modal__filter-name {
	line-height: 1.3;
}

.tc-czech-shipping-map-modal__filter-price {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: #111;
	white-space: nowrap;
}

.tc-czech-shipping-map-modal__filter--cod {
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid #e2e2e2;
}

.tc-czech-shipping-map-modal__map {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	position: relative;
}

.tc-czech-shipping-map-modal__status {
	flex: 0 0 auto;
	margin: 0.75rem 1rem 0;
	padding: 0.7rem 0.85rem;
	background: #fecaca;
	color: #991b1b;
	border: 1px solid #f87171;
	border-radius: 6px;
	font-size: 0.92em;
	line-height: 1.4;
}

.tc-czech-shipping-map-modal__status[hidden] {
	display: none !important;
}

.tc-czech-shipping-map-modal__widget {
	flex: 1 1 auto;
	width: 100%;
	min-height: 0;
	height: 100%;
}

@media (max-width: 720px) {
	.tc-czech-shipping-map-modal {
		padding: 0.5rem;
	}

	.tc-czech-shipping-map-modal__dialog {
		width: 100%;
		height: min(92vh, 820px);
	}

	.tc-czech-shipping-map-modal__layout {
		flex-direction: column;
	}

	.tc-czech-shipping-map-modal__filters {
		flex: 0 0 auto;
		width: 100%;
		max-height: 32%;
		border-right: 0;
		border-bottom: 1px solid #e2e2e2;
	}

	.tc-czech-shipping-map-modal__filters-list {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.tc-czech-shipping-map-modal__filter {
		min-width: calc(50% - 0.5rem);
	}

	.tc-czech-shipping-map-modal__filter--cod {
		min-width: 100%;
	}
}

#tc-czech-shipping-map-widget .leaflet-popup-content {
	margin: 0;
	width: auto !important;
}

#tc-czech-shipping-map-widget .leaflet-popup-content-wrapper {
	border-radius: 8px;
	overflow: hidden;
}

#tc-czech-shipping-map-widget .bp-marker-desc.tc-czech-shipping-hover {
	width: 260px !important;
	height: auto !important;
	min-height: 0;
	overflow: visible !important;
	padding: 0;
	background: #fff;
	color: #1d2327;
	font-size: 13px;
	line-height: 1.35;
}

.tc-czech-shipping-hover__top {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.55rem 0.7rem;
	background: #f7fbfe;
	border-bottom: 1px solid #e6eef4;
}

.tc-czech-shipping-hover__logo {
	flex: 0 0 40px;
	width: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tc-czech-shipping-hover__logo img {
	max-width: 36px;
	max-height: 36px;
	display: block;
}

.tc-czech-shipping-hover__titles {
	min-width: 0;
}

.tc-czech-shipping-hover__operator {
	font-weight: 700;
	font-size: 0.95em;
}

.tc-czech-shipping-hover__shop {
	color: #44535d;
	font-size: 0.85em;
}

.tc-czech-shipping-hover__address,
.tc-czech-shipping-hover__hours,
.tc-czech-shipping-hover__shipping,
.tc-czech-shipping-hover__cod {
	padding: 0.35rem 0.7rem 0;
}

.tc-czech-shipping-hover__address {
	color: #2c3338;
}

.tc-czech-shipping-hover__hours {
	font-weight: 600;
}

.tc-czech-shipping-hover__shipping {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: #111;
}

.tc-czech-shipping-hover__cod {
	padding-bottom: 0.6rem;
	color: #3a3a3a;
}

/* Alsendo widget: keep Seznam / search, hide footer and native filters. */
#tc-czech-shipping-map-widget #BPWidgetFooter,
#tc-czech-shipping-map-widget .bp-footer,
#tc-czech-shipping-map-widget #BPWidgetFiltersButton,
#tc-czech-shipping-map-widget #BPWidgetFilters {
	display: none !important;
}

#tc-czech-shipping-map-widget .bp-map {
	bottom: 0;
	z-index: auto;
}

#tc-czech-shipping-map-widget .bp-list,
#tc-czech-shipping-map-widget .bp-pos-info,
#tc-czech-shipping-map-widget .bp-filters {
	padding-bottom: 0;
}

/* Hover balloon above the Seznam/search bar; details/list stay above the balloon. */
#tc-czech-shipping-map-widget .leaflet-pane {
	z-index: 1;
}

#tc-czech-shipping-map-widget .leaflet-popup-pane,
#tc-czech-shipping-map-widget .tc-czech-shipping-hover {
	z-index: 21;
}

#tc-czech-shipping-map-widget .bp-pos-info,
#tc-czech-shipping-map-widget .bp-list {
	z-index: 22;
}
