/*!
 * Contacto Express — WhatsApp & Callback
 * Front-end styles. Every rule is scoped to :is(.cexp-root,#cexp) / :is(.cexp-trigger,#cexp-t).
 * Selectors use :is(:is(.cexp-root,#cexp),#cexp) so they win over generic theme and
 * page builder rules (e.g. "input[type=tel]") without !important.
 */

/* ---------- Base & reset ---------- */
:is(.cexp-root,#cexp) {
	--cexp-launcher: 60px;
	--cexp-icon: 28px;
	--cexp-panel-w: 360px;
	--cexp-text: #111827;
	--cexp-muted: #4b5563;
	--cexp-subtle: #6b7280;
	--cexp-border: #e5e7eb;
	--cexp-field-border: #d1d5db;
	--cexp-surface: #ffffff;
	--cexp-soft: #f3f4f6;
	--cexp-danger: #b91c1c;
	--cexp-ease: cubic-bezier(.2, .8, .2, 1);
	--cexp-r-sm: calc(var(--cexp-radius, 16px) * .7);
	--cexp-r-xs: calc(var(--cexp-radius, 16px) * .5);
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	border: 0;
	font-family: inherit;
	font-size: 15px;
	font-weight: 400;
	font-style: normal;
	line-height: 1.45;
	letter-spacing: normal;
	text-align: left;
	text-transform: none;
	text-shadow: none;
	color: var(--cexp-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-tap-highlight-color: transparent;
}

:is(.cexp-root,#cexp) *,
:is(.cexp-root,#cexp) *::before,
:is(.cexp-root,#cexp) *::after {
	box-sizing: border-box;
}

:is(.cexp-root,#cexp) [hidden] {
	display: none !important;
}

:is(.cexp-root,#cexp) .cexp-icon {
	display: block;
	width: 1em;
	height: 1em;
	flex: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	vertical-align: middle;
}

:is(.cexp-root,#cexp) p,
:is(.cexp-root,#cexp) h2 {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
	text-align: inherit;
}

:is(.cexp-root,#cexp) button,
:is(.cexp-root,#cexp) a,
:is(.cexp-root,#cexp) input,
:is(.cexp-root,#cexp) label {
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
	text-indent: 0;
	min-height: 0;
	min-width: 0;
	float: none;
	margin: 0;
}

:is(.cexp-root,#cexp) img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

:is(.cexp-root,#cexp) .cexp-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Sizes ---------- */
:is(.cexp-root,#cexp).cexp-size-small {
	--cexp-launcher: 52px;
	--cexp-icon: 24px;
	--cexp-panel-w: 320px;
	font-size: 14px;
}

:is(.cexp-root,#cexp).cexp-size-large {
	--cexp-launcher: 68px;
	--cexp-icon: 30px;
	--cexp-panel-w: 400px;
	font-size: 16px;
}

/* ---------- Floating container ---------- */
:is(.cexp-root,#cexp).cexp-root--floating {
	position: fixed;
	z-index: var(--cexp-z, 99990);
	right: var(--cexp-offset-x, 24px);
	bottom: calc(var(--cexp-offset-y, 24px) + env(safe-area-inset-bottom, 0px));
	left: auto;
	top: auto;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 14px;
	width: auto;
	max-width: calc(100vw - (2 * var(--cexp-offset-x, 24px)));
	pointer-events: none;
}

:is(.cexp-root,#cexp).cexp-root--floating.cexp-pos-left {
	right: auto;
	left: var(--cexp-offset-x, 24px);
	align-items: flex-start;
}

:is(.cexp-root,#cexp).cexp-root--floating > * {
	pointer-events: auto;
}

/* ---------- Launcher ---------- */
:is(.cexp-root,#cexp) .cexp-launcher {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: var(--cexp-launcher);
	min-width: var(--cexp-launcher);
	width: auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--cexp-primary);
	color: var(--cexp-primary-text);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: transform .25s var(--cexp-ease), background-color .2s ease, box-shadow .25s ease;
	white-space: nowrap;
}

:is(.cexp-root,#cexp).cexp-has-label .cexp-launcher {
	padding: 0 22px 0 18px;
}

:is(.cexp-root,#cexp).cexp-shadow .cexp-launcher {
	box-shadow: 0 10px 28px -6px rgba(var(--cexp-primary-rgb), .55), 0 4px 10px -4px rgba(15, 23, 42, .25);
}

:is(.cexp-root,#cexp) .cexp-launcher:hover {
	background: var(--cexp-primary-hover);
	color: var(--cexp-primary-text);
	transform: translateY(-2px);
}

:is(.cexp-root,#cexp) .cexp-launcher:active {
	transform: translateY(0) scale(.97);
}

:is(.cexp-root,#cexp) .cexp-launcher:focus {
	outline: none;
}

:is(.cexp-root,#cexp) .cexp-launcher:focus-visible {
	outline: 3px solid rgba(var(--cexp-primary-rgb), .45);
	outline-offset: 3px;
}

:is(.cexp-root,#cexp) .cexp-launcher__icon {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--cexp-icon);
	height: var(--cexp-icon);
	font-size: var(--cexp-icon);
	transition: transform .3s var(--cexp-ease), opacity .2s ease;
}

:is(.cexp-root,#cexp) .cexp-launcher__icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 6px;
}

:is(.cexp-root,#cexp) .cexp-launcher__icon--close {
	position: absolute;
	left: 50%;
	top: 50%;
	margin: calc(var(--cexp-icon) / -2) 0 0 calc(var(--cexp-icon) / -2);
	opacity: 0;
	transform: rotate(-90deg) scale(.6);
	font-size: calc(var(--cexp-icon) * .9);
}

:is(.cexp-root,#cexp) .cexp-launcher__label {
	display: inline-block;
	max-width: 260px;
	overflow: hidden;
	text-overflow: ellipsis;
	opacity: 1;
	transition: max-width .3s var(--cexp-ease), opacity .2s ease, margin .3s var(--cexp-ease);
}

:is(.cexp-root,#cexp):not(.cexp-has-label) .cexp-launcher__label {
	display: none;
}

/* Open state: the launcher turns into a round close button. */
:is(.cexp-root,#cexp).is-open .cexp-launcher {
	padding: 0;
	width: var(--cexp-launcher);
	gap: 0;
}

:is(.cexp-root,#cexp).is-open .cexp-launcher__label {
	position: absolute;
	max-width: 0;
	opacity: 0;
	pointer-events: none;
}

:is(.cexp-root,#cexp).is-open .cexp-launcher__icon--open {
	opacity: 0;
	transform: rotate(90deg) scale(.6);
}

:is(.cexp-root,#cexp).is-open .cexp-launcher__icon--close {
	opacity: 1;
	transform: none;
}

/* Attention animations (a few cycles only, stopped by JS once opened). */
:is(.cexp-root,#cexp).cexp-attn-pulse .cexp-launcher::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: 0 0 0 0 rgba(var(--cexp-primary-rgb), .5);
	animation: cexp-pulse 2.4s ease-out 1.5s 4;
	pointer-events: none;
}

:is(.cexp-root,#cexp).cexp-attn-bounce .cexp-launcher {
	animation: cexp-bounce 1.6s var(--cexp-ease) 2s 3;
}

:is(.cexp-root,#cexp).cexp-attn-off .cexp-launcher,
:is(.cexp-root,#cexp).cexp-attn-off .cexp-launcher::before,
:is(.cexp-root,#cexp).is-open .cexp-launcher,
:is(.cexp-root,#cexp).is-open .cexp-launcher::before {
	animation: none;
}

@keyframes cexp-pulse {
	0% { box-shadow: 0 0 0 0 rgba(var(--cexp-primary-rgb), .5); }
	70% { box-shadow: 0 0 0 16px rgba(var(--cexp-primary-rgb), 0); }
	100% { box-shadow: 0 0 0 0 rgba(var(--cexp-primary-rgb), 0); }
}

@keyframes cexp-bounce {
	0%, 40%, 100% { transform: translateY(0); }
	15% { transform: translateY(-9px); }
	28% { transform: translateY(-3px); }
}

/* ---------- Panel ---------- */
:is(.cexp-root,#cexp) .cexp-panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: var(--cexp-panel-w);
	max-width: 100%;
	max-height: calc(100vh - var(--cexp-launcher) - var(--cexp-offset-y, 24px) - 40px);
	max-height: calc(100dvh - var(--cexp-launcher) - var(--cexp-offset-y, 24px) - 40px);
	margin: 0;
	overflow: hidden;
	background: var(--cexp-surface);
	border: 1px solid rgba(15, 23, 42, .08);
	border-radius: var(--cexp-radius, 16px);
	color: var(--cexp-text);
	text-align: left;
	transform-origin: bottom right;
}

:is(.cexp-root,#cexp).cexp-pos-left .cexp-panel {
	transform-origin: bottom left;
}

:is(.cexp-root,#cexp).cexp-shadow .cexp-panel {
	box-shadow: 0 24px 60px -12px rgba(15, 23, 42, .28), 0 10px 24px -10px rgba(15, 23, 42, .18);
}

:is(.cexp-root,#cexp).cexp-anim .cexp-panel {
	opacity: 0;
	transform: translateY(12px) scale(.97);
	transition: opacity .18s ease, transform .22s var(--cexp-ease);
}

:is(.cexp-root,#cexp).cexp-anim.is-open .cexp-panel,
:is(.cexp-root,#cexp).cexp-root--inline .cexp-panel {
	opacity: 1;
	transform: none;
}

:is(.cexp-root,#cexp).cexp-anim.is-open .cexp-panel {
	transition: opacity .22s ease, transform .3s var(--cexp-ease);
}

/* Header */
:is(.cexp-root,#cexp) .cexp-header {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	flex: none;
	padding: 18px 56px 20px 20px;
	background: var(--cexp-primary);
	background: linear-gradient(135deg, var(--cexp-primary) 0%, var(--cexp-primary-hover) 100%);
	color: var(--cexp-primary-text);
}

:is(.cexp-root,#cexp) .cexp-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 44px;
	height: 44px;
	overflow: hidden;
	border-radius: 50%;
	background: rgba(255, 255, 255, .18);
	background: color-mix(in srgb, currentColor 18%, transparent);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, .35);
	box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 35%, transparent);
	font-size: 22px;
}

:is(.cexp-root,#cexp) .cexp-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #fff;
}

:is(.cexp-root,#cexp) .cexp-header__text {
	min-width: 0;
}

:is(.cexp-root,#cexp) .cexp-title {
	display: block;
	font-size: 1.13em;
	font-weight: 700;
	line-height: 1.25;
	color: inherit;
}

:is(.cexp-root,#cexp) .cexp-subtitle {
	margin-top: 3px;
	font-size: .9em;
	line-height: 1.4;
	opacity: .9;
	color: inherit;
}

:is(.cexp-root,#cexp) .cexp-close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .16);
	background: color-mix(in srgb, currentColor 16%, transparent);
	color: inherit;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
	appearance: none;
	-webkit-appearance: none;
	box-shadow: none;
}

:is(.cexp-root,#cexp) .cexp-close:hover {
	background: rgba(255, 255, 255, .28);
	background: color-mix(in srgb, currentColor 28%, transparent);
	color: inherit;
	transform: rotate(90deg);
}

:is(.cexp-root,#cexp) .cexp-close:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Body & views */
:is(.cexp-root,#cexp) .cexp-body {
	flex: 1 1 auto;
	min-height: 0;
	padding: 16px;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

:is(.cexp-root,#cexp) .cexp-view {
	display: grid;
	gap: 10px;
}

:is(.cexp-root,#cexp).cexp-anim .cexp-view.cexp-enter {
	animation: cexp-view-in .28s var(--cexp-ease);
}

@keyframes cexp-view-in {
	from { opacity: 0; transform: translateX(10px); }
	to { opacity: 1; transform: none; }
}

/* ---------- Option buttons ---------- */
:is(.cexp-root,#cexp) .cexp-btn {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 54px;
	margin: 0;
	padding: 10px 14px 10px 10px;
	border: 0;
	border-radius: var(--cexp-r-sm);
	background: var(--cexp-soft);
	color: var(--cexp-text);
	font-size: 1em;
	font-weight: 600;
	line-height: 1.3;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	box-shadow: none;
	transition: transform .2s var(--cexp-ease), background-color .2s ease, box-shadow .2s ease;
}

:is(.cexp-root,#cexp) .cexp-btn:hover,
:is(.cexp-root,#cexp) .cexp-btn:focus {
	text-decoration: none;
}

:is(.cexp-root,#cexp) .cexp-btn:hover {
	transform: translateY(-1px);
}

:is(.cexp-root,#cexp) .cexp-btn:active {
	transform: translateY(0) scale(.985);
}

:is(.cexp-root,#cexp) .cexp-btn:focus {
	outline: none;
}

:is(.cexp-root,#cexp) .cexp-btn:focus-visible {
	outline: 3px solid rgba(var(--cexp-primary-rgb), .45);
	outline-offset: 2px;
}

:is(.cexp-root,#cexp) .cexp-btn__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .18);
	background: color-mix(in srgb, currentColor 15%, transparent);
	font-size: 20px;
}

:is(.cexp-root,#cexp) .cexp-btn__text {
	flex: 1 1 auto;
	min-width: 0;
}

:is(.cexp-root,#cexp) .cexp-btn__sub {
	display: block;
	margin-top: 1px;
	font-size: .85em;
	font-weight: 500;
	opacity: .75;
}

:is(.cexp-root,#cexp) .cexp-btn__arrow {
	flex: none;
	font-size: 18px;
	opacity: .7;
	transition: transform .2s var(--cexp-ease), opacity .2s ease;
}

:is(.cexp-root,#cexp) .cexp-btn:hover .cexp-btn__arrow {
	transform: translateX(3px);
	opacity: 1;
}

:is(.cexp-root,#cexp) .cexp-btn--wa,
:is(.cexp-root,#cexp) .cexp-btn--wa:visited {
	background: var(--cexp-wa);
	color: var(--cexp-wa-text);
}

:is(.cexp-root,#cexp) .cexp-btn--wa:hover,
:is(.cexp-root,#cexp) .cexp-btn--wa:focus {
	background: var(--cexp-wa-hover);
	color: var(--cexp-wa-text);
}

:is(.cexp-root,#cexp) .cexp-btn--call {
	background: var(--cexp-call);
	color: var(--cexp-call-text);
}

:is(.cexp-root,#cexp) .cexp-btn--call:hover,
:is(.cexp-root,#cexp) .cexp-btn--call:focus {
	background: var(--cexp-call-hover);
	color: var(--cexp-call-text);
}

:is(.cexp-root,#cexp).cexp-shadow .cexp-btn--wa:hover,
:is(.cexp-root,#cexp).cexp-shadow .cexp-btn--call:hover {
	box-shadow: 0 8px 18px -8px rgba(15, 23, 42, .45);
}

:is(.cexp-root,#cexp) .cexp-btn--ghost,
:is(.cexp-root,#cexp) .cexp-btn--ghost:visited {
	background: var(--cexp-surface);
	color: var(--cexp-text);
	box-shadow: inset 0 0 0 1px var(--cexp-border);
}

:is(.cexp-root,#cexp) .cexp-btn--ghost:hover,
:is(.cexp-root,#cexp) .cexp-btn--ghost:focus {
	background: var(--cexp-soft);
	color: var(--cexp-text);
}

:is(.cexp-root,#cexp) .cexp-btn--ghost .cexp-btn__icon {
	background: rgba(var(--cexp-primary-rgb), .1);
	color: var(--cexp-primary);
}

:is(.cexp-root,#cexp) .cexp-btn--center {
	justify-content: center;
	padding: 10px 18px;
	text-align: center;
}

/* ---------- Callback form ---------- */
:is(.cexp-root,#cexp) .cexp-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	justify-self: start;
	margin: -4px 0 2px -6px;
	padding: 6px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--cexp-muted);
	font-size: .87em;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	box-shadow: none;
}

:is(.cexp-root,#cexp) .cexp-back .cexp-icon {
	font-size: 16px;
}

:is(.cexp-root,#cexp) .cexp-back:hover {
	background: var(--cexp-soft);
	color: var(--cexp-text);
}

:is(.cexp-root,#cexp) .cexp-back:focus-visible {
	outline: 2px solid var(--cexp-primary);
	outline-offset: 1px;
}

:is(.cexp-root,#cexp) .cexp-form-title {
	font-size: 1.1em;
	font-weight: 700;
	line-height: 1.3;
	color: var(--cexp-text);
	outline: none;
}

:is(.cexp-root,#cexp) .cexp-form-desc {
	margin-top: -4px;
	font-size: .93em;
	color: var(--cexp-muted);
}

:is(.cexp-root,#cexp) .cexp-form {
	display: grid;
	gap: 14px;
	margin: 4px 0 0;
	padding: 0;
	border: 0;
	background: none;
}

:is(.cexp-root,#cexp) .cexp-field {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
}

:is(.cexp-root,#cexp) .cexp-label {
	display: block;
	padding: 0;
	font-size: .9em;
	font-weight: 600;
	line-height: 1.3;
	color: #374151;
	cursor: pointer;
}

:is(.cexp-root,#cexp) .cexp-req {
	color: var(--cexp-danger);
}

:is(.cexp-root,#cexp) .cexp-optional {
	font-weight: 400;
	color: var(--cexp-subtle);
}

:is(.cexp-root,#cexp) .cexp-input {
	display: block;
	width: 100%;
	max-width: none;
	height: 46px;
	min-height: 46px;
	margin: 0;
	padding: 0 14px;
	border: 1.5px solid var(--cexp-field-border);
	border-radius: var(--cexp-r-xs);
	background: #ffffff;
	box-shadow: none;
	color: var(--cexp-text);
	font-size: 16px;
	font-weight: 400;
	line-height: normal;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

:is(.cexp-root,#cexp) .cexp-input::placeholder {
	color: #9ca3af;
	opacity: 1;
}

:is(.cexp-root,#cexp) .cexp-input:hover {
	border-color: #9ca3af;
}

:is(.cexp-root,#cexp) .cexp-input:focus {
	border-color: var(--cexp-primary);
	box-shadow: 0 0 0 3px rgba(var(--cexp-primary-rgb), .18);
	background: #ffffff;
	color: var(--cexp-text);
	outline: none;
}

:is(.cexp-root,#cexp) .cexp-input[aria-invalid="true"] {
	border-color: #dc2626;
}

:is(.cexp-root,#cexp) .cexp-input[aria-invalid="true"]:focus {
	box-shadow: 0 0 0 3px rgba(220, 38, 38, .15);
}

:is(.cexp-root,#cexp) .cexp-error {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: .85em;
	font-weight: 500;
	color: var(--cexp-danger);
}

:is(.cexp-root,#cexp) .cexp-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

:is(.cexp-root,#cexp) .cexp-checkbox {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	padding: 0;
	accent-color: var(--cexp-primary);
	cursor: pointer;
	position: static;
	opacity: 1;
	appearance: auto;
	-webkit-appearance: checkbox;
}

:is(.cexp-root,#cexp) .cexp-checkbox:focus-visible {
	outline: 2px solid var(--cexp-primary);
	outline-offset: 2px;
}

:is(.cexp-root,#cexp) .cexp-check label {
	display: block;
	padding: 0;
	font-size: .88em;
	font-weight: 400;
	line-height: 1.45;
	color: #374151;
	cursor: pointer;
}

:is(.cexp-root,#cexp) .cexp-check a,
:is(.cexp-root,#cexp) .cexp-check a:visited {
	color: var(--cexp-primary);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	box-shadow: none;
	background: none;
}

:is(.cexp-root,#cexp) .cexp-check a:hover {
	color: var(--cexp-primary-hover);
}

:is(.cexp-root,#cexp) .cexp-check a:focus-visible {
	outline: 2px solid var(--cexp-primary);
	outline-offset: 1px;
	border-radius: 2px;
}

:is(.cexp-root,#cexp) .cexp-privacy-info {
	margin-top: -6px;
	font-size: .78em;
	line-height: 1.45;
	color: var(--cexp-subtle);
}

:is(.cexp-root,#cexp) .cexp-hp {
	position: absolute !important;
	left: -10000px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

:is(.cexp-root,#cexp) .cexp-status {
	padding: 10px 12px;
	border: 1px solid #fecaca;
	border-radius: var(--cexp-r-xs);
	background: #fef2f2;
	color: #991b1b;
	font-size: .88em;
	line-height: 1.45;
}

:is(.cexp-root,#cexp) .cexp-status.is-info {
	border-color: #bfdbfe;
	background: #eff6ff;
	color: #1e40af;
}

:is(.cexp-root,#cexp) .cexp-submit {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 10px 18px;
	border: 0;
	border-radius: var(--cexp-r-sm);
	background: var(--cexp-primary);
	color: var(--cexp-primary-text);
	font-size: 1em;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	box-shadow: none;
	transition: background-color .2s ease, transform .2s var(--cexp-ease), opacity .2s ease;
}

:is(.cexp-root,#cexp) .cexp-submit:hover {
	background: var(--cexp-primary-hover);
	color: var(--cexp-primary-text);
}

:is(.cexp-root,#cexp) .cexp-submit:active {
	transform: scale(.985);
}

:is(.cexp-root,#cexp) .cexp-submit:focus {
	outline: none;
}

:is(.cexp-root,#cexp) .cexp-submit:focus-visible {
	outline: 3px solid rgba(var(--cexp-primary-rgb), .45);
	outline-offset: 2px;
}

:is(.cexp-root,#cexp) .cexp-submit[disabled],
:is(.cexp-root,#cexp) .cexp-submit[aria-busy="true"] {
	cursor: progress;
	opacity: .8;
	transform: none;
}

:is(.cexp-root,#cexp) .cexp-spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: cexp-spin .7s linear infinite;
}

:is(.cexp-root,#cexp) .cexp-submit.is-loading .cexp-spinner {
	display: inline-block;
}

@keyframes cexp-spin {
	to { transform: rotate(360deg); }
}

/* ---------- Success ---------- */
:is(.cexp-root,#cexp) .cexp-view--success {
	justify-items: center;
	gap: 14px;
	padding: 18px 6px 8px;
	text-align: center;
}

:is(.cexp-root,#cexp) .cexp-success-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #dcfce7;
	color: #15803d;
	font-size: 30px;
}

:is(.cexp-root,#cexp).cexp-anim .cexp-view--success.cexp-enter .cexp-success-icon {
	animation: cexp-pop .45s var(--cexp-ease);
}

@keyframes cexp-pop {
	0% { transform: scale(.4); opacity: 0; }
	70% { transform: scale(1.08); opacity: 1; }
	100% { transform: scale(1); }
}

:is(.cexp-root,#cexp) .cexp-success-text {
	font-size: 1.03em;
	font-weight: 600;
	line-height: 1.5;
	color: var(--cexp-text);
	text-align: center;
	outline: none;
}

:is(.cexp-root,#cexp) .cexp-view--success .cexp-btn--center {
	width: auto;
	min-height: 42px;
	margin-top: 4px;
}

/* ---------- Modal (shortcode buttons without floating widget) ---------- */
:is(.cexp-root,#cexp).cexp-root--modal {
	position: fixed;
	inset: 0;
	z-index: var(--cexp-z, 99990);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	pointer-events: none;
}

:is(.cexp-root,#cexp).cexp-root--modal .cexp-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, .45);
	pointer-events: auto;
	opacity: 0;
	transition: opacity .2s ease;
}

:is(.cexp-root,#cexp).cexp-root--modal:not(.cexp-anim) .cexp-backdrop,
:is(.cexp-root,#cexp).cexp-root--modal.is-open .cexp-backdrop {
	opacity: 1;
}

:is(.cexp-root,#cexp).cexp-root--modal .cexp-panel {
	pointer-events: auto;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	transform-origin: center;
}

:is(.cexp-root,#cexp).cexp-root--modal.cexp-anim .cexp-panel {
	transform: translateY(16px) scale(.97);
}

:is(.cexp-root,#cexp).cexp-root--modal.cexp-anim.is-open .cexp-panel {
	transform: none;
}

html.cexp-lock,
html.cexp-lock body {
	overflow: hidden !important;
}

/* ---------- Inline (shortcode display="inline") ---------- */
:is(.cexp-root,#cexp).cexp-root--inline {
	display: block;
	width: 100%;
	max-width: var(--cexp-panel-w);
	margin: 1.5em 0;
}

:is(.cexp-root,#cexp).cexp-root--inline.cexp-align-center {
	margin-left: auto;
	margin-right: auto;
}

:is(.cexp-root,#cexp).cexp-root--inline.cexp-align-right {
	margin-left: auto;
	margin-right: 0;
}

:is(.cexp-root,#cexp).cexp-root--inline .cexp-panel {
	width: 100%;
	max-height: none;
}

:is(.cexp-root,#cexp).cexp-root--inline .cexp-header {
	padding-right: 20px;
}

:is(.cexp-root,#cexp).cexp-root--inline .cexp-title {
	font-size: 1.2em;
	margin: 0;
}

:is(.cexp-root,#cexp).cexp-root--inline .cexp-body {
	overflow: visible;
}

/* ---------- Shortcode trigger ---------- */
.cexp-trigger-wrap {
	margin: 1em 0;
}

.cexp-trigger-wrap.cexp-align-left { text-align: left; }
.cexp-trigger-wrap.cexp-align-center { text-align: center; }
.cexp-trigger-wrap.cexp-align-right { text-align: right; }

:is(.cexp-trigger,#cexp-t) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	margin: 0;
	padding: 12px 24px;
	border: 2px solid var(--cexp-primary);
	border-radius: 999px;
	background: var(--cexp-primary);
	color: var(--cexp-primary-text);
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	text-shadow: none;
	box-shadow: none;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: background-color .2s ease, color .2s ease, transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s ease;
	-webkit-tap-highlight-color: transparent;
}

:is(.cexp-trigger,#cexp-t):hover,
:is(.cexp-trigger,#cexp-t):focus {
	background: var(--cexp-primary-hover);
	border-color: var(--cexp-primary-hover);
	color: var(--cexp-primary-text);
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 10px 22px -10px rgba(var(--cexp-primary-rgb), .7);
}

:is(.cexp-trigger,#cexp-t):focus {
	outline: none;
}

:is(.cexp-trigger,#cexp-t):focus-visible {
	outline: 3px solid rgba(var(--cexp-primary-rgb), .45);
	outline-offset: 3px;
}

:is(.cexp-trigger,#cexp-t) .cexp-icon {
	display: block;
	width: 20px;
	height: 20px;
	flex: none;
}

:is(.cexp-trigger,#cexp-t).cexp-trigger--wa {
	border-color: var(--cexp-wa);
	background: var(--cexp-wa);
	color: var(--cexp-wa-text);
}

:is(.cexp-trigger,#cexp-t).cexp-trigger--wa:hover,
:is(.cexp-trigger,#cexp-t).cexp-trigger--wa:focus {
	border-color: var(--cexp-wa-hover);
	background: var(--cexp-wa-hover);
	color: var(--cexp-wa-text);
	box-shadow: 0 10px 22px -10px rgba(15, 23, 42, .5);
}

:is(.cexp-trigger,#cexp-t).cexp-trigger--outline {
	background: transparent;
	color: var(--cexp-primary);
}

:is(.cexp-trigger,#cexp-t).cexp-trigger--outline:hover,
:is(.cexp-trigger,#cexp-t).cexp-trigger--outline:focus {
	background: var(--cexp-primary);
	color: var(--cexp-primary-text);
}

:is(.cexp-trigger,#cexp-t).cexp-trigger--outline.cexp-trigger--wa {
	background: transparent;
	color: var(--cexp-wa-hover);
}

:is(.cexp-trigger,#cexp-t).cexp-trigger--outline.cexp-trigger--wa:hover,
:is(.cexp-trigger,#cexp-t).cexp-trigger--outline.cexp-trigger--wa:focus {
	background: var(--cexp-wa);
	color: var(--cexp-wa-text);
}

:is(.cexp-trigger,#cexp-t).cexp-trigger--link {
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--cexp-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
	box-shadow: none;
}

:is(.cexp-trigger,#cexp-t).cexp-trigger--link:hover,
:is(.cexp-trigger,#cexp-t).cexp-trigger--link:focus {
	background: transparent;
	color: var(--cexp-primary-hover);
	text-decoration: underline;
	transform: none;
	box-shadow: none;
}

:is(.cexp-trigger,#cexp-t).cexp-trigger--link.cexp-trigger--wa {
	color: var(--cexp-wa-hover);
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
	:is(.cexp-root,#cexp).cexp-root--floating {
		bottom: calc(var(--cexp-offset-y-m, 16px) + env(safe-area-inset-bottom, 0px));
		right: min(var(--cexp-offset-x, 24px), 16px);
		max-width: calc(100vw - 24px);
	}

	:is(.cexp-root,#cexp).cexp-root--floating.cexp-pos-left {
		left: min(var(--cexp-offset-x, 24px), 16px);
	}

	/* Compact launcher: the text stays available to screen readers. */
	:is(.cexp-root,#cexp).cexp-has-label:not(.cexp-label-mobile) .cexp-launcher {
		width: var(--cexp-launcher);
		padding: 0;
		gap: 0;
	}

	:is(.cexp-root,#cexp).cexp-has-label:not(.cexp-label-mobile) .cexp-launcher__label {
		position: absolute;
		width: 1px;
		height: 1px;
		max-width: 1px;
		margin: -1px;
		padding: 0;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}

	:is(.cexp-root,#cexp).cexp-root--floating .cexp-panel {
		position: fixed;
		left: 12px;
		right: 12px;
		bottom: calc(var(--cexp-offset-y-m, 16px) + var(--cexp-launcher) + 12px + env(safe-area-inset-bottom, 0px));
		width: auto;
		max-height: calc(100vh - var(--cexp-launcher) - var(--cexp-offset-y-m, 16px) - 36px);
		max-height: calc(100dvh - var(--cexp-launcher) - var(--cexp-offset-y-m, 16px) - 36px - env(safe-area-inset-bottom, 0px));
	}

	:is(.cexp-root,#cexp).cexp-hide-mobile .cexp-launcher {
		display: none;
	}

	:is(.cexp-root,#cexp).cexp-hide-mobile .cexp-panel {
		bottom: calc(12px + env(safe-area-inset-bottom, 0px));
		max-height: calc(100dvh - 24px);
	}

	:is(.cexp-root,#cexp).cexp-root--modal {
		align-items: flex-end;
		padding: 10px;
	}

	:is(.cexp-root,#cexp) .cexp-header {
		padding: 16px 54px 16px 16px;
	}

	:is(.cexp-root,#cexp) .cexp-body {
		padding: 14px;
	}
}

@media (min-width: 768px) {
	:is(.cexp-root,#cexp).cexp-hide-desktop .cexp-launcher {
		display: none;
	}
}

@media (max-height: 520px) and (max-width: 1024px) {
	:is(.cexp-root,#cexp) .cexp-avatar {
		display: none;
	}
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	:is(.cexp-root,#cexp),
	:is(.cexp-root,#cexp) *,
	:is(.cexp-root,#cexp) *::before,
	:is(.cexp-root,#cexp) *::after,
	:is(.cexp-trigger,#cexp-t) {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- Print ---------- */
@media print {
	:is(.cexp-root,#cexp).cexp-root--floating,
	:is(.cexp-root,#cexp).cexp-root--modal {
		display: none !important;
	}
}
