/*
Theme Name: 3dprintlab (Blocksy Child)
Description: Child theme for the 3D-printing shop - design tokens from the approved mockup plus the drawer-organizer designer.
Template: blocksy
Version: 0.85.0
Text Domain: 3dprintercheto
*/

/* Self-hosted webfonts, not OS-native fonts: the previous stack (Avenir
   Next / Avenir Next Condensed / SF Mono) only exists on Apple devices, so
   Windows/Linux/Android visitors were silently seeing different fonts
   (Arial Narrow, Segoe UI, Consolas). These render identically everywhere,
   including Bulgarian text (the theme's own i18n strings are Cyrillic) --
   each subset below is Google's own split, kept as separate files so a
   Latin-only page doesn't pay for the Cyrillic glyphs and vice versa.
   Variable fonts: one file covers the whole weight range, not one per
   weight (confirmed identical bytes across 400/500/600/700 downloads). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/inter-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("assets/fonts/oswald-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("assets/fonts/oswald-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("assets/fonts/oswald-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("assets/fonts/oswald-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

:root {
  --p3d-wrap: 1290px;
  --p3d-bg: #14181D;
  --p3d-surface: #1B2129;
  --p3d-surface-2: #212934;
  --p3d-line: #2B333E;
  --p3d-ink: #E9ECEF;
  --p3d-muted: #98A2AC;
  --p3d-accent: #F5A02D;
  --p3d-accent-bright: #FFB854;
  --p3d-accent-ink: #1A1206;
  --p3d-wire: #6FC7D6;

  --p3d-display: "Oswald", "Arial Narrow", sans-serif;
  --p3d-body: "Inter", system-ui, sans-serif;
  --p3d-mono: "JetBrains Mono", ui-monospace, monospace;

  /* the same box as Blocksy's .ct-container (header, page titles), so the
     theme's own bands -- hero, sections, page body, footer -- share its left
     edge at every viewport instead of sitting 24px inside it */
  --p3d-container: min(var(--theme-container-edge-spacing, 90vw), var(--p3d-wrap));
  --p3d-gutter: calc((100% - var(--p3d-container)) / 2);

  /* map the tokens onto Blocksy's theme variables */
  /* type goes through Blocksy's variables too: its main stylesheet loads after
     this one and sets font-family from --theme-font-family on body, headings,
     menus and buttons, so a plain `body { font-family }` here never applied
     and the whole site fell back to the OS system font */
  --theme-font-family: var(--p3d-body);
  --theme-button-min-height: 44px;
  --theme-button-border-radius: 4px;
  --theme-palette-color-1: var(--p3d-accent);
  --theme-palette-color-2: var(--p3d-accent-bright);
  --theme-palette-color-3: var(--p3d-ink);
  --theme-palette-color-4: var(--p3d-muted);
  --theme-palette-color-5: var(--p3d-line);
  --theme-palette-color-6: var(--p3d-surface);
  --theme-palette-color-7: var(--p3d-bg);
  --theme-palette-color-8: var(--p3d-surface-2);
  --theme-text-color: var(--p3d-ink);
  --theme-headings-color: var(--p3d-ink);
  --theme-link-initial-color: var(--p3d-accent);
  --theme-link-hover-color: var(--p3d-accent-bright);
  --theme-button-background-initial-color: var(--p3d-accent);
  --theme-button-background-hover-color: var(--p3d-accent-bright);
  --theme-button-text-initial-color: var(--p3d-accent-ink);
  --theme-button-text-hover-color: var(--p3d-accent-ink);
  --theme-border-color: var(--p3d-line);
}

/* the mockup's storefront look: dark ground, condensed uppercase headings */
body {
  background-color: var(--p3d-bg);
  color: var(--p3d-ink);
  font-family: var(--p3d-body);
}

h1, h2, h3, .site-title {
  --theme-font-family: var(--p3d-display);
  --theme-font-weight: 600;
  --theme-text-transform: uppercase;
  --theme-letter-spacing: .015em;
  --theme-line-height: 1.12;
  font-family: var(--p3d-display);
  text-transform: uppercase;
  letter-spacing: .015em;
  text-wrap: balance;
}
h1 { --theme-font-size: clamp(30px, 4.4vw, 46px); }
h2 { --theme-font-size: clamp(25px, 3.2vw, 34px); }
h3 { --theme-font-size: clamp(19px, 2.2vw, 24px); }

/* pressed feedback on every button-like control */
:is(.wp-block-button__link, .button, .p3d-add, .p3d-channel):active:not(:disabled) { transform: translateY(1px); }

.woocommerce-Price-amount {
  font-family: var(--p3d-mono);
  font-variant-numeric: tabular-nums;
}

#header, .ct-header { background-color: var(--p3d-surface) !important; border-bottom: 1px solid var(--p3d-line); }
#header [data-row] { background-color: var(--p3d-surface) !important; border-bottom: none; }
[data-header] .ct-container { background-color: transparent; }

/* logo: Blocksy only takes a media-library image, so the site-title link wears
   the horizontal lockup instead (same on dev and prod); its text stays for
   screen readers, and comes back where background images are dropped */
.ct-header .site-title a {
  display: block; width: 167px; height: 34px;
  background: url("assets/logo-horizontal.svg") no-repeat 0 50% / contain;
  overflow: hidden; white-space: nowrap; text-indent: 100%;
}
.ct-header [data-device="mobile"] .site-title a { width: 137px; height: 28px; } /* clears account + cart at 360px */
@media (forced-colors: active) {
  .ct-header .site-title a { background: none; width: auto; height: auto; text-indent: 0; }
}
/* the full menu (8 items + BG/EN) needs ~1000px; Blocksy's 25px item spacing
   left none for a logo wider than the old text title, pushing items into
   "Още" already at 1440px */
