/*
 * Site header – option D „Geltona juosta“ with B's photo (docs/header/index.html#pasirinktas).
 * Astra header builder: Ruda announcement row (HTML 1) above a soft-yellow bar with rounded bottom corners
 * (logo · menu · account · cart). „Keramikos pamokos“ (menu class mv-mega) opens a panel with three columns
 * (mv-mega-group headings) and a photo link (mv-mega-photo). Phones: the same bar, dropdown menu in yellow
 * with the groups open, then HTML 2 („Rinktis pamoką“). Colours, menu font and the HTML texts are Astra
 * settings; this file holds the shapes. Brand palette only.
 */
:root {
	--mvh-yel: #fde9a8;     /* Geltona 1, same as the footer */
	--mvh-ink: #510000;     /* Ruda */
	--mvh-ground: #f9f6ed;  /* Šviesi */
	--mvh-gold: #ffd577;    /* Geltona 2 */
	--mvh-badge: #f4af14;   /* Geltona 3 */
	--mvh-line: rgba(81, 0, 0, .14);
	--mvh-r: 36px;
}

/* ---------- Sticky shell ---------- */
#masthead.site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 99;
	background: transparent;
}
#masthead .ast-above-header-wrap { transition: none; }
.mv-hdr-scrolled #masthead .ast-above-header-wrap { display: none; }

/* ---------- Announcement row (HTML 1) ---------- */
#masthead .ast-above-header-bar {
	background: var(--mvh-ink);
	border: 0;
}
#masthead .ast-above-header-bar .site-above-header-wrap { min-height: 38px; }
#masthead .ast-header-html-1 .ast-builder-html-element,
#masthead .ast-header-html-1 .ast-builder-html-element p {
	margin: 0;
	color: var(--mvh-ground);
	font-size: 13.5px;
	line-height: 1.4;
	text-align: center;
}
#masthead .ast-header-html-1 a {
	color: var(--mvh-gold);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 213, 119, .5);
}
#masthead .ast-header-html-1 a:hover { border-bottom-color: var(--mvh-gold); }

/* ---------- Yellow bar ---------- */
#masthead .ast-primary-header-bar {
	background: var(--mvh-yel);
	border-bottom: 0;
	border-radius: 0 0 var(--mvh-r) var(--mvh-r);
}
#ast-desktop-header .ast-primary-header-bar .site-primary-header-wrap { min-height: 68px; transition: min-height .2s; }
#ast-desktop-header .ast-primary-header-bar .site-branding { padding-top: 0; padding-bottom: 0; }
#masthead .ast-header-woo-cart,
#masthead .ast-header-account { min-height: 0; }
#ast-desktop-header .site-primary-header-wrap.ast-container,
#ast-desktop-header .site-above-header-wrap.ast-container { max-width: 1360px; }
.mv-hdr-scrolled #ast-desktop-header .ast-primary-header-bar .site-primary-header-wrap { min-height: 52px; }

/* logo · menu (centred in the free space, one line) · icons */
#ast-desktop-header .ast-primary-header-bar .ast-builder-grid-row {
	grid-template-columns: auto minmax(0, 1fr) auto;
	column-gap: 28px;
}
#ast-desktop-header .site-header-primary-section-center { justify-content: center; min-width: 0; }
#ast-desktop-header .site-header-primary-section-right { gap: 8px; }

/* Menu: Ruda pills, the open/current one on Šviesi */
#ast-desktop-header .main-header-menu { gap: 2px; flex-wrap: nowrap; }
#ast-desktop-header .main-header-menu > .menu-item > .menu-link { white-space: nowrap; }
#ast-desktop-header .main-header-menu > .menu-item > .menu-link {
	padding: 9px 14px;
	border-radius: 999px;
	line-height: 1.3;
	font-weight: 600;
	color: var(--mvh-ink);
	transition: background-color .15s;
}
#ast-desktop-header .main-header-menu > .menu-item:hover > .menu-link,
#ast-desktop-header .main-header-menu > .menu-item.focus > .menu-link,
#ast-desktop-header .main-header-menu > .menu-item:focus-within > .menu-link,
#ast-desktop-header .main-header-menu > .current-menu-item > .menu-link,
#ast-desktop-header .main-header-menu > .current-menu-ancestor > .menu-link {
	background: var(--mvh-ground);
	color: var(--mvh-ink);
}

