/*
 * Pixel Demo Section overlay. Values here are the defaults (= the live
 * divi-pixel.com demo rows); the section's own settings print more specific
 * `.et_pb_section_N .dipi-demo-section__*` rules through Divi's style pipeline.
 * Keep in sync with DEFAULTS in js/dpds-builder.js.
 */
.dipi-demo-section {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 20;
	display: flex;
	opacity: 0;
	visibility: hidden; /* Hidden buttons must not catch clicks. */
	transform: translateX(-50px);
	transition: opacity 0.5s, transform 0.5s, visibility 0s 0.5s;
}

.et_pb_section:hover > .dipi-demo-section,
.dipi-demo-section:focus-within {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

/* No hover on touch screens: always show. */
@media (hover: none) {
	.dipi-demo-section {
		opacity: 1;
		visibility: visible;
		transform: none;
	}
}

.dipi-demo-section__label,
.dipi-demo-section__button {
	display: flex;
	align-items: center;
	padding: 12px 14px;
	color: #ffffff;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.7em;
	text-decoration: none;
	transition: background-color 0.3s, color 0.3s;
}

.dipi-demo-section__label {
	background-color: #15022a;
}

.dipi-demo-section__button {
	background-color: #ff4200;
}

/* :where() keeps this below the section's own colour rule: a custom colour
   without a custom hover colour then stays put on hover (as in the builder). */
:where(.dipi-demo-section__button):hover {
	background-color: rgba(255, 66, 0, 0.85);
}

.dipi-demo-section__icon {
	margin-right: 6px;
	font-style: normal;
	line-height: 1;
}
