/* Theme-owned presentation for Ticketack's official confirmation markup. */
.spoutnik-ticketack-thank-you-page .site-main {
	max-width: var(--spoutnik-wide-width, 76rem);
	padding-block: clamp(2rem, 4vw, 4rem);
}

.tkt-wrapper.tkt-thank-you,
.tkt-wrapper.tkt-thank-you .tkt-wrapper {
	color: var(--spoutnik-foreground);
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.5;
	text-align: left;
}

.tkt-wrapper.tkt-thank-you .tkt-thank-you-section {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: var(--spoutnik-foreground);
}

/* Ticketack's Bootstrap utility sets text-align with !important. */
.tkt-wrapper.tkt-thank-you .text-center {
	text-align: left !important;
}

.tkt-wrapper.tkt-thank-you :is(h3, h4) {
	margin: 1.5rem 0 0.75rem;
	color: inherit;
	font-family: var(--font-display);
	font-size: clamp(1.25rem, 2.5vw, 1.5rem);
	font-weight: 400;
	line-height: 1.25;
}

.tkt-wrapper.tkt-thank-you h4 {
	font-size: 1.125rem;
	font-weight: 600;
}

.tkt-wrapper.tkt-thank-you p {
	margin: 0 0 1rem;
}

.tkt-wrapper.tkt-thank-you .alert {
	padding: 1rem;
	border-radius: 0;
	font: inherit;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.tkt-wrapper.tkt-thank-you .alert-success {
	margin: 0 0 1.5rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--spoutnik-foreground);
}

.tkt-wrapper.tkt-thank-you .alert-info {
	margin: 1.5rem 0 0;
	border: 1px solid var(--spoutnik-border);
	border-left: 4px solid var(--spoutnik-accent);
	background: #fff;
	color: var(--spoutnik-foreground);
}

.tkt-wrapper.tkt-thank-you .table {
	width: 100%;
	margin: 1rem 0 1.5rem;
	border-collapse: collapse;
	font-size: 1rem;
	line-height: 1.5;
}

.tkt-wrapper.tkt-thank-you .table :is(th, td) {
	padding: 0.75rem 0.5rem;
	border: 0;
	border-bottom: 1px solid var(--spoutnik-border);
	background: transparent;
	color: inherit;
	vertical-align: middle;
}

.tkt-wrapper.tkt-thank-you .table th {
	border-bottom-color: var(--spoutnik-foreground);
	font-weight: 400;
	text-align: left;
}

.tkt-wrapper.tkt-thank-you .table tbody tr:nth-of-type(odd) {
	background: transparent;
}

.tkt-wrapper.tkt-thank-you .table td:first-child {
	overflow-wrap: anywhere;
}

.tkt-wrapper.tkt-thank-you .table :is(th, td):nth-child(2) {
	white-space: nowrap;
}

.tkt-wrapper.tkt-thank-you .table :is(th, td):last-child:not(:first-child) {
	width: 1%;
	text-align: right;
}

.tkt-wrapper.tkt-thank-you .table tfoot td {
	padding: 1rem 0 0;
	border-bottom: 0;
	text-align: right;
}

.tkt-wrapper.tkt-thank-you a.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	max-width: 100%;
	padding: 0.55rem 0.85rem;
	border: 1px solid var(--spoutnik-foreground);
	border-radius: 0;
	background: var(--spoutnik-accent);
	color: var(--spoutnik-accent-text);
	font: inherit;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	white-space: normal;
}

.tkt-wrapper.tkt-thank-you .table tfoot a.btn {
	display: inline-flex;
	width: auto;
}

.tkt-wrapper.tkt-thank-you a.btn-outline-secondary {
	background: #fff;
	color: var(--spoutnik-foreground);
}

.tkt-wrapper.tkt-thank-you a.btn:hover {
	border-color: var(--spoutnik-foreground);
	background: var(--spoutnik-foreground);
	color: #fff;
}

.tkt-wrapper.tkt-thank-you a:focus-visible {
	outline: 2px solid var(--spoutnik-foreground) !important;
	outline-offset: 3px;
}

@media (max-width: 30rem) {
	/* Keep the native table headers available to assistive technology. */
	.tkt-wrapper.tkt-thank-you .table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}

	.tkt-wrapper.tkt-thank-you .table tbody tr {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 0.75rem;
		padding-block: 1rem;
		border-bottom: 1px solid var(--spoutnik-border);
	}

	.tkt-wrapper.tkt-thank-you .table tbody td {
		width: auto;
		padding: 0;
		border: 0;
	}

	.tkt-wrapper.tkt-thank-you .table tbody td:first-child {
		grid-column: 1 / -1;
	}

	.tkt-wrapper.tkt-thank-you .table tbody td:last-child:not(:first-child) {
		width: auto;
	}

	.tkt-wrapper.tkt-thank-you .table tbody td:nth-child(2) {
		font-weight: 600;
	}

	.tkt-wrapper.tkt-thank-you .table tfoot td {
		padding-top: 1rem;
	}

	.tkt-wrapper.tkt-thank-you a.btn-outline-secondary {
		width: 100%;
	}
}
