/**
 * Events Vendor Registration — frontend styles.
 *
 * Follows the Museum Ticket Sales plugin's design system
 * (museum-ticket-sales.css / DESIGN.md) class-for-class where an
 * equivalent component exists, with mts- renamed to evr-: the same
 * container widths, spacing tokens, "don't fight the theme" input
 * treatment (border-color override only), custom select, pill radios,
 * card-type badges, sticky summary panel, footer, messages, and result
 * page. New here: vendor category options (the same pill radios), the page
 * banner and descriptions, the signature field, and the
 * signature popup. Palette anchors: #1d2327 (ink) and #023991 (brand blue
 * accent); #b32d2e errors; #1a7d3c success.
 */

/*
 * Spacing scale — same tokens as the Ticket Sales form:
 *   --evr-space-xs  6px   label → input
 *   --evr-space-sm  12px  inside a component
 *   --evr-space-md  20px  between fields
 *   --evr-space-lg  28px  between sections (above a section divider)
 */
.evr-registration-form-wrap,
.evr-status,
.evr-signature-modal {
	--evr-space-xs: 6px;
	--evr-space-sm: 12px;
	--evr-space-md: 20px;
	--evr-space-lg: 28px;
	--evr-signature-font: "Segoe Script", "Brush Script MT", "Lucida Handwriting", "Apple Chancery", "Snell Roundhand", "Dancing Script", cursive;
}

/* Full page width: as wide as the page's own wide content (the theme's
   wide size, like an alignwide table or paragraph beside it), so the form
   lines up with the rest of the page at every screen width. The theme's
   :where() content-size constraint has zero specificity, so this
   max-width wins; the theme still centers it and supplies the side
   gutters. */
.evr-registration-form-wrap {
	width: 100%;
	max-width: var(--wp--style--global--wide-size, 1340px) !important;
	margin: 40px auto 0;
	padding: 36px 0;
	box-sizing: border-box;
}

@media (max-width: 767px) {
	.evr-registration-form-wrap {
		padding: 28px 0;
	}
}

/* The `hidden` attribute must always win over component display rules —
   JS toggles visibility only through `hidden`. */
.evr-registration-form-wrap [hidden],
.evr-status [hidden],
.evr-signature-modal [hidden],
.evr-signature-modal[hidden] {
	display: none !important;
}

.evr-registration-form-wrap input,
.evr-registration-form-wrap textarea,
.evr-registration-form-wrap select,
.evr-signature-modal input {
	border: 1px solid #d8d8d8 !important;
}

.evr-registration-form-wrap p {
	margin-top: 0;
}

.evr-hp-field {
	position: absolute;
	left: -9999px;
	top: -9999px;
}

/* Page banner — the single event page's header (Events & Summer Camp
   Registration, .escr-event-single-*), without its "Event" label: large
   Title over a divider, then the Banner Upload image in a rounded frame. Values and
   breakpoints copied from events-public.css so both pages match. */
.evr-page-banner-header {
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #d8d8d8;
}


.evr-registration-form-wrap .evr-page-banner-title {
	margin: 0;
	font-size: 60px;
	line-height: 1.15;
}

.evr-page-banner-image {
	position: relative;
	margin: 20px 0;
	border-radius: 20px;
	overflow: hidden;
	background: #f5f7fcd6;
}

.evr-page-banner-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 14 / 9;
	object-fit: contain;
	object-position: top;
}

@media (max-width: 1399px) {
	.evr-registration-form-wrap .evr-page-banner-title {
		font-size: 55px;
	}
}

@media (max-width: 1199px) {
	.evr-registration-form-wrap .evr-page-banner-title {
		font-size: 50px;
	}
}

@media (max-width: 991px) {
	.evr-registration-form-wrap .evr-page-banner-title {
		font-size: 45px;
	}
}

@media (max-width: 767px) {
	.evr-registration-form-wrap .evr-page-banner-title {
		font-size: 35px;
	}
}

