/* Narrow is the ordinary inline-style baseline. Wide contains only authored
 * differences. Visibility classes contain the inherited result for each
 * layout, so a hidden narrow object remains hidden on wide unless wide has an
 * explicit reveal override. */
@media (max-width: 767px) {
	html:not(.glue-responsive-preview) .glue-narrow-hidden { display: none !important; }
}

@media (min-width: 768px) {
	html:not(.glue-responsive-preview) .glue-wide-hidden { display: none !important; }
}

.glue-responsive-switcher {
	min-width: 230px;
}

.glue-responsive-popover {
	/* Deliberately no custom panel chrome: responsive settings are page
	 * options and use the same rectangular grey Hotglue popover as every
	 * other editor option. */
}

.glue-responsive-modes {
	display: flex;
	gap: 4px;
}

.glue-responsive-switcher button {
	box-sizing: border-box;
	padding: 2px 7px;
	border: 1px solid #999;
	border-radius: 0;
	background: #fff;
	color: #444;
	font: 11px sans-serif;
	cursor: pointer;
}

.glue-responsive-switcher button[aria-pressed="true"] {
	border-color: #333;
	background: #444;
	color: #fff;
}

.glue-responsive-switcher .glue-responsive-actions {
	display: none;
}

.glue-responsive-switcher.has-actions .glue-responsive-actions {
	display: flex;
}

.glue-responsive-switcher:not(.has-selection) .glue-responsive-actions button:last-child {
	display: none;
}

.glue-responsive-actions button:last-child {
	margin-left: auto;
}

/* A breakpoint-hidden object remains a measurable, selectable ghost in the
 * editor. Public pages never receive this class; their media-query rule above
 * still uses display:none. Keeping the real rectangle here is what lets
 * Moveable, the context menu, Reset and Show keep working. */
.glue-responsive-hidden-preview {
	opacity: .24 !important;
	cursor: pointer;
}

.glue-responsive-layout-indicator {
	align-items: center;
	background: rgba(238, 238, 238, .9);
	border: 1px solid rgba(0, 0, 0, .65);
	box-sizing: border-box;
	color: rgba(0, 0, 0, .72);
	display: flex;
	font: 700 10px/1 sans-serif;
	justify-content: center;
	pointer-events: none;
	position: fixed;
	right: max(7px, env(safe-area-inset-right));
	bottom: max(22px, calc(env(safe-area-inset-bottom) + 22px));
	user-select: none;
	z-index: 2147483647;
}

.glue-responsive-layout-indicator.is-narrow {
	height: 25px;
	width: 15px;
}

.glue-responsive-layout-indicator.is-wide {
	height: 15px;
	width: 28px;
}
