/*
Theme Name: Kob-PremioBIS Child
Description: Child theme FSE baseado no Twenty Twenty-Five para o site PremioBIS.
Author: Monsenhor <filipo@kobkob.org>
Template: twentytwentyfive
Version: 1.0.86
Text Domain: premiobis-child
*/

/* Custom styles for Kob-PremioBIS */

/* Fonte (rápida e prática). Se quiser, depois migramos para fontFace no theme.json */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&display=swap');

:root{
/*  --bis-gold: #c8a24a; */
  --bis-gold: #d7a844;
/*  --bis-gold-strong: #d7b35c; */
  --bis-gold-strong: #d7a844;
  --bis-bg: #000;
/*  --bis-text: #f4f1e8; */
  --bis-text: #d7a844;
  --bis-muted: rgba(244,241,232,.85);
  --bis-border: rgba(200,162,74,.25);

  --bis-top-h: 112px;
  --bis-bottom-h: 140px;
}
:root {
    --wp--style--global--content-size: 1440px;
    --wp--style--global--wide-size: 1440px;
}

/* ══════════════════════════════════════════════════════════
   SINGLE-ROW FLUID HEADER — 768px and above
   ─────────────────────────────────────────────────────────
   All three elements (BIS logo | nav | 2027) stay on ONE
   horizontal row at every viewport width. No grid, no wrap.
   Every size scales via clamp() so nothing overflows or
   wraps at any point between 768 px and 1920 px+.
   ══════════════════════════════════════════════════════════ */
@media screen and (min-width: 768px) {
    :root {
        /* Header height tracks the logo height + top padding */
        --bis-top-h: clamp(60px, 6vw, 112px);
    }

    /* Outer header box */
    .bis-header {
        height: var(--bis-top-h) !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        padding: clamp(4px, 0.5vw, 10px) clamp(12px, 1.5vw, 24px) 0 !important;
        display: block !important;
    }

    /* Inner row: flex, never wraps, space-between, top-aligned */
    .bis-header-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: clamp(4px, 0.8vw, 12px) !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* ── BIS logo — left, fixed size, does not grow or shrink ── */
    .bis-header-row > div:first-child {
        flex: 0 0 auto !important;
        align-self: flex-start !important;
        width:  clamp(40px, 4.7vw, 90px) !important;
        height: clamp(40px, 4.7vw, 90px) !important;
        overflow: visible !important;
    }
    .bis-header-row > div:first-child img {
        width:  100% !important;
        height: 100% !important;
        display: block !important;
    }

    /* ── Nav — fills middle space, items on one line, centered ── */
    .bis-header-row .bis-nav,
    .bis-header-row nav {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        align-self: flex-start !important;
        font-size: clamp(10px, 1.2vw, 20px) !important;
        letter-spacing: .12em !important;
        justify-content: center !important;
        overflow: visible !important;
    }
    /* Force the WP nav container to never wrap and close its gap */
    .bis-header-row .bis-nav .wp-block-navigation__container,
    .bis-header-row nav .wp-block-navigation__container {
        flex-wrap: nowrap !important;
        gap: clamp(2px, 0.5vw, 8px) !important;
    }
    /* Prevent individual nav labels from breaking to a new line */
    .bis-header-row .bis-nav .wp-block-navigation-item__content,
    .bis-header-row nav .wp-block-navigation-item__content {
        white-space: nowrap !important;
        padding-inline: 0 !important;
    }

    /* ── Year "2027" — right, fixed size, does not grow or shrink ── */
    .bis-header-row > div:nth-child(3) {
        flex: 0 0 auto !important;
        align-self: flex-start !important;
        width: auto !important;
        height: auto !important;
    }
    .bis-header-row > div:nth-child(3) h2 {
        font-size: clamp(20px, 2.1vw, 40px) !important;
        margin: 0 !important;
        white-space: nowrap !important;
        line-height: 1 !important;
    }
}

