/* Affinity Share */

:root {
	--affs-gold: #c8a24a;
	--affs-navy: #14213d;
	--affs-line: #e6e1d6;
	--affs-muted: #6b6f7b;
}

/* Share button. Both sit on dark backgrounds (photo header, navy booking box).
   Tripled class so the event page's own button styles can't override it. */
.affs-btn.affs-btn.affs-btn {
	display: inline-flex;
	align-items: center;
	width: auto;
	min-width: 0;
	height: auto;
	margin: 6px 0 18px;
	padding: 8px 20px;
	border: 1px solid var(--affs-gold);
	border-radius: 30px;
	background: rgba(10, 18, 40, 0.35);
	box-shadow: none;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.affs-btn.affs-btn.affs-btn:hover,
.affs-btn.affs-btn.affs-btn:focus-visible {
	background: var(--affs-gold);
	color: #fff;
}

.affs-btn.affs-btn svg {
	flex: 0 0 auto;
	margin-right: 8px;
}

/* Beside the header's "Book Now" button, same size as it (49px tall, 17px text) */
.affs-btn.affs-btn.affs-btn-hero {
	box-sizing: border-box;
	height: 49px;
	margin: 0 0 0 12px;
	padding: 0 27px;
	font-size: 17px;
	font-weight: 400;
	vertical-align: top;
}

/* Under "Book Your Place" in the booking box, same size as it (55px tall, 17px text) */
.affs-btn.affs-btn.affs-btn-booking {
	box-sizing: border-box;
	height: 55px;
	margin: 1rem 0 8px 12px; /* same top margin and alignment as "Book Your Place", space below if it wraps */
	vertical-align: middle;
	padding: 0 27px;
	font-size: 17px;
	font-weight: 400;
}

/* Line Share up exactly with "Book Your Place": inline-block and inline-flex buttons sit on
   different baselines, so lay the booking form out as a row (only forms with our button). */
form.cart:has(> .affs-btn-booking) {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
}

/* Booked: beside "Can't attend?" and "Add to calendar", same size as them (33px tall, 14px text) */
.affs-btn.affs-btn.affs-btn-booked {
	box-sizing: border-box;
	height: 33px;
	margin: 0 0 8px 4px; /* space between rows when the buttons wrap on phones */
	padding: 0 14px;
	font-size: 14px;
	font-weight: 400;
	vertical-align: top;
}

.affs-btn.affs-btn.affs-btn-booked svg {
	width: 15px;
	height: 15px;
	margin-right: 6px;
}

/* The booking box has ".sell button { background: ... !important }" */
.affs-btn.affs-btn.affs-btn {
	background: rgba(10, 18, 40, 0.35) !important;
}

.affs-btn.affs-btn.affs-btn:hover,
.affs-btn.affs-btn.affs-btn:focus-visible {
	background: var(--affs-gold) !important;
}

/* Pop-up */
.affs-open,
.affs-open body {
	overflow: hidden;
}

.affs-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(10, 18, 40, 0.6);
}

.affs-overlay[hidden] {
	display: none;
}

.affs-dialog,
.affs-dialog * {
	box-sizing: border-box;
}

.affs-dialog {
	position: relative;
	width: 100%;
	max-width: 460px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 26px 22px 20px;
	border-radius: 16px;
	background: #fff;
	color: var(--affs-navy);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	text-align: left;
}

.affs-dialog .affs-heading {
	margin: 0 0 4px;
	font-size: 28px;
	line-height: 1.15;
}

.affs-dialog .affs-event {
	margin: 0 0 16px;
	color: var(--affs-muted);
	font-size: 15px;
}

.affs-dialog .affs-close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--affs-muted);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.affs-dialog .affs-close:hover {
	background: #f3f0e8;
	color: var(--affs-navy);
}

.affs-dialog .affs-step {
	margin: 16px 0 8px;
	font-size: 15px;
	font-weight: 700;
}

.affs-choices {
	display: grid;
	gap: 6px;
}

.affs-dialog .affs-choice {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0;
	padding: 9px 12px;
	border: 1px solid var(--affs-line);
	border-radius: 12px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.35;
	cursor: pointer;
}

.affs-dialog .affs-choice:hover {
	border-color: var(--affs-gold);
}

