/* The Truffle Farm waitlist form. Loads after the newsletter stylesheet (ttf-newsletter/newsletter.css),
   which gives the shared look: .ttf-nl, .ttf-nl__fields, .ttf-nl__button, .ttf-nl__consent and so on.
   Only what differs for the waitlist is here. */

/* Sits where the tickets box was, so it fills the content column instead of the centred 760px box. */
.ttf-nl--inline.ttf-wl {
	max-width: none;
	margin: 32px 0 32px;
	scroll-margin-top: 120px; /* the theme's sticky header, when arriving from "Join the Waitlist" in the events list */
}
.ttf-wl .ttf-nl__fields { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.ttf-wl .ttf-nl__field { margin: 0; flex: 1 1 220px; }
.ttf-wl .ttf-nl__field--email { flex-basis: 260px; }
.ttf-wl__form { margin: 0; }

/* After a successful join: hide the inputs and the button, keep the message (same as the newsletter form). */
.ttf-wl__form.is-done .ttf-nl__fields,
.ttf-wl__form.is-done button.ttf-nl__button { display: none; }

/* Events list: the link sits beside Event Tickets' "Sold Out". */
.tribe-events-c-small-cta .ttf-wl-list-link { margin-left: 12px; }

@media (max-width: 680px) {
	.ttf-nl--inline.ttf-wl { margin: 24px 0; }
	.ttf-wl button.ttf-nl__button { width: 100%; }
}

/* Past events and the "Coming Up" list (v1.1.0). */
.ttf-wl-past { margin: 32px 0; }
.ttf-wl-past__notice { border: 1px solid #e8dfd3; border-left: 4px solid #b5643a; background: #faf7f2; padding: 20px 24px; margin: 0 0 28px; }
.ttf-wl-past__title { margin: 0 0 6px; font-size: 1.6em; }
.ttf-wl-past__text { margin: 0; }
.ttf-wl-upcoming { margin: 28px 0 32px; }
.ttf-wl-upcoming__title { margin: 0 0 16px; font-size: 1.4em; }
.ttf-wl-upcoming__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ttf-wl-upcoming__card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; border: 1px solid #e8dfd3; background: #fff; padding: 0 0 16px; transition: box-shadow .2s ease; }
.ttf-wl-upcoming__card:hover, .ttf-wl-upcoming__card:focus { box-shadow: 0 4px 16px rgba(44,36,29,.12); }
.ttf-wl-upcoming__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #f3eee6; }
.ttf-wl-upcoming__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ttf-wl-upcoming__date { padding: 10px 16px 0; font-size: .85em; color: #b5643a; }
.ttf-wl-upcoming__name { padding: 0 16px; font-weight: 600; line-height: 1.35; }
.ttf-wl-upcoming__cta { padding: 0 16px; margin-top: auto; font-size: .9em; text-decoration: underline; }
.ttf-wl-upcoming__all { margin: 20px 0 0; text-align: center; }
.ttf-wl-upcoming__all a.ttf-wl-upcoming__allbtn { display: inline-block; text-decoration: none; background: #c8693a; color: #fff; font-family: "Spectral SC", serif; letter-spacing: 1.95px; padding: 12px 34px 11px; border: 0; }
.ttf-wl-upcoming__all a.ttf-wl-upcoming__allbtn:hover, .ttf-wl-upcoming__all a.ttf-wl-upcoming__allbtn:focus { background: #a9542b; color: #fff; }
.ttf-wl .ttf-wl-upcoming { margin-top: 28px; }
@media (max-width: 900px) { .ttf-wl-upcoming__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ttf-wl-upcoming__grid { grid-template-columns: 1fr; } }