/* ══════════════════════════════════════════════════════════
   MEDIUM SCREEN ADJUSTMENTS — 768px → 1440px
   ─────────────────────────────────────────────────────────
   • Footer: override the desktop negative-margin bleed trick
     that hides logos at these widths. Logos get explicit
     heights and zero margins so they always render visible.
   • Hero central image: capped so it never overflows.
   • Voting grids: fewer columns on narrower viewports.
   ══════════════════════════════════════════════════════════ */
@media screen and (min-width: 768px) and (max-width: 1440px) {
    :root {
        --bis-bottom-h: 150px;
    }

    /* ── Hero ── */
    .bis-hero-wrap {
        min-height: calc(100vh - var(--bis-top-h) - var(--bis-bottom-h));
    }
    .bis-quote { font-size: 14px; }
    div#bis-central-logo-column { padding-right: 40px; }
    #bis-central-logo {
        width: clamp(200px, 28vw, 380px) !important;
        height: auto !important;
    }

    /* ── Footer ── */
    .bis-footer {
        height: var(--bis-bottom-h) !important;
        overflow: visible !important;
    }
    .bis-footer .wp-block-columns {
        flex-wrap: nowrap !important;
        align-items: center !important;
        height: calc(var(--bis-bottom-h) - 32px) !important; /* minus sponsor bar */
    }
    .bis-footer .wp-block-column {
        margin: 0 !important;
        padding: 0 !important;
    }
    .bis-footer .wp-block-column:nth-child(2) {
        display: block !important;
    }
    /* Use height (not width) so tall-aspect logos scale correctly */
    .bis-footer img#logo-ai-footer {
        height: 70px !important;
        width: auto !important;
        margin: 0 !important;
        display: block !important;
    }
    .bis-footer img#logo-abiam-footer {
        height: 55px !important;
        width: auto !important;
        margin: 0 !important;
        display: block !important;
    }
    .bis-foot-label { font-size: 9px; }

    /* ── Inner pages ── */
    .bis-page-content { padding: clamp(24px, 4vw, 56px) 20px; }

    /* ── Voting ── */
    .bis-voting__title,
    .bis-voting h2 { font-size: clamp(28px, 3.5vw, 48px); }
    .bis-voting h3 { font-size: clamp(24px, 3vw, 40px); }
    .bis-voting__intro,
    .bis-voting__subtitle,
    .bis-voting__message { font-size: clamp(14px, 1.4vw, 18px); }
    .bis-voting__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
    .bis-voting__question-options { grid-template-columns: 1fr; }
    .bis-voting__review-list { grid-template-columns: 1fr; }
}


/* Scrollbars */
/* Container width */
::-webkit-scrollbar {
  width: 6px;
}
/* Track styling with inner shadow */
::-webkit-scrollbar-track {
  background: #000000;
  box-shadow: inset 0 0 6px rgba(256, 256, 256, 0.4);
}
/* Thumb styling with border and gradient */
::-webkit-scrollbar-thumb {
  background: #d7a844;
  border: 1px solid #d7a844;
  border-radius: 3px;
}
/* Scrollbar Corner */
::-webkit-scrollbar-corner {
  background: #0f0f0f;
}
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
}
@media (min-width: 1441px) {
  html, body {
    overflow: auto;
  }
}

/* Base */
body {
    font-family: var(--wp--preset--font-family--montserrat, Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif);
    background: var(--bis-bg);
    color: var(--bis-gold);
}
a {
    color: var(--bis-gold-strong);
    text-decoration: none;
}
a:hover,
a:focus-visible {
    color: var(--bis-gold);
}
button,
input,
select,
textarea,
.wp-block-button__link {
    font-family: inherit;
}
html,
body,
.wp-site-blocks,
.wp-block-post-content,
.entry-content,
main {
    /* background-color: var(--bis-bg) !important; */
}
/* Header */
.is-layout-constrained > .alignwide {
    max-width: 100% !important;
}
body .wp-site-blocks > .wp-block-group:not(.bis-header):not(.bis-footer):not(.bis-sponsors), body .wp-block-post-content > .wp-block-group, body main > .wp-block-group {
    background-color: #04040300 !important;
}

