.pb-gpm-wrap {
	position: relative;
	width: 100%;
	border-radius: 14px;
	background: #f3f3f3;
}

.pb-gpm-layout {
	display: grid;
	grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
	align-items: stretch;
	width: 100%;
	height: var(--pb-gpm-map-height, 600px);
	min-height: var(--pb-gpm-map-height, 600px);
	border-radius: 14px;
	overflow: hidden;
	background: #f3f3f3;
}

.pb-gpm-wrap--no-panel .pb-gpm-layout {
	grid-template-columns: minmax(0, 1fr);
}

.pb-gpm-map-area {
	position: relative;
	z-index: 1;
	width: 100%;
	height: var(--pb-gpm-map-height, 600px);
	min-width: 0;
	min-height: var(--pb-gpm-map-height, 600px);
	background: #f3f3f3;
}

.pb-gpm-canvas {
	display: block;
	width: 100% !important;
	height: 100% !important;
	min-height: var(--pb-gpm-map-height, 600px);
	background: #f3f3f3;
}

.pb-gpm-canvas > div {
	min-height: var(--pb-gpm-map-height, 600px);
}

.pb-gpm-panel {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: var(--pb-gpm-map-height, 600px);
	min-height: var(--pb-gpm-map-height, 600px);
	border-right: 1px solid rgba(17, 17, 17, 0.08);
	background: #fff;
	color: #111;
}

.pb-gpm-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex: 0 0 auto;
	padding: 16px;
	border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.pb-gpm-panel__title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	color: #111;
}

.pb-gpm-panel__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 24px;
	padding: 0 8px;
	border-radius: 999px;
	background: rgba(41, 52, 120, 0.09);
	color: #293478;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.pb-gpm-panel__list {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior: contain;
}

.pb-gpm-panel-item {
	display: grid;
	gap: 5px;
	width: 100%;
	padding: 13px 16px;
	border: 0;
	border-bottom: 1px solid rgba(17, 17, 17, 0.07);
	background: #fff;
	color: #111;
	text-align: left;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease;
}

.pb-gpm-panel-item:hover,
.pb-gpm-panel-item.is-active {
	background: rgba(41, 52, 120, 0.07);
}

.pb-gpm-panel-item__title {
	display: block;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
	color: #111;
	overflow-wrap: anywhere;
}

.pb-gpm-panel-item__address {
	display: block;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.35;
	color: rgb(89, 98, 110);
	overflow-wrap: anywhere;
}

.pb-gpm-status {
	position: absolute;
	left: 16px;
	bottom: 16px;
	z-index: 4;
	max-width: min(420px, calc(100% - 32px));
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
	color: rgb(89, 98, 110);
	font-family: inherit;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.pb-gpm-status.is-hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.pb-gpm-status--error {
	color: #9b1c1c;
}

.pb-gpm-status--success {
	color: #1f6b3b;
}

.pb-gpm-empty {
	padding: 16px;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.04);
	font-size: 14px;
	line-height: 1.4;
}

.pb-gpm-popup {
	position: absolute;
	z-index: 1000;
	box-sizing: border-box;
	width: 440px;
	max-width: calc(100vw - 48px);
	max-height: none;
	padding: 18px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
	color: #111;
	font-family: inherit;
	transform: translate(-50%, calc(-100% - 18px));
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	overflow: visible;
}

.pb-gpm-popup.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.pb-gpm-popup::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -9px;
	width: 18px;
	height: 18px;
	background: #fff;
	box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.08);
	transform: translateX(-50%) rotate(45deg);
}

.pb-gpm-popup__close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	min-width: 34px;
	min-height: 34px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: rgba(17, 17, 17, 0.58);
	font-size: 30px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease;
}

.pb-gpm-popup__close:hover {
	background: rgba(17, 17, 17, 0.06);
	color: #111;
}

.pb-gpm-popup__body {
	position: relative;
	z-index: 2;
	display: grid;
	gap: 8px;
	padding-right: 44px;
	overflow: visible;
}

.pb-gpm-info__title {
	display: block;
	color: #111;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
	overflow-wrap: anywhere;
	word-break: normal;
}

.pb-gpm-info__title:hover {
	color: #293478;
	text-decoration: none;
}

.pb-gpm-info__parent {
	margin-top: -2px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	color: rgb(89, 98, 110);
	overflow-wrap: anywhere;
}

.pb-gpm-info__label {
	margin-top: 2px;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(17, 17, 17, 0.56);
}

.pb-gpm-info__address {
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
	color: rgb(89, 98, 110);
	overflow-wrap: anywhere;
	word-break: normal;
}

.pb-gpm-info__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 6px;
}

