:root {
	--tceb-blue: #006ce5;
	--tceb-blue-dark: #004fae;
	--tceb-gold: #c99a23;
	--tceb-ink: #172033;
	--tceb-muted: #5b6677;
	--tceb-line: #d7e0eb;
	--tceb-soft: #f4f7fb;
	--tceb-danger: #b42318;
	--tceb-success: #087a54;
	--tceb-radius: 8px;
	--tceb-poster-radius: 24px;
	--tceb-font-heading: "Optima", "Prompt", "Noto Sans SC", "Microsoft YaHei", sans-serif;
	--tceb-font-body: "Prompt", "Noto Sans Thai", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
}

.tceb-events,
.tceb-event-detail,
.tceb-submission,
.tceb-events *,
.tceb-event-detail *,
.tceb-submission * {
	box-sizing: border-box;
	letter-spacing: 0;
}

.tceb-events,
.tceb-event-detail,
.tceb-submission {
	width: 100%;
	min-width: 0;
	max-width: 1640px;
	margin-inline: auto;
	color: var(--tceb-ink);
	font-family: var(--tceb-font-body);
}

.tceb-events :where(h1, h2, h3, h4, h5, h6),
.tceb-event-detail :where(h1, h2, h3, h4, h5, h6),
.tceb-submission :where(h1, h2, h3, h4, h5, h6) {
	font-family: var(--tceb-font-heading);
}

.elementor-widget-tceb-event-home,
.elementor-widget-tceb-event-calendar,
.elementor-widget-tceb-event-submission,
.elementor-widget-tceb-event-home > .elementor-widget-container,
.elementor-widget-tceb-event-calendar > .elementor-widget-container,
.elementor-widget-tceb-event-submission > .elementor-widget-container {
	width: 100%;
	min-width: 0;
}

.tceb-events {
	container-name: tceb-events;
	container-type: inline-size;
	padding: 24px clamp(16px, 2.5vw, 40px) 64px;
	overflow: hidden;
}

.tceb-events[aria-busy="true"] .tceb-events__results {
	opacity: 0.42;
	pointer-events: none;
}

.tceb-events__results {
	width: 100%;
	min-height: 240px;
	transition: opacity 160ms ease;
}

.tceb-events__filters {
	display: grid;
	grid-template-columns: minmax(260px, 1fr) 152px;
	gap: 12px;
	align-items: center;
	margin-bottom: 24px;
	padding: 0 0 24px;
	border-bottom: 1px solid var(--tceb-line);
}

.tceb-events__selects {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: repeat(3, minmax(160px, 1fr)) minmax(120px, 0.5fr);
	gap: 12px;
}

.tceb-field {
	display: grid;
	gap: 7px;
	min-width: 0;
	font-size: 14px;
	font-weight: 600;
	color: #344054;
}

.tceb-field input,
.tceb-field select,
.tceb-field textarea {
	width: 100%;
	max-width: 100%;
	min-height: 50px;
	border: 1px solid #ccd7e4;
	border-radius: var(--tceb-radius);
	padding: 11px 14px;
	background: #fff;
	color: var(--tceb-ink);
	font: inherit;
	font-weight: 400;
	box-shadow: none;
}

.tceb-field textarea {
	min-height: 96px;
	resize: vertical;
}

.tceb-field input:focus,
.tceb-field select:focus,
.tceb-field textarea:focus {
	outline: 3px solid rgba(0, 108, 229, 0.16);
	border-color: var(--tceb-blue);
}

.tceb-events .tceb-events__filters .tceb-field--search input[type="search"] {
	box-sizing: border-box !important;
	min-height: 50px !important;
	border: 1px solid #ccd7e4 !important;
	border-width: 1px !important;
	border-style: solid !important;
	border-color: #ccd7e4 !important;
	border-radius: var(--tceb-radius) !important;
	padding: 11px 14px !important;
	background-color: #fff !important;
	color: var(--tceb-ink) !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
}

.tceb-events .tceb-events__filters .tceb-field--search input[type="search"]:focus {
	border-color: var(--tceb-blue) !important;
	outline: 3px solid rgba(0, 108, 229, 0.16) !important;
}

.tceb-submission .tceb-field input,
.tceb-submission .tceb-field select,
.tceb-submission .tceb-field textarea {
	border: 1px solid #ccd7e4 !important;
	border-radius: var(--tceb-radius) !important;
	padding: 11px 14px !important;
	background-color: #fff !important;
	box-shadow: none !important;
}

