/**
 * Showgate front end styles.
 */

.sg-container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px;
}

.sg-event {
	--sg-accent: #1d3557;
	--sg-accent-soft: #eef2f7;
	--sg-ink: #1f2933;
	--sg-muted: #62707f;
	--sg-line: #e4e7eb;
	--sg-radius: 14px;
	color: var(--sg-ink);
}

.sg-event__banner {
	background: linear-gradient(135deg, var(--sg-accent), #0f1b2d);
	background-size: cover;
	background-position: center;
	color: #fff;
	padding: 64px 20px;
	text-align: center;
}

.sg-event__banner-inner {
	max-width: 900px;
	margin: 0 auto;
}

.sg-event__title {
	margin: 0 0 8px;
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.15;
}

.sg-event__excerpt {
	margin: 0;
	opacity: .85;
	font-size: 17px;
}

.sg-event__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 36px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 36px 20px 64px;
}

@media (max-width: 960px) {
	.sg-event__grid {
		grid-template-columns: 1fr;
	}
}

.sg-event__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	align-items: center;
	margin-bottom: 22px;
	color: var(--sg-muted);
	font-size: 15px;
}

.sg-event__status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	background: var(--sg-accent-soft);
	color: var(--sg-accent);
}

.sg-event__status--past {
	background: #f2f3f5;
	color: #7b8794;
}

.sg-event__status--ongoing {
	background: #e6f6ed;
	color: #14713c;
}

.sg-countdown {
	display: flex;
	gap: 12px;
	margin-bottom: 26px;
}

.sg-countdown__unit {
	flex: 1;
	background: var(--sg-accent-soft);
	border-radius: var(--sg-radius);
	padding: 14px 10px;
	text-align: center;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--sg-muted);
}

.sg-countdown__unit b {
	display: block;
	font-size: 26px;
	color: var(--sg-accent);
	font-variant-numeric: tabular-nums;
}

.sg-section {
	margin: 0 0 40px;
}

.sg-section__title {
	font-size: 22px;
	margin: 0 0 16px;
}

.sg-table {
	width: 100%;
	border-collapse: collapse;
}

.sg-table th,
.sg-table td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--sg-line);
	text-align: left;
	vertical-align: top;
}

.sg-sessions__time {
	white-space: nowrap;
	color: var(--sg-muted);
	width: 170px;
}

.sg-sessions__desc {
	display: block;
	color: var(--sg-muted);
	font-size: 14px;
}

.sg-speakers__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 22px;
}

.sg-speaker {
	text-align: center;
}

.sg-speaker__avatar img,
.sg-speaker__initial {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--sg-accent-soft);
	color: var(--sg-accent);
	font-size: 38px;
	font-weight: 700;
}

.sg-speaker__name {
	margin: 0 0 4px;
	font-size: 17px;
}

.sg-speaker__role {
	margin: 0 0 6px;
	color: var(--sg-muted);
	font-size: 14px;
}

.sg-speaker__bio {
	margin: 0;
	font-size: 14px;
	color: var(--sg-muted);
}

.sg-accordion__item {
	border: 1px solid var(--sg-line);
	border-radius: 10px;
	margin-bottom: 10px;
	padding: 12px 16px;
	background: #fff;
}

.sg-accordion__question {
	cursor: pointer;
	font-weight: 600;
	margin: 0;
}

.sg-accordion__answer {
	margin-top: 10px;
	color: var(--sg-muted);
}

.sg-widget {
	background: #fff;
	border: 1px solid var(--sg-line);
	border-radius: var(--sg-radius);
	padding: 20px;
	margin-bottom: 20px;
}

.sg-widget h3 {
	margin: 0 0 12px;
	font-size: 17px;
}

.sg-widget__address {
	color: var(--sg-muted);
	margin: 0 0 12px;
}

.sg-map {
	width: 100%;
	height: 220px;
	border: 0;
	border-radius: 10px;
}

.sg-form__label {
	display: block;
	margin-bottom: 12px;
	font-size: 14px;
	font-weight: 600;
}

.sg-form__label input,
.sg-form__label select,
.sg-form__label textarea {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 10px 12px;
	border: 1px solid var(--sg-line);
	border-radius: 8px;
	font: inherit;
	font-weight: 400;
	background: #fff;
}

.sg-form__label input[type="checkbox"] {
	width: auto;
	display: inline-block;
	margin-right: 6px;
}

.sg-form__message {
	margin: 10px 0 0;
	font-size: 14px;
	color: var(--sg-muted);
	min-height: 20px;
}

.sg-form__message.is-error {
	color: #b02a37;
}

.sg-form__message.is-success {
	color: #14713c;
}

.sg-button {
	display: inline-block;
	border: 1px solid var(--sg-line);
	background: #fff;
	color: var(--sg-ink);
	padding: 11px 20px;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease;
}

.sg-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(15, 27, 45, .12);
}

.sg-button--primary {
	background: var(--sg-accent);
	border-color: var(--sg-accent);
	color: #fff;
}

.sg-button--ghost {
	background: transparent;
}

.sg-button[disabled] {
	opacity: .55;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.sg-ticket-type {
	border: 1px solid var(--sg-line);
	border-radius: 10px;
	padding: 12px 14px;
	margin-bottom: 10px;
}

.sg-ticket-type.is-unavailable {
	opacity: .55;
}

.sg-ticket-type__label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	cursor: pointer;
}

.sg-ticket-type__price {
	margin-left: auto;
	color: var(--sg-accent);
}

.sg-ticket-type__stock,
.sg-ticket-type__desc {
	display: block;
	font-size: 13px;
	color: var(--sg-muted);
	font-weight: 400;
}

.sg-ticket-terms {
	font-size: 13px;
	color: var(--sg-muted);
}

