.ocp-pulse-tool {
	--ocp-navy: #073e67;
	--ocp-navy-dark: #032f52;
	--ocp-cyan: #50c9d2;
	--ocp-cyan-light: #e9fbfc;
	--ocp-ink: #0b2940;
	--ocp-muted: #617586;
	--ocp-line: #dce8ee;
	--ocp-surface: #ffffff;
	--ocp-soft: #f5f9fb;
	width: 100%;
	color: var(--ocp-ink);
	font-family: inherit;
}

.ocp-pulse-tool,
.ocp-pulse-tool * {
	box-sizing: border-box;
}

.ocp-tool-shell {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
	min-height: 620px;
	overflow: hidden;
	background: var(--ocp-surface);
	border: 1px solid var(--ocp-line);
	border-radius: 24px;
	box-shadow: 0 22px 60px rgba(7, 62, 103, 0.11);
}

.ocp-tool-form-panel {
	padding: clamp(28px, 5vw, 58px);
}

.ocp-tool-heading {
	max-width: 780px;
	margin: 0 auto 30px;
	text-align: center;
}

.ocp-tool-kicker {
	display: inline-flex;
	align-items: center;
	margin-bottom: 12px;
	padding: 7px 12px;
	color: var(--ocp-navy);
	background: var(--ocp-cyan-light);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1;
	text-transform: uppercase;
}

.ocp-tool-heading h2 {
	margin: 0 0 12px;
	color: var(--ocp-navy);
	font-size: clamp(30px, 4vw, 48px);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.08;
}

.ocp-tool-heading p {
	max-width: 680px;
	margin: 0 auto;
	color: var(--ocp-muted);
	font-size: 17px;
	line-height: 1.7;
}

.ocp-field-row {
	display: grid;
	grid-template-columns: minmax(120px, 0.34fr) minmax(0, 1fr);
	gap: 16px;
}

.ocp-field {
	margin-bottom: 22px;
}

.ocp-field label {
	display: block;
	margin: 0 0 8px;
	color: var(--ocp-ink);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
}

