/**
 * UI polish (inc/ui-polish.php, owner 2026-12-01). Loaded after every other theme stylesheet.
 *  1. Product grids: no sideways scroll
 *  2. Product cards: badges on the heart's line
 *  3. Mobile header icons
 *  4. Trust strips (home, product page)
 *  5. Titles on phones
 *  6. Footer payment logos
 *  7. Mobile menu drawer
 *  8. "Nežinai koks produktas tinka geriausiai?" block
 *  9. Breadcrumbs
 * 10. Product tabs (desktop tab bar, mobile accordion)
 * 11. Smaller fixes
 */

/* ==============================================================
 * 1. Product grids: no sideways scroll.
 * style.css gave ul.products.columns-3/4 "overflow: auto" (a float clearfix): anything that reached past a card
 * (the gift badge's hidden tooltip in a right-hand card: +57px at 390px) made the whole grid scroll sideways.
 * The grid now contains its floats with flow-root, and a card clips what reaches past its sides.
 * ============================================================== */
#page ul.products.columns-3:not(.swiper-wrapper),
#page ul.products.columns-4:not(.swiper-wrapper) {
	overflow: visible;
}

@media (min-width: 768px) {
	#page ul.products.columns-3:not(.swiper-wrapper):not(.lvb-prods),
	#page ul.products.columns-4:not(.swiper-wrapper):not(.lvb-prods) {
		display: flow-root;
	}
}

#page ul.products li.product {
	overflow-x: clip;
	overflow-y: visible;
}

@supports not (overflow: clip) {
	#page ul.products li.product {
		overflow: hidden;
	}
}

/* Gift tooltip: never wider than the space left in a card. */
@media (max-width: 767.98px) {
	#page ul.products li.product .lv-gift-badge[data-tip]::after {
		max-width: min(220px, calc(50vw - 44px));
	}
}

/* ==============================================================
 * 2. Product cards: "-%", gift and "TOP PREKĖ" on one line with the heart, same top and same height.
 * All of them are positioned from the card (li.product). Tokens per breakpoint:
 *   --lvb-top / --lvb-in: distance from the card's top / sides; --lvb-h: height of every chip and the heart;
 *   --lvb-sale: width of the "-%" pill (fixed, so the gift circle can sit right after it); --lvb-gap.
 * ============================================================== */
#page ul.products li.product {
	--lvb-top: 12px;
	--lvb-in: 12px;
	--lvb-h: 32px;
	--lvb-sale: 54px;
	--lvb-gap: 6px;
}

@media (max-width: 767.98px) {
	#page ul.products li.product {
		--lvb-top: 8px;
		--lvb-in: 8px;
		--lvb-h: 28px;
		--lvb-sale: 42px;
		--lvb-gap: 4px;
	}
}

#page ul.products li.product a.woocommerce-LoopProduct-link,
#page ul.products li.product .epaslt-badge-wrap {
	position: static;
}

/* Heart */
#page ul.products li.product button.lv-wl-btn--card {
	top: var(--lvb-top) !important;
	right: var(--lvb-in) !important;
	width: var(--lvb-h) !important;
	height: var(--lvb-h) !important;
	min-width: 0 !important;
	min-height: 0 !important;
}

#page ul.products li.product button.lv-wl-btn--card .lv-wl-heart {
	width: calc(var(--lvb-h) * .56);
	height: calc(var(--lvb-h) * .56);
}

/* 40px touch target around the smaller circle on touch screens. */
#page ul.products li.product button.lv-wl-btn--card::after {
	content: "";
	position: absolute;
	inset: -6px;
}

/* "-%" */
#page ul.products li.product span.onsale {
	top: var(--lvb-top) !important;
	left: var(--lvb-in) !important;
	right: auto !important;
	width: var(--lvb-sale) !important;
	min-width: 0 !important;
	height: var(--lvb-h) !important;
	padding: 0 !important;
	margin: 0 !important;
	font-size: 12.5px !important;
	transform: none !important;
}

/* Gift circle */
#page ul.products li.product .lv-gift-badge {
	top: var(--lvb-top) !important;
	left: var(--lvb-in) !important;
	width: var(--lvb-h);
	height: var(--lvb-h);
	margin: 0 !important;
}

#page ul.products li.product .onsale ~ .lv-gift-badge {
	left: calc(var(--lvb-in) + var(--lvb-sale) + var(--lvb-gap)) !important;
}

#page ul.products li.product .lv-gift-badge svg {
	width: calc(var(--lvb-h) * .55);
	height: calc(var(--lvb-h) * .55);
}

/* "TOP PREKĖ": left of the heart */
#page ul.products li.product .epaslt-badge-wrap .epaslt-badge {
	top: var(--lvb-top) !important;
	right: calc(var(--lvb-in) + var(--lvb-h) + var(--lvb-gap)) !important;
	left: auto !important;
	height: var(--lvb-h) !important;
	min-width: 0 !important;
	padding: 0 10px !important;
	font-size: 11.5px;
	letter-spacing: .02em;
}

@media (max-width: 767.98px) {
	#page ul.products li.product span.onsale {
		font-size: 11px !important;
	}
	#page ul.products li.product .epaslt-badge-wrap .epaslt-badge {
		padding: 0 7px !important;
		font-size: 10px;
	}
}

/* "-%", gift and TOP together do not fit next to the heart (phones; 3-column desktop cards), and on narrow phones
   "-%" and TOP alone do not either: TOP gets short ("TOP"); the full words stay in the markup for screen readers. */