/* Account + cart: round Šviesi buttons, cart count badge from Astra's data-cart-total */
#masthead .ast-header-account-link,
#masthead .ast-site-header-cart .cart-container {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border-radius: 50%;
	background: var(--mvh-ground);
	color: var(--mvh-ink);
}
#masthead .ast-header-account-link:hover,
#masthead .ast-site-header-cart .cart-container:hover { background: #fff; }
#masthead .ast-header-account-link svg,
#masthead .ast-site-header-cart .ast-icon-shopping-cart { color: var(--mvh-ink); fill: currentColor; }
#masthead .ast-header-woo-cart,
#masthead .ast-header-woo-cart .ast-site-header-cart,
#masthead .ast-header-woo-cart .ast-site-header-cart-li,
#masthead .ast-header-account,
#masthead .ast-header-account-wrap { padding: 0; margin: 0; }
#masthead .ast-header-woo-cart,
#masthead .ast-header-woo-cart .ast-site-header-cart,
#masthead .ast-header-woo-cart .ast-site-header-cart-li { display: flex; align-items: center; line-height: 1; }
#masthead .ast-site-header-cart .ast-addon-cart-wrap { display: flex; align-items: center; padding: 0 !important; margin: 0 !important; line-height: 1; }
#masthead .ast-header-woo-cart .ast-icon-shopping-cart { padding: 0; margin: 0; }
/* One cart drawing for empty and full carts (Astra swaps icon-font glyphs that sit off-centre) */
#masthead .ast-icon-shopping-cart {
	position: relative;
	display: block;
	width: 20px;
	height: 20px;
	font-size: 0;
	line-height: 0;
}
#masthead .ast-icon-shopping-cart::before {
	content: '';
	display: block;
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1 2.5h3.4l.8 2.5H21.5l-2.6 9H7.6zM9 17.5a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm8.5 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4z'/%3E%3C/svg%3E") calc(50% + 1px) 50% / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1 2.5h3.4l.8 2.5H21.5l-2.6 9H7.6zM9 17.5a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm8.5 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4z'/%3E%3C/svg%3E") calc(50% + 1px) 50% / contain no-repeat; /* optical centre: the handle makes it look left-heavy */
}
#masthead .ast-icon-shopping-cart[data-cart-total]:not([data-cart-total="0"])::after {
	content: attr(data-cart-total);
	display: block;
	position: absolute;
	top: -9px;
	right: -11px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--mvh-badge);
	color: var(--mvh-ink);
	font: 700 11px/18px 'Work Sans', sans-serif;
	text-align: center;
	box-shadow: 0 0 0 2px var(--mvh-yel);
}

