/*
 * repiLab theme styles, ported from the approved mockup (design/index.html).
 * Colours, fonts, sizes and spacing come from theme.json (--wp--preset--*, --wp--custom--*).
 */
:root {
  --red: var(--wp--preset--color--brand);
  --red-dark: var(--wp--preset--color--brand-dark);
  --ink: var(--wp--preset--color--ink);
  --muted: var(--wp--preset--color--muted);
  --line: var(--wp--preset--color--line);
  --soft: var(--wp--preset--color--soft);
  --bg: var(--wp--preset--color--base);
  --footer: var(--wp--preset--color--footer);
  --radius: var(--wp--custom--radius);
  --radius-card: var(--wp--custom--radius-card);
  --wrap: var(--wp--style--global--wide-size, 1200px);
  --gutter: var(--wp--custom--gutter);
  --header-h: var(--wp--custom--header-height);
}

*, *::before, *::after { box-sizing: border-box; }
/* how much an element's text grows on hover (assets/js/text-grow.js); not inherited, so only the
   buttons and links that set it grow, never the text inside them on its own */
@property --text-grow { syntax: "<length>"; inherits: false; initial-value: 0px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
.repilab-theme a { text-decoration: none; }
.repilab-theme .entry-content a, .repilab-theme .woocommerce-info a { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
.site-main { display: block; outline: none; }
.site-main > .site-content, .site-main > .site-page, .site-main > .site-shop { padding-block: 32px 72px; }

.eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--radius);
  font: 600 14px/1 var(--wp--preset--font-family--inter); border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s, transform .1s; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }
.btn--outline { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--white { background: #fff; color: var(--red); }
.btn--white:hover { background: #f5f5f5; color: var(--red-dark); }
.arrow-link { position: relative; font-size: 13px; font-weight: 600; color: var(--red); white-space: nowrap; }
/* the underline draws on hover, as wide as the text, also once the text has grown (--text-grow-x from assets/js/text-grow.js) */
.arrow-link::before { content: ""; position: absolute; left: calc(-1 * var(--text-grow-x, 0px)); right: calc(-1 * var(--text-grow-x, 0px)); bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.arrow-link:hover::before, .arrow-link:focus-visible::before { transform: scaleX(1); }

/* 1. Info bar */
.topbar { background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; }
.topbar__inner { display: flex; align-items: center; gap: 28px; min-height: var(--wp--custom--topbar-height); }
.topbar p { margin: 0; }
.topbar__info { display: flex; gap: 28px; }
.topbar__info b { font-weight: 700; }
.topbar__contacts { margin-left: auto !important; display: flex; gap: 20px; }
.topbar a { color: #fff; }
.topbar a:hover { text-decoration: underline; }

/* 2. Header */
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.site-logo { font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.site-logo i { font-style: normal; color: var(--red); }
.custom-logo-link { display: inline-flex; flex: none; }
.custom-logo-link img { display: block; width: auto; height: auto; max-height: 36px; max-width: 160px; }
.site-nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 500; }
.site-nav__menu { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; }
.site-nav__menu a { color: var(--ink); white-space: nowrap; }
.site-nav__menu a:hover, .site-nav__menu .current-menu-item > a { color: var(--red); }
.site-nav__menu .sub-menu { display: none; }
.site-nav__language:empty { display: none; }
.site-nav__language ul { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-nav__language a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 13px; font-weight: 600; }
.site-nav__language a[aria-current] { color: var(--ink); }
.site-header__right { margin-left: auto; display: flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 500; }
.site-account { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); min-height: 44px; white-space: nowrap; }
.site-account:hover { color: var(--red); }
.site-account svg, .site-cart svg { flex: none; width: 20px; height: 20px; }
/* the cart is an icon only: the icon grows on hover by iconGrow (theme.json), by its size, so it stays sharp; its place
   (44 px) does not change, so nothing next to it moves */
.site-cart svg { transition: width var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing), height var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing); }
.site-cart:hover svg, .site-cart:focus-visible svg { width: calc(20px + var(--wp--custom--icon-grow)); height: calc(20px + var(--wp--custom--icon-grow)); }
.site-cart { position: relative; display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; color: var(--ink); }
.site-cart:hover { color: var(--red); }
.site-cart__count { position: absolute; top: 4px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.site-cart__count[data-empty] { background: var(--muted); }
.site-menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); cursor: pointer; }
.site-menu-button svg { width: 18px; height: 18px; }
.site-menu-button__close { display: none; }

/* breadcrumb and page headers */
.site-breadcrumb { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.site-breadcrumb a { color: var(--red); }
.site-breadcrumb__sep { margin: 0 6px; color: var(--line); }
.page-header h1, .woocommerce-products-header__title { margin: 0 0 12px; font-size: 34px; }
.term-description { color: var(--muted); max-width: 70ch; }

/* 3. Hero */
.hero { background: var(--soft); padding: 56px 0; }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { margin: 12px 0 0; max-width: 17ch; }
.hero__lead { margin: 16px 0 0; font-size: var(--wp--preset--font-size--lead); color: var(--muted); max-width: 46ch; }
.hero-search { display: flex; margin-top: 28px; max-width: 520px; }
.hero-search input[type="search"] { flex: 1; min-width: 0; height: 48px; padding: 0 16px; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #cfccc7; border-right: 0; border-radius: var(--radius) 0 0 var(--radius); }
.hero-search input[type="search"]:focus { outline: none; border-color: var(--red); }
.hero-search .btn { height: 48px; border-radius: 0 var(--radius) var(--radius) 0; padding: 0 26px; }
.hero__buttons { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.hero__photo { border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: #dedbd6; }
.hero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* section scaffold */
.section { padding: 72px 0 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section h2, .band h2, .mission h2 { margin: 0; }
.section__sub { margin: 6px 0 0; color: var(--muted); }
.device-grid, .category-grid, .service-grid, .benefits { margin: 0; padding: 0; list-style: none; }

/* no will-change on the growing cards and buttons: with it the browser keeps the small picture
   and stretches it, so the text stays blurred; without it the text is drawn sharp again at rest */

/* Hover growth that moves nothing (client decisions 2026-11-13): a button grows by a ring in its own
   hover colour (a box-shadow takes no room, so nothing next to it moves) and its label grows by its font
   size inside a box whose place is locked (assets/js/text-grow.js), so the text stays sharp.
   Sizes in theme.json: buttonGrowX, buttonGrowY, buttonTextGrow, linkTextGrow, linkGrow. */
.btn, .repilab-theme a.button, .repilab-theme button.button, .repilab-theme input.button, .repilab-theme #respond input#submit,
.repilab-theme .wc-block-components-button:not(.is-link), .site-menu-button {
  --gx: 0px; --gy: 0px; --ring: transparent;
  /* a ring gx wide at the sides and gy at the top and bottom: one ring of gy, two shifted sideways */
  box-shadow: 0 0 0 var(--gy) var(--ring), calc(var(--gx) - var(--gy)) 0 0 var(--gy) var(--ring), calc(var(--gy) - var(--gx)) 0 0 var(--gy) var(--ring);
  transition: box-shadow var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing), background-color var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing), color .15s, border-color .15s, font-size var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing), padding var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing);
}
/* joined to the search field: its ring grows away from the field */
.hero-search .btn { box-shadow: var(--gx) 0 0 var(--gy) var(--ring), calc(2 * var(--gx) - var(--gy)) 0 0 var(--gy) var(--ring), 0 0 0 0 transparent; }
.btn:hover, .btn:focus-visible, .repilab-theme a.button:hover, .repilab-theme button.button:hover, .repilab-theme input.button:hover,
.repilab-theme #respond input#submit:hover, .repilab-theme a.button:focus-visible, .repilab-theme button.button:focus-visible,
.repilab-theme .wc-block-components-button:not(.is-link):hover, .site-menu-button:hover {
  /* whole screen pixels at any zoom (--device-px from assets/js/text-grow.js), so the ring's edge is sharp */
  --gx: round(var(--wp--custom--button-grow-x), var(--device-px, 1px)); --gy: round(var(--wp--custom--button-grow-y), var(--device-px, 1px));
}
.btn--red:hover, .btn--red:focus-visible, .repilab-theme a.button:hover, .repilab-theme button.button:hover, .repilab-theme input.button:hover,
.repilab-theme #respond input#submit:hover, .repilab-theme a.button:focus-visible, .repilab-theme button.button:focus-visible,
.repilab-theme .wc-block-components-button:not(.is-link):hover { --ring: var(--red-dark); }
.btn--dark:hover, .btn--dark:focus-visible { --ring: #000; }
.btn--outline:hover, .btn--outline:focus-visible { --ring: var(--ink); }
.btn--white:hover, .btn--white:focus-visible { --ring: #f5f5f5; }
.site-menu-button:hover { background: var(--soft); --ring: var(--soft); }
/* pressed: back to its own size for a moment */
.btn:active, .repilab-theme a.button:active, .repilab-theme button.button:active, .repilab-theme input.button:active { --gx: 0px; --gy: 0px; }

.arrow-link, .site-nav__menu a, .site-nav__language a, .site-account, .site-cart, .topbar a, .site-footer__list a,
.site-breadcrumb a, .site-logo {
  border-radius: var(--radius); transition: box-shadow var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing), background-color var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing), color .15s, background-size .2s,
    font-size var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing), text-indent var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing), line-height var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing), padding var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing);
  /* their text grows on hover inside their locked place (assets/js/text-grow.js) */
  --text-grow: var(--wp--custom--link-text-grow);
}
/* no text growth: an icon only, a link inside a card that grows as a whole, the product table (colour only),
   the wpDataTables price lists (their filter buttons carry .btn too, and growing one widened its column) */
.site-cart, .service-card .arrow-link, .repilab-table *, .wpDataTablesWrapper * { --text-grow: 0px; }
/* the ground around a link: linkGrow around it, plus half of what its text grows on each side
   (--text-grow-x and --text-grow-y from assets/js/text-grow.js), so the grown text stays on it */
