/* Appell Senter Hub – scoped content-page exceptions.
 *
 * Ownership rule:
 * - Elementor data owns layout, spacing, responsive geometry, typography and colors.
 * - This file only owns pseudo-elements, interaction states and contextual styling
 *   of reusable Elementor widgets/Loop Items that cannot be expressed once in the
 *   shared template without changing other contexts.
 */

.appell-content-page :is(a,button,input,select,textarea,[tabindex]):focus-visible {
	outline: 3px solid var(--e-global-color-accent);
	outline-offset: 3px;
}

/* Dynamic opening-hours HTML returned by Appell tags/components. */
.appell-hours-list {
	display: grid;
	gap: 0;
}

.appell-hours-list__row {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	padding: 14px 0;
	border-bottom: 1px solid color-mix(in srgb,var(--e-global-color-text) 12%,transparent);
}

.appell-hours-list__row span {
	text-align: right;
}

.appell-hours-list__row small {
	display: block;
	margin-top: 4px;
}

/* -------------------------------------------------------------------------
 * Tilbud
 * ---------------------------------------------------------------------- */
body.appell-page-offers {
	--appell-offers-accent: var(--e-global-color-accent);
	--appell-offers-dark: var(--e-global-color-appell-dark);
	--appell-offers-light: var(--e-global-color-appell-light);
	--appell-offers-text: var(--e-global-color-text);
	--appell-offers-radius: 24px;
}

/* Approved coupon-edge motif. Pseudo-elements are intentionally CSS-owned. */
body.appell-page-offers .appell-offers-modern__hero {
	position: relative;
	isolation: isolate;
}

body.appell-page-offers .appell-offers-modern__hero::after {
	content: "";
	position: absolute;
	z-index: 4;
	inset: auto 0 -1px;
	height: 18px;
	pointer-events: none;
	background: var(--appell-offers-light);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 18'%3E%3Cpath fill='white' d='M0 18L12 4l12 14L36 4l12 14v0H0Z'/%3E%3C/svg%3E") left bottom / 48px 18px repeat-x;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 18'%3E%3Cpath fill='white' d='M0 18L12 4l12 14L36 4l12 14v0H0Z'/%3E%3C/svg%3E") left bottom / 48px 18px repeat-x;
}

/* Media hover is a state, while size/radius/shadow live in Elementor. */
body.appell-page-offers .appell-offers-modern__hero-media .elementor-widget-image,
body.appell-page-offers .appell-offers-modern__hero-media .elementor-widget-container {
	width: 100%;
	height: 100%;
}

body.appell-page-offers .appell-offers-modern__hero-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .55s cubic-bezier(.2,.7,.2,1);
}

body.appell-page-offers .appell-offers-modern__hero:hover .appell-offers-modern__hero-media img {
	transform: scale(1.025);
}

/* One Loop Item is intentionally reused in three featured-offer contexts.
 * These contextual variants cannot be stored in the Loop Item itself without
 * making its other occurrences inherit the same layout. */
body.appell-page-offers .appell-featured-offers__top {
	align-items: stretch;
}

body.appell-page-offers :is(.appell-featured-offers__main,.appell-featured-offers__support) {
	display: flex;
	align-self: stretch;
	flex-direction: column;
}

body.appell-page-offers :is(.appell-featured-offers__main,.appell-featured-offers__support) > .elementor-widget-container {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	height: 100%;
}

body.appell-page-offers :is(.appell-featured-offers__main,.appell-featured-offers__support) .elementor-loop-container {
	flex: 1 1 auto;
	height: 100%;
}

body.appell-page-offers :is(.appell-featured-offers__main,.appell-featured-offers__support,.appell-featured-offers__row) .elementor-loop-container {
	align-items: stretch;
	gap: 24px;
}

body.appell-page-offers .appell-featured-offers__support .elementor-loop-container {
	grid-auto-rows: 1fr;
}

body.appell-page-offers :is(.appell-featured-offers__main,.appell-featured-offers__support,.appell-featured-offers__row) .e-loop-item {
	min-width: 0;
	height: 100%;
}

body.appell-page-offers :is(.appell-featured-offers__main,.appell-featured-offers__support,.appell-featured-offers__row) .appell-offer-card {
	height: 100%;
	overflow: hidden;
	border-radius: var(--appell-offers-radius);
	box-shadow: 0 16px 46px color-mix(in srgb,var(--appell-offers-dark) 10%,transparent);
}