.wp-block-group.alignfull.has-global-padding.is-layout-constrained.wp-container-core-group-is-layout-2c3f47a0.wp-block-group-is-layout-constrained {
    margin-block-start: 0.5rem !important;
}
body .wp-site-blocks > .wp-block-group:not(.bis-header):not(.bis-footer):not(.bis-sponsors),
body .wp-block-post-content > .wp-block-group,
body main > .wp-block-group {
    background-color: var(--bis-bg) !important;
}
/* Esconde os títulos das páginas */
h1.wp-block-post-title {
    display: none;
}
body .wp-site-blocks > .wp-block-group:not(.bis-header):not(.bis-footer):not(.bis-sponsors), body .wp-block-post-content > .wp-block-group, body main > .wp-block-group {
    background-color: #04040300 !important;
}

/* Reserva espaço para header/footer fixos */
.bis-has-fixed-header-footer{
  position: relative;
  z-index: 2;
  padding-top: var(--bis-top-h);
  padding-bottom: var(--bis-bottom-h);
  max-height: 92vh;
}

/* Vídeo fundo */
.bis-video-bg{
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bis-bg) !important;
  max-width: 100% !important;
}
.bis-video-bg::after{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,.20) 0%, rgba(0,0,0,.36) 58%, rgba(0,0,0,.50) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.28) 0%, rgba(0,0,0,.12) 35%, rgba(0,0,0,.14) 65%, rgba(0,0,0,.34) 100%);
  pointer-events: none;
  z-index: 1;
}
.bis-video-poster{
  position: absolute;
  inset: 0;
  background: #0b0b0b url('/wp-content/themes/kob-premiobis-child/assets/videos/background_poster.jpg') center center / cover no-repeat;
  z-index: 0;
}
.bis-video-bg video{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  opacity: 0;
  transition: opacity .25s ease;
  z-index: 2;
}
.bis-video-bg.is-playing video{
  opacity: 1;
}

.bis-overlay{
  display: none;
}

/* ── Audio toggle button ────────────────────────────────────
   Fixed bottom-left, just above the footer sponsor bar.
   Starts in muted state (.is-muted); JS removes that class
   when the user unmutes.
   ─────────────────────────────────────────────────────────── */
#bis-audio-btn {
  position: fixed;
  bottom: calc(var(--bis-bottom-h) + 14px);
  left: 24px;
  z-index: 51;
  width: 36px;
  height: 36px;
  border: 1px solid var(--bis-border);
  border-radius: 50%;
  background: rgba(0, 0, 0, .62);
  color: var(--bis-gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .2s ease, border-color .2s ease;
}
#bis-audio-btn:hover {
  background: rgba(215, 168, 68, .18);
  border-color: var(--bis-gold-strong);
}
#bis-audio-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: none;          /* hidden by default; rules below reveal the right one */
}
/* Muted state: show speaker-off icon */
#bis-audio-btn.is-muted   .icon-muted { display: block; }
/* Unmuted state: show speaker-on icon */
#bis-audio-btn:not(.is-muted) .icon-sound { display: block; }
/* Header */
.bis-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--bis-top-h);
    z-index: 50;
    background: rgb(4 4 3);
    /* backdrop-filter: blur(6px); */
    /* border-bottom: 1px solid var(--bis-border); */
    display: block;
    align-items: center;
}
.wp-block-group.alignwide.bis-header-row.is-content-justification-space-between.is-layout-flex.wp-container-core-group-is-layout-6825c91a.wp-block-group-is-layout-flex {
    max-width: 100% !important;
    margin:auto;
}
.bis-logo,
.bis-year{
  color: var(--bis-gold-strong) !important;
  font-weight: 900 !important;
  letter-spacing: .04em !important;
  margin: 0 !important;
}
.bis-logo{ font-size: 44px; line-height: 1; }
.bis-year{ font-size: 40px; line-height: 1; }
img#logo-bis-header {
    width: 120px;
}
/* Menu */
.bis-nav{
  color: rgba(200,162,74,.95);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 20px;
}
.bis-nav .wp-block-navigation-item__label{
  opacity: .92;
}
.bis-nav .current-menu-item > .wp-block-navigation-item__content .wp-block-navigation-item__label,
.bis-nav .current-menu-ancestor > .wp-block-navigation-item__content .wp-block-navigation-item__label,
.bis-nav .current-page-ancestor > .wp-block-navigation-item__content .wp-block-navigation-item__label,
.bis-nav .wp-block-navigation-item__content[aria-current="page"] .wp-block-navigation-item__label{
  font-weight: 900;
  opacity: 1;
}
.bis-nav .wp-block-navigation-item__label:hover{
  opacity: 1;
}
.wp-block-navigation:not(.has-text-color)
  .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) {
  color: #d3a543;
}