.arrow-link:hover, .arrow-link:focus-visible, .site-nav__menu a:hover, .site-nav__menu a:focus-visible, .site-nav__language a:hover,
.site-account:hover, .site-cart:hover, .site-breadcrumb a:hover, .site-logo:hover, .topbar a:hover, .site-footer__list a:hover,
.site-footer .site-logo:hover {
  --lx: calc(var(--wp--custom--link-grow) + var(--text-grow-x, 0px)); --ly: calc(var(--wp--custom--link-grow) + var(--text-grow-y, 0px));
  --link-ground: var(--soft); background-color: var(--link-ground);
  box-shadow: 0 0 0 var(--ly) var(--link-ground), calc(var(--lx) - var(--ly)) 0 0 var(--ly) var(--link-ground), calc(var(--ly) - var(--lx)) 0 0 var(--ly) var(--link-ground);
}
/* on the dark top bar and footer the ground is a light veil, mixed opaque so the overlapping rings do not add up */
.topbar a:hover { --link-ground: color-mix(in srgb, #fff 10%, var(--ink)); }
.site-footer__list a:hover, .site-footer .site-logo:hover { --link-ground: color-mix(in srgb, #fff 10%, var(--footer)); }
/* a service card opens on its whole surface: its link has no ground of its own */
.service-card .arrow-link:hover { background-color: transparent; box-shadow: none; }

/* 4. Choose your device */
.device-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; }
.device-grid > li, .category-grid > li, .service-grid > li { display: flex; }
/* Cards grow on hover by layout, not by transform (client decision 2026-11-13): the font size and
   every size inside are in em, so a bigger font size draws everything bigger, sharp in every frame;
   negative margins let the card spread into the gaps so its neighbours and the page do not move. */
.device-card, .category-card, .service-card {
  --grow: 1; --base: 16px;
  position: relative; flex: 1; font-size: calc(var(--base) * var(--grow));
  transition: font-size var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing), margin var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing), border-color var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing), box-shadow var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing), background-color var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing);
}
/* spread into the gaps: half the growth on each side (sideways a share of the card's width; up and down half of its height, measured by assets/js/cards.js) */
.device-card, .category-card, .service-card { margin: calc((1 - var(--grow)) * var(--card-h, 0px) / 2) calc((1 - var(--grow)) * 50%); }
.device-card:hover, .device-card:focus-visible, .category-card:hover, .category-card:focus-visible { --grow: var(--wp--custom--card-grow-ratio); z-index: 1; }
.service-card:has(.arrow-link):hover, .service-card:focus-within { --grow: var(--wp--custom--card-grow-large-ratio); z-index: 1; box-shadow: var(--wp--custom--card-hover-shadow); }

.device-card { display: grid; justify-items: center; align-content: start; gap: .625em; padding: 1.375em .625em 1.125em; border: 1px solid var(--line); border-radius: var(--radius-card);
  text-align: center; background: #fff; color: var(--ink); }
.device-card:hover, .device-card:focus-visible { border-color: var(--red); box-shadow: var(--wp--custom--card-hover-shadow); }
/* icons go between whole-pixel sizes (theme.json), so nothing is rounded and shifts after the movement */
.device-card svg { width: var(--wp--custom--device-icon-width); height: var(--wp--custom--device-icon-height); transition: width var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing), height var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing); }
.device-card:hover svg, .device-card:focus-visible svg { width: var(--wp--custom--device-icon-width-hover); height: var(--wp--custom--device-icon-height-hover); }
.device-card b { font-size: .875em; font-weight: 600; }
.device-card span { font-size: .75em; color: var(--muted); line-height: 1.35; }

/* 5. Popular categories */
.category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
/* icon and name in the middle, like the device cards (client note 2026-11-15) */
.category-card { display: grid; justify-items: center; align-content: start; gap: .875em; padding: 1.125em; background: var(--soft); border-radius: var(--radius-card); color: var(--ink); text-align: center; }
.category-card:hover, .category-card:focus-visible { background: #ebe8e3; box-shadow: var(--wp--custom--card-hover-shadow); }
.category-card__icon { width: var(--wp--custom--category-icon); height: var(--wp--custom--category-icon); border-radius: 8px; background: var(--red); color: #fff; display: grid; place-items: center; transition: width var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing), height var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing); }
.category-card:hover .category-card__icon, .category-card:focus-visible .category-card__icon { width: var(--wp--custom--category-icon-hover); height: var(--wp--custom--category-icon-hover); }
.category-card__icon svg { width: var(--wp--custom--category-icon-svg); height: var(--wp--custom--category-icon-svg); transition: width var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing), height var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing); }
.category-card:hover .category-card__icon svg, .category-card:focus-visible .category-card__icon svg { width: var(--wp--custom--category-icon-svg-hover); height: var(--wp--custom--category-icon-svg-hover); }
.category-card b { font-size: .875em; font-weight: 600; }

/* 6. What we do */
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.service-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; background: #fff; }
/* the whole card opens its link */
/* its link covers the whole card (::after), so it is not positioned itself and its underline is a background */
.service-card .arrow-link { position: static; justify-self: start; font-size: 13px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .2s; }
.service-card .arrow-link::before { content: none; }
.service-card .arrow-link:hover { background-size: 100% 1px; }
.service-card .arrow-link::after { content: ""; position: absolute; inset: 0; }

.service-card__photo { aspect-ratio: 16 / 10; overflow: hidden; background: #dedbd6; }
.service-card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing); }
.service-card:hover .service-card__photo img { transform: scale(1.03); }
.service-card__body { display: grid; grid-template-rows: auto 1fr auto; gap: 8px; padding: 18px 18px 20px; }
/* the card and its photo grow, the text block keeps its width (measured by assets/js/cards.js) and
   all its text keeps its size, so no line ever re-wraps */
.service-card__body { width: var(--body-w, auto); justify-self: center; box-sizing: border-box; }
.service-card h3 { margin: 0; font-size: 16px; }
.service-card p { margin: 0; font-size: 14px; color: var(--muted); }

