.gbm-map-wrap {
	width: 100%;
	margin: 1rem 0;
}

.gbm-map {
	width: 100%;
	min-height: 240px;
	background: #e8eef2;
	border: 1px solid #dcdcde;
	box-sizing: border-box;
	overflow: hidden;
	position: relative;
}

.gbm-map .maplibregl-canvas,
.gbm-map .maplibregl-canvas-container {
	outline: none;
}

.gbm-map__placeholder {
	margin: 0;
	padding: 1.5rem;
	text-align: center;
	color: #50575e;
}

/*
 * Reset theme (Flatsome) button styles that break MapLibre controls.
 */
.gbm-map .maplibregl-ctrl-group {
	background: #fff;
	border: 0;
	border-radius: 4px;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.gbm-map .maplibregl-ctrl-group:not(:empty) {
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.gbm-map .maplibregl-ctrl-group button,
.gbm-map .maplibregl-ctrl button,
.gbm-map button.maplibregl-ctrl-zoom-in,
.gbm-map button.maplibregl-ctrl-zoom-out,
.gbm-map button.maplibregl-ctrl-compass,
.gbm-map button.maplibregl-ctrl-attrib-button {
	all: unset;
	box-sizing: border-box;
	display: block;
	width: 29px;
	height: 29px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	background-color: transparent;
	background-image: none;
	color: #333;
	font: inherit;
	line-height: 1;
	text-align: center;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.gbm-map .maplibregl-ctrl-group button + button {
	border-top: 1px solid #ddd;
}

.gbm-map .maplibregl-ctrl-group button:hover,
.gbm-map .maplibregl-ctrl-group button:focus {
	background-color: rgba(0, 0, 0, 0.05);
	box-shadow: none;
	outline: none;
	color: #333;
}

.gbm-map .maplibregl-ctrl-group button:disabled {
	cursor: not-allowed;
	opacity: 0.35;
}

.gbm-map .maplibregl-ctrl-icon {
	display: block;
	width: 100%;
	height: 100%;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: auto;
}

.gbm-map .maplibregl-ctrl-compass .maplibregl-ctrl-icon {
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E");
}

.gbm-map .maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon {
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14 10v9M10 14h9' fill='none' stroke='%23333' stroke-width='2'/%3E%3C/svg%3E");
}

.gbm-map .maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon {
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath fill='none' stroke='%23333' stroke-width='2' d='M10 14h9'/%3E%3C/svg%3E");
}

.gbm-map .maplibregl-ctrl-attrib {
	font-size: 12px;
	line-height: 1.3;
	background-color: rgba(255, 255, 255, 0.7);
}

.gbm-map .maplibregl-ctrl-attrib a {
	color: rgba(0, 0, 0, 0.75);
	text-decoration: none;
}

.gbm-map-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
	margin-top: 0.75rem;
}

.gbm-map-actions__hint,
.gbm-map-actions__status {
	margin: 0;
	flex: 1 1 100%;
	font-size: 0.925rem;
	color: #50575e;
}

.gbm-map-actions__status.is-error {
	color: #b32d2e;
}

.gbm-design-btn {
	cursor: pointer;
}

.gbm-designer {
	position: relative;
	margin-top: 1rem;
	min-height: 720px;
	border: 1px solid #dcdcde;
	background: #fff;
}

.gbm-designer__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 5;
}

.gbm-designer iframe,
.gbm-designer #design-maker-embed {
	display: block;
	width: 100% !important;
	height: 720px !important;
	border: 0;
}

/* Printful embed loading overlay inside designer container */
.gbm-designer .overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: rgba(255, 255, 255, 0.72);
}
