/* ==========================================================================
   2027 calendars — single product page
   Markup: woocommerce/content-single-calendar.php
   JS:     assets/js/calendar-configurator.js
   Loaded only on calendar product pages (inc/calendars.php). Reuses the
   print page shell from style.css (.wow-config, .wow-nc card, size rows,
   .wow-product-details); only calendar-specific bits live here.
   ========================================================================== */

/* ── Preview (left column) ── */
.wow-cal-preview {
	flex: 0 1 520px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}

.wow-cal-preview__stage {
	position: relative;
	width: 100%;
	max-width: 460px;
	background: #fff;
	padding: 22px 0 0;
	box-shadow:
		0 1px 2px rgba(0, 0, 0, 0.08),
		0 18px 40px rgba(0, 0, 0, 0.18);
}

/* Wire binding along the top edge */
.wow-cal-preview__wire {
	position: absolute;
	top: 6px;
	left: 8%;
	right: 8%;
	height: 10px;
	background-image: radial-gradient(circle at 50% 60%, #3a3a3a 0 2.2px, transparent 2.6px);
	background-size: 9px 10px;
	background-repeat: repeat-x;
	opacity: 0.85;
}

.wow-cal-preview__wire::before {
	content: "";
	position: absolute;
	top: -8px;
	left: 50%;
	width: 26px;
	height: 12px;
	margin-left: -13px;
	border: 2px solid #3a3a3a;
	border-bottom: none;
	border-radius: 14px 14px 0 0;
}

.wow-cal-preview__stage img {
	display: block;
	width: 100%;
	height: auto;
}

.wow-cal-preview__tabs {
	display: inline-flex;
	gap: 6px;
	background: rgba(255, 255, 255, 0.8);
	border-radius: 50px;
	padding: 4px;
}

.wow-cal-preview__tab {
	border: none;
	background: transparent;
	border-radius: 50px;
	padding: 7px 16px;
	font-family: var(--wp--preset--font-family--josefin);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: #7a756f;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.wow-cal-preview__tab.is-active {
	background: #000;
	color: #fff;
}

.wow-cal-preview__tab[hidden] {
	display: none;
}

.wow-cal-preview__caption {
	margin: 0;
	min-height: 1.2em;
	font-family: var(--wp--preset--font-family--josefin);
	font-size: 12px;
	font-style: italic;
	color: #6f6a64;
}

@media (max-width: 1000px) {
	.wow-cal-preview {
		flex: 1 1 100%;
	}
}

@media (max-width: 700px) {
	.wow-cal-preview__stage {
		max-width: 340px;
	}
}

/* ── Card (right column) ── */
.wow-cal-card__eyebrow {
	display: block;
	font-family: var(--wp--preset--font-family--josefin);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
	margin-bottom: 4px;
}

.wow-cal-card__title {
	font-family: var(--wp--preset--font-family--josefin);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 18px;
	color: var(--wp--preset--color--text);
}

.wow-cal-card__lang {
	margin: -12px 0 18px;
	font-family: var(--wp--preset--font-family--josefin);
	font-size: 12px;
	color: #4a4642;
}

.wow-cal-card__editions {
	margin-bottom: 8px;
}

.wow-cal-card .wow-nc__type-btn {
	padding: 16px 10px;
}

.wow-cal-card .wow-nc__type-btn span {
	font-style: normal;
}

.wow-cal-card__ships {
	margin: 0 0 16px;
	min-height: 1.3em;
	font-family: var(--wp--preset--font-family--josefin);
	font-size: 11px;
	color: #6f6a64;
}

/* Only the chosen edition's sizes are shown — .wow-nc__size-btn is
   display:flex in style.css, which would otherwise beat [hidden]. */
.wow-cal-card .wow-nc__size-btn[hidden] {
	display: none;
}

/* Row separators on top instead of bottom, so the last VISIBLE row never
   leaves a doubled line (the hidden rows are still :last-child). The first
   row's top line is shifted under the container's own clipped edge. */
.wow-cal-card .wow-nc__size-btn {
	border-bottom: none;
	border-top: 1px solid #e4e0da;
	margin-top: -1px;
	padding-top: 12px;
	padding-bottom: 12px;
}

.wow-cal-card__specs {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	font-family: var(--wp--preset--font-family--josefin);
	font-size: 12px;
	color: #4a4642;
}

.wow-cal-card__specs li {
	position: relative;
	padding-left: 16px;
	margin-bottom: 5px;
}

.wow-cal-card__specs li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.5em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
}

.wow-cal-card .wow-nc__atc {
	width: 100%;
}

/* ==========================================================================
   2026-10 layout: no preview section. .wow-product-details opens the page
   (slider left, info + purchase card right), FAQ below. The .wow-cal-preview
   rules above are no longer used by the template.
   ========================================================================== */