@media (max-width: 575px) {
	.evr-registration-form-wrap .evr-page-banner-title {
		font-size: 26px;
	}
}

/* Page Settings: top / bottom descriptions around the form. */
.evr-page-description {
	margin: 0 0 var(--evr-space-lg);
	line-height: 1.6;
	overflow-wrap: anywhere;
}

.evr-page-description-bottom {
	margin: var(--evr-space-lg) 0 0;
}

.evr-page-description > :last-child {
	margin-bottom: 0;
}

/* Block themes size a bare <h2> as a display heading — pin it. It sits in
   the main column under the page intro, left-aligned like the event page. */
.evr-registration-form-wrap #evr-registration-form-heading {
	margin: 0 0 var(--evr-space-lg);
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
	line-height: 1.2;
}

/* Two-column layout: page intro, then application + card details | sticky
   Payment Information, which starts level with the form fields (not the
   intro) and stays in view down to Submit & Pay. */
.evr-form-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
	gap: 0 40px;
	align-items: start;
}

.evr-form-intro,
.evr-form-main,
.evr-form-aside,
.evr-form-actions {
	min-width: 0;
}

/* The intro spans both columns: the Title (one line) and the content after
   the image use the full width; only the image keeps the left column's
   width: (100% − 40px gap) × 1.7 / 2.7. */
.evr-form-intro {
	grid-column: 1 / -1;
	grid-row: 1;
}

.evr-form-intro .evr-page-banner-image {
	max-width: calc((100% - 40px) * 1.7 / 2.7);
}

.evr-form-main {
	grid-column: 1;
	grid-row: 2;
}

.evr-form-actions {
	grid-column: 1;
	grid-row: 3;
}

.evr-form-aside {
	grid-column: 2;
	grid-row: 2 / span 2;
	align-self: stretch;
}

.evr-form-aside-inner {
	position: sticky;
	top: 24px;
	padding: 24px;
	border: 1px solid #e2e2e2;
	border-radius: 16px;
	background: #fafbfd;
}

.evr-form-aside .evr-order-summary > .evr-form-section-title {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}