.sg-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}

.sg-card {
	background: #fff;
	border: 1px solid var(--sg-line);
	border-radius: var(--sg-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .18s ease, box-shadow .18s ease;
}

.sg-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 34px rgba(15, 27, 45, .1);
}

.sg-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, var(--sg-accent-soft), #dfe7f2);
}

.sg-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sg-card__status {
	position: absolute;
	top: 12px;
	left: 12px;
	background: rgba(255, 255, 255, .92);
	color: var(--sg-accent);
	border-radius: 999px;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.sg-card__status--past {
	color: #7b8794;
}

.sg-card__body {
	padding: 16px 18px 20px;
}

.sg-card__title {
	margin: 0 0 6px;
	font-size: 18px;
	line-height: 1.3;
}

.sg-card__title a {
	color: inherit;
	text-decoration: none;
}

.sg-card__date,
.sg-card__venue {
	margin: 0;
	color: var(--sg-muted);
	font-size: 14px;
}

.sg-card__price {
	margin: 10px 0 0;
	font-weight: 700;
	color: var(--sg-accent);
}

.sg-listing {
	max-width: 1180px;
	margin: 0 auto;
	padding: 32px 20px 60px;
}

.sg-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: flex-end;
	margin-bottom: 28px;
}

.sg-filters__field {
	display: flex;
	flex-direction: column;
	font-size: 13px;
	font-weight: 600;
	gap: 6px;
}

.sg-filters__field input,
.sg-filters__field select {
	padding: 9px 12px;
	border: 1px solid var(--sg-line);
	border-radius: 8px;
	font: inherit;
	font-weight: 400;
}

.sg-pagination {
	margin-top: 30px;
	display: flex;
	gap: 8px;
	justify-content: center;
}

.sg-pagination .page-numbers {
	padding: 8px 14px;
	border: 1px solid var(--sg-line);
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
}

.sg-pagination .current {
	background: var(--sg-accent);
	color: #fff;
	border-color: var(--sg-accent);
}

.sg-calendar {
	max-width: 1180px;
	margin: 0 auto;
	padding: 32px 20px 60px;
}

.sg-calendar__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.sg-calendar__title {
	margin: 0;
	font-size: 24px;
}

.sg-calendar__nav {
	text-decoration: none;
	color: inherit;
	font-weight: 600;
}

.sg-calendar__grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	border: 1px solid var(--sg-line);
	border-radius: var(--sg-radius);
	overflow: hidden;
}

.sg-calendar__weekday {
	background: #f7f9fc;
	padding: 10px 12px;
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--sg-muted);
}

.sg-calendar__day {
	min-height: 120px;
	padding: 8px 10px;
	border-top: 1px solid var(--sg-line);
	border-right: 1px solid var(--sg-line);
	background: #fff;
}

.sg-calendar__day.is-outside {
	background: #fafbfd;
	color: #a5aeb9;
}

.sg-calendar__date {
	font-weight: 700;
	font-size: 13px;
}

.sg-calendar__events {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
}

.sg-calendar__event a {
	display: block;
	font-size: 12px;
	line-height: 1.35;
	text-decoration: none;
	color: var(--sg-accent);
	background: var(--sg-accent-soft);
	border-radius: 6px;
	padding: 4px 6px;
	margin-bottom: 4px;
}

.sg-calendar__time {
	font-weight: 700;
	display: block;
}

.sg-ticket-card {
	display: flex;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
	background: #fff;
	border: 1px solid var(--sg-line);
	border-radius: var(--sg-radius);
	padding: 22px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}

.sg-ticket-card__title {
	margin: 0 0 6px;
	font-size: 20px;
}

.sg-ticket-card__meta,
.sg-ticket-card__venue,
.sg-ticket-card__attendee,
.sg-ticket-card__type,
.sg-ticket-card__code {
	margin: 0 0 4px;
	color: var(--sg-muted);
	font-size: 14px;
}

.sg-ticket-card__qr img {
	border: 1px solid var(--sg-line);
	border-radius: 10px;
	padding: 8px;
	background: #fff;
}

.sg-ticket-page {
	padding: 40px 0 70px;
}

.sg-ticket-page__actions {
	margin-top: 18px;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.sg-notice {
	background: #f7f9fc;
	border: 1px solid var(--sg-line);
	border-radius: 10px;
	padding: 14px 16px;
	color: var(--sg-muted);
}

.sg-notice--warning {
	background: #fff6e5;
	border-color: #f0d49a;
	color: #7a5310;
}

.sg-notice--error {
	background: #fdecec;
	border-color: #f2b8bb;
	color: #b02a37;
}

.sg-rsvp__counts {
	display: flex;
	gap: 12px;
	font-size: 13px;
	color: var(--sg-muted);
}

.sg-share {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin-right: 8px;
	border-radius: 50%;
	background: var(--sg-accent-soft);
	color: var(--sg-accent);
	text-decoration: none;
	font-weight: 700;
	font-size: 13px;
}

.sg-table--bookings {
	max-width: 900px;
	margin: 0 auto 40px;
	background: #fff;
}

.sg-cart-attendee {
	display: block;
	color: var(--sg-muted);
	font-size: 13px;
}

@media print {
	.sg-ticket-card {
		border: 2px solid #000;
		page-break-inside: avoid;
	}
}

[dir="rtl"] .sg-event__grid,
[dir="rtl"] .sg-calendar__grid {
	direction: rtl;
}

[dir="rtl"] .sg-ticket-type__price {
	margin-left: 0;
	margin-right: auto;
}

/* Ticket list injected into the WooCommerce order confirmation screen. */
.sg-order-tickets-wrap {
	margin: 28px auto 0;
	max-width: 720px;
}

.sg-order-tickets {
	display: grid;
	gap: 18px;
}
