/* AD Popup Studio – Frontend */

body.ztk-studio-open {
	overflow: hidden !important;
}

.ztk-studio-modal[hidden] {
	display: none !important;
}

.ztk-studio-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 34px;
}

.ztk-studio-modal.ztk-custom-body-font {
	font-family: var(--ztk-body-font) !important;
}

.ztk-studio-modal.ztk-custom-body-font .ztk-studio-eyebrow,
.ztk-studio-modal.ztk-custom-body-font .ztk-studio-intro,
.ztk-studio-modal.ztk-custom-body-font .ztk-studio-card-copy > span,
.ztk-studio-modal.ztk-custom-body-font .ztk-studio-footer p,
.ztk-studio-modal.ztk-custom-body-font .ztk-studio-cta {
	font-family: var(--ztk-body-font) !important;
}

.ztk-studio-backdrop {
	position: absolute;
	inset: 0;
	background: var(--ztk-backdrop);
	-webkit-backdrop-filter: blur(var(--ztk-blur));
	backdrop-filter: blur(var(--ztk-blur));
	cursor: pointer;
}

.ztk-studio-dialog {
	position: relative;
	z-index: 1;
	width: min(var(--ztk-width), 94vw);
	max-height: min(880px, calc(100vh - 28px));
	overflow: auto;
	overscroll-behavior: contain;
	padding: 38px;
	border: 1px solid rgba(34, 53, 102, 0.08);
	border: 1px solid color-mix(in srgb, var(--ztk-primary) 8%, transparent);
	border-radius: var(--ztk-radius);
	background: var(--ztk-surface);
	background:
		radial-gradient(circle at 90% 5%, color-mix(in srgb, var(--ztk-accent) 14%, transparent), transparent 34%),
		var(--ztk-surface);
	box-shadow: 0 28px 90px rgba(18, 44, 76, 0.28);
	box-shadow: 0 28px 90px color-mix(in srgb, var(--ztk-primary) 28%, transparent);
	scrollbar-width: thin;
	scrollbar-color: color-mix(in srgb, var(--ztk-primary) 25%, transparent) transparent;
}

.ztk-animation-rise .ztk-studio-dialog {
	animation: ztkStudioRise 220ms ease-out;
}

.ztk-animation-fade .ztk-studio-dialog {
	animation: ztkStudioFade 200ms ease-out;
}

.ztk-animation-scale .ztk-studio-dialog {
	animation: ztkStudioScale 220ms ease-out;
}

@keyframes ztkStudioRise {
	from { opacity: 0; transform: translateY(16px) scale(0.985); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ztkStudioFade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes ztkStudioScale {
	from { opacity: 0; transform: scale(0.95); }
	to { opacity: 1; transform: scale(1); }
}

.ztk-studio-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 28px;
	margin-bottom: 28px;
}

.ztk-studio-eyebrow {
	margin: 0 0 6px !important;
	color: var(--ztk-accent) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: 0.14em !important;
	line-height: 1.4 !important;
	text-transform: uppercase;
}

.ztk-studio-header h2 {
	margin: 0 !important;
	color: var(--ztk-primary) !important;
	font-size: clamp(29px, 3vw, 43px) !important;
	font-weight: 400 !important;
	line-height: 1.14 !important;
	text-shadow: none !important;
}

.ztk-studio-modal.ztk-custom-heading-font .ztk-studio-header h2,
.ztk-studio-modal.ztk-custom-heading-font .ztk-studio-card-copy h3 {
	font-family: var(--ztk-heading-font) !important;
}

.ztk-studio-intro {
	max-width: 720px;
	margin: 10px 0 0 !important;
	color: var(--ztk-text) !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.55 !important;
	text-align: left !important;
	text-shadow: none !important;
}

.ztk-studio-close {
	position: relative;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #edf4fa;
	background: color-mix(in srgb, var(--ztk-accent) 14%, var(--ztk-surface));
	color: var(--ztk-primary);
	cursor: pointer;
	transition: background-color 160ms ease, transform 160ms ease;
}

.ztk-studio-close:hover {
	background: #e0edf7;
	background: color-mix(in srgb, var(--ztk-accent) 24%, var(--ztk-surface));
	transform: rotate(4deg);
}

.ztk-studio-close:focus-visible,
.ztk-studio-cta:focus-visible,
[data-ztk-modal]:focus-visible {
	outline: 3px solid rgba(114, 158, 205, 0.68) !important;
	outline: 3px solid color-mix(in srgb, var(--ztk-accent) 68%, transparent) !important;
	outline-offset: 3px !important;
}

.ztk-studio-close span::before,
.ztk-studio-close span::after {
	content: "";
	position: absolute;
	top: 21px;
	left: 12px;
	width: 20px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}

.ztk-studio-close span::before { transform: rotate(45deg); }
.ztk-studio-close span::after { transform: rotate(-45deg); }

.ztk-studio-grid {
	display: grid;
	grid-template-columns: repeat(var(--ztk-columns), minmax(0, 1fr));
	gap: 14px;
}

.ztk-studio-card {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr);
	gap: 13px;
	min-height: 118px;
	padding: 19px;
	border: 1px solid rgba(34, 53, 102, 0.05);
	border: 1px solid color-mix(in srgb, var(--ztk-primary) 5%, transparent);
	border-radius: max(14px, calc(var(--ztk-radius) * 0.64));
	background: var(--ztk-card);
	color: inherit !important;
	text-decoration: none !important;
	transition: background-color 170ms ease, transform 170ms ease, box-shadow 170ms ease;
}