.ocp-pulse-tool .ocp-field input,
.ocp-pulse-tool .ocp-field textarea,
.ocp-pulse-tool .ocp-generated-link {
	display: block;
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 13px 15px;
	color: var(--ocp-ink);
	background: var(--ocp-surface);
	border: 1px solid #cbdce5;
	border-radius: 11px;
	box-shadow: none;
	font: inherit;
	font-size: 16px;
	line-height: 1.45;
	transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.ocp-pulse-tool .ocp-field textarea {
	min-height: 132px;
	resize: vertical;
}

.ocp-pulse-tool .ocp-field input:focus,
.ocp-pulse-tool .ocp-field textarea:focus,
.ocp-pulse-tool .ocp-generated-link:focus {
	outline: none;
	border-color: var(--ocp-cyan);
	box-shadow: 0 0 0 4px rgba(80, 201, 210, 0.18);
}

.ocp-pulse-tool input[aria-invalid="true"] {
	border-color: #c93c49;
	box-shadow: 0 0 0 4px rgba(201, 60, 73, 0.12);
}

.ocp-field small {
	display: block;
	margin-top: 7px;
	color: var(--ocp-muted);
	font-size: 12px;
	line-height: 1.5;
}

.ocp-tool-actions,
.ocp-result-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.ocp-pulse-tool .ocp-button,
.ocp-pulse-tool .ocp-copy-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin: 0;
	padding: 12px 19px;
	border-radius: 10px;
	box-shadow: none;
	font: inherit;
	font-size: 14px;
	font-weight: 750;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.ocp-pulse-tool .ocp-button:hover,
.ocp-pulse-tool .ocp-copy-link:hover {
	transform: translateY(-1px);
}

.ocp-pulse-tool .ocp-button:focus-visible,
.ocp-pulse-tool .ocp-copy-link:focus-visible {
	outline: 3px solid rgba(80, 201, 210, 0.42);
	outline-offset: 2px;
}

.ocp-pulse-tool .ocp-button-primary {
	gap: 20px;
	color: #ffffff !important;
	background: var(--ocp-navy) !important;
	border: 1px solid var(--ocp-navy) !important;
}

.ocp-pulse-tool .ocp-button-primary:hover,
.ocp-pulse-tool .ocp-button-primary:focus,
.ocp-pulse-tool .ocp-button-primary:active {
	color: #ffffff !important;
	background: var(--ocp-navy-dark) !important;
	border-color: var(--ocp-navy-dark) !important;
}

.ocp-pulse-tool .ocp-button-secondary,
.ocp-pulse-tool .ocp-copy-link {
	color: var(--ocp-navy) !important;
	background: #ffffff !important;
	border: 1px solid #bcd4df !important;
}

.ocp-pulse-tool .ocp-button-secondary:hover,
.ocp-pulse-tool .ocp-button-secondary:focus,
.ocp-pulse-tool .ocp-button-secondary:active,
.ocp-pulse-tool .ocp-copy-link:hover,
.ocp-pulse-tool .ocp-copy-link:focus,
.ocp-pulse-tool .ocp-copy-link:active {
	color: var(--ocp-navy) !important;
	background: var(--ocp-cyan-light) !important;
	border-color: var(--ocp-cyan) !important;
}

.ocp-pulse-tool .ocp-button-quiet {
	color: var(--ocp-muted) !important;
	background: transparent !important;
	border: 1px solid transparent !important;
}

.ocp-pulse-tool .ocp-button-quiet:hover,
.ocp-pulse-tool .ocp-button-quiet:focus,
.ocp-pulse-tool .ocp-button-quiet:active {
	color: var(--ocp-navy) !important;
	background: var(--ocp-soft) !important;
}

.ocp-tool-error {
	margin: 16px 0 0;
	padding: 12px 14px;
	color: #8d2630;
	background: #fff2f3;
	border: 1px solid #f0c7cb;
	border-radius: 9px;
	font-size: 14px;
	line-height: 1.5;
}

.ocp-privacy-note {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 22px 0 0;
	color: var(--ocp-muted);
	font-size: 12px;
	line-height: 1.55;
}

.ocp-privacy-note span {
	display: inline-flex;
	flex: 0 0 19px;
	align-items: center;
	justify-content: center;
	width: 19px;
	height: 19px;
	color: var(--ocp-navy);
	background: var(--ocp-cyan-light);
	border-radius: 50%;
	font-size: 11px;
	font-weight: 900;
}

.ocp-tool-result-panel {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	padding: clamp(28px, 4vw, 48px);
	background:
		radial-gradient(circle at 82% 14%, rgba(80, 201, 210, 0.42), transparent 29%),
		linear-gradient(145deg, #effbfd 0%, #dff6f8 46%, #f4fbfc 100%);
	border-inline-start: 1px solid var(--ocp-line);
}

.ocp-result-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	min-height: 300px;
	color: var(--ocp-navy);
	text-align: center;
}

.ocp-whatsapp-mark {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 104px;
	height: 104px;
	color: #ffffff;
	background: var(--ocp-navy);
	border: 13px solid rgba(255, 255, 255, 0.7);
	border-radius: 30px;
	box-shadow: 0 18px 40px rgba(7, 62, 103, 0.2);
	font-size: 42px;
	font-weight: 400;
}

.ocp-result-placeholder p {
	max-width: 280px;
	margin: 0;
	font-size: 18px;
	font-weight: 750;
	line-height: 1.4;
}

.ocp-result {
	width: min(100%, 420px);
}

.ocp-result h3 {
	margin: 0 0 22px;
	color: var(--ocp-navy);
	font-size: 26px;
	font-weight: 750;
	letter-spacing: -0.025em;
	line-height: 1.2;
	text-align: center;
}

.ocp-qr-wrap {
	width: fit-content;
	margin: 0 auto 24px;
	padding: 14px;
	background: #ffffff;
	border: 1px solid rgba(7, 62, 103, 0.1);
	border-radius: 18px;
	box-shadow: 0 18px 38px rgba(7, 62, 103, 0.13);
}

.ocp-qr-code,
.ocp-qr-code canvas,
.ocp-qr-code img {
	display: block;
	width: 220px;
	height: 220px;
	max-width: 100%;
}

.ocp-link-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
	margin-bottom: 14px;
}

.ocp-pulse-tool .ocp-generated-link {
	min-width: 0;
	min-height: 48px;
	padding: 11px 13px;
	background: rgba(255, 255, 255, 0.8);
	font-size: 13px;
}