/* Stacks below 1200px, in DOM order: details + card → summary → button. */
@media (max-width: 1199px) {
	.evr-form-layout {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.evr-form-intro,
	.evr-form-main,
	.evr-form-aside,
	.evr-form-actions {
		grid-column: 1;
		grid-row: auto;
	}

	.evr-form-intro .evr-page-banner-image {
		max-width: none;
	}

	.evr-form-aside-inner {
		position: static;
		padding: 0;
		border: none;
		background: none;
	}

	.evr-form-aside .evr-order-summary > .evr-form-section-title {
		margin-top: calc(var(--evr-space-lg) - var(--evr-space-md));
		padding-top: var(--evr-space-lg);
		border-top: 1px solid #eee;
	}
}

/* Section titles: the divider sits in the middle of the section gap. */
.evr-form-section-title {
	margin: calc(var(--evr-space-lg) - var(--evr-space-md)) 0 var(--evr-space-md);
	padding-top: var(--evr-space-lg);
	border-top: 1px solid #eee;
	font-size: 1.1rem;
	line-height: 1.3;
	color: #023991;
}

.evr-form-section {
	margin: 0;
}

.evr-field {
	margin: 0 0 var(--evr-space-md);
}

.evr-field > label {
	display: block;
	margin: 0 0 var(--evr-space-xs);
}

/* A non-<label> caption (radio groups, the signature) styled like the
   theme's own field labels. */
.evr-field-label {
	display: block;
	margin: 0 0 var(--evr-space-xs);
	font-size: var(--wp--preset--font-size--small, 0.9rem);
	font-weight: inherit;
	line-height: 1.5;
}

/* Signature | Today's Date share a line: the date's <label> matches the
   Signature caption's metrics so both fields start level. */
.evr-form-row-signature .evr-field > label {
	font-size: var(--wp--preset--font-size--small, 0.9rem);
	line-height: 1.5;
}

.evr-field-help {
	margin: var(--evr-space-xs) 0 0;
	font-size: 0.82rem;
	color: #646970;
}

.evr-field-group {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 var(--wp--preset--spacing--20, 1em);
}

.evr-field-group > .evr-field-wide {
	grid-column: 1 / -1;
}

.evr-field-group-card-meta {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.evr-form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 var(--wp--preset--spacing--20, 1em);
}

.evr-form-row-col {
	min-width: 0;
}

/* First-time question | Currency: a label that wraps to two lines must not
   push its pills below the other column's — both sit on the bottom line. */
.evr-form-row-pills {
	row-gap: var(--evr-space-md);
	margin-bottom: var(--evr-space-md);
}

.evr-form-row-pills .evr-form-row-col > .evr-field {
	display: flex;
	flex-direction: column;
	height: 100%;
	margin-bottom: 0;
}

.evr-form-row-pills .evr-pill-options {
	margin-top: auto;
}

@media (max-width: 600px) {
	.evr-field-group,
	.evr-form-row {
		grid-template-columns: 1fr;
	}

	/* Phones: Expiry Month | Expiry Year side by side, CVV beneath. */
	.evr-field-group-card-meta {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.evr-field-group-card-meta > .evr-field:last-child {
		grid-column: 1 / -1;
	}
}

.evr-registration-form-wrap input[type="text"],
.evr-registration-form-wrap input[type="email"],
.evr-registration-form-wrap input[type="tel"],
.evr-registration-form-wrap textarea {
	width: 100%;
	box-sizing: border-box;
}

.evr-registration-form-wrap textarea {
	min-height: 96px;
	resize: vertical;
	font: inherit;
}

/* Today's Date: read-only, visibly not editable. */
.evr-registration-form-wrap .evr-readonly {
	background-color: #f5f5f5;
	color: #3c434a;
	cursor: default;
}

.evr-required {
	color: #b32d2e;
}

.evr-field-error {
	margin-top: 4px;
	color: #b32d2e;
	font-size: 0.82rem;
}

.evr-invalid {
	border-color: #b32d2e !important;
}

/* Custom select (Expiry Month/Year) — the Ticket Sales .mts-select. */
.evr-select {
	position: relative;
	display: block;
}

.evr-select select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 100%;
	box-sizing: border-box;
	background-color: var(--wp--custom--input-background, var(--wp--preset--color--theme-1, #fff));
	border-radius: 6px;
	box-shadow: none;
	color: currentColor;
	cursor: pointer;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small, 0.9rem);
	line-height: 1.5;
	min-height: 42px;
	padding: 0.8rem 2.25rem 0.8rem 1rem;
}

.evr-select::after {
	content: '';
	position: absolute;
	top: 50%;
	right: 1rem;
	width: 0;
	height: 0;
	margin-top: -3px;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid currentColor;
	pointer-events: none;
}

.evr-select select:focus {
	outline: 1px solid currentColor;
}

/* Vendor category — the same pill radios as the first-time Yes / No
   (radio dot, same gap and colors), one full-width row per category with
   the price on the right like the Ticket Sales ticket-type pills. Selected
   = brand-blue border, dot, and a light blue fill. */
.evr-vendor-rate-options {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--evr-space-sm);
}

.evr-vendor-rate-option,
.evr-pill-option {
	position: relative;
	min-width: 0;
}

.evr-vendor-rate-option input,
.evr-pill-option input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.evr-vendor-rate-option label,
.evr-pill-option label {
	display: flex !important;
	align-items: center;
	gap: 0.6em;
	box-sizing: border-box;
	width: 100%;
	min-height: 42px;
	margin: 0 !important;
	padding: 0.8rem 1rem;
	background-color: var(--wp--custom--input-background, #fff);
	border: 1px solid #d8d8d8;
	border-radius: 6px;
	color: currentColor;
	font-size: var(--wp--preset--font-size--small, 0.9rem);
	line-height: 1.4;
	cursor: pointer;
	transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}


/* The radio dot. */
.evr-vendor-rate-option label::before,
.evr-pill-option label::before {
	content: '';
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 16px;
	height: 16px;
	border: 1px solid #8c8f94;
	border-radius: 50%;
	background: #fff;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Same font as the other pill radios; only the price is pushed right. */
.evr-vendor-rate-option-title {
	min-width: 0;
	overflow-wrap: anywhere;
}

.evr-vendor-rate-option-amount {
	flex: 0 0 auto;
	margin-left: auto;
	padding-left: var(--evr-space-sm);
	white-space: nowrap;
}

.evr-vendor-rate-option label:hover,
.evr-pill-option label:hover {
	border-color: #023991;
}

.evr-vendor-rate-option input:checked + label,
.evr-pill-option input:checked + label {
	background-color: #f5f7fc;
	border-color: #023991;
	color: #023991;
}

.evr-vendor-rate-option input:checked + label::before,
.evr-pill-option input:checked + label::before {
	border-color: #023991;
	box-shadow: inset 0 0 0 4px #023991;
}

.evr-vendor-rate-option input:focus-visible + label,
.evr-pill-option input:focus-visible + label {
	outline: 2px solid #023991;
	outline-offset: 2px;
}

.evr-vendor-rate-field.evr-invalid .evr-vendor-rate-option label,
.evr-first-time-field.evr-invalid .evr-pill-option label,
.evr-currency-field.evr-invalid .evr-pill-option label {
	border-color: #b32d2e;
}

/* First time Yes / No, and Currency KYD / USD. */
.evr-pill-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--20, 1em);
}

/* Signature field. */
.evr-signature-open {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	width: 100%;
	min-height: 96px;
	padding: 16px;
	border: 1px dashed #8c8f94;
	border-radius: 8px;
	background: #fff;
	color: #023991;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.evr-signature-open:hover {
	border-color: #023991;
	background: #f5f7fc;
}

.evr-signature-open:focus-visible,
.evr-link-button:focus-visible {
	outline: 2px solid #023991;
	outline-offset: 2px;
}

.evr-signature-field.evr-invalid .evr-signature-open,
.evr-signature-field.evr-invalid .evr-signature-preview-box {
	border-color: #b32d2e;
}

.evr-signature-preview-box {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 96px;
	padding: 12px;
	border: 1px solid #d8d8d8;
	border-radius: 8px;
	background: #fff;
}

.evr-signature-preview-box img {
	display: block;
	max-width: 100%;
	max-height: 120px;
	height: auto;
}

.evr-signature-typed {
	font-family: var(--evr-signature-font);
	font-size: 2rem;
	line-height: 1.3;
	color: #1d2327;
	word-break: break-word;
}

.evr-signature-preview-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--evr-space-xs) var(--evr-space-md);
	margin-top: var(--evr-space-xs);
	font-size: 0.85rem;
	color: #646970;
}