.ct-header #header-menu-1 { --menu-items-spacing: 17px; }
/* Blocksy's default 120px desktop row took a seventh of a laptop screen before
   any content; its tablet/mobile row (70px) is left alone */
@media (min-width: 1000px) {
  [data-header*="type-1"] .ct-header [data-row*="middle"] { --height: 76px; }
}

/* ---------- front-page pattern ---------- */
.p3d-gcode {
  font-family: var(--p3d-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--p3d-muted);
}
.p3d-gcode strong { color: var(--p3d-accent); font-weight: 600; }
.p3d-gcode[data-g] { white-space: pre-wrap; } /* text moved to attributes by p3d_gcode_to_attrs() (inc/seo.php) */
.p3d-gcode[data-g]::before { content: attr(data-g); }
.p3d-gcode[data-b]::after { content: attr(data-b); color: var(--p3d-accent); font-weight: 600; }

.p3d-hero {
  padding: clamp(48px, 6vw, 76px) var(--p3d-gutter) clamp(56px, 7vw, 88px);
  background:
    repeating-linear-gradient(180deg, transparent 0 7px, rgba(233, 236, 239, .03) 7px 8px),
    var(--p3d-bg);
}
.p3d-hero-cols { max-width: var(--p3d-wrap); margin: 0 auto; }
.p3d-h1 { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.06; margin: 14px 0 18px; } /* two lines in the 55% column down to 1000px */
.p3d-h1 em { font-style: normal; color: var(--p3d-accent); }
.p3d-lead { color: var(--p3d-muted); max-width: 44ch; font-size: 17px; }
.p3d-hero .wp-block-buttons { margin-top: 28px; gap: 12px; }

.p3d-section { padding: clamp(52px, 6.5vw, 84px) var(--p3d-gutter); border-top: 1px solid var(--p3d-line); scroll-margin-top: 24px; }
.p3d-section > * { max-width: var(--p3d-wrap); margin-left: auto; margin-right: auto; }
.p3d-h2 { font-size: clamp(32px, 4.4vw, 48px); margin: 10px auto 12px; }
/* A page that opens with the hero is a landing page, whichever language's
   front page it is (the English one is an ordinary page, without body.home).
   Its last section already ends in its own padding -- the footer's top margin
   and Blocksy's content spacing stacked another ~130px of empty ground on it --
   and the hero carries the h1, so Blocksy's page-title block above it ("Home")
   was a second, redundant one. */
body:has(.entry-content > .p3d-hero) .p3d-footer { margin-top: 0; }
body:has(.entry-content > .p3d-hero) [data-vertical-spacing] { padding-top: 0; padding-bottom: 0; }
article:has(> .entry-content > .p3d-hero) > .hero-section { display: none; }
.p3d-intro { color: var(--p3d-muted); max-width: 52ch; margin: 0 auto 40px max(0px, calc((100% - var(--p3d-wrap)) / 2)); }

/* hero printer */
.p3d-printer { display: flex; flex-direction: column; align-items: center; justify-content: end; min-height: 300px; }
.p3d-gantry { width: 240px; display: flex; justify-content: center; height: 34px; }
.p3d-nozzle-head {
  width: 26px; height: 22px; background: var(--p3d-surface-2);
  border: 1px solid var(--p3d-line); border-radius: 2px; position: relative; display: block;
}
.p3d-nozzle-head::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%);
  width: 10px; height: 9px; background: var(--p3d-accent);
  clip-path: polygon(0 0, 100% 0, 100% 40%, 50% 100%, 0 40%);
}
.p3d-stack { display: flex; flex-direction: column-reverse; align-items: center; }
.p3d-layer {
  display: block; height: 9px; border-radius: 2px; margin-top: 2px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--p3d-accent) 82%, var(--p3d-bg)), color-mix(in srgb, var(--p3d-accent) 58%, var(--p3d-bg)));
}
.p3d-layer-top {
  background: var(--p3d-accent-bright);
  box-shadow: 0 0 14px color-mix(in srgb, var(--p3d-accent) 55%, transparent);
}
.p3d-plate {
  width: 280px; height: 12px; margin-top: 10px; border-radius: 2px;
  border: 1px solid var(--p3d-line);
  background: repeating-linear-gradient(90deg, var(--p3d-surface-2) 0 10px, color-mix(in srgb, var(--p3d-surface-2) 70%, var(--p3d-bg)) 10px 20px);
}
.p3d-printer .p3d-gcode { margin-top: 14px; }
/* the drawing was sized against a smaller headline; give it matching weight where the column has room */
@media (min-width: 1000px) { .p3d-printer { width: max-content; margin-inline: auto; transform: scale(1.3); } }

/* category cards */
.p3d-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.p3d-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--p3d-surface); border: 1px solid var(--p3d-line); border-radius: 4px;
  padding: 24px 22px 20px; text-decoration: none; color: inherit;
  transition: transform .15s ease, border-color .15s ease, background-color .15s ease;
}
.p3d-card:hover { border-color: var(--p3d-accent); transform: translateY(-3px); color: inherit; }
@media (prefers-reduced-motion: reduce) { .p3d-card, .p3d-card:hover { transform: none; transition: none; } }
.p3d-card > strong { font-size: 18px; line-height: 1.3; }
.p3d-card > span:not(.p3d-swatches) { font-size: 14px; line-height: 1.55; color: var(--p3d-muted); flex: 1; }
.p3d-swatches { display: flex; gap: 5px; margin-bottom: 8px; }
.p3d-swatches i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--p3d-line); }
.p3d-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-style: normal; font-size: 12px; color: var(--p3d-accent); font-family: var(--p3d-mono); margin-top: 10px;
}
/* the whole card is the link: a chevron says so, and leans in on hover */
.p3d-meta::after {
  content: ""; flex: 0 0 auto; width: 7px; height: 7px; margin-right: 3px;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .15s ease;
}
.p3d-card:hover .p3d-meta::after { transform: translateX(4px) rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .p3d-meta::after, .p3d-card:hover .p3d-meta::after { transform: rotate(45deg); transition: none; } }