#page ul.products li.product:has(.onsale):has(.lv-gift-badge) .epaslt-badge-wrap .epaslt-badge {
	font-size: 0 !important;
	letter-spacing: 0;
}

#page ul.products li.product:has(.onsale):has(.lv-gift-badge) .epaslt-badge-wrap .epaslt-badge::before {
	content: "TOP";
	font-size: 11.5px;
	letter-spacing: .02em;
}

@media (max-width: 389.98px) {
	#page ul.products li.product:has(.onsale) .epaslt-badge-wrap .epaslt-badge {
		font-size: 0 !important;
		letter-spacing: 0;
	}
	#page ul.products li.product:has(.onsale) .epaslt-badge-wrap .epaslt-badge::before {
		content: "TOP";
		font-size: 10px;
		letter-spacing: .02em;
	}
}

@media (max-width: 767.98px) {
	#page ul.products li.product:has(.onsale):has(.lv-gift-badge) .epaslt-badge-wrap .epaslt-badge::before {
		font-size: 10px;
	}
}

/* yith badges (if any) stay in the corner under the heart's line. */
#page ul.products li.product .yith-wcbm-badge {
	transform: none !important;
}

/* ==============================================================
 * 3. Mobile header icons: smaller (20-22px), 40x40 targets, even spacing.
 * ============================================================== */
@media (max-width: 991.98px) {
	#masthead .col-6.text-right {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		gap: 2px;
	}

	#masthead button.open-nav,
	#masthead a.lv-wl-link,
	#masthead a.user-page-link,
	#masthead a.mini-cart-link {
		position: relative;
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		margin: 0 !important;
		padding: 0 !important;
		vertical-align: middle;
	}

	#masthead button.open-nav img,
	#masthead a.user-page-link img,
	#masthead a.mini-cart-link img {
		width: auto !important;
		height: 20px !important;
		margin: 0 !important;
	}

	#masthead #lv-open-nav img {
		height: 16px !important; /* 40x32 lines: 20px wide */
	}

	#masthead #lv-open-search img {
		height: 20px !important;
	}

	#masthead a.lv-wl-link .lv-wl-heart {
		width: 21px;
		height: 21px;
		stroke-width: 2;
	}

	#masthead a.mini-cart-link div#mini-cart-count {
		top: 3px !important;
		right: 0 !important;
		left: auto !important;
		min-width: 17px;
		height: 17px;
		padding: 0 4px !important;
		border-radius: 9px;
		font-size: 10px !important;
		font-weight: 700;
		line-height: 17px !important;
		text-align: center;
		box-sizing: border-box;
	}

	#masthead .lv-wl-count {
		top: 3px;
		right: 0;
		min-width: 17px;
		height: 17px;
		padding: 0 4px;
		font-size: 10px;
		line-height: 17px;
		box-sizing: border-box;
	}
}

@media (max-width: 359.98px) {
	#masthead button.open-nav,
	#masthead a.lv-wl-link,
	#masthead a.user-page-link,
	#masthead a.mini-cart-link {
		width: 38px;
	}
}

/* ==============================================================
 * 4. Trust strips
 * ============================================================== */

/* Home: 4 benefits (template-parts/content-front-page.php .lv-benefits). Phones / tablets: compact 2x2 grid. */
@media (max-width: 991.98px) {
	.lv-benefits.row {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		margin: 16px 0 !important;
	}
	.lv-benefits.row > [class*="col-"] {
		width: auto;
		max-width: none;
		flex: none;
		padding: 0;
	}
	.lv-benefits .row {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		gap: 10px;
		height: 100%;
		margin: 0;
		padding: 10px 10px;
		border: 1px solid #e8eef4;
		border-radius: 10px;
		background: #f7fafd;
	}
	.lv-benefits .row > [class*="col-"] {
		width: auto;
		max-width: none;
		flex: none;
		padding: 0;
	}
	.lv-benefits .row > [class*="col-"]:last-child {
		flex: 1 1 auto;
		min-width: 0;
	}
	.lv-benefits .benefit-image-div {
		text-align: left;
	}
	.lv-benefits img.benefit-image {
		display: block;
		width: 28px !important;
		height: 28px !important;
		max-width: none;
		object-fit: contain;
	}
	.lv-benefits p.benefit-title {
		margin: 0 !important;
		font-size: 12.5px !important;
		font-weight: 500;
		line-height: 1.3 !important;
		color: #1f2937;
	}
}

/* Product page: benefits under the add-to-cart button, one per row across the full width, PHONES ONLY
   (owner 2026-12-01; desktop keeps the original 2-column grid of css/product-page.css). */
@media (max-width: 767.98px) {
	body.single-product #page .pp-trust {
		display: flex !important;
		flex-direction: column;
		gap: 0 !important;
		margin-top: 16px;
		padding: 4px 14px !important;
		border: 1px solid #e8eef4;
		border-radius: 12px;
		background: #f9fbfd;
		grid-template-columns: none !important;
	}

	body.single-product #page .pp-trust__item {
		display: flex !important;
		align-items: center;
		gap: 12px;
		width: 100%;
		min-height: 0;
		margin: 0 !important;
		padding: 10px 0 !important;
		border: 0 !important;
		border-bottom: 1px solid #e8eef4 !important;
		border-radius: 0 !important;
		background: transparent !important;
		box-shadow: none !important;
	}

	body.single-product #page .pp-trust__item:last-child {
		border-bottom: 0 !important;
	}

	body.single-product #page .pp-trust__icon {
		flex: none;
		width: 34px !important;
		height: 34px !important;
		padding: 7px;
		border-radius: 50%;
		background: #e8f1fa;
		color: #0F69AF;
		box-sizing: border-box;
	}

	body.single-product #page .pp-trust__txt {
		display: flex;
		flex-direction: column;
		gap: 1px;
		min-width: 0;
		font-size: 13.5px;
		line-height: 1.35;
	}

	body.single-product #page .pp-trust__txt strong {
		font-size: 14px;
		font-weight: 600;
		color: #1f2937;
	}

	body.single-product #page .pp-trust__txt span {
		color: #5b6672;
		font-size: 13px;
	}
}