.affs-dialog .affs-choice:has(input:checked) {
	border-color: var(--affs-gold);
	background: #faf6ec;
}

.affs-dialog .affs-choice input {
	flex: 0 0 auto;
	margin: 3px 0 0;
	accent-color: var(--affs-gold);
}

.affs-dialog .affs-edit-label {
	display: block;
	margin: 12px 0 4px;
	color: var(--affs-muted);
	font-size: 13px;
	font-weight: 400;
}

.affs-dialog .affs-text {
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-height: 70px;
	margin: 0;
	padding: 9px 12px;
	border: 1px solid var(--affs-line);
	border-radius: 12px;
	font: inherit;
	font-size: 14px;
	line-height: 1.4;
	resize: vertical;
}

.affs-dialog .affs-text:focus {
	border-color: var(--affs-gold);
	outline: none;
}

.affs-options.affs-options-phone {
	grid-template-columns: 1fr;
}

.affs-dialog .affs-option.affs-option-primary {
	border-color: var(--affs-gold);
	background: var(--affs-gold);
	color: #fff;
}

.affs-dialog .affs-option.affs-option-primary small {
	color: rgba(255, 255, 255, 0.85);
}

.affs-dialog .affs-option.affs-option-primary .affs-ico {
	background: rgba(255, 255, 255, 0.2);
}

.affs-options {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.affs-dialog .affs-option {
	display: flex;
	gap: 10px;
	align-items: center;
	width: 100%;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--affs-line);
	border-radius: 12px;
	background: #fff;
	color: var(--affs-navy);
	font-size: 15px;
	line-height: 1.25;
	text-align: left;
	cursor: pointer;
}

.affs-dialog .affs-option:hover,
.affs-dialog .affs-option:focus-visible {
	border-color: var(--affs-gold);
	background: #faf6ec;
}

.affs-option-text strong {
	display: block;
	font-weight: 700;
}

.affs-option-text small {
	display: block;
	color: var(--affs-muted);
	font-size: 12px;
}

.affs-ico {
	display: inline-flex;
	flex: 0 0 34px;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	color: #fff;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 17px;
	font-weight: 700;
}

.affs-ico-facebook { background: #1877f2; font-size: 20px; }
.affs-ico-linkedin { background: #0a66c2; border-radius: 8px; font-size: 15px; }
.affs-ico-instagram { background: linear-gradient(45deg, #f9a03f, #e1306c 50%, #833ab4); }
.affs-ico-whatsapp { background: #25d366; }
.affs-ico-email { background: var(--affs-navy); }
.affs-ico-copy { background: var(--affs-gold); }

.affs-dialog .affs-msg {
	min-height: 1.4em;
	margin: 12px 0 0;
	color: var(--affs-navy);
	font-size: 14px;
	font-weight: 700;
}

@media (max-width: 420px) {
	.affs-options {
		grid-template-columns: 1fr;
	}
}


/* Booking confirmation page (white background): dark text version */
.affs-btn.affs-btn.affs-btn-light {
	background: transparent !important;
	color: var(--affs-navy);
}

.affs-btn.affs-btn.affs-btn-light:hover,
.affs-btn.affs-btn.affs-btn-light:focus-visible {
	background: var(--affs-gold) !important;
	color: #fff;
}

/* Beside "Add to calendar" (33px, 14px text, 40px below) */
.affs-btn.affs-btn.affs-btn-thanks-cal {
	box-sizing: border-box;
	height: 33px;
	margin: 0 0 40px 6px;
	padding: 0 14px;
	font-size: 14px;
	font-weight: 400;
	vertical-align: top;
}

.affs-btn.affs-btn.affs-btn-thanks-cal svg {
	width: 15px;
	height: 15px;
	margin-right: 6px;
}

/* Beside "More events" (49px, 17px text) */
.affs-btn.affs-btn.affs-btn-thanks-more {
	box-sizing: border-box;
	height: 49px;
	margin: 0 0 1rem 12px;
	padding: 0 27px;
	font-size: 17px;
	font-weight: 400;
	vertical-align: top;
}

/* "Let your friends know you're going" under the buttons on the confirmation page */
.affs-hint {
	margin: 10px 0 40px;
	color: var(--affs-muted);
	font-size: 15px;
	line-height: 1.4;
}