/* ---------- „Keramikos pamokos“ panel (desktop) ---------- */
#ast-desktop-header .main-header-menu > .mv-mega > .sub-menu {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr)) 260px;
	gap: 0 28px;
	width: 960px;
	margin-left: -16px;
	margin-top: 22px;
	padding: 26px 28px;
	background: var(--mvh-ground);
	border: 0;
	border-radius: 28px;
	box-shadow: 0 18px 40px -18px rgba(81, 0, 0, .28);
}
/* hover bridge over the gap between the link and the panel: hangs below the menu item (never over the link) */
#ast-desktop-header .main-header-menu > .mv-mega { position: relative; }
#ast-desktop-header .main-header-menu > .mv-mega::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 30px;
}
#ast-desktop-header .main-header-menu > .mv-mega > .sub-menu { align-items: start; }
#ast-desktop-header .mv-mega > .sub-menu > .menu-item { display: block; border: 0; width: auto; min-width: 0; }
#ast-desktop-header .mv-mega .mv-mega-group > .sub-menu {
	position: static;
	display: block;
	visibility: inherit; /* follows the panel: hidden lists must not catch clicks */
	opacity: 1;
	pointer-events: auto;
	width: auto;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
	transform: none;
}
/* panel headings: plain labels, identical in every state (no hover/focus change) */
#masthead #ast-desktop-header .main-header-menu .mv-mega .mv-mega-h,
#masthead #ast-desktop-header .main-header-menu .mv-mega .mv-mega-h:hover,
#masthead #ast-desktop-header .main-header-menu .mv-mega .mv-mega-group:hover > .mv-mega-h {
	display: block;
	padding: 0 0 8px;
	border: 0;
	background: none;
	color: rgba(81, 0, 0, .7);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	line-height: 1.3;
	text-transform: uppercase;
	text-decoration: none;
	cursor: default;
}
#ast-desktop-header .mv-mega .mv-mega-group .menu-item { border: 0; }
#ast-desktop-header .mv-mega .mv-mega-group .menu-link:not(.mv-mega-h) {
	display: block;
	padding: 6px 0;
	border: 0;
	background: none;
	color: var(--mvh-ink);
	font-size: 15.5px;
	font-weight: 500;
	line-height: 1.35;
	white-space: normal;
}
#ast-desktop-header .mv-mega .mv-mega-group .menu-link:not(.mv-mega-h):hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}
/* three columns (Laikas sau / saviems / dovanai), the photo link in the fourth */
#ast-desktop-header .mv-mega .mv-mega-photo { grid-column: -2; }
#ast-desktop-header .mv-mega .mv-mega-photo > .menu-link {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--mvh-ink);
	font-size: 15px;
	font-weight: 600;
}
.mv-mega-cap {
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 5px;
}
.mv-mega-cap::after { content: ' →'; display: inline-block; margin-left: 4px; text-decoration: none; }
.mv-mega-img {
	display: block;
	width: 100%;
	height: 180px;
	object-fit: cover;
	border-radius: 18px;
}

/* Laptops 1200–1240 px: one line, a little tighter */
@media (min-width: 1200px) and (max-width: 1240px) {
	#ast-desktop-header .ast-primary-header-bar .ast-builder-grid-row { column-gap: 16px; }
	#ast-desktop-header .main-header-menu > .menu-item > .menu-link { padding: 8px 10px; font-size: 14px; }
	#ast-desktop-header .custom-logo-link img { width: 170px; }
	#ast-desktop-header .main-header-menu > .mv-mega > .sub-menu { grid-template-columns: repeat(3, minmax(0, 1fr)) 190px; width: 820px; gap: 0 22px; }
	#ast-desktop-header .mv-mega-img { height: 140px; }
}

