/*
 * Croator Kalkulator.
 *
 * The component draws itself with inline styles ported from "Croator Kalkulator.dc.html".
 * This sheet only holds what inline styles cannot express — keyframes, hover and focus
 * states, the honeypot — plus a scoped reset: themes and Elementor's kit style bare
 * <button>, <input> and <a> globally (uppercase, borders, padding, colours), and those
 * rules would otherwise bleed into every chip and card.
 */

.cws-calc {
	font-family: 'Manrope', -apple-system, system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
	line-height: normal;
}

/* ---------------------------------------------------------------- scoped reset */

.cws-calc *,
.cws-calc *::before,
.cws-calc *::after {
	box-sizing: border-box;
}

.cws-calc button,
.cws-calc input,
.cws-calc textarea {
	font-family: 'Manrope', sans-serif;
	text-transform: none;
	letter-spacing: normal;
	text-shadow: none;
	line-height: inherit;
	margin: 0;
}

.cws-calc button {
	-webkit-appearance: none;
	appearance: none;
	box-shadow: none;
	text-decoration: none;
	white-space: normal;
}

.cws-calc button:hover,
.cws-calc button:focus {
	/* Theme hover rules typically recolour buttons; the component sets its own colours. */
	text-decoration: none;
}

.cws-calc input[type="text"],
.cws-calc input[type="email"],
.cws-calc input[type="tel"],
.cws-calc textarea {
	height: auto;
	min-height: 0;
	box-shadow: none;
	outline: none;
	max-width: 100%;
}

.cws-calc input::placeholder,
.cws-calc textarea::placeholder {
	color: var(--tx3, #8A94A0);
	opacity: 1;
}

.cws-calc h1,
.cws-calc p {
	padding: 0;
}

.cws-calc a {
	color: #db4437;
	text-decoration: none;
	box-shadow: none;
}

.cws-calc a:hover {
	color: #b8352a;
}

.cws-calc ::selection {
	background: #db4437;
	color: #fff;
}

/* ---------------------------------------------------------------- states */

.cws-calc button:focus-visible,
.cws-calc a:focus-visible,
.cws-calc input:focus-visible,
.cws-calc textarea:focus-visible,
.cws-calc label:focus-visible {
	outline: 2.5px solid #db4437;
	outline-offset: 2px;
	border-radius: 4px;
}

.cws-calc input[type="text"]:focus,
.cws-calc input[type="email"]:focus,
.cws-calc input[type="tel"]:focus,
.cws-calc textarea:focus {
	border-color: #db4437 !important;
}

/* The design's style-hover="background:#b8352a" on solid red buttons and links. */
.cws-calc .cws-calc__solid:hover:not(:disabled) {
	background: #b8352a !important;
	color: #fff !important;
}

.cws-calc button:disabled {
	cursor: default;
}

.cws-calc [data-noscrollbar] {
	scrollbar-width: none;
}

.cws-calc [data-noscrollbar]::-webkit-scrollbar {
	width: 0;
	height: 0;
	display: none;
}

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.cws-calc .cws-calc__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.cws-calc__noscript {
	padding: 24px;
	text-align: center;
	font-weight: 600;
}

/* ---------------------------------------------------------------- motion */

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { 0% { opacity: 0; transform: scale(.85); } 60% { transform: scale(1.04); } 100% { opacity: 1; transform: scale(1); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
/* Mobile price sheet / send flow (the design's sheetUp and stepIn, prefixed: generic names collide with themes). */
@keyframes cwsSheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes cwsStepIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }

@media (prefers-reduced-motion: reduce) {
	.cws-calc *,
	.cws-calc__overlay * {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