.wp-block-navigation:not(.has-background)
  .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) {
  background-color: #000;
}
#modal-1-content > ul > li:nth-child(9) > a > span {
    font-size: 1.4em;
    font-weight: 900;
}
/* Conteúdo central */
.bis-hero-wrap{
  min-height: calc(83vh - var(--bis-top-h) - var(--bis-bottom-h));
  display: grid;
  place-items: center;
}
html.bis-home-intro .bis-hero-wrap{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.bis-quote{
  color: rgba(200,162,74,.90);
  font-size: 16px;
  line-height: 1.8;
  text-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.bis-quote strong{
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  color: rgba(200,162,74,.95);
}

.bis-hero-title{
  color: var(--bis-gold-strong) !important;
  font-weight: 900 !important;
  letter-spacing: .02em !important;
  text-shadow: 0 10px 30px rgba(0,0,0,.45);
  margin: 0;
}
.bis-hero-sub{
  color: rgba(200,162,74,.92);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 10px 30px rgba(0,0,0,.45);
}
div#bis-central-logo-column {
    padding-right: 131px;
}

/* Páginas internas */
.bis-page-shell{
  min-height: 100vh;
  max-height: none;
}
.wp-block-group.alignwide.bis-page-content.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained {
    height: 69vh !important;
    width: 101vw;
    overflow: auto;
    /* margin: 0 !important; */
    padding: 0 !important;
    margin: auto !important;
}
.bis-page-content{
  width: min(100%, 980px);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 88px) 24px;
  color: var(--bis-gold-strong);
  text-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.bis-page-content :where(h1, h2, h3, h4, h5, h6){
  color: var(--bis-gold-strong);
}
.bis-page-content :where(p, li){
  color: var(--bis-gold-strong);
}
.bis-page-content :where(a, strong, em, figcaption){
  color: var(--bis-gold-strong);
}
.bis-page-content .wp-block-post-content{
  color: var(--bis-gold-strong);
  /* margin-bottom: 100px !important; */
}
.bis-page-content .wpforms-container{
  --wpforms-field-background-color: rgba(5, 5, 5, .58);
  --wpforms-field-border-color: rgba(215, 179, 92, .65);
  --wpforms-field-border-color-spare: rgba(215, 179, 92, .65);
  --wpforms-field-text-color: var(--bis-gold-strong);
  --wpforms-field-menu-color: rgba(5, 5, 5, .95);
  --wpforms-label-color: var(--bis-gold-strong);
  --wpforms-label-sublabel-color: rgba(215, 179, 92, .82);
  --wpforms-button-background-color: var(--bis-gold-strong);
  --wpforms-button-border-color: var(--bis-gold-strong);
  --wpforms-button-text-color: var(--bis-bg);
  --wpforms-page-break-color: var(--bis-gold-strong);
  color: var(--bis-gold-strong);
}
.bis-page-content .wpforms-container :where(label, legend, .wpforms-field-label, .wpforms-field-sublabel){
  color: var(--bis-gold-strong) !important;
}
.bis-page-content .wpforms-container :where(input, textarea, select){
  background-color: rgba(5, 5, 5, .58) !important;
  border-color: rgba(215, 179, 92, .65) !important;
  color: var(--bis-gold-strong) !important;
}
.bis-page-content .wpforms-container :where(input, textarea, select):focus{
  border-color: var(--bis-gold-strong) !important;
  box-shadow: 0 0 0 1px var(--bis-gold-strong) !important;
}
.bis-page-content .wpforms-container .wpforms-submit{
  background-color: var(--bis-gold-strong) !important;
  border-color: var(--bis-gold-strong) !important;
  color: var(--bis-bg) !important;
  font-family: inherit;
  font-weight: 900;
  text-transform: uppercase;
}
.bis-page-content .wpforms-container .wpforms-submit:hover,
.bis-page-content .wpforms-container .wpforms-submit:focus-visible{
  background-color: var(--bis-gold) !important;
  border-color: var(--bis-gold) !important;
  color: var(--bis-bg) !important;
}

.page-id-25296 .bis-page-content :where(a, strong, em, figcaption) {
    color: #060102;
}
.page-id-25296 .wp-block-button__link.wp-element-button:hover {
    color: var(--bis-gold);
}

/* Footer */
.bis-footer{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--bis-bottom-h);
  z-index: 50;
  background: rgb(0,0,0);
/*  
  background: rgba(0,0,0,.50);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--bis-border);
  */
  display: block;
}
.bis-sponsors {
    background: #d7a844;
    color: #111;
}
.bis-sponsor-marquee {
    max-width: 100% !important;
    max-height: 28px !important;
}
.bis-foot-label{
  color: rgba(200,162,74,.85);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 10px;
}
img#logo-ai-footer {
    width: 166px;
    margin-top: -101px;
    margin-bottom: -81px;
}
img#logo-abiam-footer {
    width: 129px;
    margin-top: -61px;
    margin-bottom: -26px;
    margin-right: -30px;
}