/* ---------- Phones / tablets ---------- */
#ast-mobile-header .ast-primary-header-bar { border-radius: 0 0 24px 24px; }
#ast-mobile-header .site-header-primary-section-right { gap: 6px; }
#masthead .menu-toggle,
#masthead .menu-toggle:hover,
#masthead .menu-toggle:focus { color: var(--mvh-ink); background: none; border: 0; }
#masthead .menu-toggle svg { fill: var(--mvh-ink); }
#ast-mobile-header .ast-header-account-link,
#ast-mobile-header .ast-site-header-cart .cart-container { width: 40px; height: 40px; }
.ast-main-header-nav-open #ast-mobile-header .ast-primary-header-bar { border-radius: 0; }
#ast-mobile-header .ast-mobile-header-content {
	background: var(--mvh-yel);
	border-radius: 0 0 24px 24px;
	max-height: calc(100dvh - 120px);
	overflow-y: auto;
	padding: 0 20px 22px;
}
#ast-mobile-header .ast-mobile-header-content .main-header-menu { background: none; border: 0; }
#ast-mobile-header .main-header-menu > .menu-item { border-bottom: 1px solid var(--mvh-line); }
#ast-mobile-header .main-header-menu .menu-item .menu-link,
#ast-mobile-header .main-header-menu .menu-item { border-color: var(--mvh-line); }
#ast-mobile-header .main-header-menu .ast-menu-toggle {
	top: 6px;
	width: 44px;
	height: 44px;
	color: var(--mvh-ink);
}
#ast-mobile-header .main-header-menu > .menu-item > .menu-link {
	padding: 14px 44px 14px 0;
	line-height: 1.3;
	min-height: 0;
	font-size: 19px;
	font-weight: 600;
	letter-spacing: -.01em;
	text-transform: none;
	color: var(--mvh-ink);
	background: none;
	border: 0;
}
#ast-mobile-header .main-header-menu .sub-menu { background: none; border: 0; padding: 0 0 12px; }
#ast-mobile-header .mv-mega > .sub-menu > .menu-item { border: 0; }
#ast-mobile-header .mv-mega-group > .sub-menu { display: block !important; padding: 0 0 10px; }
#masthead .mv-mega-group > .ast-menu-toggle { display: none !important; } /* groups are always open */
#masthead #ast-mobile-header .main-header-menu .mv-mega .mv-mega-h,
#masthead #ast-mobile-header .main-header-menu .mv-mega .mv-mega-h:hover {
	display: block;
	padding: 8px 0 2px;
	border: 0;
	background: none;
	color: rgba(81, 0, 0, .7);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .14em;
	line-height: 1.3;
	text-transform: uppercase;
	text-decoration: none;
	cursor: default;
}
#masthead #ast-mobile-header .mv-mega .sub-menu .menu-link:not(.mv-mega-h) {
	padding: 6px 0;
	border: 0;
	background: none;
	color: var(--mvh-ink);
	font-size: 15.5px;
	font-weight: 500;
	line-height: 1.35;
	text-transform: none;
}
#ast-mobile-header .sub-menu .menu-link::before,
#ast-mobile-header .sub-menu .menu-link .ast-icon { display: none; }
#ast-mobile-header .mv-mega-img { display: none; }
#ast-mobile-header .mv-mega-photo > .menu-link { font-weight: 600; }

/* HTML 2: „Rinktis pamoką“ under the phone menu */
#masthead .ast-header-html-2,
#masthead .ast-header-html-2 .ast-header-html,
#masthead .ast-header-html-2 .ast-builder-html-element { width: 100%; margin: 0; padding: 0; align-self: stretch; }
#masthead .ast-header-html-2 { margin-top: 18px; }
#masthead .ast-header-html-2 p { margin: 0; }
#masthead .mv-hdr-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 24px;
	border-radius: 999px;
	background: var(--mvh-ink);
	color: var(--mvh-ground);
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	width: 100%;
}
#masthead .mv-hdr-cta::after { content: ' →'; white-space: pre; }

/* Small laptops 922–1199 px (Astra's phone header starts below 922): two rows –
   logo + account/cart on top, the whole menu centred on its own row underneath. */