body.appell-page-offers .appell-offer-card__image,
body.appell-page-offers .appell-offer-card__image > .elementor-widget-container {
	width: 100%;
	margin: 0;
	padding: 0;
}

body.appell-page-offers .appell-offer-card__image img {
	display: block;
	width: 100%;
	object-fit: cover;
}

/* Featured lead: the 50/50 split is owned by the generated Elementor Loop Item. */
body.appell-page-offers .appell-featured-offers__main .appell-offer-card {
	background: var(--appell-offers-dark);
	box-shadow: 0 24px 64px color-mix(in srgb,var(--appell-offers-dark) 18%,transparent);
}

body.appell-page-offers .appell-featured-offers__main .appell-offer-card__image,
body.appell-page-offers .appell-featured-offers__main .appell-offer-card__image > .elementor-widget-container,
body.appell-page-offers .appell-featured-offers__main .appell-offer-card__image img {
	height: 100%;
	min-height: 520px;
}

body.appell-page-offers .appell-featured-offers__main .appell-offer-card__body {
	justify-content: center;
	padding: clamp(30px,3vw,46px);
	background: var(--appell-offers-dark);
}

body.appell-page-offers .appell-featured-offers__main .appell-offer-card__title .elementor-heading-title {
	color: var(--appell-offers-light);
	font-size: clamp(30px,3vw,44px);
	line-height: 1.08;
}

body.appell-page-offers .appell-featured-offers__main .appell-offer-card__excerpt,
body.appell-page-offers .appell-featured-offers__main .appell-offer-card__excerpt :is(p,div) {
	color: color-mix(in srgb,var(--appell-offers-light) 78%,transparent);
}

/* Support: two compact cards beside the lead. */
body.appell-page-offers .appell-featured-offers__support .appell-offer-card__image,
body.appell-page-offers .appell-featured-offers__support .appell-offer-card__image > .elementor-widget-container,
body.appell-page-offers .appell-featured-offers__support .appell-offer-card__image img {
	height: 100%;
	min-height: 248px;
}

body.appell-page-offers .appell-featured-offers__support .appell-offer-card__body {
	justify-content: center;
	padding: 24px;
}

/* Lower row: up to four cards, auto-reflow if fewer are available. */
body.appell-page-offers .appell-featured-offers__row .appell-offer-card__image img {
	height: 205px;
}

body.appell-page-offers .appell-featured-offers__row .appell-offer-card__body {
	flex: 1 1 auto;
	padding: 24px;
}

/* -------------------------------------------------------------------------
 * Butikker
 * ---------------------------------------------------------------------- */
body.appell-page-stores {
	--appell-stores-accent: var(--e-global-color-accent);
	--appell-stores-dark: var(--e-global-color-appell-dark);
	--appell-stores-light: var(--e-global-color-appell-light);
	--appell-stores-text: var(--e-global-color-text);
	--appell-stores-radius: 24px;
}

/* Approved storefront silhouette transition. */
body.appell-page-stores .appell-stores-modern__hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

body.appell-page-stores .appell-stores-modern__hero-inner {
	position: relative;
	z-index: 4;
}

body.appell-page-stores .appell-stores-modern__hero::after {
	content: "";
	position: absolute;
	z-index: 3;
	inset: auto 0 0;
	height: 120px;
	pointer-events: none;
	background: var(--appell-stores-light);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 960 120'%3E%3Cpath fill='white' d='M0 64V44h56V32h16v12h72V25h74v19h48V34h16v10h56V23L386 8l48 15v21h52V30h16v14h76V18h72v26h54V35h16v9h50V26h74v18h36V22l36-12 36 12v22h8v76H0Z'/%3E%3C/svg%3E") center bottom / 960px 120px repeat-x;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 960 120'%3E%3Cpath fill='white' d='M0 64V44h56V32h16v12h72V25h74v19h48V34h16v10h56V23L386 8l48 15v21h52V30h16v14h76V18h72v26h54V35h16v9h50V26h74v18h36V22l36-12 36 12v22h8v76H0Z'/%3E%3C/svg%3E") center bottom / 960px 120px repeat-x;
}

/* Elementor Pro Taxonomy Filter internals require state CSS. */
body.appell-page-stores .appell-content-page__taxonomy-filter .e-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

body.appell-page-stores .appell-content-page__taxonomy-filter .e-filter-item {
	flex: 0 0 auto;
	margin: 0;
	padding: 11px 16px;
	border: 1px solid color-mix(in srgb,var(--appell-stores-text) 12%,transparent);
	border-radius: 999px;
	background: var(--appell-stores-light);
	color: var(--appell-stores-text);
	font: inherit;
	font-weight: 650;
	line-height: 1.2;
	transition: color .2s ease,background-color .2s ease,border-color .2s ease,transform .2s ease;
}