/* TABS tool */
.gutena-tabs-block>.gutena-tabs-tab>.gutena-tab-title:hover {
    background: #000;
    color: #d7a844;
}

@media (max-width: 767px){
  :root{
    --bis-top-h: 96px;
    --bis-bottom-h: 170px;
  }
  .bis-logo{ font-size: 36px; }
  .bis-year{ font-size: 34px; }

  /* Keep footer logos side-by-side on mobile - hide middle column */
  .bis-footer .wp-block-columns {
    flex-wrap: nowrap !important;
  }
  .bis-footer .wp-block-column {
    flex-basis: auto !important;
    width: auto !important;
  }
  .bis-footer .wp-block-column:nth-child(2) {
    display: none;
  }

  /* Stack hero columns on mobile */
  .bis-hero-wrap .wp-block-columns {
    flex-direction: column !important;
    align-items: center !important;
  }
  .bis-hero-wrap .wp-block-column {
    width: 100% !important;
    flex-basis: auto !important;
    text-align: center !important;
  }
  .bis-hero-wrap .has-text-align-right {
    text-align: center !important;
  }
  div#bis-central-logo-column {
    padding-right: 0 !important;
    order: -1;
  }
  #bis-central-logo {
    width: min(280px, 70vw) !important;
  }
  .bis-hero-wrap {
    min-height: auto;
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .bis-has-fixed-header-footer {
    max-height: none;
  }

  /* Inner pages: remove fixed height/width so content scrolls naturally */
  .wp-block-group.alignwide.bis-page-content.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained {
    height: auto !important;
    width: 100% !important;
  }

  /* Make wide tables scroll horizontally instead of overflowing */
  .bis-page-content .wp-block-table {
    overflow-x: auto;
    display: block;
  }
  .bis-page-content .wp-block-table table {
    min-width: 480px;
  }
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce){
  .bis-video-bg{ background: #0b0b0b; }
}

/* KobVoting overrides */
.bis-voting,
.bis-voting * {
  box-sizing: border-box;
}

.bis-voting {
  --bis-panel: rgba(58, 58, 58, .94);
  --bis-panel-soft: rgba(34, 34, 34, .92);
  --bis-line: rgba(215, 179, 92, .45);
  --bis-green: #15a84f;
  --bis-green-dark: #0f5e34;
  width: min(100%, 1240px);
  margin: -50px 0 0 0 !important;
  padding: 0;
  background: #00000000 !important;
  color: var(--bis-gold-strong);
  font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.bis-voting__form {
  position: relative;
  min-height: min(760px, calc(100vh - var(--bis-top-h) - 40px));
  background: #00000000 !important;
}

.bis-voting__step {
  display: none !important;
  background: #00000000 !important;
}

.bis-voting__step.is-active {
  display: flex !important;
}

.bis-voting .is-hidden {
  display: none !important;
}

.bis-voting__welcome,
.bis-voting__selector {
  min-height: min(660px, calc(100vh - var(--bis-top-h) - var(--bis-bottom-h)));
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.bis-voting__logo {
  display: block;
  width: min(310px, 54vw);
  height: auto;
  margin: 0 auto 8px;
  object-fit: contain;
}

.bis-voting__logo--small {
  width: min(250px, 48vw);
}

.bis-voting__logo--tiny {
  width: 104px;
}

.bis-voting__title,
.bis-voting h2,
.bis-voting h3 {
  margin: 0;
  color: var(--bis-gold-strong);
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.bis-voting__title,
.bis-voting h2 {
  font-size: clamp(34px, 4.2vw, 58px);
}

.bis-voting h3 {
  font-size: clamp(30px, 3.7vw, 48px);
}

.bis-voting__intro,
.bis-voting__subtitle,
.bis-voting__message {
  margin: 0;
  color: rgba(215, 179, 92, .88);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.45;
}

.bis-voting__voter {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(480px, 100%);
  margin: 8px auto 0;
}

.bis-voting__voter:empty {
  display: none;
}

.bis-voting__voter label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  color: rgba(215, 179, 92, .88);
  font-weight: 700;
}

.bis-voting__voter label span {
  min-width: 90px;
  flex-shrink: 0;
  text-align: right;
}

.bis-voting__confirm-check {
  display: grid;
  gap: 7px;
  width: 100%;
  border: 1px solid rgba(215, 179, 92, .42);
  border-radius: 0px;
  background: rgba(5, 5, 5, .58);
  color: rgba(215, 179, 92, .88);
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  text-align: left;
  font-weight: 700;
}

.bis-voting__voter input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(215, 179, 92, .42);
  border-radius: 0px;
  background: rgba(5, 5, 5, .58);
  color: var(--bis-gold-strong);
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
}

.bis-voting__progress {
  position: fixed;
  left: 16px;
  top: calc(var(--bis-top-h) + 16px);
  z-index: 7;
  width: min(290px, calc(100vw - 32px));
  color: rgba(215, 179, 92, .78);
  font-size: 13px;
  font-weight: 700;
}

.bis-voting__progress::after {
  content: "";
  display: block;
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bis-gold-strong), rgba(215, 179, 92, .75));
}