@media (min-width: 922px) and (max-width: 1199px) {
	#ast-desktop-header .ast-primary-header-bar { padding-top: 0; padding-bottom: 0; }
	#ast-desktop-header .ast-primary-header-bar .site-primary-header-wrap { min-height: 0; padding-top: 16px; padding-bottom: 0; }
	#ast-desktop-header .site-header-primary-section-left .site-branding { padding: 0; }
	#ast-desktop-header .ast-primary-header-bar .ast-builder-grid-row {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas: "logo icons" "menu menu";
		align-items: center;
		row-gap: 4px;
		padding: 0 0 12px;
	}
	#ast-desktop-header .site-header-primary-section-left { grid-area: logo; }
	#ast-desktop-header .site-header-primary-section-right { grid-area: icons; }
	#ast-desktop-header .site-header-primary-section-center { grid-area: menu; justify-content: center; }
	#ast-desktop-header .custom-logo-link img { width: 190px; }
	#ast-desktop-header .main-header-menu > .menu-item > .menu-link { padding: 8px 13px; font-size: 15px; }
	.mv-hdr-scrolled #ast-desktop-header .ast-primary-header-bar .site-primary-header-wrap { padding-top: 0; }
	.mv-hdr-scrolled #ast-desktop-header .ast-primary-header-bar .ast-builder-grid-row { padding-bottom: 8px; row-gap: 0; }
	.mv-hdr-scrolled #ast-desktop-header .custom-logo-link img { width: 160px; }
	/* the panel hangs from „Keramikos pamokos“ near the left edge of the menu row */
	#ast-desktop-header .main-header-menu > .mv-mega > .sub-menu {
		grid-template-columns: repeat(3, minmax(0, 1fr)) 190px;
		width: min(820px, calc(100vw - 64px));
		gap: 0 22px;
		margin-top: 14px;
	}
	#ast-desktop-header .mv-mega-img { height: 140px; }
}
@media (min-width: 922px) and (max-width: 999px) {
	#ast-desktop-header .main-header-menu > .menu-item > .menu-link { padding: 8px 10px; font-size: 14.5px; }
	#ast-desktop-header .main-header-menu > .mv-mega > .sub-menu { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; width: 660px; }
	#ast-desktop-header .mv-mega .mv-mega-group { grid-row: auto; }
	#ast-desktop-header .mv-mega .mv-mega-photo { grid-column: 1 / -1; }
	#ast-desktop-header .mv-mega .mv-mega-photo { margin-top: 14px; }
	#ast-desktop-header .mv-mega-img { display: none; }
}

/* The bar's rounded corners: page ground at the top (body is white), the page itself once scrolled */
#ast-desktop-header,
#ast-mobile-header,
#masthead .main-header-bar-wrap,
#masthead .ast-above-header-wrap { background: transparent; }
#masthead.site-header { background: var(--mvh-ground); }
.mv-hdr-scrolled #masthead.site-header { background: transparent; }


/* ---------- Mini-cart: desktop dropdown under the cart button + phone drawer ---------- */
#ast-desktop-header .ast-site-header-cart .ast-site-header-cart-data .widget_shopping_cart {
	width: 360px;
	right: 0;
	left: auto;
	padding: 4px 20px 20px;
	background: var(--mvh-ground);
	border: 0;
	border-top: 14px solid transparent;  /* the gap under the button stays hoverable */
	background-clip: padding-box;
	border-radius: 24px;
	box-shadow: none;
	filter: drop-shadow(0 16px 24px rgba(81, 0, 0, .16));
}
#ast-desktop-header .ast-site-header-cart .widget_shopping_cart::before,
#ast-desktop-header .ast-site-header-cart .widget_shopping_cart::after { display: none; }

#astra-mobile-cart-drawer {
	width: min(420px, 92vw);
	background: var(--mvh-ground);
	border-radius: 24px 0 0 24px;
	color: var(--mvh-ink);
}
.astra-mobile-cart-overlay { background: rgba(81, 0, 0, .35); }
#astra-mobile-cart-drawer .astra-cart-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 16px 14px 20px;
	border-bottom: 1px solid var(--mvh-line);
	background: var(--mvh-yel);
	border-radius: 24px 0 0 0;
}
#astra-mobile-cart-drawer .astra-cart-drawer-title {
	padding: 0;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--mvh-ink);
}
#astra-mobile-cart-drawer .astra-cart-drawer-close {
	position: static;
	order: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 50%;
	background: var(--mvh-ground);
	color: var(--mvh-ink);
}
#astra-mobile-cart-drawer .astra-cart-drawer-close svg { width: 18px; height: 18px; fill: currentColor; }
#astra-mobile-cart-drawer.active { display: flex; flex-direction: column; }
#astra-mobile-cart-drawer .astra-cart-drawer-header { position: relative; flex: none; }
#astra-mobile-cart-drawer .astra-cart-drawer-content {
	flex: 1;
	min-height: 0;
	height: auto;
	margin: 0;
	padding: 4px 20px 20px;
	overflow-y: auto;
}