.tceb-submission .tceb-field textarea {
	height: auto !important;
}

.tceb-submission .tceb-field input:focus,
.tceb-submission .tceb-field select:focus,
.tceb-submission .tceb-field textarea:focus {
	border-color: var(--tceb-blue) !important;
	outline: 3px solid rgba(0, 108, 229, 0.16) !important;
}

.tceb-events__search-button,
.tceb-button,
.tceb-event-detail__primary-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	border: 1px solid var(--tceb-blue);
	border-radius: var(--tceb-radius);
	padding: 0 22px;
	background: #fff;
	color: var(--tceb-blue);
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.tceb-events__search-button,
.tceb-button--primary,
.tceb-event-detail__primary-button {
	background: var(--tceb-blue);
	color: #fff;
}

.tceb-events__search-button:hover,
.tceb-button--primary:hover,
.tceb-event-detail__primary-button:hover {
	background: var(--tceb-blue-dark);
	border-color: var(--tceb-blue-dark);
	color: #fff;
}

.tceb-icon {
	width: 19px;
	height: 19px;
	flex: 0 0 19px;
}

.tceb-months {
	display: grid;
	grid-template-columns: repeat(13, minmax(64px, 1fr));
	gap: 10px;
	width: 100%;
	margin: 0 0 34px;
}

.tceb-months__item {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	height: 52px;
	border: 1px solid var(--tceb-line);
	border-radius: var(--tceb-radius);
	background: #fff;
	color: #98a2b3;
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.tceb-months__item:hover {
	border-color: var(--tceb-blue);
	color: var(--tceb-blue);
}

.tceb-months__item.is-active {
	border-color: var(--tceb-blue);
	background: var(--tceb-blue);
	color: #fff;
	box-shadow: inset 0 -3px 0 var(--tceb-gold);
}

.tceb-months__item.is-disabled,
.tceb-months__item[aria-disabled="true"] {
	border-color: #e3e8ef;
	background: #f8fafc;
	color: #c4cbd4;
	box-shadow: none;
	cursor: not-allowed;
	pointer-events: none;
}

.tceb-events__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(18px, 2vw, 28px);
	align-items: stretch;
	width: 100%;
	max-width: 1450px;
	margin-inline: auto;
}

.tceb-events--home .tceb-events__grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tceb-event-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--tceb-line);
	border-radius: var(--tceb-poster-radius) !important;
	background: #fff;
	box-shadow: 0 3px 12px rgba(16, 24, 40, 0.045);
}

.tceb-event-card__media,
.tceb-event-card__media img,
.tceb-event-card__image {
	border-radius: var(--tceb-poster-radius) !important;
}

.tceb-event-card__media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 320 / 420;
	overflow: hidden;
	background: #edf2f7;
	text-decoration: none;
}

.tceb-event-card__image,
.tceb-event-card__media img,
.tceb-event-card__placeholder {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	object-position: center;
}

.tceb-event-card__placeholder,
.tceb-event-detail__banner-placeholder,
.tceb-event-detail__poster-placeholder {
	background:
		linear-gradient(135deg, rgba(0, 108, 229, 0.08), rgba(201, 154, 35, 0.14)),
		#eef3f8;
}

.tceb-event-card__image {
	transition: transform 240ms ease;
}

.tceb-event-card:hover .tceb-event-card__image {
	transform: scale(1.025);
}

.tceb-event-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	padding: 20px 20px 18px;
}

.tceb-event-card__title {
	display: -webkit-box;
	min-height: var(--tceb-card-title-row-height, 0);
	margin: 0 0 14px;
	overflow: hidden;
	color: var(--tceb-ink);
	font-family: var(--tceb-font-heading);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.45;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.tceb-event-card__meta {
	display: grid;
	grid-template-columns: 19px minmax(0, 1fr);
	gap: 9px;
	align-items: start;
	min-height: 26px;
	margin: 0 0 8px;
	color: var(--tceb-muted);
	font-size: 14px;
	line-height: 1.5;
}

.tceb-event-card__meta:first-of-type {
	color: var(--tceb-ink);
	font-weight: 700;
}

.tceb-event-card__meta:last-of-type {
	margin-bottom: 18px;
}

.tceb-event-card__button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	margin-top: auto;
	border: 1px solid var(--tceb-gold);
	border-radius: var(--tceb-radius);
	color: var(--tceb-blue);
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
	transition: background-color 160ms ease, color 160ms ease;
}

