.bz-maria {
  display: grid;
  gap: 1.25rem;
  max-width: 62rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  border-radius: 1.5rem;
  background: var(--wp--preset--color--base, #fff);
}
.bz-maria__header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}
.bz-maria__portrait {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--wp--preset--color--accent-1, #9c3158);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
}
.bz-maria__controls {
  display: grid;
  gap: .45rem;
}
.bz-maria__controls label {
  font-weight: 700;
}
.bz-maria__controls select {
  width: 100%;
  min-height: 3.2rem;
  padding: .7rem .85rem;
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  border-radius: .7rem;
  background: #fff;
  color: inherit;
}
.bz-maria__answer {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  background: var(--wp--preset--color--accent-2, #f7eef1);
}
.bz-maria__answer[hidden] {
  display: none;
}
.bz-maria__answer p {
  margin: 0;
}
.bz-maria__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
}
@media (max-width: 600px) {
  .bz-maria__header {
    grid-template-columns: 1fr;
  }
  .bz-maria__actions > * {
    width: 100%;
    text-align: center;
  }
}



.bz-maria__query-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
}
.bz-maria__query-row input {
  min-height: 50px;
  padding: .8rem 1rem;
  border: 1px solid var(--bz-ink);
  border-radius: 0;
  background: #fff;
  color: var(--bz-ink);
}
.bz-maria__query-row button {
  min-height: 50px;
  padding: .8rem 1rem;
  border: 2px solid var(--bz-ink);
  border-radius: 0;
  background: var(--bz-ink);
  color: #fff;
  font: 800 .72rem/1 "Fira Code", monospace;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.bz-maria__query-hint {
  margin: .55rem 0 0;
  color: var(--bz-muted, #6d665e);
  font-size: .86rem;
}
.bz-maria__divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1rem 0;
  color: var(--bz-muted, #6d665e);
  font: 700 .68rem/1 "Fira Code", monospace;
  text-transform: uppercase;
}
.bz-maria__divider::before,
.bz-maria__divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--bz-line, #d8d1c8);
}
.bz-maria__verified-results {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--bz-line, #d8d1c8);
  background: #fff;
}
.bz-maria__product-results {
  display: grid;
  gap: .75rem;
}
.bz-maria__product-result {
  padding: .85rem 0;
  border-bottom: 1px solid var(--bz-line, #d8d1c8);
}
.bz-maria__product-result:last-child { border-bottom: 0; }
.bz-maria__product-result h3 { margin: 0 0 .35rem; font-size: 1rem; }
.bz-maria__product-result p { margin: 0 0 .35rem; }
.bz-maria__product-result a { font-weight: 750; }
@media (max-width: 640px) {
  .bz-maria__query-row { grid-template-columns: 1fr; }
}

.bz-maria {
  position: relative;
  overflow: hidden;
  border: 3px solid #1446d8;
  background:
    radial-gradient(circle at 92% 8%, rgb(255 61 141 / 22%) 0 8%, transparent 8.5%),
    radial-gradient(circle at 84% 17%, rgb(20 70 216 / 16%) 0 5%, transparent 5.5%),
    #fff8e8;
  box-shadow: 10px 10px 0 #ff3d8d;
}
.bz-maria__portrait {
  border: 3px solid #1446d8;
  background: #ff3d8d;
  box-shadow: 5px 5px 0 #1446d8;
}
.bz-maria__query-row button,
.bz-maria .wp-element-button {
  border: 2px solid #1446d8;
  border-radius: 999px;
  background: #1446d8;
  color: #fff;
  box-shadow: 4px 4px 0 #ff3d8d;
}
.bz-maria__query-row button:hover,
.bz-maria__query-row button:focus-visible,
.bz-maria .wp-element-button:hover,
.bz-maria .wp-element-button:focus-visible {
  background: #d41372;
}
.bz-maria__verified-results {
  border: 2px solid #1446d8;
  border-radius: 1rem;
  box-shadow: 5px 5px 0 rgb(20 70 216 / 16%);
}
.bz-maria__variants {
  display: grid;
  gap: .25rem;
  margin: .5rem 0 .75rem;
  padding-left: 1.2rem;
  color: var(--bz-muted, #5f574f);
  font-size: .88rem;
}
@media (max-width: 640px) {
  .bz-maria { box-shadow: 5px 5px 0 #ff3d8d; }
}

.bz-maria-launcher {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 3.25rem;
  padding: .45rem .85rem .45rem .45rem;
  border: 2px solid var(--bz-ink, #1d1b19);
  background: #fff;
  color: var(--bz-ink, #1d1b19);
  text-decoration: none;
  box-shadow: 0 .5rem 1.5rem rgb(0 0 0 / 12%);
}
.bz-maria-launcher__portrait {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--wp--preset--color--accent-1, #9c3158);
  color: #fff;
  font-weight: 800;
}
.bz-maria-launcher__label {
  font-weight: 800;
}
.bz-maria-launcher:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}
@media (max-width: 480px) {
  .bz-maria-launcher {
    right: max(.75rem, env(safe-area-inset-right));
    bottom: max(.75rem, env(safe-area-inset-bottom));
  }
  .bz-maria-launcher__label { font-size: .9rem; }
}

/* Maria: narrow-screen reflow, 2026-10-15 */
.page-id-1079 .bz-service__hero h1 { overflow-wrap: anywhere; }
.page-id-1079 .bz-maria,
.page-id-1079 .bz-maria__header > div,
.page-id-1079 .bz-maria__controls,
.page-id-1079 .bz-maria__query-row { min-width: 0; }
.page-id-1079 .bz-maria { max-width: 100%; box-sizing: border-box; overflow-wrap: anywhere; }
.page-id-1079 .bz-maria__query-row input,
.page-id-1079 .bz-maria__controls select { min-width: 0; width: 100%; box-sizing: border-box; }
@media (max-width: 640px) {
  .page-id-1079 .bz-maria__query-row,
  .page-id-1079 .bz-maria__header { grid-template-columns: minmax(0, 1fr); }
}

/* R23: compact help on mobile product pages; keep the native details controls. */
@media (max-width: 660px) {
  body.single-product { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  body.single-product details.bz-maria-launcher {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    min-height: 44px;
  }
  body.single-product details.bz-maria-launcher > summary .bz-maria-launcher__portrait { display: none !important; }
  body.single-product details.bz-maria-launcher > summary .bz-maria-launcher__label {
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    max-width: none;
    margin: 0;
    padding: 10px 14px;
    font-size: 0 !important;
    line-height: 1.2;
  }
  body.single-product details.bz-maria-launcher > summary .bz-maria-launcher__label strong { font-size: 14px; }
  body.single-product details.bz-maria-launcher[open] > .bz-maria-panel {
    left: 8px;
    right: 8px;
    bottom: calc(68px + env(safe-area-inset-bottom));
    width: auto;
    max-height: calc(100dvh - 100px - env(safe-area-inset-bottom));
  }
}