.ztk-studio-card:hover {
	background: #e9f3fa;
	background: color-mix(in srgb, var(--ztk-card) 88%, var(--ztk-accent));
	box-shadow: 0 9px 24px rgba(34, 53, 102, 0.09);
	box-shadow: 0 9px 24px color-mix(in srgb, var(--ztk-primary) 9%, transparent);
	color: inherit !important;
	transform: translateY(-2px);
}

.ztk-studio-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--ztk-surface);
	box-shadow: 0 4px 12px rgba(34, 53, 102, 0.08);
	box-shadow: 0 4px 12px color-mix(in srgb, var(--ztk-primary) 8%, transparent);
	color: var(--ztk-accent);
}

.ztk-studio-icon svg {
	width: 23px;
	height: 23px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ztk-studio-icon svg path:first-child:not(:only-child),
.ztk-studio-icon svg circle {
	fill: none;
}

.ztk-studio-icon-upload img {
	display: block;
	width: 25px;
	height: 25px;
	object-fit: contain;
}

.ztk-studio-icon-theme.bt_bb_icon {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: 0 0 42px !important;
	width: 42px !important;
	min-width: 42px !important;
	height: 42px !important;
	min-height: 42px !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
}

.ztk-studio-icon-theme .bt_bb_icon_holder {
	position: static !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 26px !important;
	height: 26px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: inherit !important;
	font-size: 22px !important;
	line-height: 1 !important;
	transform: none !important;
}

.ztk-studio-icon-theme .bt_bb_icon_holder::before {
	position: static !important;
	display: block !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 22px !important;
	line-height: 1 !important;
	text-align: center !important;
	transform: none !important;
}

.ztk-studio-card-copy {
	display: block;
}

.ztk-studio-card-copy h3 {
	display: block;
	margin: 1px 0 6px !important;
	color: var(--ztk-primary) !important;
	font-size: 20px !important;
	font-weight: 500 !important;
	line-height: 1.22 !important;
	text-shadow: none !important;
}

.ztk-studio-card-copy > span {
	display: block;
	margin: 0 !important;
	color: var(--ztk-text) !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	line-height: 1.48 !important;
	text-align: left !important;
	text-shadow: none !important;
}

.ztk-studio-footer {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 26px;
	padding: 24px 0 18px;
	border-top: 1px solid rgba(34, 53, 102, 0.12);
	border-top: 1px solid color-mix(in srgb, var(--ztk-primary) 12%, transparent);
	background: var(--ztk-surface);
	box-shadow: 0 -12px 20px color-mix(in srgb, var(--ztk-surface) 88%, transparent);
}

.ztk-studio-footer p {
	margin: 0 !important;
	color: var(--ztk-text) !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
	text-align: left !important;
	text-shadow: none !important;
}

.ztk-studio-cta,
.ztk-shortcode-button {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	box-sizing: border-box !important;
	margin: 0 !important;
	padding: 11px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--ztk-primary, #223566);
	box-shadow: 0 7px 18px rgba(34, 53, 102, 0.20);
	box-shadow: 0 7px 18px color-mix(in srgb, var(--ztk-primary, #223566) 20%, transparent);
	color: #ffffff !important;
	font-size: 15px;
	line-height: 1.25 !important;
	text-decoration: none !important;
	cursor: pointer;
	transition: filter 160ms ease, transform 160ms ease;
}

.ztk-studio-cta:hover,
.ztk-shortcode-button:hover {
	filter: brightness(0.9);
	color: #ffffff !important;
	transform: translateY(-1px);
}

@media screen and (max-width: 900px) {
	.ztk-studio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media screen and (max-width: 600px) {
	.ztk-studio-modal { align-items: end; padding: 0; }

	.ztk-studio-dialog {
		width: 100%;
		max-height: calc(100dvh - 18px);
		overflow: auto;
		padding: 25px 18px 24px;
		border-right: 0;
		border-bottom: 0;
		border-left: 0;
		border-radius: 26px 26px 0 0;
	}

	.ztk-animation-rise .ztk-studio-dialog,
	.ztk-animation-scale .ztk-studio-dialog {
		animation-name: ztkStudioMobile;
	}

	@keyframes ztkStudioMobile {
		from { opacity: 0; transform: translateY(28px); }
		to { opacity: 1; transform: translateY(0); }
	}

	.ztk-studio-header { gap: 16px; margin-bottom: 21px; }
	.ztk-studio-header h2 { font-size: 29px !important; }
	.ztk-studio-intro { font-size: 14px !important; }
	.ztk-studio-close { flex-basis: 42px; width: 42px; height: 42px; }
	.ztk-studio-close span::before,
	.ztk-studio-close span::after { top: 20px; left: 11px; }
	.ztk-studio-grid { grid-template-columns: 1fr; gap: 10px; }
	.ztk-studio-card { min-height: 0; padding: 16px; }
	.ztk-studio-card-copy h3 { font-size: 18px !important; }
	.ztk-studio-footer { align-items: stretch; flex-direction: column; gap: 15px; padding-bottom: max(22px, env(safe-area-inset-bottom)); }
	.ztk-studio-cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.ztk-studio-dialog,
	.ztk-studio-card,
	.ztk-studio-close,
	.ztk-studio-cta,
	.ztk-shortcode-button {
		animation: none !important;
		transition: none !important;
	}
}
