/* WTF Farm Experiences & Events
   Matches the site's dark card style. Override any token from Breakdance global CSS, e.g.
   .wtfe { --wtfe-accent: #e8743a; --wtfe-title-font: "Your Heading Font", serif; } */

.wtfe {
	--wtfe-bg: #0f1a12;           /* page */
	--wtfe-card: #1f2d1e;         /* card */
	--wtfe-card-2: #263625;       /* raised areas inside dialog */
	--wtfe-input: #162216;
	--wtfe-text: #f2ede3;         /* titles */
	--wtfe-muted: #b9bfb1;        /* meta text */
	--wtfe-icon: #a9b7a0;
	--wtfe-line: rgba(255, 255, 255, 0.08);
	--wtfe-line-strong: rgba(255, 255, 255, 0.16);
	--wtfe-accent: #e8743a;       /* "More Info" orange */
	--wtfe-accent-hover: #f28a55;
	--wtfe-danger: #ff9b85;
	--wtfe-radius: 16px;
	--wtfe-title-font: inherit;   /* set to the site's serif heading font if needed */
	color: var(--wtfe-text);
	font-family: inherit;
	line-height: 1.55;
}
.wtfe *, .wtfe *::before, .wtfe *::after { box-sizing: border-box; }

/* ---------- grid ---------- */

.wtfe-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	width: 100%;
}
.wtfe-grid--1 { grid-template-columns: minmax(0, 1fr); }
.wtfe-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wtfe-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) {
	.wtfe-grid--3,
	.wtfe-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.wtfe-grid,
	.wtfe-grid--3,
	.wtfe-grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- card ---------- */
/* Default logo image (used when an item has no featured image) sits on parchment so the brown ink stays readable. */
.wtfe { --wtfe-parchment: #efe5cf; }

.wtfe-card {
	display: flex;
	flex-direction: column;
	background: var(--wtfe-card);
	border-radius: var(--wtfe-radius);
	overflow: hidden;
}

.wtfe-card__media {
	aspect-ratio: 16 / 10;
	background: var(--wtfe-card-2);
	overflow: hidden;
}
.wtfe-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wtfe-card__media--default { background: var(--wtfe-parchment); }
.wtfe .wtfe-card__media--default img {
	object-fit: contain;
	padding: 18px 24px;
}

.wtfe-card__body {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	flex: 1;
	padding: 20px 20px 22px;
	text-align: left;
}

/* Lock title, date line and footer to the same left edge,
   even if the theme or Breakdance adds margins/padding/centering to h3 or p. */
.wtfe .wtfe-card__body > .wtfe-card__title,
.wtfe .wtfe-card__body > .wtfe-card__meta,
.wtfe .wtfe-card__body > .wtfe-card__foot {
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
	text-align: left;
	text-indent: 0;
	width: 100%;
	max-width: none;
}

.wtfe .wtfe-card__title {
	margin: 0 0 10px;
	font-family: var(--wtfe-title-font);
	font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem);
	font-weight: 500;
	line-height: 1.2;
	color: var(--wtfe-text);
}

.wtfe .wtfe-card__meta {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	margin-top: 0;
	margin-bottom: 0;
	line-height: 1.4;
	font-size: 0.875rem;
	color: var(--wtfe-muted);
}
.wtfe .wtfe-card__icon {
	display: block;
	flex: none;
	margin: 0;
	color: var(--wtfe-icon);
}

.wtfe-card__foot {
	display: flex;
	justify-content: flex-start;
	margin-top: auto;
	padding-top: 20px;
	border-top: 1px solid var(--wtfe-line);
}
.wtfe-card__meta + .wtfe-card__foot,
.wtfe-card__title + .wtfe-card__foot { margin-top: 30px; }

.wtfe-more {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--wtfe-accent);
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}
.wtfe-more svg { transition: transform 0.15s ease; }
.wtfe-more:hover { color: var(--wtfe-accent-hover); }
.wtfe-more:hover svg { transform: translateX(3px); }

.wtfe-card__state { font-weight: 600; color: var(--wtfe-muted); }

.wtfe-more:focus-visible,
.wtfe-btn:focus-visible,
.wtfe-dialog button:focus-visible,
.wtfe-dialog input:focus-visible,
.wtfe-dialog textarea:focus-visible,
.wtfe-dialog a:focus-visible {
	outline: 2px solid var(--wtfe-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

.wtfe-empty { color: var(--wtfe-muted); }

/* ---------- buttons ---------- */

.wtfe-btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 10px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--wtfe-accent);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s ease;
}
.wtfe-btn:hover { background: var(--wtfe-accent-hover); }
.wtfe-btn:disabled { background: var(--wtfe-card-2); color: var(--wtfe-muted); cursor: not-allowed; }

