.tm-ad-premium-section {
	position: sticky;
	z-index: 45;
	top: var(--tm-premium-sticky-top, 64px);
	padding: 8px 0;
	background: #f0f0f0;
	border-bottom: 1px solid #ddd;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

body.admin-bar .tm-ad-premium-section {
	top: var(--tm-premium-sticky-top, 96px);
}

.tm-ad-rotator {
	position: relative;
	min-height: 76px;
}

.tm-ad-slides {
	position: relative;
	min-height: 76px;
	overflow: hidden;
	border: 1px solid #292929;
	border-radius: 8px;
	background: #151515;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.tm-ad-premium {
	position: absolute;
	inset: 0;
	width: 100%;
	min-height: 76px;
	display: flex;
	overflow: hidden;
	align-items: center;
	padding: 0;
	border: 0;
	color: #fff;
	background: #151515;
	font: inherit;
	text-align: left;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.45s ease;
	isolation: isolate;
}

.tm-ad-premium.is-active {
	opacity: 1;
	pointer-events: auto;
}

.tm-ad-premium-media,
.tm-ad-premium-overlay {
	position: absolute;
	inset: 0;
}

.tm-ad-premium-media img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
	transition: transform 0.35s ease;
}

.tm-ad-premium-overlay {
	z-index: 1;
	background:
		linear-gradient(90deg, rgba(8, 8, 8, 0.98) 0%, rgba(8, 8, 8, 0.88) 36%, rgba(8, 8, 8, 0.18) 76%, rgba(8, 8, 8, 0.06) 100%);
}

.tm-ad-premium-content {
	position: relative;
	z-index: 2;
	width: 100%;
	display: grid;
	grid-template-columns: auto minmax(180px, 0.8fr) minmax(240px, 1.2fr) auto;
	align-items: center;
	gap: 18px;
	padding: 11px 58px 11px 18px;
}

.tm-ad-premium-label {
	padding: 6px 9px;
	border-radius: 5px;
	color: #151515;
	background: #ff7628;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.tm-ad-premium-content strong {
	color: #fff;
	font-size: 15px;
	line-height: 1.15;
}

.tm-ad-premium-description {
	color: #e6e6e6;
	font-size: 12px;
	line-height: 1.35;
}

.tm-ad-premium-button {
	padding: 8px 11px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 5px;
	color: #fff;
	background: rgba(0, 0, 0, 0.35);
	font-size: 11px;
	font-weight: 850;
	white-space: nowrap;
}

.tm-ad-premium:hover .tm-ad-premium-media img {
	transform: scale(1.025);
}

.tm-ad-premium:hover .tm-ad-premium-button {
	border-color: #ff7628;
	background: #ff7628;
}

.tm-ad-nav {
	position: absolute;
	z-index: 4;
	top: 50%;
	width: 28px;
	height: 36px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.34);
	border-radius: 5px;
	color: #fff;
	background: rgba(0, 0, 0, 0.55);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
}

.tm-ad-prev { left: 8px; }
.tm-ad-next { right: 8px; }

.tm-ad-dots {
	position: absolute;
	z-index: 4;
	right: 44px;
	bottom: 5px;
	display: flex;
	gap: 5px;
}

.tm-ad-dot {
	width: 7px;
	height: 7px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.8);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}

.tm-ad-dot.is-active {
	background: #ff7628;
	border-color: #ff7628;
}