.ocp-pulse-tool .ocp-copy-link {
	min-height: 48px;
	padding-inline: 14px;
}

.ocp-result-actions {
	justify-content: center;
}

.ocp-pulse-tool[dir="rtl"] .ocp-generate span:last-child {
	transform: rotate(180deg);
}

.ocp-pulse-tool[dir="rtl"] .ocp-qr-generate span:last-child {
	transform: rotate(180deg);
}

.ocp-pulse-tool .ocp-button:disabled {
	opacity: 0.68;
	cursor: wait;
	transform: none;
}

.ocp-pulse-tool .ocp-visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.ocp-logo-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.ocp-pulse-tool .ocp-logo-upload {
	display: inline-flex;
	width: auto;
	margin: 0;
}

.ocp-logo-preview {
	width: fit-content;
	margin-top: 14px;
	padding: 9px;
	background: #ffffff;
	border: 1px solid var(--ocp-line);
	border-radius: 13px;
	box-shadow: 0 9px 24px rgba(7, 62, 103, 0.08);
}

.ocp-logo-preview img {
	display: block;
	width: 82px;
	height: 82px;
	object-fit: contain;
}

.ocp-range-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 9px;
}

.ocp-range-label label {
	margin: 0;
}

.ocp-range-label output {
	min-width: 46px;
	padding: 4px 8px;
	color: var(--ocp-navy);
	background: var(--ocp-cyan-light);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	text-align: center;
}

.ocp-pulse-tool .ocp-logo-size-control input[type="range"] {
	width: 100%;
	min-height: 24px;
	height: 24px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	accent-color: var(--ocp-cyan);
	cursor: pointer;
}

.ocp-qr-placeholder-mark {
	display: grid;
	grid-template-columns: repeat(2, 29px);
	grid-template-rows: repeat(2, 29px);
	gap: 8px;
	padding: 20px;
	background: #ffffff;
	border: 1px solid rgba(7, 62, 103, 0.11);
	border-radius: 24px;
	box-shadow: 0 18px 40px rgba(7, 62, 103, 0.15);
}

.ocp-qr-placeholder-mark span {
	display: block;
	background: var(--ocp-navy);
	border-radius: 5px;
}

.ocp-qr-placeholder-mark span:last-child {
	background: var(--ocp-cyan);
	border-radius: 50%;
}

.ocp-branded-qr-wrap {
	max-width: 100%;
}

.ocp-custom-qr-code,
.ocp-custom-qr-code canvas {
	display: block;
	width: 260px;
	height: 260px;
	max-width: 100%;
}

.ocp-custom-qr-code canvas {
	height: auto;
}

.ocp-qr-source {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

.ocp-download-note {
	margin: 12px 0 0;
	color: var(--ocp-muted);
	font-size: 12px;
	line-height: 1.5;
	text-align: center;
}

/* Keep this after component display rules so Elementor cannot reveal hidden states. */
.ocp-pulse-tool [hidden] {
	display: none !important;
}

@media (max-width: 820px) {
	.ocp-tool-shell {
		grid-template-columns: 1fr;
		min-height: 0;
		border-radius: 19px;
	}

	.ocp-tool-result-panel {
		min-height: 360px;
		border-top: 1px solid var(--ocp-line);
		border-inline-start: 0;
	}
}

@media (max-width: 560px) {
	.ocp-tool-form-panel,
	.ocp-tool-result-panel {
		padding: 24px 18px;
	}

	.ocp-tool-heading {
		margin-bottom: 25px;
	}

	.ocp-tool-heading h2 {
		font-size: 31px;
	}

	.ocp-tool-heading p {
		font-size: 15px;
	}

	.ocp-field-row {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.ocp-tool-actions,
	.ocp-result-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.ocp-pulse-tool .ocp-button {
		width: 100%;
	}

	.ocp-link-row {
		grid-template-columns: 1fr;
	}

	.ocp-qr-code,
	.ocp-qr-code canvas,
	.ocp-qr-code img,
	.ocp-custom-qr-code,
	.ocp-custom-qr-code canvas {
		width: 200px;
		height: 200px;
	}

	.ocp-custom-qr-code canvas {
		height: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ocp-pulse-tool *,
	.ocp-pulse-tool *::before,
	.ocp-pulse-tool *::after {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
