/* Ska Gig Ticketing — Frontend Buy Tickets Box */

.sgt-ticket-card {
	max-width: 560px;
	margin: 2rem auto;
	background: #ffffff;
	color: #18181b;
	border: 2px solid #18181b;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
	line-height: 1.5;
}

.sgt-ticket-card *,
.sgt-ticket-card *::before,
.sgt-ticket-card *::after {
	box-sizing: border-box;
}

.sgt-checker-bar {
	height: 14px;
	background-color: #ffffff;
	background-image:
		linear-gradient(45deg, #111113 25%, transparent 25%),
		linear-gradient(-45deg, #111113 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, #111113 75%),
		linear-gradient(-45deg, transparent 75%, #111113 75%);
	background-size: 14px 14px;
	background-position: 0 0, 0 7px, 7px -7px, -7px 0;
	border-bottom: 2px solid #111113;
}

.sgt-ticket-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem 1.5rem;
	background: #111113;
	color: #ffffff;
}

.sgt-ticket-eyebrow {
	margin: 0 0 0.2rem 0;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #f5c518;
}

.sgt-ticket-heading {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.2;
	color: #ffffff;
}

.sgt-price-tag {
	text-align: right;
}

.sgt-price-main {
	display: block;
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1.1;
	color: #ffffff;
}

.sgt-price-fee {
	display: block;
	font-size: 0.8rem;
	color: #d4d4d8;
	margin-top: 0.15rem;
}

.sgt-ticket-body {
	padding: 1.5rem;
}

.sgt-availability-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
}

.sgt-stock-pill {
	display: inline-block;
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 700;
}

.sgt-stock-open {
	background: #dcfce7;
	color: #14532d;
}

.sgt-stock-soldout {
	background: #fee2e2;
	color: #991b1b;
}

.sgt-event-date {
	font-size: 0.875rem;
	font-weight: 600;
	color: #52525b;
}

.sgt-alert {
	padding: 0.9rem 1rem;
	border-radius: 6px;
	margin-bottom: 1.25rem;
	font-size: 0.925rem;
}

.sgt-alert p {
	margin: 0.35rem 0 0 0;
}

.sgt-alert-success {
	background: #ecfdf5;
	border: 1px solid #10b981;
	color: #065f46;
}

.sgt-alert-info {
	background: #eff6ff;
	border: 1px solid #60a5fa;
	color: #1e40af;
}

.sgt-alert-error {
	background: #fef2f2;
	border: 1px solid #ef4444;
	color: #991b1b;
}

.sgt-field-group {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin-block-end: 1.15rem;
}

.sgt-field-group label {
	font-size: 0.9rem;
	font-weight: 700;
	color: #27272a;
}

.sgt-input {
	width: 100%;
	font: inherit;
	font-size: max(1rem, 1em);
	padding: 0.7rem 0.85rem;
	min-height: 48px;
	color: #18181b;
	background: #ffffff;
	border: 2px solid #71717a;
	border-radius: 6px;
	transition: border-color 0.15s ease;
}

.sgt-input:focus-visible {
	outline: 3px solid #f5c518;
	outline-offset: 1px;
	border-color: #111113;
}

.sgt-input:user-invalid {
	border-color: #dc2626;
}

.sgt-order-summary {
	background: #f4f4f5;
	border: 1px solid #e4e4e7;
	border-radius: 8px;
	padding: 0.95rem 1.1rem;
	margin: 1.25rem 0;
}

.sgt-summary-line {
	display: flex;
	justify-content: space-between;
	font-size: 0.92rem;
	color: #3f3f46;
	margin-bottom: 0.35rem;
}

.sgt-summary-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding-top: 0.55rem;
	margin-top: 0.55rem;
	border-top: 1px solid #d4d4d8;
	font-size: 1.05rem;
	color: #111113;
}

.sgt-summary-total strong {
	font-size: 1.25rem;
}

.sgt-submit-btn {
	display: block;
	width: 100%;
	min-height: 52px;
	padding: 0.85rem 1.25rem;
	font: inherit;
	font-size: 1.05rem;
	font-weight: 800;
	color: #111113;
	background: #f5c518;
	border: 2px solid #111113;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.1s ease;
}

.sgt-submit-btn:hover {
	background: #eab308;
}

.sgt-submit-btn:focus-visible {
	outline: 3px solid #111113;
	outline-offset: 2px;
}

.sgt-submit-btn:disabled {
	opacity: 0.65;
	cursor: wait;
}

.sgt-checkout-note {
	margin: 0.75rem 0 0 0;
	font-size: 0.8rem;
	color: #52525b;
	text-align: center;
}

.sgt-soldout-note {
	margin: 0;
	font-size: 0.95rem;
	color: #3f3f46;
}

@media (pointer: coarse) {
	.sgt-input {
		min-height: 52px;
	}
}
