.tte-events-widget,
.tte-events-widget * {
	box-sizing: border-box;
}

.tte-events-widget {
	--tte-primary: #41a658;
	--tte-primary-dark: #348847;
	--tte-border: #d9dee7;
	--tte-surface: #ffffff;
	--tte-muted: #667085;
	--tte-soft: #f8fafc;
	--tte-danger: #b42318;
	--tte-danger-bg: #fef3f2;
	--tte-status-bg: #fff4e5;
	--tte-status-text: #9a6700;
	font-family: inherit;
	width: 100%;
}

.tte-events-widget.tte-dir-rtl {
	direction: rtl;
	text-align: right;
}

.tte-events-widget.tte-dir-ltr {
	direction: ltr;
	text-align: left;
}

.tte-events-widget [hidden] {
	display: none !important;
}

.tte-main-card {
	background: var(--tte-surface);
	border: 1px solid var(--tte-border);
	border-radius: 16px;
	padding: 24px;
	width: 100%;
}

.tte-events-intro {
	margin: 0 0 22px;
}

.tte-events-heading,
.tte-detail-title,
.tte-form-title {
	color: inherit;
	font-weight: 700;
	line-height: 1.5;
}

.tte-events-heading {
	font-size: 24px;
	margin: 0 0 10px;
}

.tte-events-description,
.tte-form-description {
	color: var(--tte-muted);
	font-size: 15px;
	line-height: 1.9;
	white-space: pre-line;
}

.tte-events-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tte-event-card {
	appearance: none;
	-webkit-appearance: none;
	align-items: stretch;
	background: #fff;
	border: 1px solid #edf0f3;
	border-radius: 16px;
	box-shadow: 0 6px 22px rgba(16, 24, 40, .07);
	color: inherit;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	font-family: inherit;
	line-height: normal;
	min-height: 100%;
	overflow: hidden;
	padding: 0 !important;
	position: relative;
	text-align: inherit;
	transition: background-color .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease;
	width: 100%;
}

.tte-event-card:not(:disabled):hover,
.tte-event-card:not(:disabled):focus {
	background: #fff;
	border-color: rgba(65, 166, 88, .42);
	box-shadow: 0 14px 34px rgba(16, 24, 40, .13);
	outline: none;
	transform: translateY(-3px);
}

.tte-event-card:disabled {
	cursor: not-allowed;
	opacity: 1;
}

.tte-event-card:focus-visible,
.tte-button:focus-visible,
.tte-field-input:focus-visible {
	box-shadow: 0 0 0 3px rgba(65, 166, 88, .20);
	outline: none;
}

.tte-event-image-wrap {
	aspect-ratio: 16 / 9;
	background: #eef3ef;
	display: block;
	height: auto;
	line-height: 0;
	margin: 0;
	overflow: hidden;
	padding: 0;
	position: relative;
	width: 100%;
}

.tte-event-image,
.tte-event-image-placeholder {
	display: block;
	height: 100%;
	margin: 0;
	padding: 0;
	transition: opacity .22s ease, filter .22s ease, transform .35s ease;
	width: 100%;
}

.tte-event-image {
	object-fit: cover;
}

.tte-event-image-placeholder {
	background:
		linear-gradient(135deg, rgba(65, 166, 88, .18), rgba(65, 166, 88, .04)),
		radial-gradient(circle at 70% 25%, rgba(255, 255, 255, .9) 0 9%, transparent 10%);
}

.tte-event-card:not(:disabled):hover .tte-event-image {
	transform: scale(1.025);
}

.tte-event-status {
	background: rgba(217, 45, 32, .88);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	border: 1px solid rgba(255, 255, 255, .55);
	border-radius: 999px;
	box-shadow: 0 3px 12px rgba(0, 0, 0, .13);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	inset-inline-start: 12px;
	line-height: 1.5;
	opacity: 1 !important;
	padding: 6px 11px;
	position: absolute;
	top: 12px;
	z-index: 3;
}

.tte-event-card.is-disabled .tte-event-image,
.tte-event-card.is-disabled .tte-event-image-placeholder,
.tte-event-card.is-disabled .tte-event-title,
.tte-event-card.is-disabled .tte-event-date,
.tte-event-card.is-disabled .tte-event-subtitle,
.tte-event-card.is-disabled .tte-event-price {
	filter: grayscale(.16);
	opacity: .78;
}

.tte-event-card.is-disabled .tte-event-status {
	background: #ef4444 !important;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	filter: none;
	opacity: 1 !important;
}

.tte-event-card-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 14px 18px 18px;
	width: 100%;
}

.tte-event-title {
	display: block;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.65;
	margin: 0;
}

.tte-event-date {
	color: #667085;
	display: block;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.8;
	margin: 0;
}

.tte-event-subtitle {
	color: #98a2b3;
	display: block;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.8;
	margin: 0;
}