.evr-signature-preview-actions {
	display: inline-flex;
	gap: var(--evr-space-md);
}

.evr-link-button {
	padding: 0;
	border: none;
	background: none;
	color: #023991;
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.evr-signature-clear {
	color: #b32d2e;
}

/* Payment Information — the Ticket Sales Order Summary panel. */
.evr-order-summary-empty {
	margin: 0 0 var(--evr-space-md);
	padding: var(--evr-space-md);
	border: 1px dashed #d8d8d8;
	border-radius: 8px;
	background: #fff;
	color: #666;
	font-size: 0.9rem;
	text-align: center;
}

.evr-order-summary-box {
	margin: 0 0 var(--evr-space-md);
	padding: var(--evr-space-md);
	border-radius: 8px;
	background: #f7f7f7;
}

.evr-order-summary-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 4px 0;
	font-size: 0.95rem;
}

.evr-order-summary-row > span:last-child {
	text-align: right;
	white-space: nowrap;
}

.evr-order-summary-category {
	margin-bottom: var(--evr-space-xs);
	padding-bottom: var(--evr-space-sm);
	border-bottom: 1px solid #ddd;
}

.evr-order-summary-category > span:last-child {
	font-weight: 600;
	white-space: normal;
}

.evr-order-summary-total {
	margin-top: var(--evr-space-xs);
	padding-top: var(--evr-space-sm);
	border-top: 1px solid #ddd;
	font-size: 1.05rem;
}

