/* 040 Tickets order form.

   It takes the font and text colour of the page it sits on, and its accent colour from the
   Divi 5 primary colour when there is one. Everything adjustable is a variable; override any
   of them in Divi (Theme Options > Custom CSS, or the module's own CSS), for example:

       .o40t-form { --o40t-accent: #0b8a4b; --o40t-radius: 0; --o40t-width: 100%; }
*/

.o40t-form,
.o40t-notice,
.o40t-closed {
	--o40t-accent: var(--gcid-primary-color, #2ea3f2);  /* button, selected method, focus ring */
	--o40t-accent-text: #fff;                           /* text on the button */
	--o40t-radius: 8px;
	--o40t-width: 34rem;                                /* widest the form gets */
	--o40t-gap: 1.1rem;                                 /* space between fields */
	--o40t-field-bg: #fff;
	--o40t-field-text: #1d2327;
	--o40t-line: rgba(128, 128, 128, .45);              /* borders */
	--o40t-soft: rgba(128, 128, 128, .1);               /* quiet backgrounds */
	--o40t-ok: #0b8a4b;
	--o40t-wait: #c98a00;
	--o40t-err: #c5162e;
}

.o40t-form {
	max-width: var(--o40t-width);
	margin: 0 0 1.5rem;
	padding: 0;
	font: inherit;
	color: inherit;
	text-align: left;
	box-sizing: border-box;
}

.o40t-form *,
.o40t-form *::before,
.o40t-form *::after {
	box-sizing: border-box;
}

/* Spam trap. Never shown. */
.o40t-form .o40t-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* ---------- fields ---------- */

.o40t-form .o40t-field {
	margin: 0 0 var(--o40t-gap);
	padding: 0;
}

.o40t-form .o40t-pair {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1rem;
}

.o40t-form .o40t-pair .o40t-field {
	flex: 1 1 13rem;
	min-width: 0;
}

.o40t-form label,
.o40t-form legend {
	display: block;
	margin: 0 0 .35rem;
	padding: 0;
	font-size: .95em;
	font-weight: 600;
	line-height: 1.3;
	color: inherit;
}

.o40t-form input[type="text"],
.o40t-form input[type="email"],
.o40t-form select {
	display: block;
	width: 100%;
	min-height: 2.9rem;
	margin: 0;
	padding: .6rem .8rem;
	font: inherit;
	font-size: 1rem;
	line-height: 1.3;
	color: var(--o40t-field-text);
	background-color: var(--o40t-field-bg);
	border: 1px solid var(--o40t-line);
	border-radius: var(--o40t-radius);
	box-shadow: none;
}

.o40t-form select {
	width: auto;
	min-width: 5rem;
	padding-right: 2rem;
}

.o40t-form input[type="text"]:focus,
.o40t-form input[type="email"]:focus,
.o40t-form select:focus,
.o40t-form button:focus-visible,
.o40t-form .o40t-method input:focus-visible {
	outline: 2px solid var(--o40t-accent);
	outline-offset: 2px;
	border-color: var(--o40t-accent);
}

.o40t-form .o40t-inline {
	display: flex;
	align-items: center;
	gap: .75rem;
}

.o40t-form .o40t-inline input[type="text"] {
	flex: 1 1 auto;
	min-width: 0;
	text-transform: uppercase;
	letter-spacing: .03em;
}

.o40t-form .o40t-each {
	opacity: .8;
}

/* ---------- discount code ---------- */

.o40t-form .o40t-apply {
	flex: none;
	min-height: 2.9rem;
	margin: 0;
	padding: .6rem 1.1rem;
	font: inherit;
	font-weight: 600;
	line-height: 1.3;
	color: inherit;
	background: transparent;
	border: 1px solid var(--o40t-line);
	border-radius: var(--o40t-radius);
	cursor: pointer;
}

.o40t-form .o40t-apply:hover {
	border-color: currentColor;
}

.o40t-form .o40t-coupon-note {
	margin: .4rem 0 0;
	padding: 0;
	font-size: .92em;
	font-weight: 600;
}

.o40t-form .o40t-coupon-note.is-ok { color: var(--o40t-ok); }
.o40t-form .o40t-coupon-note.is-bad { color: var(--o40t-err); }

/* ---------- payment methods ---------- */

.o40t-form .o40t-methods {
	margin: 0 0 var(--o40t-gap);
	padding: 0;
	border: 0;
	min-width: 0;
}

.o40t-form .o40t-method {
	display: flex;
	align-items: center;
	gap: .75rem;
	margin: 0 0 .5rem;
	padding: .65rem .8rem;
	font-weight: 400;
	font-size: 1em;
	border: 1px solid var(--o40t-line);
	border-radius: var(--o40t-radius);
	cursor: pointer;
}

.o40t-form .o40t-method:hover {
	background: var(--o40t-soft);
}

.o40t-form .o40t-method:has(input:checked) {
	border-color: var(--o40t-accent);
	box-shadow: inset 0 0 0 1px var(--o40t-accent);
}

.o40t-form .o40t-method input {
	flex: none;
	width: 1.15rem;
	height: 1.15rem;
	margin: 0;
	accent-color: var(--o40t-accent);
}

.o40t-form .o40t-method img {
	flex: none;
	width: 32px;
	height: 24px;
	margin: 0;
	border-radius: 3px;
}

.o40t-form .o40t-method-name {
	flex: 1 1 auto;
	min-width: 0;
}

.o40t-form .o40t-method-fee {
	flex: none;
	opacity: .8;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* ---------- price ---------- */

.o40t-form .o40t-summary {
	margin: 0 0 var(--o40t-gap);
	padding: .9rem 0 0;
	border-top: 1px solid var(--o40t-line);
}

.o40t-form .o40t-line {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	margin: 0 0 .35rem;
}

.o40t-form .o40t-line dt,
.o40t-form .o40t-line dd {
	margin: 0;
	padding: 0;
	font-weight: 400;
	float: none;
	width: auto;
}

.o40t-form .o40t-line dt span { opacity: .75; }

.o40t-form .o40t-line dd {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.o40t-form .o40t-total {
	margin-top: .6rem;
	font-size: 1.25em;
}

.o40t-form .o40t-total dt,
.o40t-form .o40t-total dd {
	font-weight: 700;
}

/* ---------- pay ---------- */

.o40t-form .o40t-submit {
	display: block;
	width: 100%;
	min-height: 3.2rem;
	margin: 0;
	padding: .8rem 1.25rem;
	font: inherit;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--o40t-accent-text);
	background: var(--o40t-accent);
	border: 0;
	border-radius: var(--o40t-radius);
	cursor: pointer;
}

.o40t-form .o40t-submit:hover { filter: brightness(.93); }
.o40t-form .o40t-submit:disabled { opacity: .6; cursor: progress; }

.o40t-form [hidden] { display: none !important; }

/* ---------- messages ---------- */

.o40t-notice {
	max-width: var(--o40t-width);
	margin: 0 0 1.25rem;
	padding: .9rem 1rem;
	border: 1px solid var(--o40t-line);
	border-left: 4px solid var(--o40t-line);
	border-radius: var(--o40t-radius);
	background: var(--o40t-soft);
	line-height: 1.45;
}

.o40t-notice strong { display: block; }
.o40t-notice span { display: block; margin-top: .2rem; }
.o40t-notice-ok { border-left-color: var(--o40t-ok); }
.o40t-notice-wait { border-left-color: var(--o40t-wait); }
.o40t-notice-err { border-left-color: var(--o40t-err); }

.o40t-closed {
	max-width: var(--o40t-width);
	font-weight: 600;
}