.pb-gpm-info__button,
.pb-gpm-info__route {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.1;
	text-align: center;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pb-gpm-info__button {
	background: #293478;
	color: #fff;
}

.pb-gpm-info__button:hover {
	background: #1f285f;
	color: #fff;
	text-decoration: none;
}

.pb-gpm-info__route {
	border: 1px solid rgba(41, 52, 120, 0.22);
	background: #fff;
	color: #293478;
}

.pb-gpm-info__route:hover {
	border-color: #293478;
	background: rgba(41, 52, 120, 0.06);
	color: #293478;
	text-decoration: none;
}

@media (max-width: 991px) {
	.pb-gpm-layout {
		grid-template-columns: minmax(0, 1fr);
		height: auto;
		min-height: 0;
	}

	.pb-gpm-panel {
		order: 2;
		height: auto;
		min-height: 0;
		max-height: 320px;
		border-right: 0;
		border-top: 1px solid rgba(17, 17, 17, 0.08);
	}

	.pb-gpm-map-area {
		order: 1;
	}
}

@media (max-width: 767px) {
	.pb-gpm-map-area,
	.pb-gpm-canvas,
	.pb-gpm-canvas > div {
		min-height: 360px;
	}

	.pb-gpm-status {
		left: 12px;
		right: 12px;
		bottom: 12px;
		max-width: none;
	}

	.pb-gpm-popup {
		width: 340px;
		max-width: calc(100vw - 36px);
		padding: 15px;
	}

	.pb-gpm-popup__body {
		padding-right: 38px;
	}

	.pb-gpm-info__actions {
		grid-template-columns: 1fr;
	}
}

.pb-gpm-panel-item__terms,
.pb-gpm-info__terms {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
	margin-top: 2px;
}

.pb-gpm-term {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	min-height: 20px;
	padding: 4px 7px;
	border-radius: 999px;
	background: rgba(41, 52, 120, 0.08);
	color: #293478;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.1;
	overflow-wrap: anywhere;
}

.pb-gpm-info__terms {
	margin-top: 0;
	margin-bottom: 2px;
}

.pb-gpm-info__terms .pb-gpm-term {
	min-height: 22px;
	font-size: 11px;
}

.pb-gpm-wrap--side-widget {
	position: static;
	width: auto;
	border-radius: 0;
	background: transparent;
}

.pb-gpm-side-widget {
	position: fixed;
	top: 50%;
	z-index: 99990;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 132px;
	padding: 14px 10px;
	border: 0;
	background: #293478;
	color: #fff;
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.1;
	text-align: center;
	cursor: pointer;
	writing-mode: vertical-rl;
	text-orientation: mixed;
	transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pb-gpm-side-widget--right {
	right: 0;
	border-radius: 12px 0 0 12px;
	transform: translateY(-50%);
}

.pb-gpm-side-widget--left {
	left: 0;
	border-radius: 0 12px 12px 0;
	transform: translateY(-50%) rotate(180deg);
}

.pb-gpm-side-widget:hover,
.pb-gpm-side-widget:focus-visible {
	background: #1f285f;
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.pb-gpm-side-widget--right:hover,
.pb-gpm-side-widget--right:focus-visible {
	transform: translateY(-50%) translateX(-4px);
}

.pb-gpm-side-widget--left:hover,
.pb-gpm-side-widget--left:focus-visible {
	transform: translateY(-50%) translateX(4px) rotate(180deg);
}

.pb-gpm-side-widget__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	font-size: 18px;
	line-height: 1;
}

.pb-gpm-side-widget__label {
	display: inline-flex;
}

body.pb-gpm-modal-open {
	overflow: hidden;
}

.pb-gpm-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.pb-gpm-modal.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.pb-gpm-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 17, 0.64);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.pb-gpm-modal__dialog {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	width: min(1320px, 100%);
	max-height: calc(100dvh - 56px);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
	overflow: hidden;
	transform: translateY(12px) scale(0.98);
	transition: transform 0.2s ease;
}

.pb-gpm-modal.is-active .pb-gpm-modal__dialog {
	transform: translateY(0) scale(1);
}

.pb-gpm-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 18px;
	border-bottom: 1px solid rgba(17, 17, 17, 0.08);
	background: #fff;
}

.pb-gpm-modal__title {
	color: #111;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
}

.pb-gpm-modal__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	min-width: 38px;
	min-height: 38px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(17, 17, 17, 0.06);
	color: rgba(17, 17, 17, 0.72);
	font-size: 30px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease;
}

.pb-gpm-modal__close:hover,
.pb-gpm-modal__close:focus-visible {
	background: rgba(17, 17, 17, 0.1);
	color: #111;
}

.pb-gpm-modal__content {
	position: relative;
	min-height: 0;
	overflow: hidden;
}

.pb-gpm-wrap--side-widget .pb-gpm-layout {
	border-radius: 0;
}

@media (max-width: 767px) {
	.pb-gpm-side-widget {
		min-height: 112px;
		padding: 12px 8px;
		font-size: 12px;
	}

	.pb-gpm-modal {
		padding: 12px;
	}

	.pb-gpm-modal__dialog {
		width: 100%;
		max-height: calc(100dvh - 24px);
		border-radius: 14px;
	}

	.pb-gpm-modal__head {
		padding: 12px 14px;
	}

	.pb-gpm-modal__title {
		font-size: 14px;
	}
}