.evr-order-summary-note {
	margin: var(--evr-space-sm) 0 0;
	font-size: 0.78rem;
	color: #777;
}

/* Card details. */
.evr-payment-section {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: none;
}

.evr-card-number-wrap {
	position: relative;
}

/* Room for the card-type badge so it never covers the digits. */
.evr-card-number-wrap input {
	padding-right: 6.5rem !important;
}

.evr-card-type-icon {
	position: absolute;
	top: 50%;
	right: 0.75em;
	transform: translateY(-50%);
	pointer-events: none;
}

.evr-card-icon {
	display: inline-block;
	padding: 0.15em 0.5em;
	border-radius: 4px;
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.evr-card-icon-visa {
	background-color: #1a1f71;
}

.evr-card-icon-mastercard {
	background-color: #eb001b;
}

.evr-card-icon-amex {
	background-color: #2e77bc;
}

.evr-card-icon-discover {
	background-color: #ff6000;
}

/* Footer: reCAPTCHA + Submit & Pay. Top-aligned so the button stays put
   when an error appears beneath the widget. */
.evr-form-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: var(--evr-space-md);
	margin: var(--evr-space-sm) 0 0;
}

/* Registration Note (Settings → General): the Ticket Sales
   note box, full width above the reCAPTCHA and Submit & Pay. */
.evr-application-note {
	flex: 1 1 100%;
	box-sizing: border-box;
	padding: 14px 18px;
	border: 1px solid #e3e8f4;
	border-left: 3px solid #023991;
	border-radius: 8px;
	background: #f5f7fc;
	color: #3c434a;
	font-size: 0.875rem;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

.evr-application-note p,
.evr-application-note ul,
.evr-application-note ol {
	margin: 0 0 0.6em;
}

.evr-application-note > :last-child {
	margin-bottom: 0;
}

.evr-application-note strong {
	color: #1d2327;
}

.evr-application-note a {
	color: #023991;
}

.evr-field-recaptcha {
	flex: 0 0 auto;
	max-width: 100%;
	overflow: visible;
}

.evr-field-recaptcha iframe {
	display: block;
}

.evr-field-recaptcha .g-recaptcha {
	display: block;
	width: fit-content;
	border-radius: 3px;
}

.evr-field-recaptcha.evr-invalid .g-recaptcha {
	outline: 1px solid #b32d2e;
	outline-offset: 2px;
}

@media (max-width: 360px) {
	.evr-field-recaptcha .g-recaptcha {
		transform: scale(0.88);
		transform-origin: 0 0;
		margin-bottom: -9px;
	}
}

/* Vertically centred against the 78px reCAPTCHA widget. */
.evr-field-submit {
	margin-left: auto;
	margin-top: 11px;
}

.evr-form-footer:not(:has(.evr-field-recaptcha)) .evr-field-submit {
	margin-top: 0;
}

.evr-submit-button {
	width: auto;
	text-align: center;
	cursor: pointer;
}

.evr-submit-button[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}

@media (max-width: 480px) {
	.evr-registration-form-wrap {
		padding: 24px 0;
	}

	.evr-form-footer {
		flex-direction: column;
	}

	.evr-field-submit,
	.evr-submit-button {
		width: 100%;
		margin-left: 0;
		margin-top: 0;
	}

	.evr-signature-typed {
		font-size: 1.6rem;
	}
}

/* Messages. */
.evr-form-messages,
.evr-unavailable {
	margin-bottom: 16px;
	padding: 12px 16px;
	border-radius: 4px;
	font-size: 0.9rem;
}

.evr-message-success {
	border: 1px solid #b6e3c0;
	background: #eaf7ec;
	color: #1a7d3c;
}

.evr-message-error {
	border: 1px solid #f3b8b4;
	background: #fdecea;
	color: #b32d2e;
}

.evr-unavailable {
	border: 1px solid #f0d58c;
	background: #fcf6e5;
	color: #6b5200;
}

/* ---------------------------------------------------------------------
 * Signature popup (moved to <body> by signature.js).
 * ------------------------------------------------------------------- */

html.evr-modal-open,
html.evr-modal-open body {
	overflow: hidden;
}

.evr-signature-modal {
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	color: #1d2327;
	font-size: 1rem;
	line-height: 1.5;
}

.evr-signature-modal *,
.evr-signature-modal *::before,
.evr-signature-modal *::after {
	box-sizing: border-box;
}

.evr-signature-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}