.bis-voting__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
  margin-top: 26px;
}

.bis-voting__card,
.bis-voting__question-option,
.bis-voting__options label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(215, 179, 92, .28);
  border-radius: 0px;
  background: #00000000;
  color: var(--bis-gold-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 14px 30px rgba(0, 0, 0, .28);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.bis-voting__card {
  min-height: 122px;
  flex-direction: column;
  gap: 8px;
  padding: 22px 18px;
}

.bis-voting__card:hover,
.bis-voting__card:has(input:checked),
.bis-voting__question-option:has(input:checked),
.bis-voting__options label:has(input:checked) {
  border-color: var(--bis-gold-strong);
  background: linear-gradient(145deg, rgba(118, 98, 38, .72), rgba(38, 37, 29, .95));
}

.bis-voting__card:active,
.bis-voting__question-option:active,
.bis-voting__options label:active {
  transform: translateY(1px);
}

.bis-voting__card input,
.bis-voting__question-option input,
.bis-voting__options input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.bis-voting__card-icon {
  width: 30px;
  height: 30px;
  border-radius: 5px 5px 2px 2px;
  background: var(--bis-gold-strong);
  clip-path: polygon(0 26%, 28% 26%, 28% 0, 48% 0, 48% 26%, 78% 16%, 78% 32%, 100% 26%, 100% 100%, 0 100%);
}

.bis-voting__card-title {
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.bis-voting__card-count {
  display: none;
}

.bis-voting__area-description {
  display: none;
}

.bis-voting__category-groups {
  width: min(980px, 100%);
  margin: 20px auto 0;
}

.bis-voting__category-group {
  margin: 0 0 22px;
}

.bis-voting__area-title {
  margin: 0 0 16px;
  color: var(--bis-gold-strong);
  font-weight: 900;
  text-transform: none;
  text-align: left;
}

.bis-voting__question-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bis-voting__question-option {
  min-height: 72px;
  padding: 16px 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.bis-voting__question-step {
  flex-direction: column;
  gap: 22px;
  width: min(980px, 100%);
  margin: 0 auto;
  padding-top: 30px;
}

.bis-voting__question,
.bis-voting__review,
.bis-voting__confirm,
.bis-voting-results__area,
.bis-voting-results__category,
.bis-voting-ranking__item {
  border: 1px solid rgba(215, 179, 92, .22);
  border-radius: 8px;
  background: var(--bis-panel);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .38);
}

.bis-voting__question {
  padding: clamp(24px, 4vw, 36px);
}

.bis-voting__question.has-error {
  border-color: #ffca52;
  background: var(--bis-panel);
}

.bis-voting__question-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.bis-voting__question-header span {
  color: rgba(215, 179, 92, .78);
  white-space: nowrap;
}

.bis-voting__question h3 {
  max-width: 900px;
  margin-bottom: 20px;
  text-align: left;
  font-size: clamp(28px, 3.3vw, 42px);
  font-weight: 500;
  text-transform: uppercase;
}

.bis-voting__question-prompt {
  margin: 0 0 24px;
  color: var(--bis-gold-strong);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.3;
  font-weight: 900;
}

.bis-voting__options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.bis-voting__options label {
  min-height: 60px;
  padding: 15px 20px;
  font-weight: 800;
}

.bis-voting__options span::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 10px;
  border-radius: 50%;
  background: #fff;
  vertical-align: -1px;
}

.bis-voting__options label:has(input:checked) span::before {
  background: var(--bis-gold-strong);
  box-shadow: inset 0 0 0 3px #fff;
}

.bis-voting__nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.bis-voting__nav--bar {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--bis-line);
}