/* ==============================================================
 * 5. Titles on phones: product cards and the product page H1.
 * ============================================================== */
@media (max-width: 767.98px) {
	#page ul.products li.product h2.woocommerce-loop-product__title,
	#page ul.products li.product .woocommerce-loop-product__title {
		font-size: 13px !important;
		line-height: 1.32 !important;
		letter-spacing: 0;
	}
	#page ul.products li.product .price {
		font-size: 15px !important;
	}
	body.single-product #page div.product .product_title {
		font-size: 20px !important;
		line-height: 1.28 !important;
		letter-spacing: -.005em;
	}
}

@media (max-width: 380px) {
	body.single-product #page div.product .product_title {
		font-size: 19px !important;
	}
}

/* ==============================================================
 * 6. Footer "Saugūs atsiskaitymai": compact logo grid on phones.
 * ============================================================== */
@media (max-width: 767.98px) {
	.footer-payments {
		display: block;
		margin-top: 8px;
		padding: 14px 0 16px;
	}
	.footer-payments__label {
		display: block;
		margin-bottom: 8px;
		font-size: 13px;
	}
	.footer-payments__list {
		display: grid;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 6px;
	}
	.footer-payments__list li {
		height: 30px;
		padding: 3px 5px;
		border-radius: 6px;
		min-width: 0;
	}
	.footer-payments__list img {
		max-width: 100% !important;
		max-height: 14px !important;
	}
	.footer-payments__list img[src$=".svg"] {
		height: 14px;
	}
}

@media (max-width: 359.98px) {
	.footer-payments__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* ==============================================================
 * 7. Mobile menu drawer (header.php #mobileSidenav, js/a11y.js + js/ui-polish.js)
 * #mobileSidenav is the full-screen dialog layer: dark backdrop + white panel sliding in from the left.
 * ============================================================== */
#mobileSidenav.sidenav {
	position: fixed;
	inset: 0;
	z-index: 1000050;
	width: 100% !important;
	height: 100%;
	padding: 0 !important;
	overflow: hidden !important;
	background: transparent !important;
	visibility: hidden;
	transition: visibility 0s linear .3s !important;
}

#mobileSidenav.sidenav.is-open {
	visibility: visible;
	transition: visibility 0s !important;
}

#mobileSidenav .lv-mnav__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, .5);
	opacity: 0;
	transition: opacity .3s ease;
	cursor: pointer;
}

#mobileSidenav.is-open .lv-mnav__backdrop {
	opacity: 1;
}

#mobileSidenav .lv-mnav__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	width: min(88vw, 380px);
	background: #fff;
	box-shadow: 8px 0 32px rgba(15, 23, 42, .18);
	transform: translateX(-102%);
	transition: transform .3s cubic-bezier(.32, .72, 0, 1);
	color: #1f2937;
	font-family: 'Inter', sans-serif;
}

#mobileSidenav.is-open .lv-mnav__panel {
	transform: none;
}

#mobileSidenav .lv-mnav__head {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 64px;
	padding: 8px 8px 8px 16px;
	border-bottom: 1px solid #eef1f4;
}

#mobileSidenav a.lv-mnav__logo,
#mobileSidenav a.lv-mnav__logo:visited,
#mobileSidenav a.lv-mnav__logo:hover,
#mobileSidenav a.lv-mnav__logo:focus,
#mobileSidenav a.lv-mnav__logo:active {
	display: inline-flex;
	align-items: center;
	padding: 4px 0;
	color: #0F69AF;
	font-weight: 600;
	text-decoration: none;
}

#mobileSidenav .lv-mnav__logo-img {
	display: block;
	width: auto;
	height: 38px;
	max-width: 160px;
	object-fit: contain;
}

#mobileSidenav button.lv-mnav__close,
#mobileSidenav button.lv-mnav__close:hover,
#mobileSidenav button.lv-mnav__close:focus,
#mobileSidenav button.lv-mnav__close:active {
	position: static !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 44px;
	height: 44px;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 50% !important;
	color: #1f2937 !important;
	line-height: 0 !important;
}

#mobileSidenav button.lv-mnav__close:hover {
	background: #f1f5f9 !important;
}

#mobileSidenav :focus-visible {
	outline: 2px solid #0F69AF !important;
	outline-offset: -2px;
}

#mobileSidenav .lv-mnav__body {
	flex: 1 1 auto;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding: 4px 0 calc(24px + env(safe-area-inset-bottom, 0px));
}

#mobileSidenav .sidenav-title.lv-mnav__title {
	margin: 18px 16px 4px !important;
	padding: 0 !important;
	border: 0 !important;
	color: #6b7280;
	font-size: 12px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	letter-spacing: .06em;
	text-transform: uppercase;
}

#mobileSidenav ul.menu {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

/* Rows */
#mobileSidenav ul.menu > li {
	position: relative;
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	margin: 0 !important;
	padding: 0 0 0 16px;
	border-bottom: 1px solid #f1f3f5;
}