.evr-signature-modal-dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 640px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.evr-signature-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #eee;
}

.evr-signature-modal-header h3 {
	margin: 0;
	font-size: 1.1rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #023991;
}

.evr-signature-modal-close {
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: none;
	color: #646970;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
}

.evr-signature-modal-close:hover {
	background: #f5f7fc;
	color: #1d2327;
}

.evr-signature-tabs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
	margin: 16px 20px 0;
	padding: 4px;
	border-radius: 10px;
	background: #f0f2f7;
}

.evr-signature-tab {
	min-height: 40px;
	padding: 8px 12px;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: #3c434a;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.evr-signature-tab[aria-selected="true"] {
	background: #fff;
	color: #023991;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.evr-signature-tab:focus-visible,
.evr-signature-modal-close:focus-visible,
.evr-signature-secondary:focus-visible {
	outline: 2px solid #023991;
	outline-offset: 2px;
}

.evr-signature-panel {
	padding: 20px;
}

.evr-signature-panel-title {
	display: block;
	margin: 0 0 var(--evr-space-sm);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #646970;
}

/* Draw. */
.evr-signature-pad-wrap {
	position: relative;
	border: 1px solid #d8d8d8;
	border-radius: 8px;
	background: #fff;
}

.evr-signature-pad {
	display: block;
	width: 100%;
	height: 200px;
	border-radius: 8px;
	cursor: crosshair;
	touch-action: none;
	-webkit-user-select: none;
	user-select: none;
}

.evr-signature-pad-line {
	position: absolute;
	right: 24px;
	bottom: 44px;
	left: 24px;
	border-bottom: 1px dashed #c3c4c7;
	pointer-events: none;
}

.evr-signature-pad-hint {
	position: absolute;
	right: 0;
	bottom: 16px;
	left: 0;
	color: #8c8f94;
	font-size: 0.82rem;
	text-align: center;
	pointer-events: none;
}

/* Type. */
.evr-signature-modal .evr-signature-type-input {
	width: 100%;
	min-height: 44px;
	padding: 0.7rem 1rem;
	border-radius: 6px;
	font: inherit;
}

.evr-signature-preview-label {
	margin: var(--evr-space-md) 0 var(--evr-space-xs);
	font-size: 0.82rem;
	color: #646970;
}

.evr-signature-type-preview,
.evr-signature-upload-preview {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 110px;
	padding: 12px;
	border: 1px dashed #d8d8d8;
	border-radius: 8px;
	background: #fafbfd;
}

.evr-signature-type-preview .evr-signature-typed {
	font-size: 2.2rem;
	text-align: center;
}

/* Upload. */
.evr-signature-modal .evr-signature-upload-input {
	width: 100%;
	padding: 10px;
	border-style: dashed !important;
	border-radius: 8px;
	background: #fff;
	font: inherit;
	font-size: 0.9rem;
}

.evr-signature-upload-preview img {
	display: block;
	max-width: 100%;
	max-height: 160px;
	height: auto;
}

.evr-signature-upload-empty {
	color: #8c8f94;
	font-size: 0.85rem;
}

.evr-signature-error {
	margin-top: var(--evr-space-sm);
	padding: 8px 12px;
	border: 1px solid #f3b8b4;
	border-radius: 4px;
	background: #fdecea;
	color: #b32d2e;
	font-size: 0.85rem;
}

.evr-signature-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: var(--evr-space-sm);
	margin-top: var(--evr-space-md);
}