/* ---------- confirmation banner ---------- */

.wtfe-status {
	margin: 0 0 24px;
	padding: 20px 22px;
	background: var(--wtfe-card);
	border-left: 4px solid var(--wtfe-accent);
	border-radius: var(--wtfe-radius);
	color: var(--wtfe-text);
}
.wtfe-status--muted { border-left-color: var(--wtfe-muted); }
.wtfe-status p { margin: 0 0 8px; color: var(--wtfe-muted); }
.wtfe-status p:last-child { margin-bottom: 0; }
.wtfe-status strong { color: var(--wtfe-text); }
.wtfe-status .wtfe-status__title {
	font-family: var(--wtfe-title-font);
	font-size: 1.5rem;
	font-weight: 500;
	color: var(--wtfe-text);
}
.wtfe-status:focus { outline: none; }

/* ---------- dialog ---------- */

html.wtfe-lock { overflow: hidden; }

.wtfe-dialog {
	width: min(640px, calc(100% - 24px));
	max-height: calc(100dvh - 48px);
	margin: auto;
	padding: 0;
	border: 1px solid var(--wtfe-line);
	border-radius: var(--wtfe-radius);
	background: var(--wtfe-card);
	color: var(--wtfe-text);
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
	overflow: hidden;
}
.wtfe-dialog[open] { display: flex; }
.wtfe-dialog::backdrop { background: rgba(5, 10, 6, 0.75); }

.wtfe-form {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-height: calc(100dvh - 48px);
	margin: 0;
}

.wtfe-dialog__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 22px 16px;
	border-bottom: 1px solid var(--wtfe-line);
}
.wtfe .wtfe-dialog__title {
	margin: 0;
	font-family: var(--wtfe-title-font);
	font-size: 1.6rem;
	font-weight: 500;
	line-height: 1.2;
	color: var(--wtfe-text);
}
.wtfe-close {
	appearance: none;
	flex: none;
	width: 40px;
	height: 40px;
	margin: -6px -8px 0 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--wtfe-muted);
	font-size: 1.8rem;
	line-height: 1;
	cursor: pointer;
}
.wtfe-close:hover { background: var(--wtfe-card-2); color: var(--wtfe-text); }

.wtfe-dialog__scroll {
	flex: 1;
	overflow-y: auto;
	padding: 20px 22px 8px;
	overscroll-behavior: contain;
	scrollbar-color: var(--wtfe-line-strong) transparent;
}

.wtfe-about__img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 12px;
	margin-bottom: 16px;
}
.wtfe .wtfe-about__img--default {
	object-fit: contain;
	padding: 16px 24px;
	background: var(--wtfe-parchment);
}
.wtfe-meta { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0 0 12px; }
.wtfe-meta dt { font-size: 0.8rem; color: var(--wtfe-muted); }
.wtfe-meta dd { margin: 0; font-weight: 600; }
.wtfe-desc { max-width: 65ch; color: var(--wtfe-muted); }
.wtfe-desc p { margin: 0 0 10px; }

.wtfe-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; padding: 0; list-style: none; }
.wtfe-chips li {
	margin: 0;
	padding: 4px 12px;
	font-size: 0.82rem;
	color: var(--wtfe-text);
	background: var(--wtfe-card-2);
	border: 1px solid var(--wtfe-line);
	border-radius: 999px;
}

.wtfe-step {
	margin: 20px 0 0;
	padding: 20px 0 4px;
	border: 0;
	border-top: 1px solid var(--wtfe-line);
	min-width: 0;
}
.wtfe-step legend {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 10px 0 0;
	font-family: var(--wtfe-title-font);
	font-size: 1.2rem;
	font-weight: 500;
	color: var(--wtfe-text);
}
.wtfe-num {
	display: inline-grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 1.5px solid var(--wtfe-accent);
	color: var(--wtfe-accent);
	font-family: inherit;
	font-size: 0.8rem;
	font-weight: 700;
}

/* dates */
.wtfe-sessions { display: grid; gap: 8px; margin-top: 12px; }
.wtfe-session {
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-areas: "radio date left" "radio time left";
	align-items: center;
	column-gap: 12px;
	padding: 12px 14px;
	background: var(--wtfe-input);
	border: 1.5px solid var(--wtfe-line);
	border-radius: 12px;
	cursor: pointer;
}
.wtfe-session input { grid-area: radio; width: 18px; height: 18px; margin: 0; accent-color: var(--wtfe-accent); }
.wtfe-session__date { grid-area: date; font-weight: 600; }
.wtfe-session__time { grid-area: time; color: var(--wtfe-muted); font-size: 0.88rem; }
.wtfe-session__left { grid-area: left; font-size: 0.82rem; color: var(--wtfe-accent); font-weight: 600; text-align: right; }
.wtfe-session:has(input:checked) { border-color: var(--wtfe-accent); }
.wtfe-session.is-off { cursor: not-allowed; opacity: 0.5; }
.wtfe-session.is-off .wtfe-session__left { color: var(--wtfe-muted); }