.tm-standard-ad {
	width: 100%;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.tm-standard-rotator {
	position: relative;
	width: 100%;
	min-height: 100%;
}

.tm-standard-rotator .tm-standard-ad {
	display: none;
	height: 100%;
}

.tm-standard-rotator .tm-standard-ad.is-active {
	display: flex;
}

.tm-standard-ad-image {
	position: relative;
	z-index: 1;
	width: 100%;
	aspect-ratio: 1 / 0.72;
	display: block;
	overflow: hidden;
	border-radius: 5px;
	background: #222;
}

.tm-standard-ad-image img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.tm-standard-ad:hover .tm-standard-ad-image img {
	transform: scale(1.04);
}

.tm-standard-ad-copy {
	position: relative;
	z-index: 1;
	display: block;
}

.tm-standard-ad-copy strong,
.tm-standard-ad-copy span {
	display: block;
}

.tm-standard-ad-copy strong {
	margin-bottom: 7px;
	color: #fff;
	font-size: 15px;
	line-height: 1.15;
}

.tm-standard-ad-copy span {
	color: rgba(255, 255, 255, 0.82);
	font-size: 11px;
	line-height: 1.4;
}

.tm-ad-modal[hidden] {
	display: none;
}

.tm-ad-modal {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 20px;
}

.tm-ad-modal-backdrop {
	position: absolute;
	inset: 0;
	border: 0;
	background: rgba(0, 0, 0, 0.78);
	cursor: pointer;
}

.tm-ad-modal-dialog {
	position: relative;
	z-index: 1;
	width: min(760px, 100%);
	max-height: min(720px, calc(100vh - 40px));
	display: grid;
	grid-template-columns: minmax(230px, 0.85fr) minmax(300px, 1.15fr);
	overflow: auto;
	border: 1px solid rgba(255, 118, 40, 0.5);
	border-radius: 8px;
	color: #171717;
	background: #fff;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.tm-ad-modal-image {
	min-height: 390px;
	background: #171717;
}

.tm-ad-modal-image img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.tm-ad-modal-content {
	display: flex;
	flex-direction: column;
	padding: 30px;
}

.tm-ad-modal-label {
	margin-bottom: 8px;
	color: #d94f00;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tm-ad-modal-content h2 {
	margin: 0 44px 8px 0;
	color: #111;
	font-size: 27px;
	line-height: 1.08;
}

.tm-ad-modal-content h3 {
	margin: 0 0 15px;
	color: #4b4b4b;
	font-size: 16px;
	line-height: 1.25;
}

.tm-ad-modal-details {
	margin: 0 0 18px;
	color: #555;
	font-size: 14px;
	line-height: 1.55;
}

.tm-ad-modal-address {
	margin: 0 0 18px;
	padding-top: 14px;
	border-top: 1px solid #e5e5e5;
	color: #333;
	font-size: 13px;
	font-weight: 700;
}

.tm-ad-modal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-top: auto;
}

.tm-ad-modal-actions a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 13px;
	border: 1px solid #ddd;
	border-radius: 5px;
	color: #171717;
	background: #f5f5f5;
	font-size: 12px;
	font-weight: 850;
	text-decoration: none;
}

.tm-ad-modal-actions a.is-whatsapp {
	color: #fff;
	border-color: #168c47;
	background: #168c47;
}

