/* ==========================================================================
   Site header — parts/header.html (see inc/site-header.php)

   Core blocks styled to match the previous custom header: announcement bar
   (40px), nav bar (68px) with the logo centered, menus on the left, "Vendé
   HYPRO" + account / gana / cart icons on the right. Behaviour is core's:
   Navigation submenus open on hover/click, and below 1200px the main menu
   collapses into core's overlay (core's own breakpoint is 600px, see §4).
   ========================================================================== */

/* ── 1. Wrapper + sticky ───────────────────────────────────────────────────
   The template-part wrapper only exists to hold the part; making it
   display: contents lets .hypro-header stick against the whole page
   instead of its own (header-sized) wrapper. */
.wp-block-template-part:has(> .hypro-header) {
	display: contents;
}

.hypro-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	font-family: var(--hypro-font-ui, 'DM Sans', sans-serif);
}

.admin-bar .hypro-header { top: 32px; }

@media screen and (max-width: 782px) {
	.admin-bar .hypro-header { top: 46px; }
}

/* Below 600px the admin bar scrolls away (position: absolute), so reserving
   room for it would leave a gap once scrolled. */
@media screen and (max-width: 600px) {
	.admin-bar .hypro-header { top: 0; }
}

.hypro-header.is-layout-flow > *,
.hypro-header .is-layout-flow > * {
	margin-block: 0;
}

/* Block template: the page content starts right under the header. */
.wp-site-blocks > .hypro-header-part + main:is(.content-page, .hypro-account-page) {
	margin-block-start: 0;
}

/* ── 2. Announcement bar ─────────────────────────────────────────────────── */
.hypro-header .hypro-announce {
	position: relative;
	box-sizing: content-box;
	height: 40px;
	gap: 10px;
	padding: 0 40px 0 16px;
	overflow: hidden;
	background: #fff;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	transition: height 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
}

.hypro-announce-dismissed .hypro-header .hypro-announce {
	height: 0;
	border-bottom-width: 0;
	opacity: 0;
	pointer-events: none;
}

.hypro-header .hypro-announce__text {
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	line-height: normal;
	letter-spacing: 0.01em;
	white-space: nowrap;
	color: #0C0C0A;
	cursor: pointer;
}

.hypro-header .hypro-announce__text strong {
	font-weight: 800;
}

.hypro-header .hypro-announce__actions {
	gap: 0;
}

/* Flex, so the button doesn't sit on a line box sized by the inherited
   36px body font (that pushed it 8px down). */
.hypro-header .hypro-announce__actions > .wp-block-button {
	display: flex;
}

.hypro-header .hypro-announce__cta .wp-block-button__link {
	padding: 4px 12px;
	border: 0;
	border-radius: 8px;
	background: #0C0C0A;
	color: #fff;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: normal;
	white-space: nowrap;
	cursor: pointer;
}

.hypro-header .hypro-announce__text:hover,
.hypro-header .hypro-announce__cta:hover {
	opacity: 0.8;
}

/* Close: the button's text ("Cerrar") stays as its accessible name; the X
   is drawn with a mask. */
.hypro-header .hypro-announce__close {
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
}

.hypro-header .hypro-announce__close .wp-block-button__link {
	display: block;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	background: none;
	font-size: 0;
	color: #0C0C0A;
	opacity: 0.5;
	cursor: pointer;
	transition: opacity 0.2s;
}

.hypro-header .hypro-announce__close .wp-block-button__link::before {
	content: "";
	display: block;
	width: 14px;
	height: 14px;
	margin: 7px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M1 1l12 12M13 1L1 13' stroke='%23000' stroke-width='2' stroke-linecap='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 14 14'%3E%3Cpath d='M1 1l12 12M13 1L1 13' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hypro-header .hypro-announce__close .wp-block-button__link:hover {
	opacity: 1;
}

@media (max-width: 480px) {
	.hypro-header .hypro-announce__actions > .hypro-announce__cta { display: none; }
	.hypro-header .hypro-announce__text { font-size: 12px; }
}

/* ── 3. Nav bar layout ───────────────────────────────────────────────────── */
.hypro-header .hypro-header__bar {
	box-sizing: border-box;
	height: 68px;
	background: #fff;
	border-bottom: 0.5px solid #0C0C0A;
}

