/* EA Companion e-posters (1.35.0). Colours come from the site's Elementor
   global colours, so each event's branding applies without edits. */

:root {
	--eac-pp-primary: var(--e-global-color-primary, #2d4796);
	--eac-pp-accent: var(--e-global-color-accent, #3a54a5);
	--eac-pp-text: var(--e-global-color-text, #333);
}

/* ---------- card image ---------- */
.eac-pp-card {
	position: relative;
	width: 100%;
	aspect-ratio: 210 / 297;
	overflow: hidden;
	background: #f2f2f2;
	box-sizing: border-box;
}
.eac-pp-open { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.eac-pp-thumb {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.eac-pp-open:focus-visible { outline: 3px solid var(--eac-pp-accent); outline-offset: 2px; }
@media (hover: hover) { .eac-pp-open:hover .eac-pp-thumb { opacity: .93; } }

.eac-pp-empty,
.eac-pp-noimg {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 0 12px;
	background: #ededed;
	border: 1px dashed #cfcfcf;
	color: #6b6b6b;
	font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.eac-pp-pdf-link { color: var(--eac-pp-primary); font-weight: 600; }
.eac-pp-kiosk-only { display: none; }

/* ---------- country ---------- */
.eac-country { display: inline-flex; align-items: center; gap: 6px; }
.eac-flag { width: 20px; height: 15px; flex: 0 0 auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }

/* ---------- like button ----------
   "body button.eac-like" outranks an Elementor kit's Buttons style and the
   theme's button reset without !important, so the E-poster: Like button
   widget's Style tab can still change everything (1.36.0). */
body button.eac-like {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-width: 52px;
	min-height: 0;
	padding: 4px 8px;
	border: 1px solid var(--eac-pp-primary);
	background: var(--eac-pp-primary);
	color: #fff;
	border-radius: 999px;
	font-family: inherit;
	font-size: 14px;
	line-height: 1;
	text-transform: none;
	letter-spacing: normal;
	text-decoration: none;
	box-shadow: none;
	cursor: pointer;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	transition: background .15s ease, color .15s ease, transform .1s ease;
}
body button.eac-like:hover,
body button.eac-like:focus { background: var(--eac-pp-primary); color: #fff; border-color: var(--eac-pp-primary); }
.eac-like-icon { fill: currentColor; width: 16px; height: 16px; }
.eac-like-count { font-weight: 600; min-width: 2ch; font-variant-numeric: tabular-nums; }
body button.eac-like.is-pop { transform: scale(.92); }
body button.eac-like.is-cooling { background: var(--eac-pp-accent); border-color: var(--eac-pp-accent); cursor: default; }
.eac-like.is-cooling .eac-like-icon { display: none; }
.eac-like-spinner {
	display: none;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 2px solid rgba(255,255,255,.4);
	border-top-color: #fff;
	animation: eac-spin .6s linear infinite;
}
.eac-like.is-cooling .eac-like-spinner { display: inline-block; }
@keyframes eac-spin { to { transform: rotate(360deg); } }

/* ---------- viewer ---------- */
#eac-pp {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(0,0,0,.94);
	flex-direction: column;
	touch-action: none;
	-webkit-user-select: none;
	user-select: none;
	font: 16px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
#eac-pp.is-on { display: flex; }
.eac-pp-bar {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 16px;
	padding: 10px 16px;
	color: #d6d6d6;
}
.eac-pp-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
#eac-pp button,
#eac-pp a {
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	font-weight: 400;
	color: #e6e6e6;
	background: rgba(255,255,255,.08);
	border: 0;
	font: inherit;
	text-decoration: none;
	cursor: pointer;
	padding: 10px 14px;
	border-radius: 6px;
	min-height: 44px;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	touch-action: manipulation;
}
#eac-pp button:disabled { opacity: .35; cursor: default; }
@media (hover: hover) { #eac-pp button:hover, #eac-pp a:hover { color: #fff; background: rgba(255,255,255,.18); } }
#eac-pp .is-current { color: #fff; background: rgba(255,255,255,.3); }
.eac-pp-hint { font-size: 13px; opacity: .7; }
.eac-pp-stage {
	flex: 1 1 auto;
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.eac-pp-stage img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	display: block;
	transform-origin: center center;
	background: #fff;
}
.eac-pp-loading { position: absolute; color: #aaa; }

/* ---------- kiosk mode (?kiosk=1) ---------- */
html.eac-kiosk { margin-top: 0 !important; }
html.eac-kiosk body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; overscroll-behavior: none; touch-action: pan-y; }
html.eac-kiosk #wpadminbar,
html.eac-kiosk .elementor-location-header,
html.eac-kiosk .elementor-location-footer,
html.eac-kiosk header.site-header,
html.eac-kiosk footer.site-footer,
html.eac-kiosk #site-header,
html.eac-kiosk #site-footer,
html.eac-kiosk header.wp-block-template-part,
html.eac-kiosk footer.wp-block-template-part,
html.eac-kiosk .cmplz-cookiebanner,
html.eac-kiosk #cmplz-cookiebanner-container,
html.eac-kiosk .cmplz-manage-consent,
html.eac-kiosk #cookie-law-info-bar,
html.eac-kiosk .cky-consent-container,
html.eac-kiosk .cky-btn-revisit-wrapper,
html.eac-kiosk #moove_gdpr_cookie_info_bar,
html.eac-kiosk .eac-kiosk-hide { display: none !important; }

html.eac-kiosk .eac-pp-pdf-link { display: none; }
html.eac-kiosk .eac-pp-kiosk-only { display: inline; }
html.eac-kiosk body button.eac-like { min-width: 64px; min-height: 40px; }

/* Viewer controls along the bottom, in reach of a seated reader. */
html.eac-kiosk #eac-pp { background: #000; }
html.eac-kiosk .eac-pp-bar { order: 2; padding: 14px 20px 22px; }
html.eac-kiosk #eac-pp button { min-height: 56px; padding: 12px 20px; font-size: 18px; }
html.eac-kiosk .eac-pp-pdf { display: none !important; }

/* Kiosk pages: hidden cards hold no images. */
.eac-pg-hidden { display: none !important; }
.eac-kiosk-pager {
	position: sticky;
	bottom: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 14px 12px 20px;
	background: rgba(255,255,255,.96);
	box-shadow: 0 -2px 10px rgba(0,0,0,.08);
	font: 18px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--eac-pp-text);
}
body .eac-kiosk-pager button,
body .eac-kiosk-pager button:hover,
body .eac-kiosk-pager button:focus {
	min-height: 56px;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	min-width: 140px;
	padding: 12px 20px;
	border: 0;
	border-radius: 8px;
	background: var(--eac-pp-primary);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	touch-action: manipulation;
}
body .eac-kiosk-pager button:disabled { opacity: .35; }

/* E-poster widgets (1.36.0): the presenter and country inherit the
   widget's own typography. */
.eac-presenter, .eac-country { font: inherit; color: inherit; }