.tceb-event-card__button:hover {
	background: var(--tceb-blue);
	color: #fff;
}

.tceb-events__empty {
	display: grid;
	place-items: center;
	width: 100%;
	min-height: 190px;
	padding: 42px 20px;
	border: 1px solid var(--tceb-line);
	border-radius: var(--tceb-radius);
	background: var(--tceb-soft);
	color: var(--tceb-muted);
	text-align: center;
}

.tceb-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 7px;
	margin-top: 34px;
}

.tceb-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	border: 1px solid var(--tceb-line);
	border-radius: 6px;
	background: #fff;
	color: var(--tceb-blue);
	text-decoration: none;
}

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

.tceb-event-detail {
	padding: 24px clamp(16px, 3vw, 48px) 80px;
}

.tceb-event-detail__banner {
	width: 100%;
	aspect-ratio: 16 / 9;
	max-height: min(70vh, 760px);
	margin-bottom: 42px;
	overflow: hidden;
	border-radius: var(--tceb-radius);
	background: var(--tceb-soft);
}

.tceb-event-detail__banner-image,
.tceb-event-detail__banner img,
.tceb-event-detail__banner-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tceb-event-detail__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
	gap: clamp(32px, 5vw, 76px);
	align-items: start;
}

.tceb-event-detail__title {
	max-width: 28ch;
	margin: 0 0 18px;
	color: var(--tceb-ink);
	font-family: var(--tceb-font-heading);
	font-size: 52px;
	line-height: 1.16;
}

.tceb-event-detail__excerpt {
	max-width: 72ch;
	margin: 0 0 28px;
	color: #3f4b5a;
	font-size: 19px;
	line-height: 1.7;
}

.tceb-event-detail__content {
	max-width: 76ch;
	color: #253244;
	font-size: 17px;
	line-height: 1.8;
	overflow-wrap: anywhere;
}

[data-preview-output="content"] {
	white-space: pre-line;
}

.tceb-event-detail__content img,
.tceb-event-detail__content iframe {
	max-width: 100%;
}

.tceb-event-detail__poster {
	display: none !important;
	width: min(100%, 420px);
	margin: 36px 0 0;
}

.tceb-event-detail__poster img,
.tceb-event-detail__poster-placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 320 / 420;
	object-fit: cover;
	border-radius: var(--tceb-poster-radius);
}

.tceb-event-detail__aside {
	position: sticky;
	top: 110px;
	display: grid;
	gap: 20px;
}

.tceb-event-detail__facts {
	margin: 0;
	border-top: 1px solid var(--tceb-line);
}

.tceb-event-detail__facts > div {
	padding: 15px 0;
	border-bottom: 1px solid var(--tceb-line);
}