.hypro-header .hypro-header__inner {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	column-gap: 16px;
	height: 100%;
	max-width: var(--hypro-container-max, 1600px);
	margin: 0 auto;
	padding: 0 var(--hypro-container-pad, 24px);
}

.hypro-header .hypro-nav--main {
	justify-self: start;
	min-width: 0;
}

/* Logo: Site Title, drawn as the HYPRO wordmark ("HYPRO" stays the link text). */
.hypro-header .hypro-header__logo {
	justify-self: center;
	margin: 0;
	line-height: 0;
}

.hypro-header .hypro-header__logo a {
	display: block;
	width: 156px;
	height: 42px;
	font-size: 0;
	color: transparent;
	background: var(--hypro-blue, #1526BE);
	-webkit-mask: url("../images/hypro-logo.svg") center / contain no-repeat;
	mask: url("../images/hypro-logo.svg") center / contain no-repeat;
}

.hypro-header .hypro-header__actions {
	justify-self: end;
	gap: 12px;
}

/* ── 4. Navigation (desktop) ─────────────────────────────────────────────── */
.hypro-header .hypro-nav,
.hypro-header .hypro-nav .wp-block-navigation__container {
	gap: 24px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.01em;
}

.hypro-header .hypro-nav .wp-block-navigation-item__content {
	text-decoration: none;
	color: rgba(12, 12, 10, 0.75);
	line-height: 20px;
	white-space: nowrap;
	transition: color 0.2s;
}

.hypro-header .hypro-nav .wp-block-navigation-item__content:hover,
.hypro-header .hypro-nav .has-child:hover > .wp-block-navigation-item__content {
	color: #0C0C0A;
}

/* Top-level items span the bar's full height, so a submenu (top: 100%)
   starts at the bar's bottom edge and the pointer never crosses a gap. */
.hypro-header .hypro-nav .wp-block-navigation__container > .wp-block-navigation-item {
	padding-block: 24px;
}

.hypro-header .hypro-nav .wp-block-navigation__submenu-icon {
	width: 10px;
	height: 10px;
	margin-left: 6px;
	color: rgba(12, 12, 10, 0.75);
}

.hypro-header .hypro-nav .wp-block-navigation__submenu-icon svg {
	width: 10px;
	height: 10px;
}

/* Submenus open on click (openSubmenusOnClick), so their parents are
   <button>s, not links without an href. Same box as a link: the button's
   right padding (6px gap + 10px icon) holds the chevron, which sits on top
   of it and lets clicks through, so the chevron opens the menu too. */
.hypro-header .hypro-nav .open-on-click .wp-block-navigation-submenu__toggle {
	padding: 0 16px 0 0;
}

.hypro-header .hypro-nav .open-on-click .wp-block-navigation-submenu__toggle + .wp-block-navigation__submenu-icon {
	margin-left: -10px;
}

.hypro-header .hypro-nav .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container {
	top: 100%;
	left: 0;
	box-sizing: border-box;
	width: 274px;
	min-width: 274px;
	gap: 0;
	padding: 6px;
	border: var(--hypro-border, 1px solid #0C0C0A);
	background: #fff;
	z-index: 200;
}

.hypro-header .hypro-nav .wp-block-navigation__submenu-container .wp-block-navigation-item .wp-block-navigation-item__content {
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: 12px 14px;
	color: #0C0C0A;
	font-weight: 600;
	transition: background 0.15s;
}

.hypro-header .hypro-nav .wp-block-navigation__submenu-container .wp-block-navigation-item .wp-block-navigation-item__content:hover {
	background: var(--hypro-off-white, #F4F3EF);
}

/* Twenty Twenty-Five spaces submenu items 3px apart; the separators here
   replace that. */
.hypro-header .hypro-nav .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 0;
}

.hypro-header .hypro-nav .wp-block-navigation__submenu-container .wp-block-navigation-item + .wp-block-navigation-item {
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* "Vendé HYPRO" opens leftwards so it stays inside the viewport. */
.hypro-header .hypro-nav--right .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container {
	left: auto;
	right: 0;
}

.hypro-header .hypro-nav--right {
	margin-right: 6px;
}

/* Items that only belong in the mobile overlay ("Vendé HYPRO" lives on the
   right on desktop; "Gana descuentos" is the gift icon). */
.hypro-header .hypro-nav--main .wp-block-navigation__responsive-container:not(.is-menu-open) .hypro-nav__mobile-only {
	display: none;
}

/* Overlay from 1200px down (four menus + a centered logo need ~1200px), not
   core's 600px. */
@media (max-width: 1199px) {
	.hypro-header .hypro-nav--main .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.hypro-header .hypro-nav--main .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	.hypro-header .hypro-nav--right {
		display: none;
	}
}

/* ── 5. Mobile overlay ───────────────────────────────────────────────────── */
.hypro-header .hypro-nav--main .wp-block-navigation__responsive-container-open svg {
	width: 26px;
	height: 26px;
}

.hypro-header .hypro-nav--main .wp-block-navigation__responsive-container.is-menu-open {
	padding: 56px var(--hypro-container-pad, 24px) 32px;
	background: #fff;
	color: #0C0C0A;
}

.hypro-header .hypro-nav--main .is-menu-open .wp-block-navigation__responsive-container-content,
.hypro-header .hypro-nav--main .is-menu-open .wp-block-navigation__container {
	gap: 0;
	align-items: stretch;
	width: 100%;
}

.hypro-header .hypro-nav--main .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
	padding-block: 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.hypro-header .hypro-nav--main .is-menu-open .wp-block-navigation-item__content {
	padding: 14px 0;
	font-size: 16px;
	color: #0C0C0A;
}

.hypro-header .hypro-nav--main .is-menu-open .has-child > .wp-block-navigation-item__content {
	padding-bottom: 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(12, 12, 10, 0.45);
}

/* Submenus are always expanded in the overlay: plain indented lists, not the
   desktop dropdown panels. */
.hypro-header .hypro-nav--main .is-menu-open .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container {
	width: auto;
	min-width: 0;
	gap: 0;
	padding: 0 0 8px 12px;
	border: 0;
	background: none;
}

.hypro-header .hypro-nav--main .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item .wp-block-navigation-item__content {
	padding: 12px 0;
	font-size: 15px;
	font-weight: 500;
}

.hypro-header .hypro-nav--main .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item + .wp-block-navigation-item {
	border-top: 0;
}

.hypro-header .hypro-nav--main .is-menu-open .hypro-nav__gana .wp-block-navigation-item__content {
	color: var(--hypro-blue, #1526BE);
	font-weight: 700;
}

/* ── 6. Icons: account, gana, cart ───────────────────────────────────────── */
.hypro-header .hypro-header__account a,
.hypro-header .hypro-gana__link a,
.hypro-header .wc-block-mini-cart__button {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: content-box;
	width: 22px;
	height: 22px;
	padding: 8px;
	color: #0C0C0A;
	transition: transform 0.2s ease, color 0.2s ease;
}

.hypro-header .hypro-header__account a:hover,
.hypro-header .hypro-gana__link a:hover,
.hypro-header .wc-block-mini-cart__button:hover {
	transform: scale(1.12);
	color: var(--hypro-blue, #1526BE);
}

.hypro-header .hypro-header__account a:active,
.hypro-header .hypro-gana__link a:active,
.hypro-header .wc-block-mini-cart__button:active {
	transform: scale(0.94);
}

.hypro-header .hypro-header__account svg {
	width: 22px;
	height: 22px;
}

/* WooCommerce's bag is drawn in a 32px box with built-in padding: render it
   larger inside the same 38px button. */
.hypro-header .wc-block-mini-cart__button {
	width: 28px;
	height: 28px;
	padding: 5px;
}

.hypro-header .wc-block-mini-cart__icon {
	width: 28px;
	height: 28px;
}

/* Account: WooCommerce's icon swapped for the one the header always used. */
.hypro-header .wp-block-woocommerce-customer-account.hypro-header__account a {
	color: #0C0C0A;
}

.hypro-header .wp-block-woocommerce-customer-account.hypro-header__account a:hover {
	color: var(--hypro-blue, #1526BE);
}

.hypro-header .hypro-header__account svg {
	display: none;
}

.hypro-header .hypro-header__account a::before {
	content: "";
	width: 22px;
	height: 22px;
	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='1.8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z'/%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 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Logged-in dot on the account icon. */
.logged-in .hypro-header .hypro-header__account a::after {
	content: "";
	position: absolute;
	top: 6px;
	right: 6px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: oklch(82% 0.27 130);
}

/* Gana: gift icon (link text stays as its accessible name) + hover popup. */
.hypro-header .hypro-gana {
	position: relative;
}

.hypro-header .hypro-gana__link {
	margin: 0;
	line-height: 0;
}

.hypro-header .hypro-gana__link a {
	font-size: 0;
}

.hypro-header .hypro-gana__link a::before {
	content: "";
	width: 22px;
	height: 22px;
	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='1.8'%3E%3Cpolyline points='20 12 20 22 4 22 4 12'/%3E%3Crect x='2' y='7' width='20' height='5'/%3E%3Cline x1='12' y1='22' x2='12' y2='7'/%3E%3Cpath d='M12 7H7.5a2.5 2.5 0 010-5C11 2 12 7 12 7z'/%3E%3Cpath d='M12 7h4.5a2.5 2.5 0 000-5C13 2 12 7 12 7z'/%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 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpolyline points='20 12 20 22 4 22 4 12'/%3E%3Crect x='2' y='7' width='20' height='5'/%3E%3Cline x1='12' y1='22' x2='12' y2='7'/%3E%3Cpath d='M12 7H7.5a2.5 2.5 0 010-5C11 2 12 7 12 7z'/%3E%3Cpath d='M12 7h4.5a2.5 2.5 0 000-5C13 2 12 7 12 7z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hypro-header .hypro-gana__popup {
	position: absolute;
	top: calc(100% + 8px);
	right: -8px;
	box-sizing: content-box;
	width: 252px;
	padding: 18px;
	border: var(--hypro-border, 1px solid #0C0C0A);
	background: #fff;
	opacity: 0;
	pointer-events: none;
	transform: translateY(-4px);
	transition: opacity 0.15s ease 0.1s, transform 0.15s ease 0.1s;
	z-index: 200;
}

.hypro-header .hypro-gana:hover .hypro-gana__popup,
.hypro-header .hypro-gana:focus-within .hypro-gana__popup {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
	transition-delay: 0s;
}

.hypro-header .hypro-gana__popup-title {
	margin: 0 0 6px;
	font-size: 0.9375rem;
	font-weight: 700;
	color: #0C0C0A;
}

.hypro-header .hypro-gana__popup-body {
	margin: 0 0 12px;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: #666;
}

.hypro-header .hypro-gana__popup-cta {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 700;
}

.hypro-header .hypro-gana__popup-cta a {
	color: var(--hypro-blue, #1526BE);
	text-decoration: none;
}

.hypro-header .hypro-gana__popup-cta a:hover {
	text-decoration: underline;
}

@media (max-width: 767px) {
	.hypro-header .hypro-gana { display: none; }
}

/* Mini-Cart: keep the button bare; badge in the brand lime. */
.hypro-header .wc-block-mini-cart__button {
	border: 0;
	background: none;
	cursor: pointer;
}

.hypro-header .wc-block-mini-cart__quantity-badge {
	position: static;
}

.hypro-header .wc-block-mini-cart__badge {
	position: absolute;
	top: 2px;
	right: 2px;
	left: auto;
	transform: none;
	box-sizing: border-box;
	min-width: 16px;
	height: 16px;
	margin: 0;
	padding: 0 3px;
	border: 0;
	border-radius: 8px;
	/* !important: after hydrating, WooCommerce writes inline colors copied
	   from the button (black) and the nearest background. */
	background: var(--hypro-lime) !important;
	color: var(--hypro-near-black) !important;
	font-family: var(--hypro-font-ui, 'DM Sans', sans-serif);
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
}

/* Mini-Cart drawer (WooCommerce block, parts/mini-cart.html): the old custom
   drawer's look. Yumex title and prices, one blue checkout button. */
.wc-block-mini-cart__drawer.wc-block-components-drawer {
	border-left: var(--hypro-border);
	font-family: var(--hypro-font-ui);
	color: var(--hypro-near-black);
}

.wc-block-mini-cart__drawer .wc-block-components-drawer__close {
	color: var(--hypro-muted);
}

.wc-block-mini-cart__drawer .wc-block-components-drawer__close:hover {
	color: var(--hypro-near-black);
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__title {
	margin: 0;
	padding: 24px 24px 20px;
	border-bottom: 1px solid #EBEBEB;
	font-family: var(--hypro-font-display);
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
	mask-image: none;
}

.wc-block-mini-cart__drawer .wp-block-woocommerce-mini-cart-title-items-counter-block {
	font-family: var(--hypro-font-ui);
	font-size: 14px;
	font-weight: 500;
	color: var(--hypro-muted);
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__items {
	padding: 0 24px;
}

.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-cart-items__row {
	grid-template-columns: 64px minmax(0, 1fr) auto;
	column-gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid #F0F0EC;
}

.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image {
	padding: 0;
}

.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image img {
	height: 60px;
	width: auto;
	object-fit: contain;
}

.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name {
	color: var(--hypro-near-black);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
}

.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-cart-items__row a.wc-block-components-product-name:hover {
	color: var(--hypro-blue);
}

.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total {
	font-family: var(--hypro-font-display);
	font-size: 18px;
	font-weight: 800;
}

.wc-block-mini-cart__drawer .wc-block-components-product-metadata {
	color: var(--hypro-muted);
}

.wc-block-mini-cart__drawer .wc-block-components-quantity-selector {
	border-radius: 0;
}

.wc-block-mini-cart__drawer .wc-block-components-quantity-selector::after {
	border-color: #E5E7EB;
	border-radius: 0;
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer {
	padding: 20px 24px 24px;
	border-top: 1px solid #EBEBEB;
	box-shadow: none;
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-subtotal {
	font-size: 16px;
	font-weight: 600;
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-subtotal .wc-block-components-totals-item__value {
	font-family: var(--hypro-font-display);
	font-size: 22px;
	font-weight: 800;
}

.wc-block-mini-cart__drawer .wc-block-components-totals-item__description {
	color: var(--hypro-muted);
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-actions .wc-block-components-button,
.wc-block-mini-cart__drawer .wc-block-mini-cart__shopping-button {
	flex: 1 1 100%;
	padding: 16px;
	border: 0;
	border-radius: 0;
	background: var(--hypro-blue);
	color: #fff;
	font-family: var(--hypro-font-ui);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.25;
	text-decoration: none;
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-actions .wc-block-components-button:hover,
.wc-block-mini-cart__drawer .wc-block-mini-cart__shopping-button:hover {
	background: var(--hypro-blue-dark);
	color: #fff;
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__empty-cart-wrapper {
	color: var(--hypro-muted);
}

/* Just added the first item: the cart data is still refreshing, so show a
   spinner instead of the "carrito vacío" message (assets/js/site-header.js). */
.hypro-cart-updating .wc-block-mini-cart__drawer .wc-block-mini-cart__empty-cart-wrapper {
	position: relative;
	min-height: 160px;
}

.hypro-cart-updating .wc-block-mini-cart__drawer .wc-block-mini-cart__empty-cart-wrapper > * {
	visibility: hidden;
}

.hypro-cart-updating .wc-block-mini-cart__drawer .wc-block-mini-cart__empty-cart-wrapper::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 36px;
	height: 36px;
	margin: -18px 0 0 -18px;
	border: 3px solid rgb(12 12 10 / 0.12);
	border-top-color: var(--hypro-blue, #1526be);
	border-radius: 50%;
	animation: hypro-cart-spin 0.7s linear infinite;
}

@keyframes hypro-cart-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hypro-cart-updating .wc-block-mini-cart__drawer .wc-block-mini-cart__empty-cart-wrapper::after {
		animation-duration: 2s;
	}
}

@media (max-width: 479px) {
	.wc-block-mini-cart__drawer .wc-block-mini-cart__title {
		padding: 20px 16px 16px;
	}

	.wc-block-mini-cart__drawer .wc-block-mini-cart__items {
		padding: 0 16px;
	}

	.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-cart-items__row {
		grid-template-columns: 48px minmax(0, 1fr) auto;
		column-gap: 12px;
	}

	.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image img {
		height: 48px;
	}

	.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total {
		font-size: 15px;
	}

	.wc-block-mini-cart__drawer .wc-block-mini-cart__footer {
		padding: 16px;
	}
}

/* Tag inside a menu label: text set in italics in the Navigation editor. */
.hypro-header .hypro-nav--main .wp-block-navigation-item__label em {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 7px;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 0.6em;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.2;
	font-style: normal;
	vertical-align: middle;
	opacity: 0.75;
}
