/*
Theme Name: AElfo
Theme URI: https://aelectro.ro
Author: AElfo
Description: Tema AElfo pentru aelectro.ro - pagina ca o placa electronica: fundal PCB, cipuri cu fereastra, module cu antena.
Version: 1.2.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: aelfo
*/

:root {
  --ae-teal: #00807A;
  --ae-teal-dark: #005F5A;
  --ae-teal-light: #00A19C;
  --ae-blue-light: #EAF6FD;
  --ae-orange: #B4530A;
  --ae-orange-light: #E8762C;
  --ae-ink: #111827;
  --ae-muted: #4B5563;
  --ae-text: #374151;
  --ae-page: #EEF2F5;
  --ae-board: #FBFDFD;
  --ae-edge: #9AA8B5;
  --ae-gold: #D9B45A;
  --ae-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ae-sans: Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ae-page); color: var(--ae-ink); font-family: var(--ae-sans); font-size: 17px; line-height: 1.6; }
a { color: var(--ae-teal); }
a:hover { color: var(--ae-teal-dark); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.12; font-weight: 800; letter-spacing: -0.5px; margin: 0 0 0.6em; }
h1 { font-size: clamp(34px, 5vw, 54px); letter-spacing: -1.2px; }
h2 { font-size: clamp(24px, 3vw, 30px); }
h3 { font-size: 19px; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- placa (tot site-ul) ---------- */
.ae-wrap { padding: 24px 16px 0; min-height: 100vh; }
.ae-board { position: relative; max-width: 1240px; margin: 0 auto; background: var(--ae-board); border: 2px solid var(--ae-edge); border-bottom: none; border-radius: 18px 18px 0 0; overflow: hidden; }
.ae-board-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ae-board-bg img { width: 100%; height: auto; opacity: 0.2; display: block; }
.ae-board-bg img + img { margin-top: 0; }
.ae-hole { position: absolute; width: 26px; height: 26px; border-radius: 50%; border: 6px solid #D08A4A; background: var(--ae-page); z-index: 2; }
.ae-hole.tl { top: 14px; left: 14px; } .ae-hole.tr { top: 14px; right: 14px; }
.ae-hole.bl { bottom: 14px; left: 14px; } .ae-hole.br { bottom: 14px; right: 14px; }
.ae-inner { position: relative; z-index: 1; }
.ae-edge { max-width: 1244px; margin: 0 auto 32px; height: 16px; border-left: 2px solid var(--ae-edge); border-right: 2px solid var(--ae-edge);
  background: radial-gradient(circle at 50% 100%, var(--ae-page) 0 6px, #D08A4A 6px 10px, var(--ae-board) 10px) 0 0 / 30px 16px repeat-x; }

/* ---------- antet ---------- */
.ae-header { padding: 18px 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #D5DEE5; }
.ae-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ae-ink); }
.ae-brand img { height: 52px; width: auto; display: block; }
.ae-brand small { font-family: var(--ae-mono); font-size: 12px; color: var(--ae-muted); }
.ae-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-size: 15px; font-weight: 600; }
.ae-nav a { color: var(--ae-ink); text-decoration: none; }
.ae-nav a:hover, .ae-nav .current-menu-item > a { color: var(--ae-teal); text-decoration: underline; text-underline-offset: 6px; }
.ae-nav .menu-contact > a { padding: 7px 16px; background: var(--ae-teal); color: #fff; border-radius: 4px; text-decoration: none; }
.ae-nav-toggle { display: none; }
@media (max-width: 860px) {
  .ae-header { padding: 16px 28px; }
  .ae-nav-toggle { display: inline-flex; min-height: 44px; padding: 0 14px; align-items: center; border: 2px solid var(--ae-ink); border-radius: 4px; background: #fff; font: 700 15px var(--ae-sans); }
  .ae-nav { width: 100%; display: none; }
  .ae-nav.is-open { display: block; }
  .ae-nav ul { flex-direction: column; align-items: flex-start; gap: 12px; padding: 8px 0; }
}

/* ---------- continut ---------- */
.ae-main { padding: 56px 64px 24px; }
@media (max-width: 860px) { .ae-main { padding: 40px 24px 16px; } }
.ae-main > * + * { margin-top: 0; }
.ae-main .wp-block-group, .ae-main .wp-block-columns { margin-bottom: 48px; }
.ae-kicker { font-family: var(--ae-mono); font-size: 13px; letter-spacing: 1px; color: var(--ae-teal); text-transform: uppercase; margin-bottom: 14px; }
.ae-lead { font-size: 19px; color: var(--ae-muted); max-width: 700px; }
.ae-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px 26px; }
.ae-grid.small { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ae-grid > * { margin: 0 !important; }
/* tema clasica: WP pune un div intern in grupuri; il facem transparent pentru grila */
.wp-block-group__inner-container { display: contents; }

/* ---------- cip cu fereastra (stil de bloc Grup) ---------- */
.is-style-aelfo-chip {
  position: relative; isolation: isolate;
  margin: 12px 0 !important; padding: 34px 36px !important;
  border: 2px solid #C5CDD6; border-radius: 6px;
  background: radial-gradient(circle at 0 50%, var(--ae-board) 0 11px, #C5CDD6 11px 13px, transparent 13px), #FFFFFF;
  color: var(--ae-ink); text-decoration: none;
}
.is-style-aelfo-chip::before { /* fereastra de sticla */
  content: ""; position: absolute; inset: 14px; z-index: -1; border-radius: 10px;
  background: linear-gradient(135deg, #D6ECF8 0%, #F5FBFE 45%, #C9E4F4 100%);
  border: 2px solid #A8C3D6; box-shadow: inset 0 0 0 4px #EAF4FA;
}
.is-style-aelfo-chip::after { /* pinii sus si jos */
  content: ""; position: absolute; left: 22px; right: 22px; top: -11px; bottom: -11px; z-index: -2;
  background:
    repeating-linear-gradient(90deg, #E2BE63 0 20px, transparent 20px 36px) top / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, #E2BE63 0 20px, transparent 20px 36px) bottom / 100% 10px no-repeat;
}
.is-style-aelfo-chip > :last-child { margin-bottom: 0; }
.is-style-aelfo-chip h3 { margin-bottom: 8px; }
.is-style-aelfo-chip p { color: var(--ae-text); font-size: 15px; line-height: 1.5; }
.is-style-aelfo-chip .ae-ref { font-family: var(--ae-mono); font-size: 12px; color: var(--ae-teal); margin-bottom: 8px; }
.is-style-aelfo-chip.ae-accent { background: radial-gradient(circle at 0 50%, var(--ae-board) 0 11px, #7CC9C4 11px 13px, transparent 13px), #E3F4F3; border-color: #7CC9C4; }
.is-style-aelfo-chip.ae-orange { border-color: var(--ae-orange-light); background: radial-gradient(circle at 0 50%, var(--ae-board) 0 11px, var(--ae-orange-light) 11px 13px, transparent 13px), #FFFFFF; }
.is-style-aelfo-chip.ae-orange .ae-ref { color: var(--ae-orange); }
.is-style-aelfo-chip.ae-metal { background: radial-gradient(circle at 0 50%, var(--ae-board) 0 11px, #7F9CC4 11px 13px, transparent 13px), #E7EEF7; border-color: #7F9CC4; }
.is-style-aelfo-chip.ae-metal .ae-ref { color: #2F5D96; }
a.is-style-aelfo-chip:hover { border-color: var(--ae-teal); }

/* ---------- modul cu antena (stil de bloc Grup) ---------- */
.is-style-aelfo-module {
  position: relative; isolation: isolate;
  margin: 12px 0 !important; padding: 60px 64px 60px 140px !important; border-radius: 10px;
  background:
    radial-gradient(circle at 50% 0, var(--ae-board) 0 4px, var(--ae-gold) 4px 9px, transparent 9.5px) 90px 0 / 30px 14px repeat-x,
    radial-gradient(circle at 50% 100%, var(--ae-board) 0 4px, var(--ae-gold) 4px 9px, transparent 9.5px) 90px 100% / 30px 14px repeat-x,
    radial-gradient(circle at 100% 50%, var(--ae-board) 0 4px, var(--ae-gold) 4px 9px, transparent 9.5px) 100% 20px / 14px 30px repeat-y,
    linear-gradient(135deg, #4B7DB8, #5E8FC8 50%, #4677B2);
  color: var(--ae-ink);
}
.is-style-aelfo-module::before { /* zona antenei: 55% din inaltime, centrata */
  content: ""; position: absolute; left: 18px; width: 76px; top: 22.5%; bottom: 22.5%; z-index: -1;
  border-radius: 6px; padding: 14px 8px;
  background-image: url("assets/antena.svg"), linear-gradient(#6F99CC, #6F99CC);
  background-repeat: repeat-y, no-repeat;
  background-position: center top, 0 0;
  background-size: 60px 26px, 100% 100%;
  background-origin: content-box, border-box;
  background-clip: content-box, border-box;
}
.is-style-aelfo-module::after { /* ecranul metalic */
  content: ""; position: absolute; left: 112px; right: 34px; top: 26px; bottom: 26px; z-index: -1; border-radius: 8px;
  background: linear-gradient(160deg, #F4F7FA 0%, #DDE4EC 55%, #EEF2F6 100%);
  border: 2px solid #B6C2CF; box-shadow: inset 0 0 0 5px #F8FAFC;
}
.is-style-aelfo-module > :last-child { margin-bottom: 0; }
.is-style-aelfo-module p, .is-style-aelfo-module li { color: var(--ae-text); }
@media (max-width: 640px) {
  .is-style-aelfo-module { padding: 52px 40px 52px 98px !important; }
  .is-style-aelfo-module::before { left: 12px; width: 56px; padding: 12px 4px; background-size: 44px 19px, 100% 100%; }
  .is-style-aelfo-module::after { left: 76px; right: 22px; }
}

/* ---------- pasi numerotati ---------- */
.ae-steps { list-style: none; margin: 0; padding: 0; counter-reset: ae; display: flex; flex-direction: column; gap: 14px; }
.ae-steps li { counter-increment: ae; display: flex; gap: 14px; align-items: baseline; }
.ae-steps li::before { content: counter(ae); flex: 0 0 34px; height: 34px; border-radius: 50%; border: 5px solid var(--ae-orange-light); background: #fff;
  font: 700 12px var(--ae-mono); color: var(--ae-orange); display: flex; align-items: center; justify-content: center; }

/* ---------- butoane SMD (stil de bloc Buton) ---------- */
.wp-block-button.is-style-aelfo-smd .wp-block-button__link,
.ae-btn {
  display: inline-flex; align-items: center; gap: 14px; height: 56px; padding: 0 5px !important; border-radius: 6px;
  background: var(--ae-teal); color: #fff; font-weight: 800; font-size: 16px; text-decoration: none; border: none;
}
.wp-block-button.is-style-aelfo-smd .wp-block-button__link::before, .wp-block-button.is-style-aelfo-smd .wp-block-button__link::after,
.ae-btn::before, .ae-btn::after {
  content: ""; width: 16px; height: 46px; border-radius: 3px; background: linear-gradient(90deg, #8FA3BF, #E3EAF3, #8FA3BF);
}
.wp-block-button.is-style-aelfo-smd.ae-orange .wp-block-button__link, .ae-btn.ae-orange { background: var(--ae-orange); }
.wp-block-button.is-style-aelfo-smd .wp-block-button__link:hover, .ae-btn:hover { filter: brightness(1.08); color: #fff; }

/* ---------- cipul AElfo din prima pagina ---------- */
.ae-mcu { position: relative; width: 320px; max-width: 100%; aspect-ratio: 1; margin: 0 auto; }
.ae-mcu .p { position: absolute; background: repeating-linear-gradient(90deg, #B8C3D1 0 9px, transparent 9px 20px); }
.ae-mcu .p.t, .ae-mcu .p.b { left: 15.6%; right: 15.6%; height: 20px; }
.ae-mcu .p.t { top: 0; } .ae-mcu .p.b { bottom: 0; }
.ae-mcu .p.l, .ae-mcu .p.r { top: 15.6%; bottom: 15.6%; width: 20px; background: repeating-linear-gradient(180deg, #B8C3D1 0 9px, transparent 9px 20px); }
.ae-mcu .p.l { left: 0; } .ae-mcu .p.r { right: 0; }
.ae-mcu .body { position: absolute; inset: 20px; background: #15171A; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; }
.ae-mcu .body::before { content: ""; position: absolute; top: 16px; left: 16px; width: 12px; height: 12px; border-radius: 50%; background: #3A3F46; }
.ae-mcu .n { font-size: 42px; font-weight: 800; }
.ae-mcu .m { font-family: var(--ae-mono); font-size: 13px; color: #A8B3C1; margin-top: 6px; }
.ae-mcu .f { font-family: var(--ae-mono); font-size: 12px; color: #5FD3CB; margin-top: 16px; }

/* ---------- formulare ---------- */
.ae-main input[type=text], .ae-main input[type=email], .ae-main input[type=tel], .ae-main select, .ae-main textarea {
  width: 100%; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--ae-edge); border-radius: 4px; font: 15px var(--ae-sans); background: #fff;
}
.ae-main button, .ae-main input[type=submit] { min-height: 52px; padding: 0 24px; border: none; border-radius: 6px; background: var(--ae-teal); color: #fff; font: 800 16px var(--ae-sans); cursor: pointer; }

/* ---------- subsol ---------- */
.ae-footer { padding: 28px 64px 54px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; font-size: 14px; color: var(--ae-muted); border-top: 1px solid #D5DEE5; }
.ae-footer strong { display: block; color: var(--ae-ink); font-weight: 800; margin-bottom: 6px; }
.ae-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; }
@media (max-width: 860px) { .ae-footer { padding: 24px 28px 48px; } }

/* ---------- WooCommerce: culori de baza ---------- */
.woocommerce a.button, .woocommerce button.button, .woocommerce .button.alt { background: var(--ae-teal) !important; color: #fff !important; border-radius: 6px; }
.woocommerce .price { color: var(--ae-orange) !important; font-weight: 800; }

/* ---------- blocuri din continut ---------- */
.ae-hero { margin-bottom: 40px !important; }
.ae-hero .wp-block-buttons { margin-top: 28px; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 16px; }
.is-style-aelfo-chip h3 a { color: var(--ae-ink); text-decoration: none; }
.is-style-aelfo-chip h3 a::after { content: ""; position: absolute; inset: 0; }
.is-style-aelfo-chip h3 a:hover { color: var(--ae-teal); }
.is-style-aelfo-chip .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.is-style-aelfo-chip .wp-block-table th, .is-style-aelfo-chip .wp-block-table td { text-align: left; padding: 6px 4px; border-bottom: 1px solid #C9DCE9; }
.is-style-aelfo-chip ul { margin: 0; padding-left: 18px; font-size: 15px; color: var(--ae-text); }
.is-style-aelfo-module .wp-block-columns { margin-bottom: 0 !important; }
.is-style-aelfo-module .wp-block-image img { border-radius: 8px; border: 1px solid #C9D3DD; background: #fff; }
.ae-main .wp-block-columns { gap: 40px; }

/* ---------- versiunea pentru telefon (sub 640px) ---------- */
@media (max-width: 640px) {
  .ae-wrap { padding: 10px 8px 0; }
  .ae-hole { width: 20px; height: 20px; border-width: 5px; }
  .ae-hole.tl { top: 10px; left: 10px; } .ae-hole.tr { top: 10px; right: 10px; }
  .ae-hole.bl { bottom: 10px; left: 10px; } .ae-hole.br { bottom: 10px; right: 10px; }
  .ae-header { padding: 12px 40px; gap: 10px; }
  .ae-brand img { height: 42px; }
  .ae-brand small { display: none; }
  .ae-nav ul { gap: 0; padding: 6px 0 4px; width: 100%; }
  .ae-nav li { width: 100%; border-top: 1px solid #E1E7ED; }
  .ae-nav a { display: block; padding: 12px 2px; font-size: 17px; }
  .ae-nav .menu-contact > a { display: inline-block; margin: 10px 0 4px; padding: 10px 22px; }
  .ae-main { padding: 28px 16px 12px; }
  .ae-main .wp-block-group, .ae-main .wp-block-columns { margin-bottom: 36px; }
  h1 { font-size: 32px; letter-spacing: -0.8px; }
  h2 { font-size: 23px; }
  h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
  .ae-lead { font-size: 17px; }
  .ae-kicker { font-size: 12px; letter-spacing: 0.5px; }
  .wp-block-buttons > .wp-block-button { width: 100%; }
  .wp-block-buttons > .wp-block-button .wp-block-button__link { width: 100%; justify-content: center; text-align: center; }
  .ae-mcu { width: 210px; }
  .ae-mcu .n { font-size: 30px; }
  .ae-mcu .m { font-size: 11px; }
  .ae-grid, .ae-grid.small { grid-template-columns: 1fr; gap: 24px; }
  .is-style-aelfo-chip { padding: 26px 24px !important; }
  .is-style-aelfo-chip::before { inset: 10px; border-radius: 8px; }
  .is-style-aelfo-chip::after { left: 14px; right: 14px; top: -9px; bottom: -9px;
    background:
      repeating-linear-gradient(90deg, #E2BE63 0 14px, transparent 14px 26px) top / 100% 8px no-repeat,
      repeating-linear-gradient(90deg, #E2BE63 0 14px, transparent 14px 26px) bottom / 100% 8px no-repeat; }
  /* modulul: antena trece sus, orizontal, textul are toata latimea */
  .is-style-aelfo-module { padding: 104px 30px 46px !important; }
  .is-style-aelfo-module::before { top: 20px; bottom: auto; left: 50%; width: 55%; height: 56px; transform: translateX(-50%); padding: 6px 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='60' viewBox='0 0 26 60'%3E%3Cpath d='M0 6 H6.5 V54 H19.5 V6 H26' fill='none' stroke='%23D9B45A' stroke-width='4' stroke-linejoin='round'/%3E%3C/svg%3E"), linear-gradient(#6F99CC, #6F99CC);
    background-repeat: repeat-x, no-repeat; background-position: left center, 0 0; background-size: 19px 44px, 100% 100%; }
  .is-style-aelfo-module::after { left: 16px; right: 22px; top: 90px; bottom: 24px; }
  .is-style-aelfo-module h2 { font-size: 22px; }
  .ae-footer { padding: 22px 20px 44px; }
}

/* ---------- calculator PCB cu vizualizator Gerber ---------- */
.ae-pcb { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "view" "opts" "price" "note"; gap: 16px; margin-top: 18px; }
.ae-pcb-view { grid-area: view; min-width: 0; }
.ae-pcb-opts { grid-area: opts; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px 22px; align-items: start; }
.ae-pcb-price { grid-area: price; }
.ae-pcb-note { grid-area: note; margin: 0; font-size: 13px; color: var(--ae-muted); }
.ae-pcb-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 280px; padding: 28px; text-align: center; cursor: pointer;
  border: 2px dashed #8FA9C4; border-radius: 10px; background: rgba(255, 255, 255, 0.75); transition: border-color .15s, background .15s; }
.ae-pcb-drop:hover, .ae-pcb-drop.is-over { border-color: var(--ae-teal); background: #F2FBFA; }
.ae-pcb-drop[hidden], .ae-pcb-stage[hidden] { display: none; }
.ae-pcb-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ae-pcb-drop:focus-within { outline: 3px solid var(--ae-teal); outline-offset: 2px; }
.ae-pcb-drop-t { font-weight: 800; font-size: 18px; color: var(--ae-ink); }
.ae-pcb-drop-t::before { content: ""; display: block; width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 8px;
  background: radial-gradient(circle, #fff 0 5px, var(--ae-gold) 5px 9px, transparent 9px) 0 0 / 18px 18px, #2F7D4A; }
.ae-pcb-drop-s { font-size: 14px; color: var(--ae-muted); max-width: 360px; }
.ae-pcb.is-busy .ae-pcb-drop { opacity: .6; pointer-events: none; }
.ae-pcb-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ae-pcb-tabs button { min-height: 38px; padding: 0 14px; border: 1.5px solid #B6C2CF; border-radius: 4px; background: #fff; font: 700 14px var(--ae-sans); color: var(--ae-ink); cursor: pointer; }
.ae-pcb-tabs button.is-on { background: var(--ae-ink); border-color: var(--ae-ink); color: #fff; }
.ae-pcb-tabs .ae-pcb-new { border-color: transparent; background: transparent; color: var(--ae-teal); text-decoration: underline; }
.ae-pcb-svg { display: flex; align-items: center; justify-content: center; min-height: 320px; padding: 14px; border-radius: 10px; background: #26303A; }
.ae-pcb-svg.is-3d { padding: 0; overflow: hidden; display: block; min-height: 0; }
.ae-pcb-3d { display: block; width: 100%; border-radius: 10px; touch-action: none; cursor: grab; }
.ae-pcb-3d:active { cursor: grabbing; }
.ae-pcb-hint { margin: 8px 0 0; font-size: 13px; color: var(--ae-muted); }
.ae-pcb-hint[hidden] { display: none; }
.ae-pcb-turn { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.ae-main .ae-pcb-turn button { min-height: 36px; padding: 0 12px; border: 1.5px solid #B6C2CF; border-radius: 4px; background: #fff; color: var(--ae-ink); font: 700 14px var(--ae-sans); text-decoration: none; cursor: pointer; }
.ae-main .ae-pcb-turn button[data-home] { border-color: transparent; background: transparent; color: var(--ae-teal); text-decoration: underline; }
.ae-pcb-stage.is-full .ae-pcb-hint button { color: #7FD8D2; }
.ae-main .ae-pcb-hint button { min-height: 0; padding: 0; border: 0; background: none; color: var(--ae-teal); font: 700 13px var(--ae-sans); text-decoration: underline; cursor: pointer; }
.ae-pcb-svg svg { display: block; width: 100%; height: auto; max-height: 640px; }
/* ecran complet */
.ae-pcb-stage.is-full { position: fixed; inset: 0; z-index: 100000; margin: 0; padding: 12px; background: #1B2229; display: flex; flex-direction: column; }
.ae-pcb-stage.is-full .ae-pcb-tabs { flex: 0 0 auto; }
.ae-pcb-stage.is-full .ae-pcb-svg { flex: 1 1 auto; min-height: 0; height: 100%; }
.ae-pcb-stage.is-full .ae-pcb-svg svg { max-height: 100%; height: 100%; }
.ae-pcb-stage.is-full .ae-pcb-files { display: none; }
.ae-pcb-stage.is-full .ae-pcb-hint { color: #C9D3DD; flex: 0 0 auto; }
.ae-pcb-stage.is-full .ae-pcb-new { display: none; }
html.ae-noscroll, html.ae-noscroll body { overflow: hidden; }
.ae-main .ae-pcb-tabs .ae-pcb-full { margin-left: auto; }
.ae-pcb-files { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 14px; overflow-wrap: anywhere; font-size: 12px; color: var(--ae-muted); font-family: var(--ae-mono); }
.ae-pcb-files b { color: var(--ae-teal); font-weight: 700; }
.ae-pcb-files .is-skip { color: #8A94A0; }
.ae-pcb-msg { margin: 8px 0 0; font-size: 14px; font-weight: 700; color: var(--ae-teal-dark); }
.ae-pcb-msg:empty { display: none; }
.ae-pcb-msg.is-err { color: var(--ae-orange); font-weight: 700; }
.ae-pcb-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ae-pcb-opts label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--ae-text); }
.ae-pcb-opts input[type=number], .ae-pcb-opts select { width: 100%; min-height: 44px; padding: 6px 10px; border: 1.5px solid var(--ae-edge); border-radius: 4px; background: #fff; font: 600 15px var(--ae-sans); color: var(--ae-ink); }
.ae-pcb-colors { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ae-pcb-colors legend { font-size: 13px; font-weight: 700; color: var(--ae-text); margin-bottom: 6px; padding: 0; }
.ae-pcb-colors label { position: relative; flex-direction: row; cursor: pointer; }
.ae-pcb-colors input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ae-pcb-colors span { width: 34px; height: 34px; border-radius: 6px; background: var(--c); border: 2px solid #fff; box-shadow: 0 0 0 1.5px #9AA8B5; }
.ae-pcb-colors input:checked + span { box-shadow: 0 0 0 3px var(--ae-teal); }
.ae-pcb-colors input:focus-visible + span { outline: 3px solid var(--ae-orange); outline-offset: 2px; }
.ae-pcb-colors em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ae-pcb-price { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-radius: 10px; background: #fff; border: 2px solid var(--ae-orange-light); }
.ae-pcb-price p { margin: 0; }
.ae-pcb .ae-pcb-total { font-size: 34px; font-weight: 800; line-height: 1.1; color: var(--ae-orange); }
.ae-pcb .ae-pcb-detail { font-size: 14px; color: var(--ae-muted); margin-top: 4px !important; }
.ae-pcb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ae-pcb.is-offer .ae-pcb-price .ae-pcb-total { color: var(--ae-muted); }
.ae-pcb-copy { min-height: 44px; padding: 0 14px; border: 1.5px solid var(--ae-ink); border-radius: 4px; background: #fff; font: 700 14px var(--ae-sans); color: var(--ae-ink); cursor: pointer; }
.ae-main .ae-pcb-copy { background: #fff; color: var(--ae-ink); min-height: 44px; border: 1.5px solid var(--ae-ink); font: 700 14px var(--ae-sans); padding: 0 14px; }
.ae-order-box pre { white-space: pre-wrap; font: 14px/1.6 var(--ae-mono); color: var(--ae-ink); margin: 0 0 12px; }

@media (max-width: 640px) {
  .ae-pcb-drop { min-height: 200px; padding: 20px; }
  .ae-pcb-svg { min-height: 200px; padding: 8px; }
  .ae-pcb .ae-pcb-total { font-size: 30px; }
  .ae-pcb-last { grid-template-columns: 1fr; }
  .ae-pcb-colors span { width: 31px; height: 31px; }
  .ae-pcb-price { padding: 16px; }
  .ae-pcb-actions, .ae-pcb-actions > * { width: 100%; justify-content: center; }
}

/* ---------- formular de contact ---------- */
.ae-cf { display: flex; flex-direction: column; gap: 16px; margin-top: 10px; }
.ae-cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ae-cf label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 700; color: var(--ae-text); }
.ae-cf input[type=text], .ae-cf input[type=email], .ae-cf input[type=tel], .ae-cf select, .ae-cf textarea { width: 100%; min-height: 46px; padding: 9px 12px; border: 1.5px solid var(--ae-edge); border-radius: 4px; background: #fff; font: 500 16px var(--ae-sans); color: var(--ae-ink); }
.ae-cf textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.ae-cf input:focus, .ae-cf select:focus, .ae-cf textarea:focus { outline: 3px solid rgba(0, 128, 122, .35); border-color: var(--ae-teal); }
.ae-cf-files input[type=file] { padding: 10px; border: 2px dashed #8FA9C4; border-radius: 6px; background: rgba(255, 255, 255, .8); font: 500 14px var(--ae-sans); }
.ae-cf-files span { font-weight: 500; font-size: 13px; color: var(--ae-muted); }
.ae-cf .ae-cf-ok { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; }
.ae-cf-ok input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 20px; accent-color: var(--ae-teal); }
.ae-cf-send { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.ae-cf-send .ae-btn { cursor: pointer; }
.ae-cf-send .ae-btn:disabled { opacity: .7; cursor: wait; }
.ae-cf-msg { margin: 0; font-size: 15px; font-weight: 700; }
.ae-cf-msg.is-ok { color: var(--ae-teal-dark); }
.ae-cf-msg.is-err { color: var(--ae-orange); }
.ae-cf-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ae-main .ae-reveal { min-height: 0; padding: 0; border: 0; background: none; color: var(--ae-teal); font-family: inherit; font-weight: 700; font-size: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 640px) {
  .ae-cf-row { grid-template-columns: 1fr; }
  .ae-cf-send .ae-btn { width: 100%; justify-content: center; }
}