.evr-signature-secondary {
	min-height: 42px;
	padding: 0.6rem 1.4rem;
	border: 1px solid #d8d8d8;
	border-radius: 6px;
	background: #fff;
	color: #1d2327;
	font: inherit;
	cursor: pointer;
}

.evr-signature-secondary:hover {
	border-color: #023991;
	color: #023991;
}

.evr-signature-apply {
	cursor: pointer;
}

/* Phones: the popup fills the screen. */
@media (max-width: 600px) {
	.evr-signature-modal {
		padding: 0;
		align-items: stretch;
	}

	.evr-signature-modal-dialog {
		max-width: none;
		max-height: none;
		height: 100%;
		border-radius: 0;
	}

	.evr-signature-pad {
		height: 180px;
	}

	.evr-signature-actions > button {
		flex: 1 1 auto;
	}
}

/* ---------------------------------------------------------------------
 * Thank You / status — the Ticket Sales result page.
 * ------------------------------------------------------------------- */

.evr-status {
	max-width: 680px;
	margin: 40px auto;
	padding: 32px 28px;
	border: 1px solid #e2e2e2;
	border-radius: 20px;
	background: #fff;
	box-sizing: border-box;
	text-align: center;
}

.evr-status h2 {
	margin: 0 0 var(--evr-space-sm);
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
	line-height: 1.2;
}

.evr-status p {
	margin: 0 0 var(--evr-space-md);
}

.evr-status > :last-child {
	margin-bottom: 0;
}

.evr-status-success h2 {
	color: #023991;
}

.evr-status-failed h2 {
	color: #b32d2e;
}

.evr-status-pending h2 {
	color: #8a6d00;
}

.evr-status.evr-status-full {
	width: 100%;
	max-width: 1340px !important;
	margin: 40px auto 0;
	padding: 36px 0;
	border: none;
	border-radius: 0;
	background: none;
	text-align: left;
}

@media (max-width: 1399px) {
	.evr-status.evr-status-full {
		max-width: 1100px !important;
	}
}

@media (max-width: 1199px) {
	.evr-status.evr-status-full {
		max-width: 910px !important;
	}
}

@media (max-width: 991px) {
	.evr-status.evr-status-full {
		max-width: 740px !important;
	}
}

@media (max-width: 767px) {
	.evr-status.evr-status-full {
		max-width: 575px !important;
		padding: 28px 0;
	}
}

.evr-status-full .evr-status-header {
	margin: 0 0 var(--evr-space-lg);
	padding-bottom: var(--evr-space-lg);
	border-bottom: 1px solid #eee;
	text-align: center;
}

.evr-status-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0 0 var(--evr-space-sm);
	border-radius: 50%;
	background: #aac4ed;
	color: #023991;
}

.evr-status-references {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: var(--evr-space-sm);
}

.evr-status-reference {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	min-width: 0;
	margin: 0 !important;
	padding: var(--evr-space-sm) 24px;
	border-radius: 8px;
	background: #f5f7fc;
}

.evr-status-reference span {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #666;
}

.evr-status-reference strong {
	font-size: 0.95rem;
	color: #1d2327;
	word-break: break-all;
}