/* 7. Benefits */
.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.benefit { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.benefit svg { width: 24px; height: 24px; color: var(--red); }
.benefit b { display: block; font-size: 14px; font-weight: 700; }
.benefit span { font-size: 13px; color: var(--muted); }

/* 8. Red band */
.band { margin-top: 72px; background: var(--red); color: #fff; padding: 40px 0; }
.band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.band h2 { color: #fff; }
.band p { margin: 6px 0 0; font-size: 15px; font-weight: 500; opacity: .92; }

/* 9. Mission */
.mission { padding: 64px 0; }
.mission__inner { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
.mission h2 { margin-top: 8px; }
.mission p:not(.eyebrow) { margin: 0; font-size: 16px; color: var(--muted); }

/* 10. Footer */
.site-footer { background: var(--footer); color: #e8e8e8; padding: 48px 0 28px; font-size: 14px; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .site-logo { color: #fff; }
.site-footer .site-logo i { color: #ff5a4e; }
.site-footer__title { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: #fff; }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer__list + .site-footer__list { margin-top: 6px; }
.site-footer li, .site-footer__company p { margin: 0; color: #b9b9b9; }
.site-footer a { color: #b9b9b9; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__company { display: grid; gap: 4px; align-content: start; }
.site-footer__company .site-logo { margin-bottom: 8px; }
.site-footer__legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid #333; display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: #8d8d8d; }
.site-footer__legal a { color: #8d8d8d; }

/* pages and posts */
.entry-content > * { max-width: var(--wp--style--global--content-size, 760px); }
/* a content page: the title and the reading column in the middle of the page, wide blocks as wide as the header
   (client note 2026-11-15: not pulled to the left) */
.site-page--prose .page-header h1, .site-page--prose .entry-content > * { margin-inline: auto; }
.site-page--prose .page-header h1 { max-width: var(--wp--style--global--content-size, 760px); }
.site-page--wide .page-header h1, .site-page--wide .entry-content--own-title > h1:first-child { max-width: var(--wrap); }
/* next to wide blocks the narrower ones start at the same left edge */
.site-page--wide .entry-content > * { margin-inline: 0; }
.woocommerce-cart .entry-content > *, .woocommerce-checkout .entry-content > *, .woocommerce-account .entry-content > * { max-width: none; }
.entry-content > .alignwide { max-width: var(--wrap); }
.entry-content > .alignfull { max-width: none; }
.site-page--builder .elementor { width: 100%; }
/* Content pages in blocks (client note 2026-11-15: the same font and colours as the front page).
   The text sits in the reading column; tables, price lists and columns go wide. */
.entry-content { color: var(--ink); font-size: 16px; line-height: 1.65; }
.entry-content > * { margin-block: 0 1em; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { margin: 2.25em 0 .6em; font-size: var(--wp--preset--font-size--heading-2); }
.entry-content h3 { margin: 1.75em 0 .5em; font-size: 18px; }
.entry-content h2 + *, .entry-content h3 + * { margin-top: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.25em; }
.entry-content li + li { margin-top: .4em; }
.entry-content li::marker { color: var(--red); }
.entry-content strong { font-weight: 650; }
.entry-content .has-brand-color { color: var(--red); }
.entry-content .is-lead { font-size: var(--wp--preset--font-size--lead); color: var(--muted); }
/* a page's own title block (page.php leaves the theme's title out), e.g. in the brand colour */
.entry-content--own-title > h1:first-child { margin-block: 0 24px; font-size: 34px; line-height: 1.15; }
/* a notice box: the key terms on the delivery page */
.entry-content .is-style-notice { padding: 18px 22px; background: var(--soft); border-left: 3px solid var(--red); border-radius: var(--radius); }
.entry-content .is-style-notice > * { margin: 0; }
.entry-content .is-style-notice > * + * { margin-top: .5em; }
/* price and detail tables: label on the left, value on the right */
.entry-content .wp-block-table { margin-block: 0 1em; overflow-x: auto; }
.entry-content .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content .wp-block-table td, .entry-content .wp-block-table th { padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content .wp-block-table tr:first-child td { border-top: 1px solid var(--line); }
.entry-content .wp-block-table td:last-child { padding-left: 24px; text-align: right; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.entry-content .wp-block-table td:last-child:first-child { text-align: left; font-weight: 400; white-space: normal; }
/* columns: a photo next to text */
.entry-content .wp-block-columns { gap: var(--wp--preset--spacing--l); margin-block: 48px; align-items: center; }
.entry-content .wp-block-image img { border-radius: var(--radius-card); }
.entry-content .wp-block-image { margin-block: 0 1em; }
/* the price lists (wpDataTables) take the wide column */
.entry-content > .wp-block-shortcode, .entry-content > .alignwide { max-width: var(--wrap); }
/* a video at its 16:9 size */
.entry-content .video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-card); overflow: hidden; background: var(--soft); }
.entry-content .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* company details ([repilab_company]): label and value on one line */
.company-details { display: grid; gap: 0; margin: 0 0 1em; padding: 0; }
.company-details__row { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.company-details__row:first-child { border-top: 1px solid var(--line); }
.company-details dt { color: var(--muted); }
.company-details dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
/* a soft card around a block (the contacts page details, the address on the service pages) */
.entry-content .is-style-card { padding: 24px; background: var(--soft); border-radius: var(--radius-card); }
.entry-content .is-style-card .company-details__row { border-color: #e0ddd8; }
.entry-content .is-style-card > :last-child { margin-bottom: 0; }
/* messenger chat links ([repilab_messengers]): one row */
.messengers { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.has-text-align-center.messengers, .messengers.aligncenter, .has-text-align-center .messengers { justify-content: center; }
.messenger-link { display: block; border-radius: 12px; line-height: 0; }
.messenger-link img { width: 48px; height: 48px; }
@media (max-width: 782px) {
  .entry-content--own-title > h1:first-child, .page-header h1 { font-size: 28px; }
  .entry-content .wp-block-columns { margin-block: 32px; gap: 24px; }
  .company-details__row { grid-template-columns: 1fr; gap: 2px; }
  .entry-content .wp-block-table td:last-child { white-space: normal; }
}
.entry { padding: 18px 0; border-bottom: 1px solid var(--line); }
.entry__title { margin: 0 0 6px; font-size: 20px; }
.entry__title a { color: var(--ink); }
.site-404 { max-width: 640px; }

/* WooCommerce pieces in the theme's colours (WooCommerce puts .woocommerce on <body>) */
.repilab-theme .woocommerce-message, .repilab-theme .woocommerce-info, .repilab-theme .woocommerce-error { border-top-color: var(--red); }
.repilab-theme .woocommerce-message::before, .repilab-theme .woocommerce-info::before { color: var(--red); }
.repilab-theme a.button, .repilab-theme button.button, .repilab-theme input.button, .repilab-theme #respond input#submit,
.repilab-theme a.button.alt, .repilab-theme button.button.alt, .repilab-theme .wc-block-components-button:not(.is-link) {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
  background: var(--red); color: #fff; border: 0; border-radius: var(--radius); font: 600 14px/1 var(--wp--preset--font-family--inter); }
.repilab-theme a.button:hover, .repilab-theme button.button:hover, .repilab-theme input.button:hover,
.repilab-theme a.button.alt:hover, .repilab-theme button.button.alt:hover, .repilab-theme .wc-block-components-button:not(.is-link):hover { background: var(--red-dark); color: #fff; }
.repilab-theme .quantity .qty { width: 4.5rem; min-height: 44px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; text-align: center; }
.repilab-theme div.product form.cart { display: flex; gap: 10px; align-items: center; }
.repilab-theme div.product form.cart .quantity { margin: 0; }
.repilab-theme div.product .product_title { font-size: 30px; line-height: 1.15; }
.repilab-theme div.product p.price, .repilab-theme div.product span.price { color: var(--ink); font-weight: 700; font-size: 22px; }
.repilab-theme div.product .stock { font-weight: 600; }
.repilab-theme div.product .stock.in-stock { color: #1d6b3a; }
.repilab-theme div.product .stock.available-on-backorder { color: #8a5a00; }
.repilab-theme .woocommerce-tabs ul.tabs li.active { border-bottom-color: #fff; }
/* the gallery and summary float; WooCommerce clears only the tabs and the product list, so without a
   description (no tabs) the "Related products" heading rose beside the gallery */
.repilab-theme div.product .related, .repilab-theme div.product .upsells { clear: both; padding-top: 40px; }
/* related products as compact cards (woocommerce/single-product/related.php): most parts have no photo */
.related-list h2 { margin: 0 0 16px; font-size: 22px; }
.related-list__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.repilab-theme .related-list .related-list__grid::before, .repilab-theme .related-list .related-list__grid::after { content: none; display: none; } /* WooCommerce clearfix, not grid items */
.related-list__grid > li { margin: 0; padding: 0; }
.related-card { display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px 16px; color: var(--ink); text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); transition: border-color .15s, color .15s; }
.related-card:hover, .related-card:focus-visible { border-color: var(--red); }
.related-card:hover .related-card__name, .related-card:focus-visible .related-card__name { color: var(--red); }
.related-card__thumb { flex: none; width: 56px; height: 56px; }
.related-card__thumb img { width: 56px; height: 56px; object-fit: contain; }
.related-card__text { display: grid; gap: 4px; min-width: 0; }
.related-card__name { font-weight: 600; line-height: 1.3; transition: color .15s; }
.related-card__sku { font-size: 13px; color: var(--muted); }
.related-card__price { font-weight: 700; color: var(--ink); }
.related-card__price small { font-weight: 400; font-size: 12px; color: var(--muted); }
@media (max-width: 1100px) { .related-list__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .related-list__grid { grid-template-columns: minmax(0, 1fr); } }
/* the delivery times on shop pages: two items on one line, kept apart by a dot (it is markup, not text) */
.repilab-delivery-notice__item + .repilab-delivery-notice__item::before { content: "·"; margin: 0 .5em 0 .25em; color: var(--muted); } /* the space in the markup makes up the rest on the left */
.repilab-theme .repilab-price-prompt { display: inline-block; padding: 12px 16px; background: var(--soft); border-left: 3px solid var(--red); border-radius: var(--radius); color: var(--red); font-weight: 600; }
/* inside a notice that is already a box (the product table's prompt) and in table cells (wpDataTables price lists),
   the link is plain text, not a box of its own */
.repilab-theme .repilab-table__prompt .repilab-price-prompt, .repilab-theme .wpDataTablesWrapper .repilab-price-prompt { display: inline; padding: 0; background: none; border: 0; border-radius: 0; text-decoration: underline; text-underline-offset: 3px; }
.repilab-theme .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.repilab-theme .woocommerce-MyAccount-navigation a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: background-color .15s, color .15s; }
.repilab-theme .woocommerce-MyAccount-navigation a:hover { background: var(--soft); }
.repilab-theme .woocommerce-MyAccount-navigation svg { width: 20px; height: 20px; flex: none; color: var(--muted); }
.repilab-theme .woocommerce-MyAccount-navigation .is-active a { background: var(--soft); color: var(--red); font-weight: 600; }
.repilab-theme .woocommerce-MyAccount-navigation .is-active svg { color: var(--red); }

/* My account (client note 2026-11-15): the menu with the customer's card on the left, the page on the right */
.woocommerce-account .entry-content > .woocommerce:has(> .account-side) { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 40px; align-items: start; }
.woocommerce-account .entry-content > .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
/* WooCommerce's clearfix pseudo-elements would take the grid's first cells */
.woocommerce-account .entry-content > .woocommerce:has(> .account-side)::before, .woocommerce-account .entry-content > .woocommerce:has(> .account-side)::after { content: none; display: none; }
.repilab-theme.woocommerce-account .woocommerce-MyAccount-navigation, .repilab-theme.woocommerce-account .woocommerce-MyAccount-content { float: none; width: auto; }
.account-side { display: grid; gap: 16px; position: sticky; top: 24px; }
.account-card { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--soft); border-radius: var(--radius-card); }
.account-card__badge { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.account-card__who { display: grid; min-width: 0; line-height: 1.35; }
.account-card__who b { font-size: 15px; }
.account-card__who span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-dash { display: grid; gap: 28px; }
/* the account's own lists are layouts, not text: no indent or gaps from the content page lists */
.entry-content .account-stats, .entry-content .account-order-list, .entry-content .account-help, .entry-content .account-login__perks, .entry-content .woocommerce-MyAccount-navigation ul { padding-left: 0; }
.entry-content .account-stats li + li, .entry-content .account-order-list li + li, .entry-content .account-help li + li, .entry-content .account-login__perks li + li, .entry-content .woocommerce-MyAccount-navigation li + li { margin-top: 0; }
.account-hello h2 { margin: 0 0 6px; font-size: var(--wp--preset--font-size--heading-2); }
.account-hello p:not(.eyebrow) { margin: 0; color: var(--muted); }
.account-notice { display: grid; gap: 4px; padding: 16px 20px; background: #fff7e6; border-left: 3px solid #8a5a00; border-radius: var(--radius); }
.account-notice b { color: #8a5a00; }
.account-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.account-stat { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon label" "icon value" "icon sub"; column-gap: 14px; align-content: start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-card); background: #fff; }
.account-stat__icon { grid-area: icon; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--red); color: #fff; }
.account-stat__icon svg { width: 22px; height: 22px; }
.account-stat__label { grid-area: label; font-size: 13px; color: var(--muted); }
.account-stat__value { grid-area: value; font-size: 22px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.account-stat__value--date { font-size: 17px; line-height: 1.6; }
.account-stat__sub { grid-area: sub; font-size: 13px; color: var(--muted); }
.account-stat__sub a { color: var(--red); }
.account-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.account-aside { display: grid; gap: 20px; }
.account-panel { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius-card); background: #fff; }
.account-panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.account-panel h2, .account-panel h3 { margin: 0; font-size: 18px; }
.account-panel__hint { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.account-order-list { margin: 0; padding: 0; list-style: none; }
.account-order { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.account-order__main { display: grid; gap: 3px; min-width: 0; }
.account-order__line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.repilab-theme .entry-content .account-order__no { color: var(--ink); font-weight: 650; text-decoration: none; }
.repilab-theme .entry-content .account-order__no:hover { color: var(--red); text-decoration: underline; }
.account-order__meta { font-size: 13px; color: var(--muted); }
.account-order__items { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-order__total { flex: none; font-size: 16px; font-variant-numeric: tabular-nums; }
.status-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 650; letter-spacing: .02em; background: #ececeb; color: var(--muted); }
.status-badge--ok { background: #e6f2ea; color: #1d6b3a; }
.status-badge--wait { background: #fff2d6; color: #8a5a00; }
.status-badge--bad { background: #fbe7e7; color: var(--red); }
.account-empty { display: grid; justify-items: start; gap: 12px; padding: 8px 0; }
.account-empty p { margin: 0; color: var(--muted); }
.account-facts { margin: 0; display: grid; }
.account-facts > div { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.account-facts dt { font-size: 13px; color: var(--muted); }
.account-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.account-facts small { display: block; font-weight: 400; color: var(--muted); }
.account-fact--ok { color: #1d6b3a; }
.account-fact--warn { color: var(--red); }
.account-fact--wait { color: #8a5a00; }
.account-help { display: grid; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.account-help li { display: flex; align-items: center; gap: 10px; }
.account-help svg { width: 20px; height: 20px; flex: none; color: var(--red); }
.account-panel .messengers { gap: 12px; margin: 0; }
.account-panel .messenger-link img { width: 40px; height: 40px; }
/* a visitor: log in on the left, the way to a business account on the right */
.account-login { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.account-login .account-panel { padding: 28px; }
.account-login h2 { margin: 0 0 18px; font-size: 22px; }
.account-login__join { background: var(--soft); border-color: transparent; }
.account-login__join h2 { margin: 8px 0 10px; }
.account-login__join > p:not(.eyebrow) { margin: 0 0 16px; color: var(--muted); }
.account-login__perks { display: grid; gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.account-login__perks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.account-login__perks svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--red); }
.account-login__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
/* the panel is the box: WooCommerce's own frame around the login form goes */
.repilab-theme .account-login form.login { margin: 0; padding: 0; border: 0; border-radius: 0; }
.repilab-theme .account-login form .form-row.account-login__row label.woocommerce-form__label-for-checkbox { margin: 0; }
.repilab-theme .account-login .account-login__row::before, .repilab-theme .account-login .account-login__row::after { content: none; display: none; } /* WooCommerce clearfix, not flex items */
/* buttons in page content are buttons, not underlined links */
.repilab-theme .entry-content a.btn, .repilab-theme .entry-content a.button { text-decoration: none; }
/* WooCommerce account forms in the theme's look */
.repilab-theme .woocommerce form .form-row { margin: 0 0 16px; padding: 0; }
.repilab-theme .woocommerce form .form-row label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.repilab-theme .woocommerce form .form-row label.woocommerce-form__label-for-checkbox { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; }
.repilab-theme .woocommerce form .form-row .input-text, .repilab-theme .woocommerce form .form-row select { width: 100%; min-height: 44px; padding: 0 12px; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.repilab-theme .woocommerce form .form-row .input-text:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: transparent; }
.repilab-theme .woocommerce form .form-row textarea.input-text { min-height: 96px; padding: 10px 12px; }
/* the business registration form (User Registration plugin) in the theme's look: its colours come from
   its own custom properties, the box, fields and labels match the login panel */
.repilab-theme .user-registration.ur-frontend-form {
  --ur-primary-color: var(--red); --ur-primary-dark: var(--red-dark); --ur-primary-light: var(--soft);
  --ur-button-background-normal-color: var(--red); --ur-button-background-hover-color: var(--red-dark);
  --ur-button-text-normal-color: #fff; --ur-button-text-hover-color: #fff;
  padding: 28px; box-shadow: none;
}
/* the plugin's own box (520 px, centred, no border) loses to this one, which starts where the page title does */
body.repilab-theme .entry-content > .user-registration.ur-frontend-form {
  max-width: 640px; margin: 0 auto 1em max(0px, calc((100% - var(--wp--style--global--content-size, 760px)) / 2));
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
}
.repilab-theme .ur-frontend-form .ur-form-row .ur-form-grid label.ur-label { margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.repilab-theme .ur-frontend-form .ur-form-row .ur-form-grid .user-registration-form-row input.input-text {
  width: 100%; min-height: 44px; padding: 0 12px; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.repilab-theme .ur-frontend-form .ur-form-row .ur-form-grid .user-registration-form-row input.input-text:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: transparent !important; }
.repilab-theme .ur-frontend-form .ur-form-row .ur-form-grid { padding: 0; }
.repilab-theme .ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item { margin-bottom: 16px; }
.repilab-theme .ur-frontend-form button.ur-submit-button { min-height: 44px; padding: 0 24px; font: inherit; font-weight: 600; color: #fff; background: var(--red); border: 0; border-radius: var(--radius); }
.repilab-theme .ur-frontend-form button.ur-submit-button:hover, .repilab-theme .ur-frontend-form button.ur-submit-button:focus-visible { color: #fff; background: var(--red-dark); }
@media (max-width: 560px) { .repilab-theme .user-registration.ur-frontend-form { padding: 18px; } }
.repilab-theme .woocommerce-MyAccount-content > p:first-child { margin-top: 0; }
.repilab-theme .woocommerce-orders-table, .repilab-theme .woocommerce-table--order-details { border: 1px solid var(--line); border-radius: var(--radius-card); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.repilab-theme .woocommerce-orders-table th, .repilab-theme .woocommerce-table--order-details th { background: var(--soft); font-size: 13px; color: var(--muted); }
.repilab-theme .woocommerce-Addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.repilab-theme .woocommerce-Addresses::before, .repilab-theme .woocommerce-Addresses::after { content: none; }
.repilab-theme .woocommerce-Addresses .woocommerce-Address { float: none; width: auto; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius-card); }
.repilab-theme .woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.repilab-theme .woocommerce-Address-title h2 { margin: 0 0 10px; font-size: 18px; }
.repilab-theme .woocommerce-Address-title .edit { float: none; }
@media (max-width: 1100px) {
  .account-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .woocommerce-account .entry-content > .woocommerce:has(> .account-side) { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .account-side { position: static; }
  .account-login, .repilab-theme .woocommerce-Addresses { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .account-stats { grid-template-columns: minmax(0, 1fr); }
  .account-panel, .account-login .account-panel { padding: 18px; }
  .account-order { flex-wrap: wrap; }
}

/* responsive */
@media (max-width: 1100px) {
  .device-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-grid, .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav, .site-nav__menu { gap: 18px; }
}
/* the account link shows its icon only (the label stays for screen readers) where the full menu
   would not fit with it (Lithuanian needs about 1200px) */
@media (max-width: 1240px) {
  .site-account span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* the menu button replaces the menu (theme.json settings.custom.breakpointNav, read by menu.js) */
@media (max-width: 1100px) {
  .site-menu-button { display: inline-grid; place-items: center; }
  .site-nav { display: none; }
  .site-header.is-open .site-nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; inset: calc(var(--header-h) + var(--wp--custom--topbar-height)) 0 0 0; z-index: 30;
    padding: 16px var(--gutter) 32px; background: #fff; overflow-y: auto; font-size: 17px;
  }
  .site-header.is-open .site-nav__menu { flex-direction: column; gap: 0; }
  .site-header.is-open .site-nav__menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-header.is-open .site-nav__shop { margin-bottom: 8px; }
  .site-header.is-open .site-nav__language { padding-top: 16px; }
  .site-header.is-open .site-menu-button__open { display: none; }
  .site-header.is-open .site-menu-button__close { display: block; }
}
@media (max-width: 900px) {
  .topbar__info span:nth-child(n+2), .topbar__contacts { display: none !important; }
  .hero__inner, .mission__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; } /* minmax: a long word never widens the page */
  .hero h1 { font-size: 36px; }
  .band__inner { flex-direction: column; align-items: flex-start; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .device-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid, .benefits, .site-footer__grid { grid-template-columns: 1fr; }
  .hero { padding: 36px 0; }
  .hero h1 { font-size: 32px; }
  .hero__buttons .btn, .band .btn { flex: 1 1 100%; width: 100%; }
  .section { padding-top: 56px; }
  .site-header__right { gap: 8px; }
  .site-footer__legal { flex-direction: column; }
}
/* Buttons keep their sizes on hover: they grow by the ring above, their label by its font size. */
.btn, .repilab-theme a.button, .repilab-theme button.button, .repilab-theme input.button, .repilab-theme #respond input#submit {
  font-size: 14px; line-height: 16px; min-height: 44px; padding-inline: 20px; margin: 0;
  --text-grow: var(--wp--custom--button-text-grow);
}
.hero-search .btn { padding-inline: 26px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  /* the gentle growth of cards, buttons and links stays for everyone (client decision 2026-11-13) */
  .device-card, .category-card, .service-card, .btn, .repilab-theme a.button, .repilab-theme button.button, .repilab-theme input.button,
  .site-menu-button {
    transition: box-shadow var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing), background-color var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing), border-color var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing), color .15s !important;
  }
  .arrow-link, .site-nav__menu a, .site-nav__language a, .site-account, .site-cart, .topbar a, .site-footer__list a, .site-breadcrumb a, .site-logo {
    transition: box-shadow var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing), background-color var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing), color .15s, font-size var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing), text-indent var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing), line-height var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing), padding var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing) !important;
  }
  .device-card svg, .category-card__icon, .category-card__icon svg, .site-cart svg { transition: width var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing), height var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing) !important; }
  .device-card, .category-card, .service-card {
    transition: font-size var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing), margin var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing), box-shadow var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing), background-color var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing), border-color var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing) !important;
  }
  .btn, .repilab-theme a.button, .repilab-theme button.button, .repilab-theme input.button {
    transition: font-size var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing), box-shadow var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing), padding var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing), background-color .15s, color .15s !important;
  }
  .service-card__photo img { transition: transform var(--wp--custom--card-hover-duration) var(--wp--custom--card-hover-easing) !important; }
}

/* wpDataTables filter buttons share the .btn class (the .btn rule above sets their growth): no growth, no ring, so a column never changes on hover */
.wpDataTablesWrapper .btn { --text-grow: 0px; }
.wpDataTablesWrapper .btn:hover, .wpDataTablesWrapper .btn:focus-visible { --gx: 0px; --gy: 0px; }
/* wpDataTables: the skin sets fixed widths for its tool buttons, so longer labels (Lithuanian
   "Spausdinti") ran out of them; and the login prompt in a price cell may wrap instead of pushing
   the table wider than the page */
.repilab-theme .wpDataTablesWrapper .dt-buttons .dt-button { width: auto !important; }
.repilab-theme .wpDataTablesWrapper .dt-buttons .dt-button.buttons-collection { padding-right: 32px !important; } /* room for its arrow */
.repilab-theme .wpDataTablesWrapper table.wpDataTable td:has(.repilab-price-prompt) { white-space: normal; }
/* wpDataTables on a phone or tablet: its cells never wrap, so model names, prices and the login
   prompt made the table wider than the screen; there they wrap and the filters take their column's width */
@media (max-width: 900px) {
  .repilab-theme .wpDataTablesWrapper table.wpDataTable td,
  .repilab-theme .wpDataTablesWrapper table.wpDataTable thead th { white-space: normal; }
  .repilab-theme .wpDataTablesWrapper table.wpDataTable td,
  .repilab-theme .wpDataTablesWrapper table.wpDataTable thead th { padding-left: 8px; padding-right: 8px; }
  .repilab-theme .wpDataTablesWrapper table.wpDataTable thead .bootstrap-select,
  .repilab-theme .wpDataTablesWrapper table.wpDataTable thead input.wdt-filter-control { width: 100% !important; min-width: 0; }
}
@media (max-width: 560px) {
  .repilab-theme .wpDataTablesWrapper table.wpDataTable { font-size: 14px; }
  /* the wpDataTables skin sets 28px lines and puts the "+" (more columns) inside the first line */
  .repilab-theme .wpdt-c .wpDataTablesWrapper table.wpDataTable > tbody > tr > td { line-height: 1.4 !important; }
  .repilab-theme .wpdt-c .wpDataTablesWrapper table.wpDataTable > tbody > tr > td > span.responsiveExpander { float: left; margin: 0 8px 0 0; }
}
/* wpDataTables: the row opened with "+" lists the hidden columns as "Title: value"; shown as two
   aligned columns (title left, muted; value right), the ": " between them hidden */
.repilab-theme .wpdt-c .wpDataTablesWrapper table.has-columns-hidden > tbody > tr.row-detail > td { padding: 4px 16px 12px !important; background: var(--soft) !important; } /* over the skin's own */
.repilab-theme .wpdt-c .wpDataTablesWrapper table.has-columns-hidden > tbody > tr.row-detail > td > ul { margin: 0; padding: 0; }
.repilab-theme .wpdt-c .wpDataTablesWrapper table.has-columns-hidden > tbody > tr.row-detail > td > ul > li {
  display: flex; align-items: baseline; gap: 12px; padding: 8px 0; font-size: 0; line-height: 1.4; border-bottom: 1px solid var(--line);
}
.repilab-theme .wpdt-c .wpDataTablesWrapper table.has-columns-hidden > tbody > tr.row-detail > td > ul > li:last-child { border-bottom: 0; }
.repilab-theme .wpdt-c .wpDataTablesWrapper table.has-columns-hidden > tbody > tr.row-detail span.columnTitle {
  flex: 0 0 35%; font-size: 13px; font-weight: 500; color: var(--muted); white-space: normal !important;
}
.repilab-theme .wpdt-c .wpDataTablesWrapper table.has-columns-hidden > tbody > tr.row-detail span.columnValue { display: block; flex: 1 1 auto; min-width: 0; font-size: 14px; color: var(--ink); white-space: normal !important; overflow-wrap: break-word; }
.repilab-theme .wpdt-c .wpDataTablesWrapper table.has-columns-hidden > tbody > tr.row-detail span.columnValue .repilab-price-prompt { display: inline; white-space: normal !important; }
