/* Two-tone rings remain visible on both light and dark theme surfaces. */
html body :focus-visible {
	outline: 3px solid #151515 !important;
	outline-offset: 3px !important;
	box-shadow: 0 0 0 6px #fff !important;
}

.irene-a11y-trigger,
.irene-a11y-panel,
.irene-a11y-panel * {
	box-sizing: border-box;
	letter-spacing: 0;
}

/* Fixed right-edge launcher, separate from page flow and bottom checkout bars. */
button.irene-a11y-trigger {
	position: fixed;
	z-index: 9999;
	top: 50%;
	right: max(8px, env(safe-area-inset-right));
	left: auto;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	min-height: 44px;
	padding: 6px;
	border: 2px solid #fff;
	border-radius: 4px;
	background: #4c4fb2;
	color: #fff;
	box-shadow: 0 2px 8px #0003;
	font-family: inherit;
	font-size: .75rem;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	cursor: pointer;
}

button.irene-a11y-trigger[hidden],
dialog.irene-a11y-panel:not([open]) {
	display: none !important;
}

.irene-a11y-trigger .dashicons {
	width: 32px;
	height: 32px;
	font-size: 32px;
}

button.irene-a11y-trigger:hover {
	background: #373b8a;
	color: #fff;
	transform: translateY(-50%);
}

@media (max-width: 767px) {
	button.irene-a11y-trigger {
		right: env(safe-area-inset-right, 0px);
		width: 44px;
		height: 44px;
		padding: 4px;
		border-radius: 4px 0 0 4px;
	}
	.irene-a11y-trigger .dashicons {
		width: 28px;
		height: 28px;
		font-size: 28px;
	}
}

dialog.irene-a11y-panel {
	position: fixed;
	inset: 0;
	z-index: 10000;
	width: 384px;
	max-width: calc(100% - 32px);
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	margin: auto;
	padding: 16px;
	overflow: auto;
	overscroll-behavior: contain;
	scroll-padding: 12px;
	border: 2px solid #73645a;
	border-radius: 8px;
	background: #fbf5ef;
	color: #2c221b;
	box-shadow: 0 12px 32px #2c221b33;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.5;
	text-align: start;
	overflow-wrap: anywhere;
}

.irene-a11y-panel::backdrop {
	background: rgb(0 0 0 / 45%);
}

.irene-a11y-heading {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 8px;
}

.irene-a11y-heading h2 {
	flex: 1;
	min-width: 0;
	margin: 8px 0;
	color: inherit;
	font-family: inherit;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.4;
}

.irene-a11y-panel button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid #73645a;
	border-radius: 4px;
	background: #fff;
	color: #2c221b;
	font: inherit;
	font-weight: 600;
	line-height: 1.4;
	text-transform: none;
	cursor: pointer;
}

.irene-a11y-panel button.irene-a11y-close {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	padding: 8px;
}

.irene-a11y-panel .dashicons {
	flex-shrink: 0;
}

.irene-a11y-panel button:hover {
	background: #f4ded6;
	color: #2c221b;
}

.irene-a11y-panel .irene-a11y-options {
	min-width: 0;
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	background: transparent;
}

.irene-a11y-options label {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	margin: 0;
	padding: 10px 4px;
	border-bottom: 1px solid #d8b9a6;
	font-weight: 500;
	cursor: pointer;
}

.irene-a11y-options label span {
	min-width: 0;
}

.irene-a11y-options input[type="checkbox"] {
	-webkit-appearance: checkbox !important;
	appearance: auto !important;
	position: static;
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	margin: 0;
	opacity: 1;
	accent-color: #4a3a2f;
	cursor: pointer;
}

.irene-a11y-panel .irene-a11y-status {
	margin: 12px 0 0;
	font-size: .875rem;
	line-height: 1.5;
}

.irene-a11y-status:empty {
	margin: 0;
}

.irene-a11y-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Class removal restores theme/browser defaults without rewriting inline styles. */
html.irene-a11y-large-text {
	font-size: 125%;
}

/* Long Greek login headings must fit both narrow screens and enlarged text. */
.pol-login-card {
	min-width: 0;
	overflow-wrap: anywhere;
}
@media (max-width: 767px) {
	.pol-shop-admin-login .pol-login-card h1 {
		font-size: 1.5rem;
		line-height: 1.35;
	}
}

html.irene-a11y-underline-links body a[href] {
	text-decoration: underline !important;
	text-decoration-thickness: max(1px, .08em) !important;
	text-underline-offset: .16em;
}

/* Do not invert product photographs, video, canvas, or SVG artwork. */
html.irene-a11y-high-contrast body,
html.irene-a11y-high-contrast body *:not(img):not(video):not(canvas):not(svg):not(svg *) {
	background-color: #fff !important;
	background-image: none !important;
	color: #111 !important;
	border-color: #595959 !important;
	text-shadow: none !important;
}

html.irene-a11y-high-contrast body a[href],
html.irene-a11y-high-contrast body a[href] *:not(svg):not(svg *) {
	color: #003da6 !important;
	text-decoration: underline !important;
}

html.irene-a11y-high-contrast body :is(button, input, select, textarea, .button) {
	border: 2px solid #111 !important;
	accent-color: #111;
}

html.irene-a11y-high-contrast body :is(input, textarea)::placeholder {
	color: #444 !important;
	opacity: 1 !important;
}

/* The footer uses a transparent white logo; retain a dark backing for it. */
html.irene-a11y-high-contrast .irene-footer__logo-img {
	background-color: #111 !important;
}

html.irene-a11y-reduce-motion,
html.irene-a11y-reduce-motion *,
html.irene-a11y-reduce-motion *::before,
html.irene-a11y-reduce-motion *::after {
	scroll-behavior: auto !important;
	animation-duration: .01ms !important;
	animation-delay: 0ms !important;
	animation-iteration-count: 1 !important;
	transition-duration: .01ms !important;
	transition-delay: 0ms !important;
}

@media (prefers-reduced-motion: reduce) {
	html,
	html *,
	html *::before,
	html *::after {
		scroll-behavior: auto !important;
		animation-duration: .01ms !important;
		animation-delay: 0ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		transition-delay: 0ms !important;
	}
}

@media (forced-colors: active) {
	html body :focus-visible {
		outline-color: Highlight !important;
	}
}

@media print {
	button.irene-a11y-trigger,
	dialog.irene-a11y-panel {
		display: none !important;
	}
}
