/**
 * HRD Video Button widget — structure.
 * Colours, typography and spacing come from the widget's Elementor controls.
 * Selectors are scoped deep enough to beat the kit's global <button> styles.
 */

.elementor-widget-hrd-video-button .hrd-video-btn {
	display: flex;
	align-items: center;
	border-style: solid;
	box-shadow: none;
	cursor: pointer;
	text-align: left;
	transition: transform 0.18s var(--hrd-ease-standard);
}

.elementor-widget-hrd-video-button .hrd-video-btn:focus-visible {
	outline: 2px solid var(--e-global-color-hrdsky);
	outline-offset: 3px;
}

.hrd-video-btn__icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	border-radius: 50%;
}

.hrd-video-btn__icon svg {
	display: block;
}

.hrd-video-btn__text,
.hrd-video-btn__title,
.hrd-video-btn__subtitle {
	display: block;
}

/* Modal (native <dialog>, so it renders above the sticky header). */
.hrd-video-modal {
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 24px;
	border: 0;
	background: transparent;
	place-items: center;
}

.hrd-video-modal[open] {
	display: grid;
}

.hrd-video-modal::backdrop {
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.hrd-video-modal__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #000;
	box-shadow: var(--hrd-shadow-3);
}

.hrd-video-modal__media,
.hrd-video-modal__media iframe,
.hrd-video-modal__media video,
.hrd-video-modal__poster,
.hrd-video-modal__placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.hrd-video-modal__poster {
	background-position: center;
	background-size: cover;
	opacity: 0.5;
}

.hrd-video-modal__placeholder {
	display: grid;
	place-items: center;
	text-align: center;
	color: var(--e-global-color-hrdwhite);
}

.hrd-video-modal__placeholder svg {
	width: 54px;
	height: 54px;
	fill: currentColor;
	opacity: 0.9;
}

.hrd-video-modal__label {
	margin-top: 12px;
	color: var(--e-global-color-hrdmist);
	font: 500 12px/1 var(--e-global-typography-secondary-font-family), sans-serif;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.hrd-video-modal .hrd-video-modal__frame .hrd-video-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 1;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.5);
	color: var(--e-global-color-hrdwhite);
	font: 400 20px/1 sans-serif;
	box-shadow: none;
	cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
	.elementor-widget-hrd-video-button .hrd-video-btn {
		transition: none;
	}
}