.wow-cal-details {
	padding-top: 40px;
}

.wow-cal-breadcrumb {
	margin-bottom: 16px;
}

.wow-cal-info-card {
	position: relative;
	padding-right: 56px;
}

.wow-cal-info-card .wow-cal-card__lang {
	margin: 8px 0 0;
}

.wow-cal-buy {
	margin-top: 24px;
}

.wow-cal-buy .wow-nc__payments {
	margin-top: 12px;
}

.wow-cal-faq {
	max-width: 860px;
	margin: 0 auto;
	padding: 8px 32px 72px;
}

.wow-cal-faq__title {
	font-family: var(--wp--preset--font-family--josefin);
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 16px;
	color: var(--wp--preset--color--text);
}

@media (max-width: 900px) {
	.wow-cal-details {
		padding-top: 24px;
	}

	.wow-cal-faq {
		padding: 0 20px 48px;
	}
}

/* ==========================================================================
   2026-10 (b): centered breadcrumb above the page, size cards, FAQ
   accordion, other calendars.
   ========================================================================== */

.wow-cal-breadcrumb {
	max-width: 1270px;
	margin: 32px auto 0;
	padding: 0 32px;
	justify-content: center;
	text-align: center;
}

.wow-cal-details {
	padding-top: 24px;
}

a.wow-product-gallery__item {
	display: block;
	cursor: zoom-in;
}

.wow-cal-specs {
	margin-top: 12px;
}

@media (max-width: 900px) {
	.wow-cal-specs {
		font-size: 14px;
	}
}

/* Size choice: one row, two cards, on every screen size. */
.wow-cal-card .wow-cal-sizes {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	border: none;
	border-radius: 0;
	overflow: visible;
}

.wow-cal-card .wow-cal-sizes .wow-nc__size-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin: 0;
	padding: 18px 10px;
	background: #fff;
	border: 1px solid #e4e0da;
	border-radius: 8px;
	text-align: center;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.wow-cal-card .wow-cal-sizes .wow-nc__size-btn[hidden] {
	display: none;
}

.wow-cal-card .wow-cal-sizes .wow-nc__size-btn:not(.active):hover {
	border-color: #c8c2ba;
	background: #f8f5f2;
}

.wow-cal-card .wow-cal-sizes .wow-nc__size-btn.active {
	background: #000;
	border-color: #000;
}

.wow-cal-size__name {
	font-family: var(--wp--preset--font-family--josefin);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--wp--preset--color--text);
}

.wow-cal-size__dim {
	font-family: var(--wp--preset--font-family--josefin);
	font-size: 11px;
	color: #7c7c7c;
}

.wow-cal-size__price {
	margin-top: 4px;
	font-family: var(--wp--preset--font-family--josefin);
	font-size: 22px;
	font-weight: 300;
	line-height: 1.1;
	color: var(--wp--preset--color--text);
}

.wow-nc__size-btn.active .wow-cal-size__name,
.wow-nc__size-btn.active .wow-cal-size__price {
	color: #fff;
}

.wow-nc__size-btn.active .wow-cal-size__dim {
	color: rgba(255, 255, 255, 0.6);
}

/* FAQ accordion: height animated by calendar-configurator.js; the "+"
   follows .is-open (set immediately) rather than [open] (kept until the
   closing slide ends). */
.wow-cal-faq .wow-product-info__accordion-body {
	padding-top: 0;
	overflow: hidden;
	transition: height 0.35s ease;
}

.wow-cal-faq .wow-product-info__accordion-body > :first-child {
	margin-top: 14px;
}

.wow-cal-faq .wow-product-info__accordion-body > :last-child {
	margin-bottom: 0;
}

.wow-cal-faq .wow-product-info__accordion[open] summary::after {
	transform: none;
}

.wow-cal-faq .wow-product-info__accordion.is-open summary::after {
	transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
	.wow-cal-faq .wow-product-info__accordion-body {
		transition: none;
	}
}

/* Other calendars */
.wow-cal-others {
	max-width: 1270px;
	margin: 0 auto;
	padding: 0 32px 72px;
}

.wow-cal-others .wow-cal-faq__title {
	text-align: center;
	margin-bottom: 24px;
}

.wow-cal-others .wow-cal-others__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

@media (max-width: 900px) {
	.wow-cal-breadcrumb {
		margin-top: 20px;
		padding: 0 20px;
	}

	.wow-cal-others {
		padding: 0 20px 48px;
	}

	.wow-cal-others .wow-cal-others__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}
}

/* ==========================================================================
   2026-10 (c): black body text, free shipping line, wallet buttons,
   gallery scroll hint, FAQ lists.
   ========================================================================== */