body.appell-page-stores .appell-content-page__taxonomy-filter .e-filter-item[data-filter="__all"] {
	order: -1;
}

body.appell-page-stores .appell-content-page__taxonomy-filter .e-filter-item:hover {
	border-color: var(--appell-stores-accent);
	background: var(--appell-stores-accent);
	transform: translateY(-1px);
}

body.appell-page-stores .appell-content-page__taxonomy-filter .e-filter-item[aria-pressed="true"] {
	border-color: var(--appell-stores-dark);
	background: var(--appell-stores-dark);
	color: var(--appell-stores-light);
}

/* Store-card hover is contextual interaction; card geometry is in Loop Item. */
body.appell-page-stores .appell-loop-grid--butikker .appell-loop-native--butikk {
	transition: transform .28s cubic-bezier(.2,.7,.2,1),box-shadow .28s ease;
}

body.appell-page-stores .appell-loop-grid--butikker .appell-loop-native--butikk:hover {
	transform: translateY(-5px);
	box-shadow: 0 24px 60px color-mix(in srgb,var(--appell-stores-dark) 14%,transparent);
}

body.appell-page-stores .appell-loop-grid--butikker .appell-loop-native__image img {
	transition: transform .4s cubic-bezier(.2,.7,.2,1);
}

body.appell-page-stores .appell-loop-grid--butikker .appell-loop-native--butikk:hover .appell-loop-native__image img {
	transform: scale(1.035);
}

/* -------------------------------------------------------------------------
 * Praktisk / Kontakt
 * ---------------------------------------------------------------------- */
body.appell-page-practical .appell-practical__hero-media {
	box-shadow: 0 24px 64px color-mix(in srgb,var(--e-global-color-appell-dark) 18%,transparent);
}

body.appell-page-practical .appell-practical__hero-image,
body.appell-page-practical .appell-practical__hero-image > .elementor-widget-container {
	width: 100%;
	height: 100%;
	overflow: hidden;
}

body.appell-page-practical .appell-practical__hero-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .55s cubic-bezier(.2,.7,.2,1);
}

body.appell-page-practical .appell-practical__hero-media:hover .appell-practical__hero-image img {
	transform: scale(1.025);
}

@media (max-width: 767px) {
	.appell-hours-list__row {
		gap: 16px;
	}

	body.appell-page-offers {
		--appell-offers-radius: 20px;
	}

	body.appell-page-offers .appell-featured-offers__main .appell-offer-card__image,
	body.appell-page-offers .appell-featured-offers__main .appell-offer-card__image > .elementor-widget-container,
	body.appell-page-offers .appell-featured-offers__support .appell-offer-card__image,
	body.appell-page-offers .appell-featured-offers__support .appell-offer-card__image > .elementor-widget-container {
		height: auto;
		min-height: 0;
	}

	body.appell-page-offers .appell-featured-offers__main .appell-offer-card__image img {
		height: 300px;
		min-height: 0;
	}

	body.appell-page-offers :is(.appell-featured-offers__support,.appell-featured-offers__row) .appell-offer-card__image img {
		height: 230px;
		min-height: 0;
	}

	body.appell-page-stores {
		--appell-stores-radius: 20px;
	}

	body.appell-page-stores .appell-stores-modern__hero::after {
		bottom: 0;
		height: 56px;
		-webkit-mask-size: 448px 56px;
		mask-size: 448px 56px;
	}

	body.appell-page-stores .appell-content-page__taxonomy-filter .e-filter {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 6px;
		scroll-snap-type: x proximity;
		overscroll-behavior-inline: contain;
		-webkit-overflow-scrolling: touch;
	}

	body.appell-page-stores .appell-content-page__taxonomy-filter .e-filter-item {
		scroll-snap-align: start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.appell-content-page *,
	body.appell-page-offers *,
	body.appell-page-stores * {
		scroll-behavior: auto;
		transition-duration: .01ms;
		animation-duration: .01ms;
		animation-iteration-count: 1;
	}

	body.appell-page-offers .appell-offer-card__image img,
	body.appell-page-offers .appell-offers-modern__hero-media img,
	body.appell-page-stores .appell-loop-native--butikk,
	body.appell-page-stores .appell-loop-native__image img,
	body.appell-page-practical .appell-practical__hero-image img {
		transform: none;
	}
}