#mobileSidenav ul.menu > li > a,
#mobileSidenav ul.menu > li > a:visited,
#mobileSidenav ul.menu > li > a:hover,
#mobileSidenav ul.menu > li > a:focus,
#mobileSidenav ul.menu > li > a:active {
	display: flex !important;
	flex: 1 1 0;
	align-items: center;
	min-width: 0;
	min-height: 48px;
	margin: 0 !important;
	padding: 10px 16px 10px 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: #1f2937 !important;
	font-size: 15.5px !important;
	font-weight: 500 !important;
	line-height: 1.3 !important;
	text-decoration: none !important;
}

#mobileSidenav ul.menu > li > a:hover,
#mobileSidenav ul.menu > li > a:active {
	color: #0F69AF !important;
}

#mobileSidenav ul.menu > li.current-menu-item > a,
#mobileSidenav ul.menu > li.current-menu-ancestor > a {
	color: #0F69AF !important;
	font-weight: 600 !important;
}

/* Category icons (style.css li::before backgrounds, light grey SVGs): brand-blue masks in a 24px box. */
#mobileSidenav ul.menu > li::before {
	flex: none;
	width: 24px !important;
	height: 22px !important;
	min-width: 0 !important;
	margin: 0 12px 0 0 !important;
	background: #0F69AF !important;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

#mobileSidenav ul.menu > li:not([class*="menu-valymo-priemones"]):not([class*="menu-specialios-paskirties-priemones"]):not([class*="menu-valymo-inventorius"]):not([class*="menu-kvapai"]):not([class*="menu-prekes-groziui"]):not([class*="menu-rinkiniai"]):not([class*="menu-top-priemones"])::before {
	content: none;
}

#mobileSidenav li.menu-valymo-priemones::before { content: ""; -webkit-mask-image: url("../svgs/valymo-priemones.svg"); mask-image: url("../svgs/valymo-priemones.svg"); }
#mobileSidenav li.menu-specialios-paskirties-priemones::before { content: ""; -webkit-mask-image: url("../svgs/specialios-paskirties-priemones.svg"); mask-image: url("../svgs/specialios-paskirties-priemones.svg"); }
#mobileSidenav li.menu-valymo-inventorius::before { content: ""; -webkit-mask-image: url("../svgs/valymo-inventorius.svg"); mask-image: url("../svgs/valymo-inventorius.svg"); }
#mobileSidenav li.menu-kvapai::before { content: ""; -webkit-mask-image: url("../svgs/kvapai.svg"); mask-image: url("../svgs/kvapai.svg"); }
#mobileSidenav li.menu-prekes-groziui::before { content: ""; -webkit-mask-image: url("../svgs/prekes-groziui.svg"); mask-image: url("../svgs/prekes-groziui.svg"); }
#mobileSidenav li.menu-rinkiniai::before { content: ""; -webkit-mask-image: url("../svgs/rinkiniai.svg"); mask-image: url("../svgs/rinkiniai.svg"); }
#mobileSidenav li.menu-top-priemones::before { content: ""; -webkit-mask-image: url("../svgs/top-prekes.svg"); mask-image: url("../svgs/top-prekes.svg"); }

/* "Akcijos" and "Dovanų kuponai" (end of the category menu): rows with their own icon (css/sale-page.css,
   css/gift-cards.css draw the icon with currentColor). */
#mobileSidenav ul.menu > li.menu-akcijos > a,
#mobileSidenav ul.menu > li.menu-akcijos > a:visited,
#mobileSidenav ul.menu > li.menu-akcijos > a:hover,
#mobileSidenav ul.menu > li.menu-akcijos > a:focus,
#mobileSidenav ul.menu > li.menu-akcijos > a:active {
	display: flex !important;
	padding: 10px 16px 10px 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: #D00C0C !important;
	font-weight: 600 !important;
}

#mobileSidenav ul.menu > li.menu-akcijos > a::before,
#mobileSidenav ul.menu > li.menu-dovanu-kuponai > a::before {
	width: 22px !important;
	height: 22px !important;
	margin: 0 14px 0 1px !important;
}

#mobileSidenav ul.menu > li.menu-dovanu-kuponai > a,
#mobileSidenav ul.menu > li.menu-dovanu-kuponai > a:visited {
	color: #1f2937 !important;
}

#mobileSidenav ul.menu > li.menu-dovanu-kuponai > a::before {
	color: #0F69AF;
}

/* Submenu toggle: 48px chevron button at the row's right (js/a11y.js adds it, aria-expanded). */
#mobileSidenav button.toggle-submenu,
#mobileSidenav button.toggle-submenu:hover,
#mobileSidenav button.toggle-submenu:focus,
#mobileSidenav button.toggle-submenu:active {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	align-self: stretch;
	width: 52px;
	min-height: 48px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-left: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: #4b5563 !important;
	transform: none !important;
}

#mobileSidenav button.toggle-submenu img {
	display: none;
}

#mobileSidenav button.toggle-submenu::before {
	content: "";
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center / contain;
	transition: transform .2s ease;
}

#mobileSidenav button.toggle-submenu[aria-expanded="true"] {
	color: #0F69AF !important;
}

#mobileSidenav button.toggle-submenu[aria-expanded="true"]::before {
	transform: rotate(180deg);
}

/* Submenus: accordion */
#mobileSidenav ul.menu > li > .sub-menu {
	display: none;
	flex-basis: calc(100% + 16px);
	margin: 0 0 0 -16px !important;
	padding: 4px 0 8px !important;
	background: #f7f9fb;
	border-top: 1px solid #f1f3f5;
}

#mobileSidenav ul.menu > li > .sub-menu.show-sub-menu {
	display: block;
	animation: lv-mnav-sub .22s ease;
}

