:root {
	--wpdpb-bar-height: 116px;
	--wpdpb-side-width: 175px;
}

.wpdpb-bar {
	position: fixed;
	z-index: 999999;
	display: flex;
	gap: 8px;
	background: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	box-sizing: border-box;
}

.wpdpb-bar--bottom {
	left: 0;
	right: 0;
	bottom: 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 12px 16px;
	border-top: 1px solid #e2e2e2;
}

.wpdpb-bar--side {
	right: 0;
	top: 33.33%;
	width: var(--wpdpb-side-width);
	flex-direction: column;
	align-items: stretch;
	padding: 16px;
	border: 1px solid #e2e2e2;
	border-right: none;
	border-radius: 8px 0 0 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.wpdpb-bar-header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.wpdpb-bar--side .wpdpb-bar-header {
	justify-content: flex-start;
}

.wpdpb-bar-logo {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
}

.wpdpb-bar-title {
	font-size: 14px;
	font-weight: 600;
	color: #1e1e1e;
	letter-spacing: 0.01em;
}

.wpdpb-bar-label {
	font-size: 11px;
	color: #767676;
}

.wpdpb-bar--side .wpdpb-bar-label {
	text-align: left;
}

.wpdpb-bar-buttons {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.wpdpb-bar--side .wpdpb-bar-buttons {
	flex-direction: column;
	align-items: stretch;
	gap: 4px;
}

.wpdpb-bar button {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border: none;
	margin: 0;
	background: transparent;
	color: #1e1e1e;
	border-radius: 999px;
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
}

.wpdpb-bar--side button {
	justify-content: flex-start;
	border-radius: 6px;
}

.wpdpb-bar button svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	fill: none;
	stroke: currentColor;
}

.wpdpb-bar button:hover:not(.is-active) {
	background: #f0f0f0;
}

.wpdpb-bar button.is-active {
	background: #1e1e1e;
	color: #fff;
}

/* This is a preview tool for wide viewports; on an already-narrow browser
   window it has nothing useful to simulate, so it gets out of the way. */
@media (max-width: 768px) {
	.wpdpb-bar {
		display: none;
	}
}

.wpdpb-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999998;
	background: #000;
	display: flex;
	align-items: stretch;
	justify-content: center;
}

html.wpdpb-position-bottom .wpdpb-overlay {
	bottom: var(--wpdpb-bar-height);
}

.wpdpb-overlay iframe {
	height: 100%;
	border: none;
	background: #fff;
}

html.wpdpb-framed {
	background: #000;
}

html.wpdpb-framed body {
	overflow: hidden;
}

html.wpdpb-framed body > *:not(.wpdpb-bar):not(.wpdpb-overlay) {
	display: none !important;
}

@media (min-width: 769px) {
	html.wpdpb-position-bottom:not(.wpdpb-framed) body {
		padding-bottom: var(--wpdpb-bar-height);
	}
}
