/* Lisagarantii ja kindlustus: külgpaan, ostukorv, kassa */

:root {
	--av-lg-blue: #05354c;
	--av-lg-blue-light: #dcebf4;
	--av-lg-orange: #e3a023;
	--av-lg-green: #2e9e4f;
	--av-lg-border: #e5e7eb;
	--av-lg-muted: #6b7280;
}

/* ---------- Külgpaan ---------- */

.av-lg-panel {
	position: fixed;
	inset: 0;
	z-index: 100000;
	pointer-events: none;
	visibility: hidden;
}

.av-lg-panel.is-open {
	pointer-events: auto;
	visibility: visible;
}

.av-lg-panel__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(5, 53, 76, 0.45);
	opacity: 0;
	transition: opacity .25s ease;
}

.av-lg-panel.is-open .av-lg-panel__backdrop {
	opacity: 1;
}

.av-lg-panel__drawer {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 440px;
	max-width: 100%;
	background: #f4f7f9;
	color: var(--av-lg-blue);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform .3s cubic-bezier(.2, .8, .2, 1);
	box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
	font-size: 15px;
	line-height: 1.4;
}

.av-lg-panel.is-open .av-lg-panel__drawer {
	transform: translateX(0);
}

html.av-lg-panel-open,
html.av-lg-panel-open body {
	overflow: hidden;
}

.av-lg-panel__head {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px 20px 18px;
	background: #fff;
	border-bottom: 1px solid var(--av-lg-border);
	flex: 0 0 auto;
}

.av-lg-panel__headtext {
	min-width: 0;
	flex: 1 1 auto;
}

.av-lg-panel__title {
	font-size: 19px;
	font-weight: 700;
	line-height: 1.2;
}

.av-lg-panel__product {
	margin-top: 3px;
	font-size: 13px;
	color: var(--av-lg-muted);
}

.av-lg-panel__x {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--av-lg-blue-light);
	color: var(--av-lg-blue);
	cursor: pointer;
}

.av-lg-panel__x:hover {
	background: #cfe2ee;
}

.av-lg-panel__body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 18px 20px 8px;
}

.av-lg-panel__section + .av-lg-panel__section {
	margin-top: 22px;
}

.av-lg-panel__section-head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}

.av-lg-panel__section-title {
	font-size: 16px;
	font-weight: 700;
}

.av-lg__logo {
	display: inline-flex;
	align-items: center;
	margin-left: auto;
}

.av-lg__logo img,
.av-lg__logo svg {
	display: block;
	height: 16px;
	width: auto;
}

.av-lg__logo--salva img,
.av-lg__logo--salva svg {
	height: 18px;
}

.av-lg__provider-text {
	font-size: 13px;
	font-weight: 600;
	color: var(--av-lg-muted);
}

.av-lg-panel__note {
	margin: 2px 0 0;
	font-size: 13px;
	line-height: 1.45;
	color: #4b5563;
}

.av-lg-panel__note a {
	color: var(--av-lg-blue);
	text-decoration: underline;
	white-space: nowrap;
}

/* Pakkumise kaart */

.av-lg-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 14px 14px 16px;
	margin-bottom: 10px;
	background: #fff;
	border: 1.5px solid #fff;
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(5, 53, 76, 0.06);
	cursor: pointer;
	user-select: none;
	transition: border-color .15s, box-shadow .15s, background .15s;
}

.av-lg-card:hover {
	border-color: #b9d3e2;
}

.av-lg-card:focus-visible {
	outline: 2px solid var(--av-lg-blue);
	outline-offset: 2px;
}

.av-lg-card.is-selected {
	border-color: var(--av-lg-blue);
	background: #eef5f9;
}

.av-lg-card__icon {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--av-lg-blue-light);
	color: var(--av-lg-blue);
}

.av-lg-card.is-selected .av-lg-card__icon {
	background: #fff;
	color: var(--av-lg-blue);
}

.av-lg-card__text {
	flex: 1 1 auto;
	min-width: 0;
}

.av-lg-card__name {
	font-weight: 600;
	font-size: 15px;
}

.av-lg-card__price {
	margin-top: 2px;
	font-weight: 700;
	font-size: 16px;
}

.av-lg-card__price .woocommerce-Price-amount {
	font-weight: 700;
}

.av-lg-card__per {
	font-weight: 400;
	font-size: 12px;
	color: var(--av-lg-muted);
}

.av-lg-card__btn {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--av-lg-orange);
	color: var(--av-lg-blue);
	transition: background .15s;
}

.av-lg-card:hover .av-lg-card__btn {
	background: #d4931a;
}

.av-lg-card__tick {
	display: none;
}

.av-lg-card.is-selected .av-lg-card__btn {
	background: var(--av-lg-blue);
	color: #fff;
}

.av-lg-card.is-selected .av-lg-card__plus {
	display: none;
}

.av-lg-card.is-selected .av-lg-card__tick {
	display: block;
}

.av-lg-panel__foot {
	flex: 0 0 auto;
	display: flex;
	gap: 12px;
	padding: 16px 20px;
	padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	background: #fff;
	border-top: 1px solid var(--av-lg-border);
}

.av-lg-btn {
	flex: 1 1 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-radius: 14px;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s;
}

.av-lg-btn--light {
	background: var(--av-lg-blue-light);
	color: var(--av-lg-blue);
}

.av-lg-btn--light:hover {
	background: #cfe2ee;
	color: var(--av-lg-blue);
}

.av-lg-btn--primary {
	background: var(--av-lg-orange);
	color: var(--av-lg-blue);
}

.av-lg-btn--primary:hover {
	background: #d4931a;
	color: var(--av-lg-blue);
}

@media (max-width: 480px) {
	.av-lg-panel__drawer {
		width: 100%;
	}
	.av-lg-panel__head {
		padding: 16px;
	}
	.av-lg-panel__body {
		padding: 14px 16px 4px;
	}
	.av-lg-panel__foot {
		padding-left: 16px;
		padding-right: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.av-lg-panel__drawer,
	.av-lg-panel__backdrop {
		transition: none;
	}
}

/* ---------- Ostukorv: garantiirida põhitoote all ---------- */

.av-lg-cart__row,
.air-cart__row:has(.av-lg-cart__name) {
	background: #f9fafb;
}

.air-cart__row:has(.av-lg-cart__name) .air-cart__product {
	padding-left: 32px;
}

.av-lg-cart__thumb {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-width: 40px;
	min-height: 40px;
	color: var(--av-lg-blue);
	background: var(--av-lg-blue-light);
	border-radius: 8px;
}

.av-lg-cart__name {
	display: block;
	font-weight: 600;
}

.av-lg-cart__for {
	display: block;
	font-size: 12px;
	color: var(--av-lg-muted);
}

.av-lg-cart__qty {
	display: inline-block;
	padding: 6px 0;
	color: var(--av-lg-muted);
}

/* ---------- Kassa: nõusolek ---------- */

.av-lg-terms {
	margin-top: 8px;
}

.av-lg-terms__text a {
	text-decoration: underline;
}

.widget_shopping_cart .av-lg-cart__row {
	background: transparent;
}