.tm-ad-modal-close {
	position: absolute;
	z-index: 2;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 1px solid #ddd;
	border-radius: 50%;
	color: #111;
	background: rgba(255, 255, 255, 0.94);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

body.tm-ad-modal-open {
	overflow: hidden;
}

.tm-ad-interstitial {
	position: fixed;
	z-index: 99998;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 22px;
}

.tm-ad-interstitial[hidden] {
	display: none;
}

.tm-ad-interstitial-backdrop {
	position: absolute;
	inset: 0;
	border: 0;
	background: rgba(0, 0, 0, 0.66);
	cursor: pointer;
}

.tm-ad-interstitial-dialog {
	position: relative;
	z-index: 1;
	width: min(860px, 100%);
	min-height: 360px;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(290px, 0.9fr);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 12px;
	background: #151515;
	box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.tm-ad-interstitial-media {
	position: relative;
	min-height: 360px;
	background: #20130d;
}

.tm-ad-interstitial-media img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.tm-ad-interstitial-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
	padding: 34px;
	color: #fff;
	background:
		radial-gradient(circle at top left, rgba(244, 122, 44, 0.22), transparent 34%),
		linear-gradient(135deg, #1a1a1a, #2b150d);
}

.tm-ad-interstitial-content span {
	width: max-content;
	max-width: 100%;
	padding: 7px 10px;
	border-radius: 6px;
	color: #111;
	background: #ff7628;
	font-size: 11px;
	font-weight: 950;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tm-ad-interstitial-content h2 {
	margin: 0;
	color: #fff;
	font-size: clamp(28px, 3vw, 44px);
	line-height: 1.02;
}

.tm-ad-interstitial-content p {
	margin: 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: 16px;
	line-height: 1.45;
}

.tm-ad-interstitial-action {
	width: max-content;
	max-width: 100%;
	min-height: 46px;
	margin-top: 6px;
	padding: 12px 17px;
	border: 0;
	border-radius: 8px;
	color: #fff;
	background: #f47a2c;
	font-size: 14px;
	font-weight: 950;
	cursor: pointer;
	box-shadow: 0 12px 28px rgba(244, 122, 44, 0.24);
}

.tm-ad-interstitial-close {
	position: absolute;
	z-index: 3;
	top: 12px;
	right: 12px;
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 999px;
	color: #111;
	background: rgba(255, 255, 255, 0.94);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

body.tm-ad-interstitial-open {
	overflow: hidden;
}

@media (max-width: 900px) {
	.tm-ad-premium-content {
		grid-template-columns: auto 1fr auto;
	}

	.tm-ad-premium-description {
		display: none;
	}
}

@media (max-width: 680px) {
	.tm-ad-premium-section {
		padding: 5px 0;
	}

	.tm-ad-rotator,
	.tm-ad-slides,
	.tm-ad-premium {
		min-height: 102px;
	}

	.tm-ad-premium-overlay {
		background: linear-gradient(90deg, rgba(8, 8, 8, 0.95), rgba(8, 8, 8, 0.58));
	}

	.tm-ad-premium-content {
		grid-template-columns: 1fr auto;
		gap: 6px 10px;
		padding: 12px 43px 12px 12px;
	}

	.tm-ad-premium-label {
		width: max-content;
		font-size: 8px;
	}

	.tm-ad-premium-content strong {
		grid-column: 1 / -1;
		font-size: 14px;
	}

	.tm-ad-premium-button {
		grid-column: 2;
		grid-row: 1;
		padding: 6px 8px;
		font-size: 8px;
	}

	.tm-ad-prev {
		display: none;
	}

	.tm-ad-next {
		right: 6px;
		width: 26px;
		height: 34px;
	}

	.tm-ad-dots {
		right: 40px;
		bottom: 5px;
	}

	.tm-ad-modal {
		padding: 12px;
	}

	.tm-ad-modal-dialog {
		max-height: calc(100vh - 24px);
		grid-template-columns: 1fr;
	}

	.tm-ad-modal-image {
		min-height: 190px;
		max-height: 240px;
	}

	.tm-ad-modal-content {
		padding: 22px;
	}

	.tm-ad-modal-content h2 {
		font-size: 23px;
	}

	.tm-ad-interstitial {
		padding: 14px;
	}

	.tm-ad-interstitial-dialog {
		max-height: calc(100vh - 28px);
		grid-template-columns: 1fr;
		overflow-y: auto;
	}

	.tm-ad-interstitial-media {
		min-height: 230px;
		max-height: 300px;
	}

	.tm-ad-interstitial-content {
		padding: 24px;
	}

	.tm-ad-interstitial-content h2 {
		font-size: 28px;
	}

	.tm-ad-interstitial-content p {
		font-size: 14px;
	}

	.tm-ad-interstitial-action {
		width: 100%;
	}
}

@media (max-width: 782px) {
	body.admin-bar .tm-ad-premium-section {
		top: var(--tm-premium-sticky-top, 110px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tm-ad-premium,
	.tm-ad-premium-media img,
	.tm-standard-ad-image img {
		transition: none;
	}
}

.tm-ads-front-panel {
	width: min(1180px, calc(100% - 32px));
	margin: 34px auto;
	color: #141414;
	font-family: inherit;
}

.tm-ads-front-login-card,
.tm-ads-front-header,
.tm-ads-front-list-panel,
.tm-ads-front-form,
.tm-ads-front-stats > div,
.tm-ads-front-notice {
	border: 1px solid rgba(17, 17, 17, 0.1);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
}

.tm-ads-front-login-card {
	max-width: 460px;
	margin: 0 auto;
	padding: 28px;
}

.tm-ads-front-login-card h2,
.tm-ads-front-header h2,
.tm-ads-front-form h3,
.tm-ads-front-list-panel h3 {
	margin: 0;
	color: #111;
	line-height: 1.12;
}

.tm-ads-front-login-card p,
.tm-ads-front-header p {
	margin: 10px 0 0;
	color: #5d5d5d;
	font-size: 15px;
	line-height: 1.55;
}

.tm-ads-front-login-card .login-username,
.tm-ads-front-login-card .login-password,
.tm-ads-front-login-card .login-remember,
.tm-ads-front-login-card .login-submit {
	margin: 14px 0 0;
}

.tm-ads-front-login-card label {
	display: block;
	margin-bottom: 6px;
	font-weight: 800;
}

.tm-ads-front-login-card input[type="text"],
.tm-ads-front-login-card input[type="password"] {
	width: 100%;
	min-height: 44px;
	border: 1px solid #d5d5d5;
	border-radius: 8px;
}

.tm-ads-front-login-card input[type="submit"] {
	width: 100%;
	min-height: 46px;
	border: 0;
	border-radius: 8px;
	color: #fff;
	background: #f47a2c;
	font-weight: 900;
	cursor: pointer;
}

.tm-ads-front-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 24px;
	background: linear-gradient(135deg, #171717, #2b160e);
	color: #fff;
}

.tm-ads-front-header h2,
.tm-ads-front-header p {
	color: #fff;
}

.tm-ads-front-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	color: #f47a2c;
	font-size: 12px;
	font-weight: 950;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.tm-ads-front-kicker::before {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 999px;
	background: #f47a2c;
}

.tm-ads-front-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin: 18px 0;
}

.tm-ads-front-stats > div {
	padding: 18px;
}

.tm-ads-front-stats span,
.tm-ads-front-stats strong {
	display: block;
}

.tm-ads-front-stats span {
	color: #707070;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tm-ads-front-stats strong {
	margin-top: 6px;
	color: #111;
	font-size: 25px;
	font-weight: 950;
	line-height: 1.15;
}

.tm-ads-front-layout {
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr);
	gap: 18px;
	align-items: start;
}

.tm-ads-front-list-panel,
.tm-ads-front-form {
	padding: 22px;
}

.tm-ads-front-list-panel {
	position: sticky;
	top: 96px;
}

.tm-ads-front-create {
	display: grid;
	grid-template-columns: 1fr;
	gap: 9px;
	margin-bottom: 20px;
}

.tm-ads-front-list-panel h3 {
	margin: 18px 0 10px;
	font-size: 18px;
}

.tm-ads-front-list {
	display: grid;
	gap: 8px;
}

.tm-ads-front-list a {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 4px 10px;
	padding: 12px;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	color: #141414;
	background: #fafafa;
	text-decoration: none;
}

.tm-ads-front-list a.is-active {
	border-color: #f47a2c;
	background: #fff3ea;
	box-shadow: inset 4px 0 0 #f47a2c;
}

.tm-ads-front-list a > span {
	grid-row: span 2;
	min-width: 38px;
	padding: 6px;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.07);
	font-size: 12px;
	font-weight: 950;
	text-align: center;
}

.tm-ads-front-list strong,
.tm-ads-front-list small {
	display: block;
}

.tm-ads-front-list small {
	color: #686868;
	font-size: 12px;
	font-weight: 750;
}

.tm-ads-front-form-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.tm-ads-front-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	justify-content: flex-end;
}

.tm-ads-front-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 16px;
	border: 0;
	border-radius: 8px;
	color: #fff;
	background: #f47a2c;
	font-size: 15px;
	font-weight: 950;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 12px 24px rgba(244, 122, 44, 0.22);
}

.tm-ads-front-button:hover {
	color: #fff;
	filter: brightness(0.96);
}

.tm-ads-front-button.is-light {
	color: #111;
	background: #f6f6f6;
	box-shadow: none;
}

.tm-ads-front-button.is-outline {
	border: 1px solid rgba(244, 122, 44, 0.55);
	color: #d95500;
	background: #fff;
	box-shadow: none;
}

.tm-ads-front-delete {
	min-height: 44px;
	padding: 10px 14px;
	border: 1px solid #d63638;
	border-radius: 8px;
	color: #b42318;
	background: #fff;
	font-weight: 900;
	cursor: pointer;
}

.tm-ads-front-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.tm-ads-front-grid label,
.tm-ads-front-image {
	display: block;
}

.tm-ads-front-grid .is-full {
	grid-column: 1 / -1;
}

.tm-ads-front-grid label,
.tm-ads-front-image > span,
.tm-ads-front-check span {
	color: #222;
	font-size: 14px;
	font-weight: 900;
}

.tm-ads-front-grid input[type="text"],
.tm-ads-front-grid input[type="url"],
.tm-ads-front-grid input[type="date"],
.tm-ads-front-grid input[type="number"],
.tm-ads-front-grid input[type="file"],
.tm-ads-front-grid select,
.tm-ads-front-grid textarea {
	width: 100%;
	max-width: 100%;
	min-height: 44px;
	margin-top: 7px;
	border: 1px solid #d4d4d4;
	border-radius: 8px;
	background: #fff;
	color: #151515;
	font: inherit;
}

.tm-ads-front-grid textarea {
	padding: 10px 12px;
	line-height: 1.5;
}

.tm-ads-front-grid small {
	display: block;
	margin-top: 5px;
	color: #686868;
	font-size: 12px;
	font-weight: 650;
}

.tm-ads-front-check {
	display: flex !important;
	align-items: center;
	gap: 9px;
	margin-top: 10px;
}

.tm-ads-front-check input {
	width: 19px;
	height: 19px;
	margin: 0;
}

.tm-ads-front-image {
	padding: 14px;
	border: 1px dashed rgba(17, 17, 17, 0.22);
	border-radius: 10px;
	background: #f8f8f8;
}

.tm-ads-front-image img {
	display: block;
	width: 100%;
	height: 220px;
	margin: 10px 0;
	border-radius: 8px;
	object-fit: cover;
}

.tm-ads-front-image em {
	display: block;
	margin: 10px 0;
	color: #646464;
	font-weight: 650;
}

.tm-ads-front-notice {
	margin: 0 0 16px;
	padding: 14px 16px;
	font-weight: 850;
}

.tm-ads-front-notice.is-success {
	border-color: rgba(16, 166, 88, 0.3);
	color: #136f3e;
	background: #effbf4;
}

.tm-ads-front-notice.is-error {
	border-color: rgba(190, 32, 32, 0.28);
	color: #9b1c1c;
	background: #fff2f2;
}

@media (max-width: 980px) {
	.tm-ads-front-layout,
	.tm-ads-front-grid,
	.tm-ads-front-stats {
		grid-template-columns: 1fr;
	}

	.tm-ads-front-list-panel {
		position: static;
	}
}

@media (max-width: 680px) {
	.tm-ads-front-panel {
		width: min(100% - 20px, 1180px);
		margin: 18px auto;
	}

	.tm-ads-front-header,
	.tm-ads-front-form-head {
		align-items: flex-start;
		flex-direction: column;
	}

	.tm-ads-front-actions {
		width: 100%;
		justify-content: flex-start;
	}

	.tm-ads-front-button,
	.tm-ads-front-delete {
		width: 100%;
	}
}