.wow-cal-details .wow-product-info__desc,
.wow-cal-details .wow-product-info__desc p,
.wow-cal-faq .wow-product-info__accordion summary,
.wow-cal-faq .wow-product-info__accordion-body,
.wow-cal-faq .wow-product-info__accordion-body p,
.wow-cal-faq .wow-product-info__accordion summary::after {
	color: #000;
}

.wow-cal-freeship {
	margin: 2px 0 14px;
	font-family: var(--wp--preset--font-family--josefin);
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	color: #000;
}

.wow-cal-form {
	margin: 0;
}

/* Apple Pay / Google Pay (and any other wallet) buttons, right under
   Add to cart. */
.wow-cal-express:not(:empty) {
	margin-top: 10px;
}

/* Gallery: one full-width slide at a time, no peek of the next one.
   Swipe or arrows; each stop snaps to a whole slide. */
.wow-cal-details .wow-product-gallery {
	position: relative;
}

.wow-cal-details .wow-product-gallery__track {
	gap: 0;
	overscroll-behavior-x: contain;
}

.wow-cal-details .wow-product-gallery__item {
	flex: 0 0 100%;
	scroll-snap-align: center;
	scroll-snap-stop: always;
}

.wow-cal-gallery-hint {
	position: absolute;
	top: calc(50% - 26px);
	right: 12px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #000;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
	cursor: pointer;
	animation: wowCalHintPulse 1.6s ease-in-out infinite;
	transition: opacity 0.35s ease;
}

.wow-cal-gallery-hint[hidden] {
	display: none;
}

.wow-cal-gallery-hint--prev {
	right: auto;
	left: 12px;
	animation: none;
}

/* Stops pulsing once the visitor has moved the slider. */
.wow-cal-gallery-hint.is-calm {
	animation: none;
}

@keyframes wowCalHintPulse {
	0%,
	100% {
		transform: translateX(0) scale(1);
		box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
	}
	50% {
		transform: translateX(6px) scale(1.06);
		box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
	}
}

@media (prefers-reduced-motion: reduce) {
	.wow-cal-gallery-hint {
		animation: none;
	}
}

/* FAQ lists (cars, photographers) */
.wow-cal-faq__list {
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
}

.wow-cal-faq__list li {
	padding: 6px 0;
	border-bottom: 1px solid #eee;
}

.wow-cal-faq__list li:last-child {
	border-bottom: none;
}

.wow-cal-faq__list strong {
	display: inline-block;
	min-width: 110px;
	font-weight: 700;
}

.wow-cal-faq__by {
	color: #6f6a64;
}

.wow-cal-faq__list a {
	color: #000;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ==========================================================================
   2026-10 (d): rating on the title card, grey purchase card, tighter
   wallet buttons, FAQ tweaks, bigger text on mobile.
   ========================================================================== */

.wow-cal-card.wow-nc {
	background: #e7e7e7;
}

.wow-cal-rating {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 8px;
	margin-top: 2px;
	color: #fff;
	text-decoration: none;
	font-family: var(--wp--preset--font-family--josefin);
	font-size: 13px;
}

.wow-cal-rating .star-rating {
	position: relative;
	display: inline-block;
	overflow: hidden;
	font-size: 15px;
	line-height: 1;
	letter-spacing: 2px;
	color: rgba(255, 255, 255, 0.35);
}

.wow-cal-rating .star-rating::before {
	content: '★★★★★';
	display: block;
}

.wow-cal-rating .star-rating span {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	white-space: nowrap;
	color: #f2c94c;
}

.wow-cal-rating .star-rating span::before {
	content: '★★★★★';
	display: block;
}

.wow-cal-rating__score {
	font-weight: 700;
}

.wow-cal-rating__count {
	opacity: 0.8;
}

.wow-cal-rating:hover .wow-cal-rating__count,
.wow-cal-rating:focus-visible .wow-cal-rating__count {
	text-decoration: underline;
}

/* Same gap between Add to cart, Apple Pay and Google Pay. */
.wow-cal-express:not(:empty) {
	margin-top: 0.4em;
}

.wow-cal-buy .wc-stripe-product-checkout-container ul.wc_stripe_product_payment_methods li[class*=payment_method_stripe_]:not([style*="display: none"]):not(.hidden):not(:last-child) {
	margin: 0 0 0.4em;
}

.wow-cal-faq .wow-product-info__accordion summary {
	font-weight: 400;
}

/* Cars by month: month | car as two cells; a long car name wraps inside
   its own cell instead of under the month. */
.wow-cal-faq__list--months li {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr);
	column-gap: 12px;
	align-items: baseline;
}

.wow-cal-faq__list--months strong {
	min-width: 0;
}

