/*
 * Abyz Popups — minimal structural styling.
 *
 * The author's per-popup CSS handles all visual design; this file
 * only positions the overlay/dialog and provides a sensible close
 * button + accessibility defaults. RTL flips the close position.
 */

.abyz-popup[hidden] {
	display: none;
}

.abyz-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

.abyz-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba( 0, 0, 0, 0.5 );
	cursor: pointer;
}

.abyz-popup__content {
	position: relative;
	background: #fff;
	color: #111;
	max-width: 750px;
	width: 100%;
	max-height: 90vh;
	overflow: auto;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba( 0, 0, 0, 0.25 );
	padding: 32px 24px 24px;
	box-sizing: border-box;
}

.abyz-popup__close {
	position: absolute;
	top: 8px;
	right: 8px;
	background: transparent;
	border: 0;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: inherit;
	padding: 4px 10px;
	border-radius: 4px;
}

.abyz-popup__close:focus {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

[dir="rtl"] .abyz-popup__close {
	right: auto;
	left: 8px;
}

body.abyz-popup-open {
	overflow: hidden;
}