@keyframes lv-mnav-sub {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: none; }
}

#mobileSidenav .sub-menu li {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

#mobileSidenav .sub-menu li::before {
	content: none !important;
}

#mobileSidenav .sub-menu a,
#mobileSidenav .sub-menu a:visited,
#mobileSidenav .sub-menu a:hover,
#mobileSidenav .sub-menu a:focus,
#mobileSidenav .sub-menu a:active {
	display: flex !important;
	align-items: center;
	min-height: 44px;
	margin: 0 !important;
	padding: 8px 16px 8px 52px !important;
	background: transparent !important;
	color: #374151 !important;
	font-size: 14.5px !important;
	font-weight: 400 !important;
	line-height: 1.35 !important;
	text-decoration: none !important;
}

#mobileSidenav .sub-menu a:hover,
#mobileSidenav .sub-menu a:active,
#mobileSidenav .sub-menu li.current-menu-item > a {
	color: #0F69AF !important;
}

#mobileSidenav .sub-menu .sub-menu {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent;
	border: 0;
}

#mobileSidenav .sub-menu .sub-menu a {
	padding-left: 68px !important;
	font-size: 14px !important;
	color: #4b5563 !important;
}

/* Info links: plain rows, no icons. */
#mobileSidenav #mobile-menu > li > a {
	font-weight: 400 !important;
}

/* Contact */
#mobileSidenav .lv-mnav__contact {
	margin: 12px 16px 0;
	padding: 4px 14px 8px;
	border-radius: 12px;
	background: #f3f7fb;
}

#mobileSidenav .lv-mnav__contact .sidenav-title.lv-mnav__title {
	margin: 12px 0 2px !important;
}

#mobileSidenav .lv-mnav__contact-list {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

#mobileSidenav .lv-mnav__contact-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	color: #374151;
	font-size: 14px;
	line-height: 1.4;
}

#mobileSidenav .lv-mnav__contact-list li.lv-mnav__hours {
	padding: 10px 0;
	align-items: flex-start;
	color: #4b5563;
	font-size: 13px;
}

#mobileSidenav a.lv-mnav__clink,
#mobileSidenav a.lv-mnav__clink:visited,
#mobileSidenav a.lv-mnav__clink:hover,
#mobileSidenav a.lv-mnav__clink:focus,
#mobileSidenav a.lv-mnav__clink:active {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 44px;
	padding: 0 !important;
	color: #1f2937 !important;
	font-size: 14.5px !important;
	font-weight: 500;
	text-decoration: none !important;
	overflow-wrap: anywhere;
}

#mobileSidenav a.lv-mnav__clink:hover,
#mobileSidenav a.lv-mnav__clink:active {
	color: #0F69AF !important;
}

#mobileSidenav .lv-mnav__ci {
	flex: none;
	color: #0F69AF;
}

@media (prefers-reduced-motion: reduce) {
	#mobileSidenav .lv-mnav__panel,
	#mobileSidenav .lv-mnav__backdrop,
	#mobileSidenav button.toggle-submenu::before {
		transition: none !important;
	}
	#mobileSidenav ul.menu > li > .sub-menu.show-sub-menu {
		animation: none;
	}
}

/* ==============================================================
 * 8. "Nežinai koks produktas tinka geriausiai? Padėsime." (home, need-help block)
 * ============================================================== */
@media (max-width: 767.98px) {
	.need-help-div h2.contact-us-title {
		font-size: 22px !important;
		line-height: 1.3 !important;
		margin-bottom: 8px;
	}
	.need-help-div p.contact-us-text {
		font-size: 14.5px;
		line-height: 1.5;
	}
	.need-help-div img.contact-us-image {
		max-width: 260px;
		margin: 0 auto;
		display: block;
	}
}

@media (min-width: 768px) and (max-width: 991.98px) {
	.need-help-div h2.contact-us-title {
		font-size: 26px !important;
		line-height: 1.25 !important;
	}
}

/* ==============================================================
 * 9. Breadcrumbs: the same breathing room under the header on every template.
 * ============================================================== */
#page nav.woocommerce-breadcrumb {
	margin-top: 32px !important;
	margin-bottom: 22px !important;
	line-height: 1.45 !important;
}

@media (max-width: 767.98px) {
	#page nav.woocommerce-breadcrumb {
		margin-top: 18px !important;
		margin-bottom: 14px !important;
		font-size: 13px !important;
	}
	#page nav.woocommerce-breadcrumb a {
		font-size: 13px !important;
	}
}

/* ==============================================================
 * 10. Product tabs
 * Desktop: underline tab bar, soft panel fade (WooCommerce tabs, arrow keys, #tab-... deep links).
 * Phones: accordion (js/ui-polish.js adds .pp-acc__btn before each panel, .pp-tabs--acc on the wrapper).
 * ============================================================== */
.pp-acc__btn {
	display: none;
}

body.single-product #page .woocommerce-tabs.wc-tabs-wrapper ul.tabs.wc-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0 28px;
	margin: 0 0 24px !important;
	padding: 0 !important;
	border-bottom: 1px solid #e5e9ee;
	overflow: visible;
}

body.single-product #page .woocommerce-tabs ul.tabs.wc-tabs li {
	display: block;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

body.single-product #page .woocommerce-tabs ul.tabs.wc-tabs li a,
body.single-product #page .woocommerce-tabs ul.tabs.wc-tabs li a:visited,
body.single-product #page .woocommerce-tabs ul.tabs.wc-tabs li a:focus,
body.single-product #page .woocommerce-tabs ul.tabs.wc-tabs li a:active {
	position: relative;
	display: block;
	margin-bottom: -1px;
	padding: 14px 2px 13px !important;
	border-bottom: 2px solid transparent !important;
	color: #4b5563 !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	line-height: 1.3 !important;
	text-decoration: none !important;
	transition: color .15s ease, border-color .15s ease;
}