@media (max-width: 900px) {
	.wow-cal-details .wow-product-info__desc,
	.wow-cal-faq .wow-product-info__accordion-body {
		font-size: 17px;
	}

	.wow-cal-faq__list--months li {
		grid-template-columns: 92px minmax(0, 1fr);
	}
}

/* Calendars archive: FAQ under the grid */
.wow-cal-faq--archive {
	padding-top: 48px;
}

/* Calendar cards: "Two sizes: 39 € / 49 €" under the title */
.wow-archive-grid .product.product--calendar .wow-frame-title {
	margin: 0;
}

.wow-archive-grid .wow-frame-price {
	margin: 4px 0 0;
	font-family: var(--wp--preset--font-family--josefin);
	font-weight: 300;
	font-style: italic;
	font-size: 15px;
	letter-spacing: 0.3px;
	color: var(--wp--preset--color--text);
}

/* Calendars archive hero: free shipping line under the description */
.wow-cal-hero-shipping {
	margin-top: 8px;
}

/* Calendars archive: room between the hero and the grid */
.wow-cal-archive .wow-archive-body {
	padding-top: 56px;
}

/* Calendar cards (archive + "Our other calendars"): no grey box around them */
.wow-archive-grid .product.product--calendar .wow-frame,
.wow-archive-grid .product.product--calendar .wow-frame:hover {
	background-color: transparent;
	box-shadow: none;
	padding: 0;
}

@media (max-width: 900px) {
	.wow-cal-archive .wow-archive-body {
		padding-top: 32px;
	}
}

/* Mobile, one calendar per row: tighter rows */
@media (max-width: 700px) {
	.wow-cal-archive .wow-archive-grid {
		row-gap: 28px;
	}
}

/* Mobile sticky buy bar (built by calendar-configurator.js): a floating
   pill with the size pills + a round cart button. Fades out while the real
   buy card is on screen. */
.wow-cal-sticky {
	display: none;
}

@media (max-width: 900px) {
	.wow-cal-sticky {
		position: fixed;
		left: 12px;
		right: 12px;
		bottom: calc(12px + env(safe-area-inset-bottom));
		z-index: 90;
		display: flex;
		align-items: center;
		gap: 6px;
		padding: 6px;
		background: rgba(255, 255, 255, 0.96);
		border: 1px solid #e4e0da;
		border-radius: 999px;
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s linear 0s;
	}

	.wow-cal-sticky.is-hidden {
		opacity: 0;
		visibility: hidden;
		transform: translateY(8px);
		pointer-events: none;
		transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s linear 0.4s;
	}

	.wow-cal-sticky__sizes {
		display: flex;
		flex: 1 1 auto;
		gap: 6px;
		min-width: 0;
	}

	.wow-cal-sticky__size {
		flex: 1 1 0;
		min-width: 0;
		height: 40px;
		padding: 0 10px;
		border: 1px solid #e4e0da;
		border-radius: 999px;
		background: #fff;
		color: var(--wp--preset--color--text);
		font-family: var(--wp--preset--font-family--josefin);
		font-size: 13px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		cursor: pointer;
		transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	}

	.wow-cal-sticky__size strong {
		font-weight: 700;
	}

	.wow-cal-sticky__size.is-active {
		background: #000;
		border-color: #000;
		color: #fff;
	}

	.wow-cal-sticky__atc {
		flex: 0 0 40px;
		width: 40px;
		height: 40px;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 0;
		border: none;
		border-radius: 50%;
		background: var(--wp--preset--color--accent);
		color: #fff;
		cursor: pointer;
		transition: background 0.2s ease;
	}

	.wow-cal-sticky__atc.is-added {
		background: #4b944c;
	}

	/* Tap feedback: a quick squeeze-and-pop plus a soft ring. */
	.wow-cal-sticky__atc.is-tapped {
		animation: wowCalAtcPop 0.45s ease-out;
	}

	@keyframes wowCalAtcPop {
		0% {
			transform: scale(1);
			box-shadow: 0 0 0 0 rgba(183, 55, 55, 0.45);
		}
		30% {
			transform: scale(0.86);
		}
		60% {
			transform: scale(1.12);
		}
		100% {
			transform: scale(1);
			box-shadow: 0 0 0 12px rgba(183, 55, 55, 0);
		}
	}

	.wow-cal-sticky__atc:disabled {
		opacity: 0.6;
	}

	/* Room so the floating bar never covers the end of the page. */
	body.wow-has-cal-sticky {
		padding-bottom: calc(76px + env(safe-area-inset-bottom));
	}
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
	.wow-cal-sticky,
	.wow-cal-sticky.is-hidden {
		transform: none;
	}

	.wow-cal-sticky__atc.is-tapped {
		animation: none;
	}
}
