/* ==========================================================================
   Event Tickets — Noble Suite — Front-end styles
   Palette: Ink #011926 · Gold #C9A84C · White #FFFFFF · Cream #f7f2e8
   Type: Cormorant Garamond (headings) · DM Sans (body/UI)
   ========================================================================== */

.evt-wrap {
	--evt-radius: 10px;
	max-width: 640px;
	margin: 0 auto;
	font-family: 'DM Sans', -apple-system, Helvetica, Arial, sans-serif;
	color: var(--evt-ink, #011926);
	box-sizing: border-box;
}
.evt-wrap *, .evt-wrap *::before, .evt-wrap *::after { box-sizing: border-box; }

/* ---------- Add to calendar ---------- */
.evt-calendar-dropdown {
	position: relative;
	margin-bottom: 18px;
	display: inline-block;
}
.evt-calendar-toggle {
	all: unset;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: 1.5px solid var(--evt-ink, #011926);
	color: var(--evt-ink, #011926);
	font-family: 'DM Sans', sans-serif;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.2px;
	padding: 10px 16px;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.evt-calendar-toggle:hover { background: var(--evt-ink, #011926); color: var(--evt-white, #fff); }
.evt-calendar-toggle .evt-chevron { transition: transform 0.15s ease; }
.evt-calendar-dropdown.is-open .evt-chevron { transform: rotate(180deg); }
.evt-calendar-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 200px;
	background: var(--evt-white, #fff);
	border: 1px solid rgba(1,25,38,0.12);
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(1,25,38,0.14);
	padding: 6px;
	z-index: 20;
	display: none;
}
.evt-calendar-dropdown.is-open .evt-calendar-menu { display: block; }
.evt-calendar-menu a {
	display: block;
	padding: 9px 12px;
	font-size: 14px;
	color: var(--evt-ink, #011926);
	text-decoration: none;
	border-radius: 5px;
}
.evt-calendar-menu a:hover { background: var(--evt-cream, #f7f2e8); }

/* ---------- Card ---------- */
.evt-card {
	background: var(--evt-white, #fff);
	border-radius: var(--evt-radius);
	border: 1px solid rgba(1,25,38,0.08);
	box-shadow: 0 12px 40px rgba(1,25,38,0.07);
	padding: 30px 28px 26px;
}
.evt-heading {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-weight: 600;
	font-size: 30px;
	letter-spacing: 0.2px;
	margin: 0 0 18px;
	color: var(--evt-ink, #011926);
	position: relative;
	padding-bottom: 14px;
}
.evt-heading::after {
	content: "";
	position: absolute;
	left: 0; bottom: 0;
	width: 46px; height: 3px;
	background: var(--evt-gold, #C9A84C);
	border-radius: 2px;
}

.evt-empty { color: #6b6457; font-size: 14px; }

/* ---------- Ticket rows ---------- */
.evt-ticket-rows { display: flex; flex-direction: column; }

.evt-ticket-row {
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: center;
	gap: 20px;
	padding: 20px 0;
	border-bottom: 1px dashed rgba(1,25,38,0.18);
}
.evt-ticket-rows .evt-ticket-row:first-child { padding-top: 6px; }
.evt-ticket-rows .evt-ticket-row:last-child { border-bottom: none; }

.evt-ticket-row--soldout { opacity: 0.55; }

.evt-choice-list {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 4px;
}
.evt-choice-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 200px;
}
.evt-choice-item-label {
	font-size: 12px;
	color: #6b6457;
}
.evt-choice-select {
	padding: 8px 10px;
	border: 1px solid rgba(1,25,38,0.25);
	border-radius: 4px;
	font-family: inherit;
	font-size: 14px;
	background: #fff;
	color: #2b2820;
}

.evt-ticket-name {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-weight: 600;
	font-size: 19px;
	margin: 0 0 4px;
	color: var(--evt-ink, #011926);
}
.evt-ticket-desc { font-size: 13.5px; line-height: 1.55; color: #5d5848; }
.evt-ticket-desc p { margin: 0; }

.evt-ticket-price {
	text-align: right;
	min-width: 96px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
}
.evt-price-current, .evt-price-sale {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-weight: 700;
	font-size: 20px;
	color: var(--evt-ink, #011926);
}
.evt-price-regular {
	font-size: 13px;
	color: #978f7b;
	text-decoration: line-through;
}
.evt-stock-label {
	font-size: 11.5px;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	color: #9a8f6b;
}

/* ---------- Quantity stepper ----------
   `all: unset` strips any theme/page-builder default button & input
   styling (pill shapes, min-widths, box-shadows, etc.) that would
   otherwise bleed through, then every needed property is redeclared
   explicitly so this renders identically on any host site. */
.evt-qty-stepper {
	display: inline-flex !important;
	align-items: stretch;
	border: 1.5px solid rgba(1,25,38,0.3);
	border-radius: 4px;
	overflow: hidden;
	background: var(--evt-white, #fff);
	flex-shrink: 0;
}
.evt-qty-btn {
	all: unset;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	flex: 0 0 36px;
	background: var(--evt-white, #fff);
	font-family: 'DM Sans', sans-serif;
	font-size: 17px;
	line-height: 1;
	color: var(--evt-ink, #011926);
	cursor: pointer;
	text-align: center;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.evt-qty-minus { border-right: 1.5px solid rgba(1,25,38,0.3); }
.evt-qty-plus { border-left: 1.5px solid rgba(1,25,38,0.3); }
.evt-qty-btn:hover { background: var(--evt-cream, #f7f2e8); color: var(--evt-gold, #C9A84C); }
.evt-qty-input {
	all: unset;
	box-sizing: border-box;
	display: block;
	width: 40px;
	height: 36px;
	flex: 0 0 40px;
	background: var(--evt-white, #fff);
	text-align: center;
	font-family: 'DM Sans', sans-serif;
	font-weight: 700;
	font-size: 15px;
	color: var(--evt-ink, #011926) !important;
	opacity: 1 !important;
	-moz-appearance: textfield;
}
.evt-qty-input::-webkit-outer-spin-button,
.evt-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.evt-soldout-badge {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	color: #a3261d;
	border: 1px solid #a3261d;
	border-radius: 20px;
	padding: 5px 12px;
	white-space: nowrap;
}

/* ---------- Customer fields ---------- */
.evt-customer-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 24px;
	padding-top: 22px;
	border-top: 1px solid rgba(1,25,38,0.1);
}
.evt-customer-fields .evt-field:last-child { grid-column: 1 / -1; }
.evt-field label {
	display: block;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	color: #6b6457;
	margin-bottom: 6px;
}
.evt-field input {
	all: unset;
	box-sizing: border-box;
	display: block;
	width: 100%;
	padding: 11px 13px;
	border: 1.5px solid rgba(1,25,38,0.16);
	border-radius: 6px;
	font-family: 'DM Sans', sans-serif;
	font-size: 14.5px;
	color: var(--evt-ink, #011926);
	background: var(--evt-white, #fff);
	transition: border-color 0.15s ease;
}
.evt-field input:focus {
	outline: none;
	border-color: var(--evt-gold, #C9A84C);
	box-shadow: 0 0 0 3px rgba(201,168,76,0.18);
}

/* ---------- Subtotal & submit ---------- */
.evt-subtotal-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-top: 22px;
	padding-top: 16px;
	border-top: 1px solid rgba(1,25,38,0.1);
	font-size: 13px;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	color: #6b6457;
}
.evt-subtotal-amount {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 24px;
	font-weight: 700;
	color: var(--evt-ink, #011926);
	text-transform: none;
	letter-spacing: 0;
}

.evt-submit-btn {
	all: unset;
	box-sizing: border-box;
	display: block;
	width: 100%;
	margin-top: 22px;
	padding: 15px 24px;
	background: var(--evt-ink, #011926);
	color: var(--evt-white, #fff);
	border-radius: 7px;
	font-family: 'DM Sans', sans-serif;
	font-weight: 700;
	font-size: 15.5px;
	text-align: center;
	letter-spacing: 0.4px;
	cursor: pointer;
	transition: filter 0.15s ease, transform 0.1s ease;
}
.evt-submit-btn:hover:not(:disabled) { filter: brightness(0.88); }
.evt-submit-btn:active:not(:disabled) { transform: translateY(1px); }
.evt-submit-btn:disabled {
	background: #ccc6b4 !important;
	color: #fff !important;
	cursor: not-allowed;
}

/* ---------- Error notice ---------- */
.evt-error-notice {
	background: #fdecea;
	border: 1px solid #f3c3bd;
	color: #8a2c1f;
	font-size: 14px;
	padding: 12px 16px;
	border-radius: 7px;
	margin-bottom: 16px;
}

/* ---------- Share buttons ---------- */
.evt-share {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 20px;
	padding: 0 4px;
}
.evt-share-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	color: #6b6457;
}
.evt-share-btn {
	all: unset;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--evt-white, #fff);
	border: 1.5px solid rgba(1,25,38,0.16);
	color: var(--evt-ink, #011926);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.evt-share-btn:hover {
	background: var(--evt-ink, #011926);
	border-color: var(--evt-ink, #011926);
	color: var(--evt-white, #fff);
}

/* ---------- Confirmation panel ---------- */
.evt-card--confirmation { text-align: center; }
.evt-confirm-badge {
	width: 52px;
	height: 52px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: var(--evt-gold, #C9A84C);
	color: var(--evt-ink, #011926);
	font-size: 24px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}
.evt-confirm-badge--pending {
	background: transparent;
	border: 2.5px solid var(--evt-gold, #C9A84C);
	color: var(--evt-gold, #C9A84C);
	font-size: 28px;
	letter-spacing: 1px;
}
.evt-card--confirmation .evt-heading { display: inline-block; }
.evt-card--confirmation .evt-heading::after { left: 50%; transform: translateX(-50%); }
.evt-confirm-message {
	font-size: 15px;
	line-height: 1.6;
	color: #4a4636;
	max-width: 440px;
	margin: 0 auto 22px;
}
.evt-confirm-order {
	max-width: 420px;
	margin: 0 auto;
	border: 1px solid rgba(1,25,38,0.1);
	border-radius: 8px;
	overflow: hidden;
	text-align: left;
}
.evt-confirm-order-ref {
	background: var(--evt-cream, #f7f2e8);
	padding: 12px 16px;
	font-size: 13px;
	color: #6b6457;
}
.evt-confirm-order-ref strong { color: var(--evt-ink, #011926); }
.evt-confirm-line {
	display: flex;
	justify-content: space-between;
	padding: 12px 16px;
	border-top: 1px solid rgba(1,25,38,0.08);
	font-size: 14px;
	color: #33312c;
}
.evt-confirm-total { font-weight: 700; color: var(--evt-ink, #011926); }
.evt-card--confirmation .evt-share { justify-content: center; margin-top: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
	.evt-card { padding: 22px 18px; }
	.evt-ticket-row {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.evt-ticket-price { flex-direction: row; align-items: baseline; justify-content: space-between; text-align: left; }
	.evt-qty-stepper-zone { justify-self: start; }
	.evt-customer-fields { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.evt-calendar-toggle, .evt-qty-btn, .evt-submit-btn, .evt-chevron { transition: none; }
}