/* The lead product takes a double cell. Besides giving the grid a focal point
   it squares the rows: 7 cards in equal columns left three empty cells in the
   last row (5 on the English page left three as well). Whatever the count,
   doubling the first card -- plus the last one or two when the remainder
   needs it -- fills every row; a multiple of four is already square and stays
   a plain grid. */
@media (min-width: 1101px) {
  .p3d-card:first-child:not(:nth-last-child(4n)),
  .p3d-card:first-child:nth-last-child(4n+2) ~ .p3d-card:last-child,
  .p3d-card:first-child:nth-last-child(4n+1) ~ .p3d-card:nth-last-child(-n+2) { grid-column: span 2; }
}
@media (min-width: 601px) and (max-width: 1100px) {
  .p3d-card:first-child:nth-last-child(odd) { grid-column: span 2; }
}
.p3d-card:first-child:not(:nth-last-child(4n)) {
  background: linear-gradient(135deg, color-mix(in srgb, var(--p3d-accent) 11%, var(--p3d-surface)), var(--p3d-surface) 62%);
  border-color: color-mix(in srgb, var(--p3d-accent) 38%, var(--p3d-line));
}
.p3d-card:first-child:not(:nth-last-child(4n)) > strong {
  font-family: var(--p3d-display); font-weight: 600; font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.12; text-transform: uppercase; letter-spacing: .015em;
}
.p3d-card:first-child:not(:nth-last-child(4n)) > span:not(.p3d-swatches) { font-size: 15.5px; max-width: 46ch; }

/* steps: one rule across the row with a marker where each step starts, not a
   second set of boxes under the catalog's */
.p3d-steps { display: grid; grid-template-columns: repeat(3, 1fr); }
.p3d-step {
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
  border-top: 1px solid var(--p3d-line);
  padding: 24px 32px 0 0;
}
.p3d-step::before {
  content: ""; position: absolute; left: 0; top: -2px;
  width: 44px; height: 3px; background: var(--p3d-accent);
}
.p3d-step > strong {
  font-family: var(--p3d-display); font-weight: 600; font-size: 22px;
  line-height: 1.15; text-transform: uppercase; letter-spacing: .015em;
}
.p3d-step > span:not(.p3d-gcode) { font-size: 14.5px; line-height: 1.6; color: var(--p3d-muted); max-width: 40ch; }

@media (max-width: 1100px) {
  .p3d-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .p3d-steps { grid-template-columns: 1fr; }
  .p3d-step { padding: 22px 0 28px; }
  .p3d-step:last-child { padding-bottom: 0; }
  .p3d-printer { min-height: 220px; }
}
@media (max-width: 600px) {
  .p3d-cards { grid-template-columns: 1fr; }
}

/* ---------- configurator layout: options left, sticky summary right ---------- */
.p3d-drawer form, .p3d-trunk form, .p3d-quote-box form, .p3d-letters form, .p3d-nfc form, .p3d-orn form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}
.p3d-drawer .p3d-dims, .p3d-trunk .p3d-dims, .p3d-trunk .p3d-arch-row { grid-column: 1 / -1; }
.p3d-main { min-width: 0; }

