/*
 * Kodulehe Arendus Base – canvas.
 * Minimaalne reset. Kujundus tuleb CrocoBuilderist.
 */

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

iframe {
	max-width: 100%;
}

input,
button,
textarea,
select {
	font: inherit;
}

button {
	cursor: pointer;
}

a {
	color: inherit;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	left: 8px;
	top: 8px;
	padding: 12px 16px;
	background: #fff;
	color: #111;
	z-index: 100000;
}

/* ----- Varupäis / -jalus (ainult kui CrocoBuilderi mall puudub) ----- */

.kab-fallback-header__inner,
.kab-fallback-footer__inner,
.kab-content:not(.kab-content--woocommerce) {
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 20px;
}

.kab-fallback-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-block: 16px;
}

.kab-fallback-header__brand a {
	font-weight: 700;
	text-decoration: none;
}

.kab-fallback-header__brand img {
	max-height: 48px;
	width: auto;
}

.kab-fallback-menu {
	display: flex;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.kab-fallback-menu .sub-menu {
	display: none;
}

.kab-fallback-menu a {
	text-decoration: none;
}

.kab-fallback-footer__inner {
	padding-block: 24px;
	font-size: 0.875rem;
	opacity: 0.7;
}

.kab-content:not(.kab-content--woocommerce) {
	padding-block: 32px;
}

/* ----- Varusisu ----- */

.kab-entry + .kab-entry {
	margin-top: 32px;
}

.kab-search-form {
	display: flex;
	gap: 8px;
}

.kab-search-form__input {
	flex: 1;
	padding: 8px 12px;
}

/* ----- Teated ----- */

.kab-notice {
	padding: 12px 16px;
	margin-bottom: 16px;
	border-radius: 4px;
	background: #f3f4f6;
}

.kab-notice--error {
	background: #fee2e2;
	color: #991b1b;
}

.kab-notice--success {
	background: #dcfce7;
	color: #166534;
}