body.single-product #page .woocommerce-tabs ul.tabs.wc-tabs li a:hover {
	color: #0F69AF !important;
	border-bottom-color: #c9dcee !important;
	text-decoration: none !important;
}

body.single-product #page .woocommerce-tabs ul.tabs.wc-tabs li.active a {
	color: #0F69AF !important;
	font-weight: 600 !important;
	border-bottom-color: #0F69AF !important;
}

body.single-product #page .woocommerce-tabs ul.tabs.wc-tabs li a:focus-visible {
	outline: 2px solid #0F69AF;
	outline-offset: 2px;
	border-radius: 4px;
}

body.single-product #page .woocommerce-tabs > .wc-tab {
	animation: pp-tab-in .22s ease;
}

/* The tab already names the panel: WooCommerce's repeated heading ("Aprašymas", ...) only for screen readers. */
body.single-product #page .woocommerce-tabs > .wc-tab > h2:first-child {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

@keyframes pp-tab-in {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: none; }
}

/* Phones: accordion */
@media (max-width: 767.98px) {
	body.single-product #page .woocommerce-tabs.pp-tabs--acc {
		padding: 0 !important;
		border: 0 !important;
		border-radius: 0 !important;
		background: transparent !important;
		box-shadow: none !important;
	}
	body.single-product #page .woocommerce-tabs.pp-tabs--acc ul.tabs.wc-tabs {
		display: none !important;
	}
	body.single-product #page .woocommerce-tabs.pp-tabs--acc > .wc-tab {
		display: none !important;
		margin: -8px 0 10px !important;
		padding: 4px 16px 18px !important;
		border: 1px solid #e8edf2;
		border-top: 0;
		border-radius: 0 0 12px 12px;
		background: #fff;
		animation: none;
	}
	body.single-product #page .woocommerce-tabs.pp-tabs--acc > .wc-tab.is-acc-open {
		display: block !important;
		animation: pp-acc-in .22s ease;
	}
	body.single-product #page .woocommerce-tabs.pp-tabs--acc > .pp-acc__btn,
	body.single-product #page .woocommerce-tabs.pp-tabs--acc > .pp-acc__btn:hover,
	body.single-product #page .woocommerce-tabs.pp-tabs--acc > .pp-acc__btn:focus,
	body.single-product #page .woocommerce-tabs.pp-tabs--acc > .pp-acc__btn:active {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		width: 100%;
		min-height: 54px;
		margin: 0 0 10px !important;
		padding: 12px 16px !important;
		border: 1px solid #e8edf2 !important;
		border-radius: 12px !important;
		background: #fff !important;
		box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
		color: #1f2937 !important;
		font-family: 'Inter', sans-serif !important;
		font-size: 15.5px !important;
		font-weight: 600 !important;
		line-height: 1.3 !important;
		text-align: left;
		text-transform: none !important;
		cursor: pointer;
	}
	body.single-product #page .woocommerce-tabs.pp-tabs--acc > .pp-acc__btn[aria-expanded="true"] {
		margin-bottom: 0 !important;
		border-bottom-color: transparent !important;
		border-radius: 12px 12px 0 0 !important;
		box-shadow: none;
		color: #0F69AF !important;
	}
	body.single-product #page .woocommerce-tabs.pp-tabs--acc > .pp-acc__btn:focus-visible {
		outline: 2px solid #0F69AF;
		outline-offset: 2px;
	}
	body.single-product #page .woocommerce-tabs.pp-tabs--acc > .wc-tab.is-acc-open {
		margin-top: 0 !important;
	}
	.pp-acc__chev {
		flex: none;
		width: 30px;
		height: 30px;
		border-radius: 50%;
		background: #f1f5f9;
		position: relative;
		transition: transform .2s ease, background-color .2s ease;
	}
	.pp-acc__chev::before {
		content: "";
		position: absolute;
		inset: 0;
		background: currentColor;
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center / 16px 16px;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center / 16px 16px;
	}
	.pp-acc__btn[aria-expanded="true"] .pp-acc__chev {
		transform: rotate(180deg);
		background: #e8f1fa;
	}
}

@keyframes pp-acc-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	body.single-product #page .woocommerce-tabs > .wc-tab,
	body.single-product #page .woocommerce-tabs.pp-tabs--acc > .wc-tab.is-acc-open {
		animation: none !important;
	}
	.pp-acc__chev,
	body.single-product #page .woocommerce-tabs ul.tabs.wc-tabs li a {
		transition: none !important;
	}
}

/* ==============================================================
 * 11. Smaller fixes
 * ============================================================== */

/* Carousel dots on phones: many reviews now use a progress bar (js/testimonials.js, css/testimonials.css). */

/* Footer on phones: no empty band between the link accordions and the payment logos. */
@media (max-width: 575.98px) {
	#colophon .widget.lv-mux-acc {
		margin-bottom: 0 !important;
	}
	#colophon .footer-payments {
		margin-top: 12px;
		border-top: 0;
	}
}

/* Home on phones: catalogue link and the "Palikti kontaktus" button a bit smaller. */
@media (max-width: 767.98px) {
	a.go-to-shop,
	a.go-to-shop:visited {
		font-size: 15px !important;
	}
	.need-help-div button.contact-us-btn,
	.need-help-div button.contact-us-btn:hover,
	.need-help-div button.contact-us-btn:focus,
	.need-help-div button.contact-us-btn:active {
		padding: 13px 28px !important;
	}
}