.bis-voting__button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 13px 28px;
  color: #111;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.bis-voting__button--gold {
  background: var(--bis-gold-strong);
}

.bis-voting__button--muted {
  background: rgba(215, 179, 92, .22);
  color: var(--bis-gold-strong);
}

.bis-voting__button--green {
  background: var(--bis-green);
  color: #fff;
}

.bis-voting__button:disabled {
  opacity: .6;
  cursor: progress;
}

.bis-voting__review,
.bis-voting__confirm {
  flex-direction: column;
  align-items: center;
  width: min(900px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
}

.bis-voting__review h3,
.bis-voting__confirm h3 {
  margin-top: 4px;
  font-size: clamp(28px, 3.3vw, 40px);
}

.bis-voting__review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin: 30px 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.bis-voting__review-area {
  grid-column: 1 / -1;
  color: var(--bis-gold-strong);
  font-weight: 900;
}

.bis-voting__review-area-list {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bis-voting__review-area-list li {
  min-height: 88px;
  border: 1px solid var(--bis-green);
  border-radius: 8px;
  background: var(--bis-green-dark);
  padding: 18px;
  color: var(--bis-gold-strong);
  font-weight: 800;
  line-height: 1.45;
}

.bis-voting__feedback {
  min-height: 26px;
  margin-top: 16px;
  color: rgba(215, 179, 92, .9);
  text-align: center;
  font-weight: 800;
}

.bis-voting__feedback.is-error {
  color: #ffca52;
}

.bis-voting__feedback.is-success {
  color: #38d77a;
}

.bis-voting-results,
.bis-voting-ranking {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.bis-voting-results__area,
.bis-voting-results__category {
  padding: clamp(22px, 3vw, 34px);
}

.bis-voting-results__category-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.bis-voting-results__category h4 {
  margin: 0;
  color: var(--bis-gold-strong);
  font-size: clamp(20px, 2vw, 28px);
  text-transform: uppercase;
}

.bis-voting-results__total {
  margin: 0;
  color: var(--bis-gold-strong);
  font-weight: 900;
  white-space: nowrap;
}

.bis-voting-results__table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
}

.bis-voting-results__table th,
.bis-voting-results__table td {
  border-bottom: 1px solid rgba(215, 179, 92, .22);
  padding: 14px 16px;
  text-align: left;
}

.bis-voting-results__table th {
  background: rgba(215, 179, 92, .18);
  color: var(--bis-gold-strong);
  text-transform: uppercase;
}

.bis-voting-ranking__list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bis-voting-ranking__item {
  display: grid;
  grid-template-columns: 70px 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
}

.bis-voting-ranking__position {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--bis-gold-strong);
  color: #111;
  font-weight: 900;
}

.bis-voting-ranking__product {
  font-weight: 900;
  text-transform: uppercase;
}

.bis-voting-ranking__category,
.bis-voting-ranking__company {
  color: rgba(215, 179, 92, .75);
}

@media (max-width: 860px) {
  .bis-voting {
    padding: 20px 16px 32px;
  }

  .bis-voting__form {
    min-height: auto;
  }

  .bis-voting__progress {
    position: static;
    width: 100%;
    margin-bottom: 16px;
  }

  .bis-voting__welcome,
  .bis-voting__selector {
    min-height: auto;
    justify-content: flex-start;
  }

  .bis-voting__voter,
  .bis-voting__cards,
  .bis-voting__question-options,
  .bis-voting__review-list {
    grid-template-columns: 1fr;
  }

  .bis-voting__card {
    min-height: 72px;
    padding: 18px;
  }

  .bis-voting__question-step {
    padding-top: 0;
  }

  .bis-voting__question-header,
  .bis-voting-results__category-header {
    flex-direction: column;
  }

  .bis-voting__options {
    display: grid;
    grid-template-columns: 1fr;
  }

  .bis-voting__button {
    width: 100%;
  }

  .bis-voting-ranking__item {
    grid-template-columns: 54px 1fr;
  }

  .bis-voting-ranking__category,
  .bis-voting-ranking__company {
    grid-column: 2;
  }
}

:root :where(.wp-element-button, .wp-block-button__link) {
    background-color: var(--wp--preset--color--bis-gold-strong);
    border-radius: 4px;
    border-width: 0;
    color: var(--wp--preset--color--bis-black);
    font-family: var(--wp--preset--font-family--open-sans);
    font-size: var(--wp--preset--font-size--medium);
    font-style: inherit;
    font-weight: 800;
    letter-spacing: inherit;
    line-height: inherit;
    padding-top: 5px;
    padding-right: 2.25rem;
    padding-bottom: 5px;
    padding-left: 2.25rem;
    text-decoration: none;
    text-transform: inherit;
    border-radius: 0 !important;
}