.tceb-event-detail__facts dt {
	margin-bottom: 4px;
	color: var(--tceb-muted);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.tceb-event-detail__facts dd {
	margin: 0;
	color: var(--tceb-ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
}

.tceb-event-detail__view-count {
	display: flex;
	align-items: center;
	gap: 8px;
}

.tceb-event-detail__view-count .tceb-icon {
	width: 18px;
	height: 18px;
	flex-basis: 18px;
	color: var(--tceb-blue);
}

.tceb-event-detail__calendar-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.tceb-event-detail__calendar-actions a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 0;
	min-height: 42px;
	border: 1px solid var(--tceb-line);
	border-radius: var(--tceb-radius);
	padding: 8px 12px;
	color: var(--tceb-blue);
	text-decoration: none;
	text-align: center;
	font-weight: 700;
}

.tceb-event-detail__calendar-actions a:hover {
	border-color: var(--tceb-blue);
	background: #f4f8ff;
	color: var(--tceb-blue-dark);
}

.tceb-event-detail__calendar-actions .tceb-icon {
	width: 18px;
	height: 18px;
	flex-basis: 18px;
}

.tceb-share {
	padding-top: 8px;
}

.tceb-share__title {
	margin: 0 0 12px;
	font-size: 18px;
}

.tceb-share__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tceb-share__actions a,
.tceb-share__actions button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 38px;
	border: 1px solid var(--tceb-line);
	border-radius: 6px;
	padding: 0 11px;
	background: #fff;
	color: #334155;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.tceb-share__actions a:hover,
.tceb-share__actions button:hover {
	border-color: var(--tceb-blue);
	color: var(--tceb-blue);
}

.tceb-submission {
	container-name: tceb-submission;
	container-type: inline-size;
	max-width: 1180px;
	padding: 20px clamp(16px, 3vw, 40px) 72px;
}

.tceb-submission__form {
	width: 100%;
}

.tceb-submission__section {
	margin: 0;
	padding: 38px 0 42px;
	border: 0;
	border-bottom: 1px solid var(--tceb-line);
	background: #fff;
}

.tceb-submission__section:first-child {
	padding-top: 14px;
}

.tceb-submission__section h2 {
	margin: 0 0 24px;
	color: var(--tceb-ink);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

.tceb-submission__section-heading {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 18px;
	align-items: start;
	margin-bottom: 20px;
}

.tceb-submission__section-heading h2 {
	margin: 0;
}

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

.tceb-form-grid--contact {
	grid-template-columns: repeat(12, minmax(0, 1fr));
}

.tceb-form-grid--contact .tceb-field--contact-title {
	grid-column: span 2;
}

.tceb-form-grid--contact .tceb-field--first-name,
.tceb-form-grid--contact .tceb-field--last-name {
	grid-column: span 5;
}

.tceb-form-grid--contact .tceb-field--company {
	grid-column: span 6;
}

.tceb-form-grid--contact .tceb-field--phone,
.tceb-form-grid--contact .tceb-field--email {
	grid-column: span 3;
}

.tceb-form-grid--shared {
	grid-template-columns: repeat(6, minmax(0, 1fr));
	margin-top: 24px;
}

.tceb-form-grid--shared .tceb-field--classification {
	grid-column: span 2;
}

.tceb-form-grid--shared .tceb-field--website {
	grid-column: 1 / -1;
}

.tceb-form-grid--shared .tceb-field--date {
	grid-column: span 3;
}

.tceb-field--wide {
	grid-column: 1 / -1;
}

.tceb-language-picker {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
}

.tceb-language-picker legend {
	width: 100%;
	margin-bottom: 6px;
	color: var(--tceb-muted);
	font-size: 13px;
	font-weight: 700;
}

.tceb-language-picker label,
.tceb-translation-tabs {
	display: flex;
	gap: 6px;
}

.tceb-language-picker label {
	align-items: center;
	min-height: 42px;
	border: 1px solid var(--tceb-line);
	border-radius: 6px;
	padding: 0 12px;
	background: #fff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.tceb-language-picker label:has(input:checked) {
	border-color: var(--tceb-blue);
	background: #eef6ff;
	color: var(--tceb-blue-dark);
}

.tceb-translation-tabs {
	gap: 4px;
	margin-bottom: 22px;
	border-bottom: 1px solid var(--tceb-line);
}

.tceb-translation-tabs__tab,
.tceb-preview__tabs button,
.tceb-preview__devices button {
	min-height: 42px;
	border: 0;
	border-bottom: 3px solid transparent;
	padding: 0 14px;
	background: transparent;
	color: var(--tceb-muted);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.tceb-translation-tabs__tab.is-active,
.tceb-preview__tabs button.is-active,
.tceb-preview__devices button.is-active {
	border-bottom-color: var(--tceb-blue);
	color: var(--tceb-blue);
}

.tceb-upload-grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(260px, 0.8fr);
	gap: 30px;
	align-items: start;
}

.tceb-upload {
	display: grid;
	gap: 10px;
	min-width: 0;
}

.tceb-upload__label {
	color: var(--tceb-ink);
	font-size: 15px;
	font-weight: 800;
}

.tceb-upload__frame {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	overflow: hidden;
	border: 1px dashed #93a6bc;
	border-radius: var(--tceb-radius);
	background: var(--tceb-soft);
	color: var(--tceb-muted);
}

.tceb-upload__frame span {
	max-width: 26ch;
	padding: 20px;
	font-size: 14px;
	line-height: 1.6;
	text-align: center;
}

.tceb-upload__frame--banner {
	aspect-ratio: 16 / 9;
}

.tceb-upload__frame--poster {
	aspect-ratio: 320 / 420;
	max-width: 360px;
	border-radius: var(--tceb-poster-radius) !important;
}

.tceb-upload__frame img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tceb-upload input[type="file"] {
	width: 100%;
	max-width: 100%;
	min-height: 44px;
	color: var(--tceb-muted);
	font: inherit;
	font-size: 13px;
}

.tceb-upload input[type="file"]::file-selector-button {
	min-height: 40px;
	margin-right: 10px;
	border: 1px solid var(--tceb-line);
	border-radius: 6px;
	padding: 0 14px;
	background: #fff;
	color: var(--tceb-blue);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.tceb-upload__edit {
	justify-self: start;
	border: 0;
	padding: 0;
	background: transparent;
	color: var(--tceb-blue);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.tceb-submission__hint {
	margin: -14px 0 26px;
	color: var(--tceb-muted);
	font-size: 14px;
	line-height: 1.6;
}

.tceb-consent {
	display: flex;
	gap: 10px;
	align-items: start;
	margin: 28px 0 22px;
	padding: 18px 0;
	border-bottom: 1px solid var(--tceb-line);
	line-height: 1.6;
}

.tceb-consent input {
	margin-top: 5px;
}

.tceb-consent input[type="checkbox"] {
	-webkit-appearance: none !important;
	appearance: none !important;
	position: relative !important;
	display: grid !important;
	flex: 0 0 22px;
	place-content: center;
	width: 22px !important;
	height: 22px !important;
	min-width: 22px !important;
	min-height: 22px !important;
	margin: 2px 0 0 !important;
	border: 2px solid #7c8da3 !important;
	border-radius: 5px !important;
	padding: 0 !important;
	background: #fff !important;
	opacity: 1 !important;
	visibility: visible !important;
	cursor: pointer;
}

.tceb-consent input[type="checkbox"]::before {
	content: "";
	width: 6px;
	height: 11px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) scale(0);
	transform-origin: center;
	transition: transform 120ms ease;
}

.tceb-consent input[type="checkbox"]:checked {
	border-color: var(--tceb-blue) !important;
	background: var(--tceb-blue) !important;
}

.tceb-consent input[type="checkbox"]:checked::before {
	transform: rotate(45deg) scale(1);
}

.tceb-consent input[type="checkbox"]:focus-visible {
	outline: 3px solid rgba(0, 108, 229, 0.2) !important;
	outline-offset: 2px;
}

.tceb-submission__actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding-top: 4px;
}

.tceb-form-notice {
	margin-bottom: 22px;
	border-left: 4px solid;
	border-radius: 4px;
	padding: 15px 18px;
}

.tceb-form-notice--error {
	border-color: var(--tceb-danger);
	background: #fff2f0;
	color: #7a271a;
}

.tceb-form-notice--success {
	border-color: var(--tceb-success);
	background: #ecfdf3;
	color: #05603a;
}

.tceb-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.tceb-preview__toolbar {
	position: sticky;
	top: 0;
	z-index: 3;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
	align-items: center;
	margin-bottom: 14px;
	border-bottom: 1px solid var(--tceb-line);
	background: #fff;
}

.tceb-preview__tabs,
.tceb-preview__devices {
	display: flex;
	flex-wrap: wrap;
}

.tceb-preview__viewport {
	--preview-width: 1440px;
	position: relative;
	width: 100%;
	min-height: 560px;
	overflow: hidden;
	border: 1px solid var(--tceb-line);
	border-radius: var(--tceb-radius);
	background: #eef2f6;
}

.tceb-preview__canvas {
	width: var(--preview-width);
	padding: 28px;
	background: #fff;
	transform: scale(var(--preview-scale, 1));
	transform-origin: top left;
}

.tceb-preview-context__grid .is-preview-context {
	opacity: 0.22;
	filter: grayscale(0.8);
}

.tceb-preview-context__grid .is-preview-focus {
	z-index: 2;
	border-width: 1px;
	border-color: var(--tceb-blue);
	box-shadow:
		inset 0 0 0 1px var(--tceb-blue),
		0 12px 35px rgba(0, 108, 229, 0.2);
}

.tceb-event-card__preview-label {
	position: absolute;
	z-index: 2;
	top: 10px;
	left: 10px;
	max-width: calc(100% - 20px);
	border-radius: 4px;
	padding: 6px 8px;
	background: var(--tceb-blue);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
}

[data-preview-detail] {
	pointer-events: none;
}

.tceb-preview__viewport[data-width="1024"] .tceb-events__grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tceb-preview__viewport[data-width="768"] .tceb-events__grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tceb-preview__viewport[data-width="390"] .tceb-events__grid {
	grid-template-columns: 1fr;
}

.tceb-preview__viewport[data-width="768"] .tceb-event-detail__layout,
.tceb-preview__viewport[data-width="390"] .tceb-event-detail__layout {
	grid-template-columns: 1fr;
}

.tceb-preview__viewport[data-width="768"] .tceb-event-detail__aside,
.tceb-preview__viewport[data-width="390"] .tceb-event-detail__aside {
	position: static;
}

.tceb-preview__viewport[data-width="390"] .tceb-preview__canvas {
	padding: 14px;
}

.tceb-preview__viewport[data-width="390"] .tceb-event-detail {
	padding: 14px;
}

.tceb-preview__viewport[data-width="390"] .tceb-event-detail__title {
	font-size: 32px;
}

.tceb-crop-modal[hidden] {
	display: none;
}

.tceb-crop-modal {
	position: fixed;
	z-index: 100100;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 18px;
	background: rgba(15, 23, 42, 0.76);
}

.tceb-crop-modal__dialog {
	display: grid;
	grid-template-rows: auto minmax(260px, 65vh) auto auto;
	width: min(980px, 100%);
	max-height: calc(100vh - 36px);
	overflow: hidden;
	border-radius: var(--tceb-radius);
	background: #fff;
}

.tceb-crop-modal__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 18px;
	border-bottom: 1px solid var(--tceb-line);
}

.tceb-crop-modal__header h2 {
	margin: 0;
	font-size: 20px;
}

.tceb-crop-modal__header button {
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	font-size: 28px;
	cursor: pointer;
}

.tceb-crop-modal__stage {
	min-height: 0;
	background: #1f2937;
}

.tceb-crop-modal__stage img {
	display: block;
	max-width: 100%;
}

.tceb-crop-modal__controls {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
	padding: 12px 16px;
	border-top: 1px solid var(--tceb-line);
}

.tceb-crop-modal__controls button {
	min-width: 42px;
	min-height: 40px;
	border: 1px solid var(--tceb-line);
	border-radius: 6px;
	padding: 0 12px;
	background: #fff;
	color: var(--tceb-ink);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.tceb-crop-modal__controls .tceb-button--primary,
.tceb-crop-modal__controls .button-primary {
	border-color: var(--tceb-blue);
	background: var(--tceb-blue);
	color: #fff;
}

.tceb-crop-modal__status {
	min-height: 24px;
	margin: 0;
	padding: 0 16px 10px;
	color: var(--tceb-danger);
}

body.tceb-crop-open {
	overflow: hidden;
}

@container tceb-events (max-width: 1180px) {
	.tceb-months {
		grid-template-columns: repeat(7, minmax(0, 1fr));
	}
}

@container tceb-events (max-width: 1020px) {
	.tceb-events__grid,
	.tceb-events--home .tceb-events__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@container tceb-events (max-width: 860px) {
	.tceb-events__selects {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tceb-months {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.tceb-events__grid,
	.tceb-events--home .tceb-events__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@container tceb-events (max-width: 560px) {
	.tceb-events__filters {
		grid-template-columns: 1fr;
	}

	.tceb-events__search-button,
	.tceb-events__selects {
		grid-column: 1;
	}

	.tceb-events__selects {
		grid-template-columns: 1fr;
	}

	.tceb-months {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 7px;
	}

	.tceb-months__item {
		height: 46px;
		font-size: 12px;
	}

	.tceb-events__grid,
	.tceb-events--home .tceb-events__grid {
		grid-template-columns: 1fr;
	}
}

@container tceb-events (max-width: 480px) {
	.tceb-events--home .tceb-events__grid {
		grid-template-columns: 1fr;
	}

	.tceb-event-card__title {
		min-height: auto;
	}
}

@container tceb-submission (max-width: 900px) {
	.tceb-form-grid--contact,
	.tceb-form-grid--shared {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tceb-form-grid--contact .tceb-field--contact-title,
	.tceb-form-grid--contact .tceb-field--first-name,
	.tceb-form-grid--contact .tceb-field--last-name,
	.tceb-form-grid--contact .tceb-field--company,
	.tceb-form-grid--contact .tceb-field--phone,
	.tceb-form-grid--contact .tceb-field--email,
	.tceb-form-grid--shared .tceb-field--classification,
	.tceb-form-grid--shared .tceb-field--date {
		grid-column: span 1;
	}

	.tceb-form-grid--shared .tceb-field--website,
	.tceb-form-grid--contact .tceb-field--wide {
		grid-column: 1 / -1;
	}

	.tceb-upload-grid {
		grid-template-columns: 1fr;
	}

	.tceb-upload__frame--poster {
		max-width: 360px;
	}
}

@container tceb-submission (max-width: 620px) {
	.tceb-submission__section-heading {
		display: grid;
	}

	.tceb-form-grid,
	.tceb-form-grid--contact,
	.tceb-form-grid--shared {
		grid-template-columns: 1fr;
	}

	.tceb-form-grid--contact .tceb-field--contact-title,
	.tceb-form-grid--contact .tceb-field--first-name,
	.tceb-form-grid--contact .tceb-field--last-name,
	.tceb-form-grid--contact .tceb-field--company,
	.tceb-form-grid--contact .tceb-field--phone,
	.tceb-form-grid--contact .tceb-field--email,
	.tceb-form-grid--contact .tceb-field--wide,
	.tceb-form-grid--shared .tceb-field--classification,
	.tceb-form-grid--shared .tceb-field--website,
	.tceb-form-grid--shared .tceb-field--date,
	.tceb-field--wide {
		grid-column: 1;
	}

	.tceb-submission__section {
		padding: 30px 0 34px;
	}

	.tceb-submission__actions {
		flex-direction: column-reverse;
	}

	.tceb-submission__actions .tceb-button {
		width: 100%;
	}
}

@media (max-width: 960px) {
	.tceb-events__selects {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tceb-event-detail__layout {
		grid-template-columns: 1fr;
	}

	.tceb-event-detail__aside {
		position: static;
	}

	.tceb-event-detail__title {
		font-size: 42px;
	}

	.tceb-form-grid--contact {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tceb-form-grid--contact .tceb-field--contact-title,
	.tceb-form-grid--contact .tceb-field--first-name,
	.tceb-form-grid--contact .tceb-field--last-name,
	.tceb-form-grid--contact .tceb-field--company,
	.tceb-form-grid--contact .tceb-field--phone,
	.tceb-form-grid--contact .tceb-field--email {
		grid-column: span 1;
	}

	.tceb-form-grid--contact .tceb-field--wide {
		grid-column: 1 / -1;
	}

	.tceb-upload-grid {
		grid-template-columns: 1fr;
	}

	.tceb-upload__frame--poster {
		max-width: 320px;
	}
}

@media (max-width: 680px) {
	.tceb-events,
	.tceb-event-detail,
	.tceb-submission {
		padding-inline: 14px;
	}

	.tceb-events__filters {
		grid-template-columns: 1fr;
	}

	.tceb-events__search-button,
	.tceb-events__selects {
		grid-column: 1;
	}

	.tceb-events__selects {
		grid-template-columns: 1fr;
	}

	.tceb-months {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 7px;
	}

	.tceb-months__item {
		height: 44px;
		font-size: 12px;
	}

	.tceb-event-detail__banner {
		margin-bottom: 26px;
	}

	.tceb-event-detail__title {
		font-size: 32px;
	}

	.tceb-form-grid,
	.tceb-form-grid--contact {
		grid-template-columns: 1fr;
	}

	.tceb-field--wide {
		grid-column: auto;
	}

	.tceb-submission__section {
		padding: 30px 0 34px;
	}

	.tceb-preview__devices {
		width: 100%;
		overflow-x: auto;
	}

	.tceb-preview__devices button {
		flex: 1 0 auto;
	}

	.tceb-submission__actions {
		flex-direction: column-reverse;
	}

	.tceb-submission__actions .tceb-button {
		width: 100%;
	}
}

@media (max-width: 520px) {
	.tceb-events__grid {
		grid-template-columns: 1fr;
	}

	.tceb-event-card__body {
		padding: 17px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tceb-events *,
	.tceb-event-detail *,
	.tceb-submission * {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