/* Newsletter band (footer.php): the Omnisend embed renders nothing at the moment (also after cookie consent), which
   left a big blue band with a heading and no form. Hidden while the embed is empty; it shows again once Omnisend
   fills it. */
#footer-top:has(div[id^="omnisend-embedded"]:empty) {
	display: none;
}

/* Desktop category menu at 992-1199px (e.g. 1024px): items wrapped to 3 lines next to half-visible grey icons.
   No icons there, tighter text: at most 2 lines per item. */
@media (min-width: 992px) and (max-width: 1199.98px) {
	#site-navigation #primary-menu {
		justify-content: space-between;
		gap: 0 14px;
	}
	#site-navigation #primary-menu > li::before {
		display: none !important;
	}
	#site-navigation #primary-menu > li > a {
		font-size: 14px !important;
		line-height: 1.25 !important;
	}
	#site-navigation #primary-menu > li.menu-specialios-paskirties-priemones {
		flex-shrink: 0;
	}
	#site-navigation #primary-menu > li.menu-specialios-paskirties-priemones > a {
		max-width: 10.5em;
	}
}

/* Home section headings ("Perkamiausi produktai", "Naujas asortimentas", "Klientų atsiliepimai") on phones. */
@media (max-width: 767.98px) {
	h2.fp-category-title {
		margin-top: 20px !important;
		font-size: 24px !important;
		line-height: 1.25 !important;
	}
}

/* Owner 2026-12-01: phones, menu button left of the logo, the other icons closer together on the right. */
@media (max-width: 991.98px) {
	#masthead .lv-head-brand {
		display: flex;
		align-items: center;
		gap: 4px;
		min-width: 0;
	}
	#masthead .lv-head-brand #lv-open-nav {
		flex: 0 0 auto;
		margin-left: -10px !important;
	}
	#masthead .lv-head-brand .site-branding {
		min-width: 0;
	}
	#masthead .lv-head-brand .custom-logo {
		max-width: 100%;
		height: auto;
	}
	#masthead .col-6.text-right {
		gap: 0;
		margin-right: -8px;
	}
	#masthead .col-6.text-right button.open-nav,
	#masthead .col-6.text-right a.lv-wl-link,
	#masthead .col-6.text-right a.user-page-link,
	#masthead .col-6.text-right a.mini-cart-link {
		width: 36px;
	}
}

/* Owner 2026-12-01: mobile menu text a little smaller, rows a little lower. */
#mobileSidenav ul.menu > li > a,
#mobileSidenav ul.menu > li > a:visited,
#mobileSidenav ul.menu > li > a:hover,
#mobileSidenav ul.menu > li > a:focus,
#mobileSidenav ul.menu > li > a:active {
	min-height: 44px;
	font-size: 14.5px !important;
}
#mobileSidenav button.toggle-submenu,
#mobileSidenav button.toggle-submenu:hover,
#mobileSidenav button.toggle-submenu:focus,
#mobileSidenav button.toggle-submenu:active {
	min-height: 44px;
}
#mobileSidenav .sub-menu a,
#mobileSidenav .sub-menu a:visited,
#mobileSidenav .sub-menu a:hover,
#mobileSidenav .sub-menu a:focus,
#mobileSidenav .sub-menu a:active {
	min-height: 40px;
	font-size: 13.5px !important;
}
#mobileSidenav a.lv-mnav__clink,
#mobileSidenav a.lv-mnav__clink:visited,
#mobileSidenav a.lv-mnav__clink:hover,
#mobileSidenav a.lv-mnav__clink:focus,
#mobileSidenav a.lv-mnav__clink:active,
#mobileSidenav .lv-mnav__contact-list li {
	font-size: 13.5px !important;
}

/* Owner 2026-12-01: phones, "Rikiuoti pagal" and "Filtrai" smaller. */
@media (max-width: 767.98px) {
	.lv-cf-bar {
		gap: 8px !important;
	}
	.lv-cf-bar form.woocommerce-ordering select.orderby,
	.lv-cf-bar .woocommerce-ordering select {
		height: 38px !important;
		min-height: 38px !important;
		padding: 0 30px 0 12px !important;
		border-radius: 9px !important;
		font-size: 13.5px !important;
		line-height: 36px !important;
		background-position: right 10px center !important;
	}
	.lv-cf button.lv-cf-open,
	.lv-cf button.lv-cf-open:hover,
	.lv-cf button.lv-cf-open:focus,
	.lv-cf button.lv-cf-open:active,
	.lv-cf-js .lv-cf-open {
		height: 38px !important;
		min-height: 38px !important;
		padding: 0 12px !important;
		border-radius: 9px !important;
		font-size: 13.5px !important;
		gap: 6px;
	}
	.lv-cf button.lv-cf-open svg {
		width: 16px;
		height: 16px;
	}
}

/* Owner 2026-12-01: phones, the home hero is lower (it took almost the whole screen). */
@media (max-width: 767.98px) {
	#front-slider .swiper-slide {
		min-height: 340px !important;
		max-height: 380px !important;
		padding: 20px 0;
	}
	#front-slider .front-slider-info {
		padding: 14px 16px !important;
	}
	#front-slider .front-slider-info img {
		max-height: 110px;
		width: auto;
	}
	#front-slider .front-slider-product-title {
		margin-bottom: 8px !important;
		font-size: 18px !important;
	}
	#front-slider a.front-slider-button,
	#front-slider a.front-slider-button:visited,
	#front-slider a.front-slider-button:hover,
	#front-slider a.front-slider-button:focus,
	#front-slider a.front-slider-button:active {
		padding: 10px 14px !important;
		font-size: 13px !important;
	}
	#front-slider .front-slider-bottom {
		margin-top: 12px !important;
	}
}