.p3d-summary {
  position: sticky; top: 90px;
  display: flex; flex-direction: column; gap: 16px;
  background: var(--p3d-surface, #1B2129);
  border: 1px solid var(--p3d-line, #2B333E);
  border-radius: 6px;
  padding: 22px;
}
.p3d-summary h3 {
  margin: 0; font-size: 15px;
  font-family: var(--p3d-display);
  text-transform: uppercase; letter-spacing: .05em;
}
.p3d-summary dl { margin: 0; display: flex; flex-direction: column; gap: 9px; }
.p3d-summary dl > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.p3d-summary dl > div[hidden] { display: none; } /* the flex rule above otherwise overrides the [hidden] attribute */
.p3d-summary dt {
  font-size: 12px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--p3d-muted, #98A2AC);
}
.p3d-summary dd { margin: 0; font-size: 14px; font-variant-numeric: tabular-nums; text-align: right; }
.p3d-sum-color { display: flex; align-items: center; gap: 7px; }
.p3d-sum-color i { width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--p3d-line, #2B333E); }
.p3d-sum-price {
  font-size: 32px; font-weight: 700; font-variant-numeric: tabular-nums;
  border-top: 1px solid var(--p3d-line, #2B333E);
  padding-top: 14px;
}
/* launch price: a small accent line above the price, no reference price (see
   priceHTML() in the configurator scripts) */
.p3d-sum-price .p3d-launch {
  display: block; margin-bottom: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; line-height: 1.3;
  text-transform: uppercase; color: var(--p3d-accent, #F5A02D);
}
.p3d-summary .p3d-add {
  width: 100%; padding: 13px 16px; font-size: 15.5px; font-weight: 600;
  background: var(--p3d-accent, #F5A02D); color: var(--p3d-accent-ink, #1A1206);
  border: none; border-radius: 4px; cursor: pointer;
}
.p3d-summary .p3d-add:hover { background: var(--p3d-accent-bright, #FFB854); }
.p3d-add { transition: background-color .12s ease, transform .08s ease; }
.p3d-sum-note { margin: 0; font-size: 12.5px; color: var(--p3d-muted, #98A2AC); text-align: center; line-height: 1.5; }

.p3d-summary dd select { max-width: 150px; width: 100%; }
/* a <label> inside a <dt> (the quantity row) or a field heading (the font
   select) takes Blocksy's 15px label style - keep it like its siblings */
:is(.p3d-summary dt, .p3d-field-label) label { margin: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.p3d-summary .p3d-add:disabled { opacity: .45; cursor: default; }
@media (max-width: 900px) {
  .p3d-drawer form, .p3d-trunk form, .p3d-quote-box form, .p3d-letters form, .p3d-nfc form, .p3d-orn form { grid-template-columns: 1fr; }
  .p3d-summary { position: static; }
}

/* Phones and tablets: the summary card (price + add to cart) sits under the
   whole list of options, so the live price was off screen exactly while the
   customer changed them. assets/front-page.js mirrors it into this bar until
   the card itself scrolls into view. */
.p3d-buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: var(--p3d-surface, #1B2129);
  border-top: 1px solid var(--p3d-line, #2B333E);
  box-shadow: 0 -10px 28px rgba(8, 10, 13, .5);
  transform: translateY(105%); visibility: hidden;
  transition: transform .22s cubic-bezier(.16, 1, .3, 1), visibility 0s .22s;
}
.p3d-buybar.p3d-on { transform: none; visibility: visible; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .p3d-buybar { transition: none; } }
.p3d-buybar-price { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 0; }
/* the phone buy bar has room for the price and the button only; the summary
   panel above still carries the launch-price line */
.p3d-buybar-price .p3d-launch { display: none; }
.p3d-buybar .p3d-add {
  flex: 0 0 auto; min-height: 44px; padding: 10px 16px; font-size: 14.5px; font-weight: 600; white-space: nowrap;
  background: var(--p3d-accent, #F5A02D); color: var(--p3d-accent-ink, #1A1206);
  border: none; border-radius: 4px; cursor: pointer;
}
.p3d-buybar .p3d-add[aria-disabled="true"] {
  background: transparent; color: var(--p3d-ink, #E9ECEF);
  box-shadow: inset 0 0 0 1px var(--p3d-line, #2B333E);
}
@media (min-width: 901px) { .p3d-buybar { display: none; } }

/* regular pages: one centered content column, everything left-aligned inside
   it (the front page manages its own full-width sections and is excluded) */
body:not(.home) .entry-content {
  max-width: var(--p3d-container);
  margin-left: auto;
  margin-right: auto;
}
body:not(.home) .entry-content > * {
  margin-left: 0 !important;
  margin-right: auto !important;
}
/* running text keeps a readable measure instead of spanning the 1290px column */
body:not(.home) .entry-content > :is(p, ul, ol):not([class*="p3d-"]) { max-width: 76ch; }
/* blog posts: Blocksy centres the title block in a narrow column while the
   rule above left-aligns the text in the wide page column, so the heading
   and the article started at different left edges. One reading column for
   both: title, intro, date and the whole article share its left edge. */
body.single-post .hero-section.is-width-constrained,
body.single-post .entry-content {
  width: auto;
  max-width: min(var(--p3d-container), 780px);
  margin-left: auto;
  margin-right: auto;
}
body.single-post .hero-section .entry-header { max-width: none; }
/* the post title must outrank the h2s under it: Blocksy's own hero title size
   (30px) came out smaller than the article's section headings (34px) */
body.single-post .hero-section .page-title { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; margin-bottom: 14px; }
body.single-post .hero-section .page-description { font-size: 17px; line-height: 1.55; color: var(--p3d-muted, #98A2AC); }
body.single-post .hero-section .page-description { max-width: none; overflow-wrap: anywhere; }
body.single-post .entry-content > :is(p, ul, ol):not([class*="p3d-"]) { max-width: none; }
body.single-post .entry-content > * { max-width: 100%; }
body.single-post .entry-content > .wp-block-table { overflow-x: auto; }
.entry-content .p3d-gcode { margin-bottom: 10px !important; }
.entry-content .p3d-intro { margin-top: 0 !important; margin-bottom: 30px !important; }
.p3d-unit { color: var(--p3d-muted, #98A2AC); font-size: 13px; }

/* ---------- shared configurator controls (all p3d widgets) ---------- */
.p3d-dims { display: flex; gap: 26px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 24px; }
.p3d-dims label > span:first-child,
.p3d-dims .p3d-material-field > span:first-child {
  display: block; font-size: 12px; text-transform: uppercase;
  letter-spacing: .08em; color: var(--p3d-muted, #98A2AC); margin-bottom: 8px;
}
.p3d-dim-inputs { display: inline-flex; align-items: center; gap: 8px; }
.p3d-dims input[type="number"],
.p3d-dim-inputs input[type="number"] {
  width: 6.5em; min-width: 0; flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  background: var(--p3d-surface, #1B2129); color: inherit;
  border: 1px solid var(--p3d-line, #2B333E); border-radius: 3px; padding: 9px 10px;
}
.p3d-dims input[type="range"] { width: 180px; accent-color: var(--p3d-accent, #F5A02D); }
.p3d-colors { display: inline-flex; flex-wrap: wrap; gap: 9px; align-items: center; }
/* finish headings inside a picker (p3d_color_swatches): each starts its own row */
.p3d-colors-h {
  flex: 0 0 100%; margin: 6px 0 -2px; font-size: 11px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--p3d-muted, #98A2AC);
}
.p3d-colors-h:first-of-type { margin-top: 0; }
.p3d-colors-h[hidden] { display: none; }
/* translucent filaments read as such: a lighter centre */
.p3d-color[data-finish="clear"] { background-image: radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), rgba(255,255,255,0) 60%); }
.p3d-color {
  width: 26px; height: 26px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 2px solid var(--p3d-line, #2B333E); flex: 0 0 auto;
}
.p3d-color[aria-pressed="true"] {
  border-color: var(--p3d-accent, #F5A02D);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--p3d-accent, #F5A02D) 30%, transparent);
}
/* fingers get a bigger target than a mouse pointer needs */
@media (pointer: coarse) {
  .p3d-colors { gap: 10px; flex-wrap: wrap; }
  .p3d-colors .p3d-color { width: 34px; height: 34px; }
  .p3d-part .p3d-part-del { width: 36px !important; height: 36px !important; }
}

/* keyboard focus: option cards wrap a small native radio, so the ring goes on
   the card; text fields get the accent border they lacked */
:is(.p3d-typecard, .p3d-seg label, .p3d-drop, .p3d-orn-shape):has(input:focus-visible) {
  outline: 2px solid var(--p3d-accent, #F5A02D); outline-offset: 2px;
}
:is(.p3d-dims, .p3d-controls, .p3d-summary, .p3d-contact, .p3d-nl) :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]), textarea, select):focus-visible {
  border-color: var(--p3d-accent, #F5A02D);
  outline: 2px solid color-mix(in srgb, var(--p3d-accent, #F5A02D) 35%, transparent);
  outline-offset: 0;
}

/* ---------- configurator control card ---------- */
.p3d-controls {
  grid-column: 1 / -1;
  display: grid;
  /* caps at 3 columns (so e.g. the two color pickers land side by side
     instead of one trailing onto its own row) while still collapsing to
     fewer on narrower screens, same as the old plain auto-fit did */
  grid-template-columns: repeat(auto-fit, minmax(max(230px, calc(33.333% - 20px)), 1fr));
  gap: 22px 30px;
  background: var(--p3d-surface, #1B2129);
  border: 1px solid var(--p3d-line, #2B333E);
  border-radius: 6px;
  padding: 22px 24px;
  margin-bottom: 8px;
}
/* grid items and fieldsets default to min-width: auto / min-content, so one
   wide control (three option cards side by side) stretched the whole card
   past a phone's viewport and clipped everything in it */
.p3d-controls > *, .p3d-controls fieldset { min-width: 0; }
/* Blocksy gives every label but the last in its parent a 7.5px bottom margin;
   in a grid of option cards (kinds, shapes, PLA / PETG) that left the last
   card taller than the rest of its row */
:is(.p3d-typecard, .p3d-seg label, .p3d-material label, .p3d-orn-shape) { margin: 0; }
.p3d-field-wide { grid-column: 1 / -1; }
@media (max-width: 600px) { .p3d-controls { padding: 18px 16px; } }
.p3d-field-label {
  display: block; font-size: 12px; text-transform: uppercase;
  letter-spacing: .08em; color: var(--p3d-muted, #98A2AC); margin-bottom: 9px;
}
.p3d-field-label output { color: var(--p3d-ink, #E9ECEF); font-variant-numeric: tabular-nums; }
.p3d-help { display: block; margin-top: 7px; font-size: 12.5px; line-height: 1.5; color: var(--p3d-muted, #98A2AC); }
.p3d-custom-note a { color: var(--p3d-accent); font-weight: 600; text-decoration: underline; }
.p3d-field input[type="range"] { width: 100%; max-width: 260px; display: block; margin-top: 6px; }

.p3d-arch { grid-column: 1 / -1; border: 0; padding: 14px 0 0; margin: 0; border-top: 1px solid var(--p3d-line, #2B333E); }
.p3d-arch-body { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; margin-top: 16px; }
.p3d-arch-body[hidden] { display: none; }
.p3d-arch-svg { width: 190px; flex: 0 0 auto; color: var(--p3d-wire, #6FC7D6); }
.p3d-key {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%; margin-right: 4px;
  background: var(--p3d-accent, #F5A02D); color: var(--p3d-accent-ink, #1A1206);
  font-size: 11px; font-style: normal; font-weight: 700;
}

/* ---------- contact page ---------- */
.p3d-channels { display: flex; gap: 12px; flex-wrap: wrap; margin: 6px 0 34px; }
/* tinted with the channel's brand colour rather than filled with it: white
   text on the amber / WhatsApp-green / Telegram-blue fills was 2-3:1 */
.p3d-channel {
  display: inline-flex; align-items: center; min-height: 44px; padding: 9px 20px; border-radius: 4px;
  background: color-mix(in srgb, var(--_brand, #555) 16%, var(--p3d-surface, #1B2129));
  border: 1px solid color-mix(in srgb, var(--_brand, #555) 62%, var(--p3d-line, #2B333E));
  color: var(--p3d-ink, #E9ECEF) !important;
  font-weight: 600; font-size: 14.5px; text-decoration: none;
  transition: background-color .12s ease, border-color .12s ease;
}
.p3d-channel:hover {
  background: color-mix(in srgb, var(--_brand, #555) 28%, var(--p3d-surface, #1B2129));
  border-color: var(--_brand, #555);
}

.p3d-contact { max-width: 640px; display: flex; flex-direction: column; gap: 18px; }
.p3d-contact label { display: flex; flex-direction: column; gap: 7px; }
.p3d-contact label > span {
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--p3d-muted, #98A2AC);
}
.p3d-contact input, .p3d-contact textarea {
  background: var(--p3d-surface, #1B2129); color: inherit;
  border: 1px solid var(--p3d-line, #2B333E); border-radius: 3px; padding: 10px 12px;
  font: inherit; width: 100%;
}
.p3d-contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.p3d-contact-send { grid-template-columns: 1fr auto; align-items: end; }
.p3d-captcha input { width: 7em; }
.p3d-turnstile { min-height: 65px; }

/* WooCommerce notices ("… е добавен във вашата количка" + View cart): Blocksy
   paints them on a light --background-color (from its message-colour
   settings, printed inline in <head>) while the text inherits our light ink -
   near-invisible. Dark surface + a coloured rule instead; `body` raises the
   specificity above Blocksy's inline :is(...) rules. */
body :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
  --background-color: var(--p3d-surface);
  --theme-text-color: var(--p3d-ink);
  color: var(--p3d-ink);
  border: 1px solid var(--p3d-line);
  border-left: 3px solid var(--p3d-accent);
  align-items: center;
  gap: 12px;
}
body .woocommerce-info { border-left-color: var(--p3d-wire); }
body .woocommerce-error { border-left-color: #D94F30; }
body :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before { color: currentColor; }
.woocommerce-form .p3d-turnstile { margin: 0 0 1em; }

/* Checkout: the express (Apple/Google Pay) box is moved under Place order
   (inc/legal.php), so WooCommerce's "Or continue below" rule points at nothing. */
.wc-block-checkout__form .wc-block-components-express-payment-continue-rule--checkout { display: none; }
.wc-block-checkout__form .wc-block-components-express-payment--checkout { margin: 32px 0 0; }
.p3d-contact .p3d-add {
  padding: 12px 26px; font-size: 15px; font-weight: 600; border: none; border-radius: 4px;
  background: var(--p3d-accent, #F5A02D); color: var(--p3d-accent-ink, #1A1206); cursor: pointer;
}
.p3d-contact .p3d-add:hover { background: var(--p3d-accent-bright, #FFB854); }
.p3d-hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.p3d-form-msg { padding: 13px 16px; border-radius: 4px; max-width: 640px; }
.p3d-form-msg.p3d-ok { background: color-mix(in srgb, #4CAF6E 18%, transparent); border: 1px solid #4CAF6E; }
.p3d-form-msg.p3d-err { background: color-mix(in srgb, #e05252 15%, transparent); border: 1px solid #e05252; }
@media (max-width: 640px) { .p3d-contact-row { grid-template-columns: 1fr; } }

/* ---------- shop archive ---------- */
/* a product without a photo: the mark on the card surface, not WooCommerce's
   white placeholder tile glaring out of the dark page. The padding pushes the
   placeholder bitmap out of its own box so only the background shows. */
img[src*="woocommerce-placeholder"] {
  box-sizing: border-box; padding-left: 100%;
  aspect-ratio: 1; /* the cart thumbnail has no height of its own once its content box is empty; shop cards set their own ratio inline */
  background: var(--p3d-surface) url("assets/logo.svg") no-repeat 50% 50% / clamp(30px, 34%, 120px) auto;
}
[data-products] .product figure .ct-media-container { border: 1px solid var(--p3d-line); border-radius: 4px; overflow: hidden; }
/* "Uncategorized" under a product says nothing; real categories still show */
[data-products] .entry-meta:has(a[href*="/uncategorized"]) { display: none; }
/* Blocksy's centred title band, cut down to the same scale as the page titles */
[data-prefix="woo_categories"] .hero-section[data-type="type-2"] {
  --container-padding: 30px 0; --min-height: 0px; --alignment: left;
  border-bottom: 1px solid var(--p3d-line);
}
[data-prefix="woo_categories"] .hero-section[data-type="type-2"] > .entry-header { width: var(--p3d-container); max-width: none; }

/* ---------- site footer (replaces blocksy's built footer, which is no
   longer rendered - blocksy:builder:footer:enabled in inc/footer.php) ---------- */
.ct-footer, [data-footer] > .ct-footer { display: none !important; } /* belt and braces */

.p3d-footer {
  background: var(--p3d-surface, #1B2129);
  border-top: 1px solid var(--p3d-line, #2B333E);
  margin-top: 72px;
}
.p3d-footer-grid {
  max-width: var(--p3d-container); margin: 0 auto; padding: 48px 0 38px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
}
@media (min-width: 781px) { .p3d-footer-grid:has(> :nth-child(4)) { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; } }
.p3d-footer-logo { display: block; width: 128px; height: auto; }
.p3d-footer-brand p { margin: 12px 0 18px; font-size: 13.5px; color: var(--p3d-muted, #98A2AC); max-width: 40ch; }
.p3d-footer-brand .p3d-footer-address { margin: -8px 0 16px; font-size: 12.5px; }
.p3d-footer-address a { color: var(--p3d-ink, #E9ECEF); text-decoration: none; }
.p3d-footer-address a:hover { color: var(--p3d-accent, #F5A02D); }

/* FAQ ([p3d_faq], inc/seo.php): the same answers Google reads from the FAQPage schema */
.p3d-facts { max-width: 760px; margin: 32px 0 8px; }
.p3d-facts table { width: 100%; border-collapse: collapse; font-size: 15px; border: 1px solid var(--p3d-line, #2B333E); background: var(--p3d-surface, #1B2129); }
.p3d-facts caption { caption-side: top; text-align: left; font-weight: 700; font-size: 17px; padding: 0 0 10px; }
.p3d-facts th, .p3d-facts td { padding: 9px 14px; border-bottom: 1px solid var(--p3d-line, #2B333E); text-align: left; vertical-align: top; }
.p3d-facts th { width: 9.5em; font-weight: 600; color: var(--p3d-muted, #9AA4B2); white-space: nowrap; }
.p3d-facts tr:last-child th, .p3d-facts tr:last-child td { border-bottom: 0; }
.wp-block-table.p3d-facts figcaption { font-size: 13px; color: var(--p3d-muted, #9AA4B2); margin-top: 6px; text-align: left; }
@media (max-width: 560px) { .p3d-facts th { width: 34%; white-space: normal; } .p3d-facts th, .p3d-facts td { padding: 8px 10px; } }
.p3d-orders-soon { background: var(--p3d-accent, #F5A02D); color: #14181D; font-size: 14px; font-weight: 600; text-align: center; padding: 9px 16px; line-height: 1.45; }
.p3d-orders-soon a { color: inherit; text-decoration: underline; }
.p3d-orders-soon--inline { border-radius: 4px; margin: 0 0 20px; text-align: left; }
.p3d-faq { max-width: 760px; margin: 8px 0 24px; }
.p3d-faq details { border: 1px solid var(--p3d-line, #2B333E); border-radius: 4px; background: var(--p3d-surface, #1B2129); margin: 0 0 8px; }
.p3d-faq summary { cursor: pointer; padding: 13px 16px; font-weight: 600; font-size: 15px; list-style: none; position: relative; padding-right: 36px; }
.p3d-faq summary::-webkit-details-marker { display: none; }
.p3d-faq summary::after { content: "+"; position: absolute; right: 14px; top: 10px; font-size: 20px; color: var(--p3d-accent, #F5A02D); }
.p3d-faq details[open] summary::after { content: "−"; }
.p3d-faq p { margin: 0; padding: 0 16px 14px; font-size: 14px; color: var(--p3d-muted, #98A2AC); line-height: 1.55; }
.p3d-channels--footer { margin: 0; }
.p3d-channels--footer .p3d-channel { min-height: 36px; padding: 6px 14px; font-size: 13px; }

.p3d-footer-col h4 {
  margin: 0 0 14px; font-size: 12px; text-transform: uppercase;
  letter-spacing: .09em; color: var(--p3d-muted, #98A2AC);
  font-family: var(--p3d-body);
}
.p3d-footer-col a {
  display: block; padding: 5px 0; font-size: 14px;
  color: var(--p3d-ink, #E9ECEF); text-decoration: none;
}
.p3d-footer-col a:hover { color: var(--p3d-accent, #F5A02D); }

.p3d-footer-bottom {
  border-top: 1px solid var(--p3d-line, #2B333E);
  max-width: var(--p3d-container); margin: 0 auto; padding: 18px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--p3d-muted, #98A2AC);
}
@media (max-width: 780px) {
  .p3d-footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* newsletter signup band (inc/newsletter.php), between the link columns and the bottom row */
.p3d-footer-news {
  border-top: 1px solid var(--p3d-line, #2B333E);
  max-width: var(--p3d-container); margin: 0 auto; padding: 30px 0 34px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; align-items: start;
}
.p3d-nl-pitch h4 {
  margin: 0 0 8px; font-size: 12px; text-transform: uppercase;
  letter-spacing: .09em; color: var(--p3d-muted, #98A2AC); font-family: var(--p3d-body);
}
.p3d-nl-offer { margin: 0 0 8px; font-family: var(--p3d-display); font-size: 26px; line-height: 1.05; color: var(--p3d-accent, #F5A02D); }
.p3d-nl-pitch p:not(.p3d-nl-offer) { margin: 0; font-size: 13.5px; color: var(--p3d-muted, #98A2AC); max-width: 44ch; }
.p3d-nl-row { display: flex; gap: 10px; flex-wrap: wrap; }
.p3d-nl-row input[type="email"] {
  flex: 1 1 220px; min-width: 0; font-size: 15px; padding: 11px 12px;
  background: var(--p3d-bg, #14181D); color: inherit;
  border: 1px solid var(--p3d-line, #2B333E); border-radius: 4px;
}
.p3d-nl .p3d-add {
  padding: 11px 22px; font-size: 14.5px; font-weight: 600; border: none; border-radius: 4px;
  background: var(--p3d-accent, #F5A02D); color: var(--p3d-accent-ink, #1A1206); cursor: pointer;
}
.p3d-nl .p3d-add:hover { background: var(--p3d-accent-bright, #FFB854); }
.p3d-nl-captcha { margin: 10px 0 0; font-size: 13px; color: var(--p3d-muted, #98A2AC); }
.p3d-nl-captcha label { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.p3d-nl-captcha input {
  flex: 0 0 5em; width: 5em; padding: 7px 8px; font-size: 14px;
  background: var(--p3d-bg, #14181D); color: inherit; border: 1px solid var(--p3d-line, #2B333E); border-radius: 4px;
}
.p3d-nl .p3d-turnstile { margin-top: 10px; }
.p3d-nl-consent { display: flex; gap: 9px; align-items: flex-start; margin-top: 12px; font-size: 12.5px; color: var(--p3d-muted, #98A2AC); line-height: 1.45; cursor: pointer; }
.p3d-nl-consent input { accent-color: var(--p3d-accent, #F5A02D); width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; }
.p3d-nl-consent a { color: var(--p3d-accent, #F5A02D); text-decoration: underline; }
.p3d-nl-form .p3d-form-msg { margin: 0 0 12px; font-size: 14px; max-width: none; }
.p3d-nl-code { display: inline-block; margin-top: 6px; font-family: var(--p3d-mono); font-size: 20px; letter-spacing: .08em; color: var(--p3d-accent, #F5A02D); user-select: all; }
@media (max-width: 780px) {
  .p3d-footer-news { grid-template-columns: 1fr; gap: 18px; }
}

/* multi-part set list */
.p3d-parts { list-style: none; margin: 14px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.p3d-part {
  display: flex; align-items: center; gap: 12px;
  background: var(--p3d-surface, #1B2129);
  border: 1px solid var(--p3d-line, #2B333E); border-radius: 4px;
  padding: 9px 12px; margin: 0 !important; min-height: 0;
}
.p3d-part > * { flex: 0 0 auto; }
.p3d-part select {
  width: auto !important; max-width: 170px; min-height: 0;
  padding: 6px 32px 6px 10px; font-size: 14px;
}
.p3d-part-active { border-color: var(--p3d-accent, #F5A02D); }
.p3d-part-name {
  background: none !important; border: none !important; color: inherit; font: inherit;
  cursor: pointer; text-align: left; flex: 1 1 auto !important; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 2px 0 !important; min-height: 0; line-height: 1.35;
}
.p3d-part-name:hover { color: var(--p3d-accent, #F5A02D); }
.p3d-part-vol { font-size: 12.5px; color: var(--p3d-muted, #98A2AC); font-variant-numeric: tabular-nums; }
.p3d-part-del {
  background: none !important; border: 1px solid var(--p3d-line, #2B333E) !important;
  border-radius: 3px; color: var(--p3d-muted, #98A2AC);
  width: 26px !important; height: 26px !important; min-height: 0 !important;
  padding: 0 !important; cursor: pointer; font-size: 15px; line-height: 1;
}
.p3d-part-del:hover { border-color: #e05252; color: #e05252; }
.p3d-multi form { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .p3d-multi form { grid-template-columns: 1fr; } }

/* language switcher - plain text, last in the menu */
.p3d-lang-sep {
  display: flex !important; align-items: center; gap: 5px; margin-left: 10px;
}
.p3d-lang { font-size: 13px; font-weight: 700; text-decoration: none; opacity: .55; letter-spacing: .04em; }
.p3d-lang:hover { opacity: 1; }
.p3d-lang-active { opacity: 1; color: var(--p3d-accent, #F5A02D); }
.p3d-lang-div { opacity: .35; font-size: 11px; }

/* ---------- select2 / selectWoo dropdowns (dark) ----------
   bg-couriers' office and locker pickers (and WooCommerce's own country/state
   selects) render white with the site's light text - every option but the
   highlighted one unreadable. Blocksy styles select2 itself with
   span.select2-dropdown / span.select2-container rules that load AFTER this
   file and match or beat plain overrides, but they read their colours from
   variables it never defines for this context (falling back to #fff), so set
   those on the container - the in-form box and the dropdown appended to
   <body> are both span.select2-container. */
.select2-container {
  --theme-form-select-background-initial-color: var(--p3d-surface);      /* dropdown panel, open box */
  --form-field-select-initial-color: var(--p3d-ink);                     /* option text */
  --theme-form-select-background-active-color: var(--p3d-accent);        /* highlighted option */
  --form-field-select-active-color: var(--p3d-accent-ink);
  --theme-form-field-background-initial-color: var(--p3d-surface);       /* closed box */
  --theme-form-text-initial-color: var(--p3d-ink);
  --theme-form-field-border-initial-color: var(--p3d-line);
  --wc-form-color-background: var(--p3d-surface);                        /* WooCommerce's select2.css */
  --wc-form-color-text: var(--p3d-ink);
}
/* what Blocksy leaves to select2.css (white search box, grey arrow, #444
   placeholder), and bg-couriers' light border, which it sets !important */
body .select2-dropdown { border-color: var(--p3d-line); }
body .select2-container .select2-selection,
body .bgc-fields .select2-selection { border-color: var(--p3d-line) !important; }
body .select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--p3d-muted); }
body .select2-container--default .select2-selection--single .select2-selection__arrow b { border-top-color: var(--p3d-muted); }
body .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b { border-bottom-color: var(--p3d-muted); }
body .select2-container--default .select2-selection--single .select2-selection__clear { color: var(--p3d-muted); }
body .select2-container--default .select2-search--dropdown .select2-search__field {
  background: var(--p3d-bg);
  border-color: var(--p3d-line);
  color: var(--p3d-ink);
}
body .select2-container--default .select2-results__option[aria-disabled="true"],
body .select2-container--default .select2-results__message { color: var(--p3d-muted); }

/* ---------- material choice (PLA / PETG) in the configurators ----------
   p3d_material_fields() in functions.php; assets/material.js hides the colour
   swatches a material isn't stocked in. */
.p3d-material { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 460px; margin-top: 4px; }
.p3d-dims .p3d-material { min-width: 300px; }
.p3d-material label {
  display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center;
  row-gap: 1px; padding: 11px 13px; border: 1px solid var(--p3d-line); border-radius: 6px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.p3d-material label:hover { border-color: var(--p3d-accent); }
.p3d-material label:has(input:checked) { border-color: var(--p3d-accent); background: color-mix(in srgb, var(--p3d-accent) 10%, transparent); }
.p3d-material input { accent-color: var(--p3d-accent); grid-row: 1 / 3; margin: 0; }
.p3d-material-t { font-size: 14px; font-weight: 600; }
.p3d-material-s { grid-column: 2; font-size: 12px; color: var(--p3d-muted); }
.p3d-color[hidden] { display: none !important; }