.tte-event-card-footer {
	display: flex;
	flex-direction: column;
	gap: 11px;
	margin-top: auto;
	padding-top: 9px;
	width: 100%;
}

.tte-event-price {
	color: var(--tte-primary);
	display: block;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.6;
}

.tte-event-hover-action {
	align-items: center;
	background: var(--tte-primary);
	border: 1px solid var(--tte-primary);
	border-radius: 8px;
	color: #fff;
	display: flex;
	font-size: 15px;
	font-weight: 700;
	justify-content: center;
	line-height: 1.5;
	min-height: 46px;
	padding: 11px 18px;
	width: 100%;
}

.tte-event-card:not(:disabled):hover .tte-event-hover-action {
	background: var(--tte-primary-dark);
	border-color: var(--tte-primary-dark);
}

.tte-event-card.is-disabled .tte-event-hover-action,
.tte-event-hover-action.is-disabled-action {
	background: #4b5563 !important;
	border-color: #4b5563 !important;
	color: #ffffff !important;
	opacity: 1 !important;
}

.tte-step-detail,
.tte-step-final {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.tte-step-detail {
	gap: 24px;
}

.tte-detail-topbar {
	align-items: center;
	direction: ltr;
	display: grid !important;
	gap: 20px;
	grid-template-columns: max-content minmax(0, 1fr);
	width: 100%;
}

.tte-detail-topbar .tte-detail-title {
	direction: rtl;
	grid-column: 2;
	grid-row: 1;
	justify-self: end;
	text-align: right;
	width: 100%;
}

.tte-detail-topbar .tte-back-button {
	direction: rtl;
	flex: 0 0 auto;
	grid-column: 1;
	grid-row: 1;
	justify-self: start;
	margin: 0 !important;
}

.tte-detail-view {
	align-items: start;
	direction: ltr;
	display: grid;
	gap: 30px;
	grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
	margin: 0;
	max-width: none;
	width: 100%;
}

.tte-dir-rtl .tte-detail-view.has-image,
.tte-dir-ltr .tte-detail-view.has-image {
	grid-template-areas:
		"content media";
}

.tte-dir-rtl .tte-detail-content,
.tte-dir-rtl .tte-detail-media-column {
	direction: rtl;
}

.tte-dir-ltr .tte-detail-content,
.tte-dir-ltr .tte-detail-media-column {
	direction: ltr;
}

.tte-detail-view:not(.has-image) {
	grid-template-areas:
		"content content"
		"media media";
	grid-template-columns: minmax(0, 1fr);
}

.tte-detail-media-column {
	display: flex;
	flex-direction: column;
	gap: 13px;
	grid-area: media;
	min-width: 0;
	position: static !important;
	transform: none !important;
	width: 100%;
}

.tte-detail-media {
	align-items: center;
	background: #f6f8f7;
	border: 1px solid #e7ebe8;
	border-radius: 18px;
	display: flex;
	justify-content: center;
	overflow: hidden;
	padding: 10px;
	position: static;
	width: 100%;
}

.tte-detail-media[hidden] {
	display: none !important;
}

.tte-detail-image {
	border-radius: 12px;
	display: block;
	height: auto;
	margin: 0;
	max-height: 390px;
	object-fit: contain;
	width: 100%;
}

.tte-detail-media-meta {
	display: flex;
	flex-direction: column;
	gap: 9px;
	margin: 0;
	position: static !important;
	transform: none !important;
	width: 100%;
}

.tte-detail-media,
.tte-detail-subtitle,
.tte-detail-meta,
.tte-detail-meta-item {
	position: static !important;
	transform: none !important;
}

.tte-detail-title {
	font-size: clamp(23px, 2.4vw, 32px);
	letter-spacing: -.015em;
	margin: 0;
	min-width: 0;
}

.tte-detail-subtitle {
	align-items: center;
	background: #f7f9f8;
	border: 1px solid #e8ece9;
	border-radius: 12px;
	color: var(--tte-primary);
	display: flex;
	font-size: 13px;
	font-weight: 700;
	justify-content: flex-start;
	line-height: 1.7;
	margin: 0;
	min-height: 44px;
	padding: 9px 12px;
	width: 100%;
}

.tte-detail-subtitle::before {
	background: currentColor;
	border-radius: 50%;
	content: '';
	display: inline-block;
	flex: 0 0 auto;
	height: 6px;
	margin-inline-end: 7px;
	width: 6px;
}

.tte-detail-meta {
	display: flex;
	flex-direction: column;
	gap: 9px;
	width: 100%;
}

.tte-detail-meta-item {
	align-items: center;
	background: #f7f9f8;
	border: 1px solid #e8ece9;
	border-radius: 12px;
	color: #667085;
	display: flex;
	font-size: 13px;
	justify-content: space-between;
	line-height: 1.7;
	min-height: 44px;
	padding: 9px 12px;
	width: 100%;
}

.tte-detail-meta-item strong {
	color: #344054;
	font-weight: 700;
}

.tte-detail-cost span {
	color: var(--tte-primary);
	font-weight: 800;
}

.tte-detail-content {
	font-size: 15px;
	line-height: 2;
	word-break: break-word;
}

.tte-detail-content {
	align-self: start;
	color: #475467;
	grid-area: content;
	margin: 0;
	min-width: 0;
	padding-top: 0;
}

.tte-detail-content > :first-child {
	margin-top: 0;
}

.tte-detail-content > :last-child {
	margin-bottom: 0;
}

.tte-detail-content img {
	height: auto;
	max-width: 100%;
}

.tte-detail-content a {
	color: var(--tte-primary);
}

.tte-registration-area {
	align-self: stretch;
	background: #fff;
	border: 1px solid #e4e9e5;
	border-radius: 16px;
	box-shadow: 0 8px 26px rgba(16, 24, 40, .055);
	clear: both;
	display: block;
	grid-area: auto;
	margin: 0 !important;
	max-width: none !important;
	padding: 22px;
	position: relative;
	width: 100% !important;
}

.tte-form-title {
	font-size: 21px;
	margin: 0 0 7px;
}

.tte-form-description {
	margin-bottom: 18px;
}

.tte-registration-form {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tte-registration-form .tte-submit-button,
.tte-registration-form .tte-honeypot {
	grid-column: 1 / -1;
}

.tte-field-group {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.tte-field-label {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.7;
}

.tte-field-input {
	appearance: none;
	-webkit-appearance: none;
	background: #fff;
	border: 1px solid var(--tte-border);
	border-radius: 10px;
	color: inherit;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	outline: none;
	padding: 12px 14px;
	width: 100%;
}

.tte-field-input:focus {
	border-color: var(--tte-primary);
	box-shadow: 0 0 0 3px rgba(65, 166, 88, .14);
}

.tte-honeypot {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.tte-button {
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid transparent;
	border-radius: 10px;
	cursor: pointer;
	display: inline-flex;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	justify-content: center;
	line-height: 1.5;
	padding: 11px 20px;
	text-decoration: none;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease;
}

.tte-submit-button {
	align-self: flex-start;
	background: var(--tte-primary);
	border-color: var(--tte-primary);
	color: #fff;
}

.tte-submit-button:hover {
	background: var(--tte-primary-dark);
	border-color: var(--tte-primary-dark);
	color: #fff;
}

.tte-back-button {
	align-self: auto;
	background: #f2f2f2;
	border-color: transparent;
	color: #2f3440;
	margin-left: 0;
	margin-right: auto;
	max-width: 100%;
	width: max-content;
}

.tte-back-button:hover {
	background: #e8eaed;
	border-color: transparent;
	color: #1f2937;
}

.tte-events-widget.is-loading .tte-button,
.tte-button:disabled {
	cursor: not-allowed;
	opacity: .58;
}

.tte-payment-box {
	align-items: center;
	display: flex;
	justify-content: center;
	min-width: 0;
	width: 100%;
}

.tte-payment-content {
	display: grid;
	min-width: 0;
	place-items: center;
	width: 100%;
}

.tte-message {
	background: var(--tte-danger-bg);
	border: 1px solid #fecdca;
	border-radius: 10px;
	color: var(--tte-danger);
	font-size: 14px;
	line-height: 1.8;
	margin: 14px 0;
	padding: 11px 13px;
}

.tte-empty-events {
	background: var(--tte-soft);
	border: 1px dashed var(--tte-border);
	border-radius: 12px;
	color: var(--tte-muted);
	padding: 18px;
}


@media (max-width: 980px) {
	.tte-dir-rtl .tte-detail-view.has-image,
	.tte-dir-ltr .tte-detail-view.has-image,
	.tte-detail-view:not(.has-image) {
		grid-template-areas:
			"media"
			"content";
		grid-template-columns: minmax(0, 1fr);
	}

	.tte-detail-media-column {
		margin-inline: auto;
		max-width: 720px;
	}

	.tte-detail-image {
		max-height: 400px;
	}
}

@media (max-width: 767px) {
	.tte-main-card {
		padding: 18px;
	}

	.tte-events-grid {
		grid-template-columns: 1fr;
	}

	.tte-event-card {
		min-height: 0;
	}


	.tte-detail-topbar {
		align-items: center;
		gap: 12px;
		grid-template-columns: max-content minmax(0, 1fr);
	}

	.tte-detail-topbar .tte-back-button {
		flex: 0 0 auto;
		font-size: 13px;
		padding: 9px 13px;
	}

	.tte-detail-title {
		font-size: 22px;
	}

	.tte-detail-view {
		gap: 20px;
	}

	.tte-detail-meta-item {
		align-items: flex-start;
		flex-direction: column;
		gap: 3px;
	}

	.tte-registration-area {
		padding: 16px;
	}

	.tte-registration-form {
		grid-template-columns: 1fr;
	}

	.tte-submit-button {
		width: 100%;
	}
}