/* Owner 2026-12-01: checkout, Montonio bank logos in 3 columns on phones. */
@media (max-width: 767.98px) {
	.payment_method_wc_montonio_payments .montonio-bank-items--grid {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px !important;
	}
	.payment_method_wc_montonio_payments .montonio-bank-items--grid .montonio-bank-item {
		width: auto !important;
		min-width: 0 !important;
		max-width: none !important;
		height: 56px !important;
		margin: 0 !important;
		flex: none !important;
	}
	.payment_method_wc_montonio_payments .montonio-bank-items--grid .montonio-bank-item--hidden {
		display: none !important;
	}
	.payment_method_wc_montonio_payments .montonio-bank-items--grid .montonio-bank-item img {
		max-width: 80%;
		max-height: 26px;
		object-fit: contain;
	}
}

/* Owner 2026-12-01: parcel locker lists (LP EXPRESS, Venipak; select2) in the site's style: white list, a soft
   highlight instead of the plugins' light-blue background and dark-blue row. */
.select2-container .select2-dropdown {
	background: #fff !important;
	border: 1px solid #d5dce4 !important;
}
.select2-container--default .select2-search--dropdown {
	padding: 8px !important;
	background: #fff !important;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
	border: 1px solid #d5dce4 !important;
	border-radius: 8px !important;
	background: #fff !important;
	outline: none;
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
	border-color: #0f69af !important;
	box-shadow: 0 0 0 3px rgba(15, 105, 175, .12);
}
.select2-container--default .select2-results > .select2-results__options {
	background: #fff !important;
}
.select2-container--default .select2-results__group {
	padding: 10px 12px 4px !important;
	background: #fff !important;
	color: #6b7280 !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.select2-container--default .select2-results__option,
.select2-container--default .select2-results__option[aria-selected],
.select2-container--default .select2-results__option[data-selected] {
	padding: 8px 12px !important;
	background: #fff !important;
	color: #1f2937 !important;
	font-size: 14px;
	line-height: 1.4;
}
.select2-container--default .select2-results__option--highlighted,
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
	background: #f1f6fb !important;
	color: #0f69af !important;
}
.select2-container--default .select2-results__option[aria-selected="true"],
.select2-container--default .select2-results__option--selected {
	background: #e8f1fa !important;
	color: #0f69af !important;
	font-weight: 600;
}

/* Owner 2026-12-01: cart and checkout texts a little smaller (form fields stay 16px on phones so iOS does not zoom). */
body.woocommerce-cart h1.entry-title,
body.woocommerce-checkout h1.entry-title {
	font-size: 28px !important;
	line-height: 1.2 !important;
}
body.woocommerce-checkout .epaslt-co-step__title,
body.woocommerce-checkout .epaslt-co-step__title span {
	font-size: 18px !important;
}
body.woocommerce-checkout .epaslt-co-sum__head #order_review_heading {
	font-size: 17px !important;
}
body.woocommerce-checkout .woocommerce .epaslt-co table.epaslt-co-review tr.order-total th,
body.woocommerce-checkout .woocommerce .epaslt-co table.epaslt-co-review tr.order-total td,
body.woocommerce-checkout .woocommerce .epaslt-co table.epaslt-co-review tr.order-total td bdi {
	font-size: 16px !important;
}
body.woocommerce-cart .cart_totals h2 {
	font-size: 18px !important;
}
@media (max-width: 767.98px) {
	body.woocommerce-cart h1.entry-title,
	body.woocommerce-checkout h1.entry-title {
		font-size: 22px !important;
	}
	body.woocommerce-checkout .epaslt-co-step__title,
	body.woocommerce-checkout .epaslt-co-step__title span {
		font-size: 16.5px !important;
	}
	body.woocommerce-checkout .epaslt-co-place__total strong {
		font-size: 17px !important;
	}
	body.woocommerce-checkout .epaslt-co-sum__toggle-total {
		font-size: 15.5px !important;
	}
	body.woocommerce-checkout .woocommerce .epaslt-co-form #place_order,
	body.woocommerce-checkout .woocommerce .epaslt-co #place_order,
	body.woocommerce-checkout .woocommerce .epaslt-co #place_order:hover,
	body.woocommerce-checkout .woocommerce .epaslt-co #place_order:focus,
	body.woocommerce-checkout .woocommerce .epaslt-co #place_order:active {
		min-height: 50px;
		font-size: 15.5px !important;
	}
	body.woocommerce-checkout button.epaslt-co-linkbtn {
		font-size: 14px !important;
	}
	body.woocommerce-checkout ul#shipping_method li label,
	body.woocommerce-checkout ul.wc_payment_methods > li > label {
		font-size: 14px !important;
	}
	body.woocommerce-cart .cart_totals h2 {
		font-size: 16.5px !important;
	}
	body.woocommerce-cart .cart_totals table th,
	body.woocommerce-cart .cart_totals table td {
		font-size: 14px !important;
	}
	body.woocommerce-cart .cart_totals tr.order-total td,
	body.woocommerce-cart .cart_totals tr.order-total th {
		font-size: 16px !important;
	}
	body.woocommerce-cart a.checkout-button {
		font-size: 15px !important;
	}
	body.woocommerce-cart .rp-title {
		font-size: 18px !important;
	}
}