/* tickets */
.wtfe-lines { display: grid; margin-top: 6px; }
.wtfe-line {
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: center;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px solid var(--wtfe-line);
}
.wtfe-line:last-child { border-bottom: 0; }
.wtfe-line__label { display: block; font-weight: 600; }
.wtfe-line__note { display: block; font-size: 0.85rem; color: var(--wtfe-muted); }
.wtfe-line__price { font-weight: 600; white-space: nowrap; }

.wtfe-qty {
	display: inline-flex;
	align-items: center;
	background: var(--wtfe-input);
	border: 1.5px solid var(--wtfe-line-strong);
	border-radius: 999px;
}
.wtfe-line.has-qty .wtfe-qty { border-color: var(--wtfe-accent); }
.wtfe-qty button {
	appearance: none;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--wtfe-text);
	font-size: 1.2rem;
	font-weight: 700;
	cursor: pointer;
}
.wtfe-qty button:disabled { color: rgba(255, 255, 255, 0.2); cursor: not-allowed; }
.wtfe-qty output { min-width: 22px; text-align: center; font-weight: 700; }

.wtfe-subhead { margin: 16px 0 0; font-weight: 600; }
.wtfe-hint { margin: 8px 0 0; font-size: 0.88rem; color: var(--wtfe-muted); }

/* details */
.wtfe-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.wtfe-field { display: grid; gap: 6px; margin: 0; }
.wtfe-field--wide { grid-column: 1 / -1; }
.wtfe-field > span { font-size: 0.88rem; font-weight: 600; color: var(--wtfe-muted); }
.wtfe .wtfe-field input,
.wtfe .wtfe-field textarea {
	width: 100%;
	min-height: 46px;
	padding: 11px 14px;
	border: 1.5px solid var(--wtfe-line-strong);
	border-radius: 10px;
	background: var(--wtfe-input);
	color: var(--wtfe-text);
	font: inherit;
	box-shadow: none;
}
.wtfe .wtfe-field input::placeholder,
.wtfe .wtfe-field textarea::placeholder { color: rgba(185, 191, 177, 0.55); }
.wtfe-field textarea { resize: vertical; }
.wtfe .wtfe-field input:focus,
.wtfe .wtfe-field textarea:focus { border-color: var(--wtfe-accent); outline: none; }

.wtfe-check {
	grid-column: 1 / -1;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	background: var(--wtfe-input);
	border: 1.5px solid var(--wtfe-line);
	border-radius: 12px;
	cursor: pointer;
}
.wtfe-check input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--wtfe-accent); }
.wtfe-check a { color: var(--wtfe-accent); font-weight: 600; }

.wtfe-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.wtfe-policy { margin: 14px 0 0; font-size: 0.85rem; color: var(--wtfe-muted); white-space: pre-line; }

/* footer */
.wtfe-dialog__foot {
	padding: 14px 22px 16px;
	border-top: 1px solid var(--wtfe-line);
	background: var(--wtfe-card);
}
.wtfe-foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wtfe-total { display: grid; line-height: 1.2; }
.wtfe-total span { font-size: 0.82rem; color: var(--wtfe-muted); }
.wtfe-total strong { font-size: 1.5rem; font-weight: 600; color: var(--wtfe-text); }
.wtfe-btn--primary { min-width: 210px; }
.wtfe-error {
	margin: 0 0 12px;
	padding: 10px 12px;
	background: rgba(255, 110, 80, 0.12);
	border: 1px solid rgba(255, 110, 80, 0.35);
	color: var(--wtfe-danger);
	border-radius: 10px;
	font-weight: 600;
}
.wtfe-secure { margin: 8px 0 0; font-size: 0.78rem; color: var(--wtfe-muted); }

@media (max-width: 560px) {
	.wtfe-dialog { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; }
	.wtfe-form { max-height: 100dvh; }
	.wtfe-fields { grid-template-columns: 1fr; }
	.wtfe-line { grid-template-columns: 1fr auto; }
	.wtfe-line__price { grid-column: 1; grid-row: 2; font-size: 0.9rem; }
	.wtfe-qty { grid-column: 2; grid-row: 1 / span 2; }
	.wtfe-foot-row { flex-wrap: wrap; }
	.wtfe-btn--primary { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.wtfe-btn, .wtfe-more svg { transition: none; }
}