/* list */
:is(#ast-desktop-header .ast-site-header-cart-data, #astra-mobile-cart-drawer) .woocommerce-mini-cart {
	margin: 0;
	padding: 0;
	border: 0;
}
:is(#ast-desktop-header .ast-site-header-cart-data, #astra-mobile-cart-drawer) .woocommerce-mini-cart-item {
	position: relative;
	min-height: 92px;
	margin: 0;
	padding: 14px 40px 14px 78px;
	border: 0;
	border-bottom: 1px solid var(--mvh-line);
	color: var(--mvh-ink);
	font-size: 15px;
	line-height: 1.35;
}
:is(#ast-desktop-header .ast-site-header-cart-data, #astra-mobile-cart-drawer) .woocommerce-mini-cart-item a:not(.remove) {
	display: block;
	padding: 0;
	color: var(--mvh-ink);
	font-weight: 600;
	text-decoration: none !important;
}
:is(#ast-desktop-header .ast-site-header-cart-data, #astra-mobile-cart-drawer) .woocommerce-mini-cart-item a:not(.remove):hover { text-decoration: underline; text-underline-offset: 3px; }
:is(#ast-desktop-header .ast-site-header-cart-data, #astra-mobile-cart-drawer) .woocommerce-mini-cart-item img {
	position: absolute;
	left: 0;
	top: 14px;
	width: 64px;
	height: 64px;
	max-width: none;
	margin: 0;
	object-fit: cover;
	border-radius: 12px;
	background: #fff;
	transform: none;
}
:is(#ast-desktop-header .ast-site-header-cart-data, #astra-mobile-cart-drawer) .woocommerce-mini-cart-item .quantity {
	display: block;
	margin-top: 4px;
	color: rgba(81, 0, 0, .7);
	font-size: 14px;
	font-weight: 400;
}
:is(#ast-desktop-header .ast-site-header-cart-data, #astra-mobile-cart-drawer) .woocommerce-mini-cart-item .quantity .amount { color: var(--mvh-ink); font-weight: 600; }
:is(#ast-desktop-header .ast-site-header-cart-data, #astra-mobile-cart-drawer) .woocommerce-mini-cart-item a.remove {
	position: absolute;
	top: 14px;
	right: 0;
	left: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid var(--mvh-line);
	border-radius: 50%;
	background: transparent;
	color: var(--mvh-ink);
	opacity: 1;
}
:is(#ast-desktop-header .ast-site-header-cart-data, #astra-mobile-cart-drawer) .woocommerce-mini-cart-item a.remove:hover { background: #fff; border-color: var(--mvh-ink); }
:is(#ast-desktop-header .ast-site-header-cart-data, #astra-mobile-cart-drawer) .woocommerce-mini-cart-item a.remove svg { width: 14px; height: 14px; fill: currentColor; }
:is(#ast-desktop-header .ast-site-header-cart-data, #astra-mobile-cart-drawer) .woocommerce-mini-cart-item a.remove .ahfb-svg-iconset { border: 0; }

/* total + buttons */
:is(#ast-desktop-header .ast-site-header-cart-data, #astra-mobile-cart-drawer) .woocommerce-mini-cart__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin: 0;
	padding: 16px 0;
	border: 0;
	color: var(--mvh-ink);
	font-size: 16px;
}
:is(#ast-desktop-header .ast-site-header-cart-data, #astra-mobile-cart-drawer) .woocommerce-mini-cart__total strong { font-weight: 600; }
:is(#ast-desktop-header .ast-site-header-cart-data, #astra-mobile-cart-drawer) .woocommerce-mini-cart__total .amount { font-weight: 700; font-size: 17px; }
:is(#ast-desktop-header .ast-site-header-cart-data, #astra-mobile-cart-drawer) .woocommerce-mini-cart__buttons {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	border: 0;
}
:is(#ast-desktop-header .ast-site-header-cart-data, #astra-mobile-cart-drawer) .woocommerce-mini-cart__buttons a.button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 0 22px;
	border: 1.5px solid var(--mvh-ink) !important;
	border-radius: 999px;
	background: transparent !important;
	color: var(--mvh-ink) !important;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
}
:is(#ast-desktop-header .ast-site-header-cart-data, #astra-mobile-cart-drawer) .woocommerce-mini-cart__buttons a.button:hover { background: #fff !important; }
:is(#ast-desktop-header .ast-site-header-cart-data, #astra-mobile-cart-drawer) .woocommerce-mini-cart__buttons a.button.checkout {
	background: var(--mvh-ink) !important;
	color: var(--mvh-ground) !important;
}
:is(#ast-desktop-header .ast-site-header-cart-data, #astra-mobile-cart-drawer) .woocommerce-mini-cart__buttons a.button.checkout:hover { background: #6a2524 !important; }
:is(#ast-desktop-header .ast-site-header-cart-data, #astra-mobile-cart-drawer) .woocommerce-mini-cart__empty-message {
	margin: 0;
	padding: 18px 0 4px;
	color: var(--mvh-ink);
	font-size: 15px;
	text-align: left;
}

/* empty cart: message centred above the „Tęsti apsipirkimą“ button */
:is(#ast-desktop-header .ast-site-header-cart-data, #astra-mobile-cart-drawer) .ast-mini-cart-empty .woocommerce-mini-cart__empty-message {
	padding: 14px 0 16px;
	text-align: center;
}
#ast-desktop-header .ast-site-header-cart-data .widget_shopping_cart_content > .woocommerce-mini-cart__empty-message { display: none; }


/* ---------- „Keramikos pamokos“ button (opens the panel, no page of its own) ---------- */
#masthead .mv-mega-trigger {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	border: 0;
	background: none;
	font: inherit;
	color: var(--mvh-ink);
	cursor: pointer;
	text-align: left;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
#ast-desktop-header .main-header-menu > .mv-mega.mv-open > .menu-link { background: var(--mvh-ground); }
#ast-desktop-header .main-header-menu > .mv-mega.mv-open > .sub-menu {
	right: auto;
	left: 0;
	visibility: visible;
	opacity: 1;
}

/* Phones: the whole row is the toggle, with its own chevron that turns when open */
#ast-mobile-header .mv-mega > .ast-menu-toggle { display: none !important; }
#ast-mobile-header .main-header-menu > .mv-mega > .mv-mega-trigger {
	display: flex;
	width: 100%;
	justify-content: space-between;
	padding-right: 4px;
}
#ast-mobile-header .mv-mega-trigger .dropdown-menu-toggle,
#ast-mobile-header .mv-mega-trigger .ast-icon { display: none; }
/* the chevron (Astra only draws its arrow inside links): turns when the panel is open */
#masthead .mv-mega-trigger::after {
	content: '' !important;
	display: inline-block !important;
	flex: none;
	width: 11px;
	height: 11px;
	margin: 0;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 5.5 8 11l5.5-5.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 5.5 8 11l5.5-5.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .2s;
}
#ast-desktop-header .mv-mega:hover > .mv-mega-trigger::after,
#ast-desktop-header .mv-mega.mv-open > .mv-mega-trigger::after,
#ast-mobile-header .mv-mega-trigger[aria-expanded="true"]::after { transform: rotate(180deg); }
#ast-mobile-header .mv-mega-trigger::after { width: 16px; height: 16px; }
/* „Visos pamokos“ is the „Rinktis pamoką“ button below on phones */
#ast-mobile-header .mv-mega-photo { display: none; }

/* Phones: a slightly larger logo */
#masthead #ast-mobile-header .custom-logo-link img,
#masthead #ast-mobile-header .site-logo-img img { width: min(170px, 44vw); max-width: none; }