.evr-status-reference .evr-status-badge {
	text-transform: none;
	letter-spacing: 0;
}

.evr-status-badge {
	display: inline-block;
	padding: 1px 10px;
	border-radius: 999px;
	background: #aac4ed;
	color: #023991;
	font-size: 0.85rem;
	font-weight: 700;
}

@media (max-width: 600px) {
	.evr-status-references .evr-status-reference {
		flex: 1 1 100%;
	}
}

.evr-status-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
	gap: 0 40px;
	align-items: start;
}

.evr-status-main,
.evr-status-aside {
	min-width: 0;
}

.evr-status-section-title {
	margin: 0 0 var(--evr-space-sm);
	font-size: 1.1rem;
	line-height: 1.3;
	color: #023991;
}

.evr-status-summary {
	display: grid;
	grid-template-columns: minmax(110px, 200px) minmax(0, 1fr);
	gap: 8px 16px;
	margin: 0 0 var(--evr-space-md);
	padding: var(--evr-space-md);
	border-radius: 8px;
	background: #f7f7f7;
	text-align: left;
}

.evr-status-summary dt {
	font-weight: 600;
	color: #666;
}

.evr-status-summary dd {
	margin: 0;
}

.evr-status-description {
	padding: 14px 18px;
	border-left: 3px solid #023991;
	border-radius: 0 8px 8px 0;
	background: #f5f7fc;
	font-size: 0.9rem;
	line-height: 1.6;
}

.evr-status-description > :last-child {
	margin-bottom: 0;
}

.evr-status-aside {
	position: sticky;
	top: 24px;
	padding: 24px;
	border: 1px solid #e2e2e2;
	border-radius: 16px;
	background: #fafbfd;
}

.evr-status-payment-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 4px 0;
	font-size: 0.95rem;
}

.evr-status-payment-total {
	margin-top: var(--evr-space-xs);
	padding-top: var(--evr-space-sm);
	border-top: 1px solid #ddd;
	font-size: 1.05rem;
}

.evr-status-full .evr-status-note {
	margin: var(--evr-space-lg) 0 0;
	padding: 14px 18px;
	border: 1px solid #e3e8f4;
	border-left: 3px solid #023991;
	border-radius: 8px;
	background: #f5f7fc;
	color: #3c434a;
	font-size: 0.9rem;
}

/* Payment Failed — same full-page layout as Thank You, plus a red icon,
   a Try Again button, and the "What You Can Do" list (the Ticket Sales
   plugin's booking-failed styles). */
.evr-status-failed .evr-status-icon {
	background: #fdecea;
	color: #b32d2e;
}

.evr-status-badge.evr-status-badge-failed {
	background: #fdecea;
	color: #b32d2e;
}

.evr-status-full .evr-status-header .evr-status-actions {
	margin: var(--evr-space-md) 0 0;
}

.evr-status-button {
	display: inline-block;
	box-sizing: border-box;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.evr-status-help-block {
	margin-top: var(--evr-space-lg);
}

.evr-status-help {
	margin: 0;
	padding: 0;
	list-style: none;
}

.evr-status-help li {
	position: relative;
	margin: 0 0 var(--evr-space-sm);
	padding: 0 0 0 28px;
	line-height: 1.6;
}

.evr-status-help li::before {
	content: '';
	position: absolute;
	top: 0.55em;
	left: 6px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #023991;
}

@media (max-width: 480px) {
	.evr-status-button {
		display: block;
		width: 100%;
	}
}

@media (max-width: 991px) {
	.evr-status-layout {
		grid-template-columns: 1fr;
		gap: var(--evr-space-lg);
	}

	.evr-status-aside {
		position: static;
	}
}

@media (max-width: 480px) {
	.evr-status {
		padding: 24px 16px;
	}

	.evr-status-aside {
		padding: 18px;
	}

	.evr-status-full .evr-status-summary {
		grid-template-columns: auto minmax(0, 1fr);
	}
}
