/*
  =========================================================
  Hartmidia Experiência de Produto
  Módulo: Barra Mobile de Compra V2
  Projeto: Black White Sports 
  Copyright © Hartmidia Digital. Todos os direitos reservados.
  =========================================================
*/

/* =========================================================
   ESCOPO GERAL
   ========================================================= */

#hmd-bw-mobile-options-root,
#hmd-bw-mobile-options-root *,
#hmd-bw-mobile-qty-control,
#hmd-bw-mobile-qty-control *,
.area-compra-btn.area-compra-float.hmd-bw-buybar-v2,
.area-compra-btn.area-compra-float.hmd-bw-buybar-v2 * {
  box-sizing: border-box;
}

body.hmd-bw-buybar-v2-visible {
  padding-bottom: calc(168px + env(safe-area-inset-bottom)) !important;
}

body.hmd-bw-buybar-v2-panel-open {
  padding-bottom: calc(360px + env(safe-area-inset-bottom)) !important;
}

/* =========================================================
   REGRAS MOBILE
   ========================================================= */

@media (max-width: 767px) {
  /*
    Pré-hide:
    Esconde a barra nativa da Magazord no mobile até o gatilho do preço aparecer.
    A classe é aplicada rapidamente pelo JS global.
  */
  html.hmd-bw-buybar-v2-prehide:not(.hmd-bw-buybar-v2-triggered) .area-compra-btn.area-compra-float {
    transform: translateY(118%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition:
      transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 260ms ease !important;
    will-change: transform, opacity;
  }

  /*
    Depois que a barra V2 está ativa, a escolha acontece somente nela.
    Os elementos originais continuam no DOM para a Magazord funcionar.
  */
  body.hmd-bw-buybar-v2-active .variacao-area.variacao-area-1.variacao-area-id-1,
  body.hmd-bw-buybar-v2-active .variacao-area.variacao-area-2.variacao-area-id-2,
  body.hmd-bw-buybar-v2-active .area-comprar > .quantidade {
    display: none !important;
  }

  .area-comprar.hmd-bw-area-comprar-v2 > .quantidade {
    display: none !important;
  }

  .area-compra-btn.area-compra-float.hmd-bw-buybar-v2 {
    display: grid !important;
    grid-template-columns: 112px minmax(0, 1fr) !important;
    grid-template-areas:
      "options options"
      "qty buy" !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 112px !important;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) !important;
    background: #ffffff !important;
    border-top: 1px solid rgba(0, 0, 0, 0.10) !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.16) !important;
    z-index: 999998 !important;

    transform: translateY(118%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition:
      transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 260ms ease !important;
    will-change: transform, opacity;
  }

  .area-compra-btn.area-compra-float.hmd-bw-buybar-v2.hmd-bw-buybar-v2-visible {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .area-compra-btn.area-compra-float.hmd-bw-buybar-v2 #hmd-bw-mobile-options-root {
    grid-area: options !important;
  }

  .area-compra-btn.area-compra-float.hmd-bw-buybar-v2 #hmd-bw-mobile-qty-control {
    grid-area: qty !important;
  }

  .area-compra-btn.area-compra-float.hmd-bw-buybar-v2 .button-buy {
    grid-area: buy !important;
    width: 100% !important;
    min-height: 50px !important;
    height: 50px !important;
    border-radius: 10px !important;
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    text-align: center !important;
    white-space: normal !important;
  }

  .area-compra-btn.area-compra-float.hmd-bw-buybar-v2 > button,
  .area-compra-btn.area-compra-float.hmd-bw-buybar-v2 > a,
  .area-compra-btn.area-compra-float.hmd-bw-buybar-v2 > [role="button"] {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* =========================================================
   DESKTOP / TABLET
   ========================================================= */

@media (min-width: 768px) {
  #hmd-bw-mobile-options-root,
  #hmd-bw-mobile-qty-control {
    display: none !important;
  }

  body.hmd-bw-buybar-v2-visible,
  body.hmd-bw-buybar-v2-panel-open {
    padding-bottom: 0 !important;
  }
}

/* =========================================================
   RESUMO COR / TAMANHO
   ========================================================= */

#hmd-bw-mobile-options-root {
  width: 100%;
  font-family: inherit;
  color: #111111;
}

#hmd-bw-mobile-options-root .hmd-bw-options-summary {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  background: #f8f8f8;
  color: #111111;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

#hmd-bw-mobile-options-root .hmd-bw-options-summary-left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 800;
  overflow: hidden;
}

#hmd-bw-mobile-options-root .hmd-bw-options-summary-thumb {
  width: 28px;
  min-width: 28px;
  height: 36px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #dddddd;
  background: #f2f2f2;
}

#hmd-bw-mobile-options-root .hmd-bw-options-summary-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

#hmd-bw-mobile-options-root .hmd-bw-options-summary-texts {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

#hmd-bw-mobile-options-root .hmd-bw-options-summary-texts span {
  white-space: nowrap;
}

#hmd-bw-mobile-options-root .hmd-bw-options-summary-action {
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  color: #111111;
  opacity: 0.68;
  white-space: nowrap;
}

/* =========================================================
   PAINEL ABERTO / FECHADO
   ========================================================= */

#hmd-bw-mobile-options-root .hmd-bw-options-panel {
  max-height: 0;
  margin-top: 0;
  padding: 0 10px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  border: 1px solid transparent;
  border-radius: 12px;
  background: #ffffff;
  transition:
    max-height 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 220ms ease,
    padding-top 220ms ease,
    padding-bottom 220ms ease,
    border-color 220ms ease;
  will-change: max-height, opacity, transform;
}

#hmd-bw-mobile-options-root.is-open .hmd-bw-options-panel {
  max-height: 410px;
  margin-top: 8px;
  padding: 10px;
  opacity: 1;
  transform: translateY(0);
  border-color: #e9e9e9;
}

#hmd-bw-mobile-options-root .hmd-bw-options-section + .hmd-bw-options-section {
  margin-top: 12px;
}

#hmd-bw-mobile-options-root .hmd-bw-options-label {
  margin: 0 0 8px;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666666;
}

/* =========================================================
   MENSAGENS DE VALIDAÇÃO
   ========================================================= */

#hmd-bw-mobile-options-root .hmd-bw-size-required-message {
  display: none;
  margin: 0 0 10px;
  padding: 9px 10px;
  border: 1px solid #dc2626;
  border-radius: 10px;
  background: #fff5f5;
  color: #991b1b;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 900;
  text-align: center;
}

#hmd-bw-mobile-options-root.hmd-bw-size-required .hmd-bw-size-required-message {
  display: block;
}

#hmd-bw-mobile-options-root .hmd-bw-size-status-message {
  margin: 0 0 10px;
  padding: 9px 10px;
  border: 1px solid #f59e0b;
  border-radius: 10px;
  background: #fffbeb;
  color: #92400e;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 900;
  text-align: center;
}

#hmd-bw-mobile-options-root.hmd-bw-size-required .hmd-bw-size-card:not(.is-disabled):not(.is-selected) {
  animation: hmdBwSizeAttention 680ms ease-in-out 2;
}

@keyframes hmdBwSizeAttention {
  0%, 100% {
    transform: translateY(0);
    border-color: #dddddd;
  }

  50% {
    transform: translateY(-2px);
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.25);
  }
}

/* =========================================================
   CARDS DE COR
   ========================================================= */

#hmd-bw-mobile-options-root .hmd-bw-color-list {
  display: flex;
  align-items: stretch;
  gap: 9px;
  overflow-x: auto;
  padding: 2px 2px 7px;
  -webkit-overflow-scrolling: touch;
}

#hmd-bw-mobile-options-root .hmd-bw-color-list::-webkit-scrollbar {
  height: 4px;
}

#hmd-bw-mobile-options-root .hmd-bw-color-list::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 999px;
}

#hmd-bw-mobile-options-root .hmd-bw-color-card {
  position: relative;
  width: 74px;
  min-width: 74px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  padding: 4px;
  border: 2px solid var(--hmd-card-border, #dddddd);
  border-radius: 12px;
  background: #ffffff;
  color: #111111;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

#hmd-bw-mobile-options-root .hmd-bw-color-card.is-selected {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px #dc2626;
}

#hmd-bw-mobile-options-root .hmd-bw-color-card.is-disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

#hmd-bw-mobile-options-root .hmd-bw-color-card.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

#hmd-bw-mobile-options-root .hmd-bw-color-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #f2f2f2;
}

#hmd-bw-mobile-options-root .hmd-bw-color-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

#hmd-bw-mobile-options-root .hmd-bw-color-card-name {
  display: block;
  min-height: 14px;
  font-size: 10px;
  line-height: 1.15;
  font-weight: 900;
  text-align: center;
  color: #111111;
  word-break: break-word;
}

#hmd-bw-mobile-options-root .hmd-bw-color-card-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 19px;
  height: 19px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #111111;
  background: #ffffff;
  color: #111111;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
}

#hmd-bw-mobile-options-root .hmd-bw-color-card.is-selected .hmd-bw-color-card-check {
  display: flex;
}

/* =========================================================
   TAMANHOS
   ========================================================= */

#hmd-bw-mobile-options-root .hmd-bw-size-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

#hmd-bw-mobile-options-root .hmd-bw-size-card {
  position: relative;
  min-width: 42px;
  min-height: 36px;
  padding: 8px 12px;
  border: 2px solid #dddddd;
  border-radius: 10px;
  background: #ffffff;
  color: #111111;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  overflow: hidden;
}

#hmd-bw-mobile-options-root .hmd-bw-size-card.is-selected {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px #dc2626;
}

#hmd-bw-mobile-options-root .hmd-bw-size-card.is-disabled {
  opacity: 0.52;
  background: #f3f3f3;
  color: #777777;
  border-color: #d6d6d6;
  cursor: not-allowed;
  pointer-events: none;
}

#hmd-bw-mobile-options-root .hmd-bw-size-card.is-disabled::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  top: 50%;
  height: 1px;
  background: #777777;
  transform: rotate(-18deg);
  transform-origin: center;
}

#hmd-bw-mobile-options-root .hmd-bw-options-empty {
  font-size: 11px;
  line-height: 1.3;
  color: #777777;
}

/* =========================================================
   QUANTIDADE
   ========================================================= */

#hmd-bw-mobile-qty-control {
  width: 112px;
  min-width: 112px;
  height: 50px;
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  font-family: inherit;
}

#hmd-bw-mobile-qty-control .hmd-bw-mobile-qty-btn {
  width: 32px;
  height: 50px;
  border: 0;
  background: #f4f4f4;
  color: #111111;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

#hmd-bw-mobile-qty-control .hmd-bw-mobile-qty-btn:active {
  background: #e8e8e8;
}

#hmd-bw-mobile-qty-control .hmd-bw-mobile-qty-input {
  width: 100%;
  height: 50px;
  border: 0;
  background: #ffffff;
  color: #111111;
  text-align: center;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  outline: none;
  appearance: textfield;
  -moz-appearance: textfield;
}

#hmd-bw-mobile-qty-control .hmd-bw-mobile-qty-input::-webkit-outer-spin-button,
#hmd-bw-mobile-qty-control .hmd-bw-mobile-qty-input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}


/* =========================================================
   GALERIA DE IMAGENS
   ========================================================= */


/* =========================================================
   Estado global do modal
   ========================================================= */

body.hm-pdp-modal-aberto {
  overflow: hidden !important;
}

/* =========================================================
   Topo do produto reconstruído
   ========================================================= */

.area-top-produto.hm-pdp-topo-grid-ativo {
  position: relative !important;
}

.area-top-produto.hm-pdp-topo-grid-ativo #block-imagem.hm-pdp-galeria-original-oculta {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* =========================================================
   Galeria em grid 3:4
   ========================================================= */

#hm-pdp-galeria-grid {
  width: 100%;
  min-width: 0;
}

.hm-pdp-galeria-grid__lista {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: 100%;
}

.hm-pdp-galeria-grid__item {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #f2f2f2;
  cursor: zoom-in;
}

.hm-pdp-galeria-grid__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.hm-pdp-galeria-grid__item:hover .hm-pdp-galeria-grid__img {
  transform: scale(1.035);
}

.hm-pdp-galeria-grid__item:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 3px;
}

/* =========================================================
   Desktop
   ========================================================= */

@media (min-width: 1024px) {
  .area-top-produto.hm-pdp-topo-grid-ativo {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 410px !important;
    gap: 34px !important;
    align-items: start !important;
  }

  #hm-pdp-galeria-grid {
    grid-column: 1;
  }

  .hm-pdp-galeria-grid__lista {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  #shopping-section.hm-pdp-lateral-compra-fixa {
    grid-column: 2;
    position: sticky !important;
    top: 96px !important;
    align-self: start !important;
    width: 410px !important;
    min-width: 410px !important;
    max-width: 410px !important;
    z-index: 20;
  }
}

/* =========================================================
   Tablet e mobile
   ========================================================= */

@media (max-width: 1023px) {
  .area-top-produto.hm-pdp-topo-grid-ativo {
    display: block !important;
  }

  #hm-pdp-galeria-grid {
    margin-bottom: 22px;
  }

  .hm-pdp-galeria-grid__lista {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hm-pdp-galeria-grid__item {
    border-radius: 14px;
  }

  #shopping-section.hm-pdp-lateral-compra-fixa {
    position: relative !important;
    top: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}

/* =========================================================
   Modal fullscreen
   ========================================================= */

#hm-pdp-modal-galeria {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 98px;
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  color: #111111;
}

.hm-pdp-modal__scroller {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding: 28px 28px 80px;
}

.hm-pdp-modal__lista {
  width: min(940px, calc(100vw - 170px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hm-pdp-modal__item {
  width: 100%;
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  background: #f2f2f2;
  border-radius: 18px;
}

.hm-pdp-modal__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   Miniaturas laterais do modal — desktop/tablet
   ========================================================= */

.hm-pdp-modal__thumbs {
  position: relative;
  height: 100vh;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.hm-pdp-modal__thumbs-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 70px 12px 22px;
}

.hm-pdp-modal__thumb {
  width: 58px;
  height: 78px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background: #f2f2f2;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.hm-pdp-modal__thumb.is-active {
  opacity: 1;
  border-color: #111111;
  transform: scale(1.04);
}

.hm-pdp-modal__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   Botão fechar
   ========================================================= */

.hm-pdp-modal__fechar {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1000001;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, background 180ms ease;
}

.hm-pdp-modal__fechar:hover {
  transform: scale(1.05);
  background: #000000;
}

.hm-pdp-modal__fechar:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 3px;
}

/* =========================================================
   Modal no mobile: sem miniaturas
   ========================================================= */

@media (max-width: 767px) {
  #hm-pdp-modal-galeria {
    grid-template-columns: 1fr;
  }

  .hm-pdp-modal__scroller {
    padding: 62px 12px 28px;
  }

  .hm-pdp-modal__lista {
    width: 100%;
    gap: 14px;
  }

  .hm-pdp-modal__item {
    border-radius: 14px;
  }

  .hm-pdp-modal__thumbs {
    display: none !important;
  }

  .hm-pdp-modal__fechar {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
  }
}

* =========================================================
   GERADOR DE TABELAS DE MEDIDAS
  =========================================================
*/

/* =========================================================
   ESCOPO GERAL DO COMPONENTE
   ========================================================= */

#hmd-bw-measures-v2-widget,
#hmd-bw-measures-v2-widget *,
#hmd-bw-measures-v2-inline,
#hmd-bw-measures-v2-inline *,
#hmd-bw-measures-v2-modal,
#hmd-bw-measures-v2-modal * {
  box-sizing: border-box;
}

#button-measure-table.hmd-bw-measures-v2-original-hidden {
  display: none !important;
}

html.hmd-bw-measures-v2-lock,
body.hmd-bw-measures-v2-lock {
  overflow: hidden !important;
}

/* =========================================================
   BOTÃO DESKTOP / TABLET
   ========================================================= */

#hmd-bw-measures-v2-widget {
  width: 100%;
  margin: 10px 0 18px;
  font-family: inherit;
}

#hmd-bw-measures-v2-widget .hmd-bw-measures-v2-btn {
  width: 100%;
  max-width: 360px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border: 1px solid #111111;
  border-radius: 8px;
  background: #111111;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
  appearance: none;
  -webkit-appearance: none;
}

#hmd-bw-measures-v2-widget .hmd-bw-measures-v2-btn:hover {
  background: #000000;
  border-color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

#hmd-bw-measures-v2-widget .hmd-bw-measures-v2-btn:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.25);
  outline-offset: 3px;
}

#hmd-bw-measures-v2-widget .hmd-bw-measures-v2-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#hmd-bw-measures-v2-widget .hmd-bw-measures-v2-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

#hmd-bw-measures-v2-widget .hmd-bw-measures-v2-icon path,
#hmd-bw-measures-v2-widget .hmd-bw-measures-v2-icon rect,
#hmd-bw-measures-v2-widget .hmd-bw-measures-v2-icon line {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* =========================================================
   BLOCO INLINE MOBILE
   ========================================================= */

#hmd-bw-measures-v2-inline {
  display: none;
  width: 100%;
  margin: 16px 0 22px;
  font-family: inherit;
}

/* =========================================================
   MODAL DESKTOP / TABLET
   ========================================================= */

#hmd-bw-measures-v2-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  font-family: inherit;
}

#hmd-bw-measures-v2-modal.hmd-bw-measures-v2-open {
  display: flex;
}

#hmd-bw-measures-v2-modal .hmd-bw-measures-v2-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

#hmd-bw-measures-v2-modal .hmd-bw-measures-v2-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: 92vh;
  overflow: auto;
  border-radius: 18px;
  background: #ffffff;
  color: #111111;
  padding: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

#hmd-bw-measures-v2-modal .hmd-bw-measures-v2-close {
  position: sticky;
  top: 0;
  z-index: 3;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   CONTEÚDO DA TABELA
   ========================================================= */

.hmd-bw-measures-v2-content {
  width: 100%;
  color: #111111;
}

.hmd-bw-measures-v2-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 18px;
}

.hmd-bw-measures-v2-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #666666;
}

.hmd-bw-measures-v2-title {
  margin: 0;
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1.08;
  font-weight: 900;
  color: #111111;
}

.hmd-bw-measures-v2-subtitle {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #555555;
}

.hmd-bw-measures-v2-image-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 18px auto 24px;
}

.hmd-bw-measures-v2-image-wrap img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 440px;
  object-fit: contain;
  border-radius: 14px;
  background: #f5f5f5;
}

.hmd-bw-measures-v2-blocks {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hmd-bw-measures-v2-block {
  width: 100%;
}

.hmd-bw-measures-v2-block-heading {
  margin: 0 0 10px;
  text-align: left;
}

.hmd-bw-measures-v2-block-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
  color: #111111;
}

.hmd-bw-measures-v2-block-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: #666666;
}

.hmd-bw-measures-v2-table-wrap {
  width: 100%;
  overflow: visible;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  background: #ffffff;
}

.hmd-bw-measures-v2-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
}

.hmd-bw-measures-v2-table th,
.hmd-bw-measures-v2-table td {
  padding: 14px 12px;
  text-align: center;
  border-bottom: 1px solid #ececec;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
  vertical-align: middle;
}

.hmd-bw-measures-v2-table th {
  background: #111111;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hmd-bw-measures-v2-table td {
  color: #222222;
  font-weight: 600;
}

.hmd-bw-measures-v2-table td:first-child {
  font-weight: 900;
  color: #111111;
}

.hmd-bw-measures-v2-table tbody tr:nth-child(even) {
  background: #f8f8f8;
}

.hmd-bw-measures-v2-table tr:last-child td {
  border-bottom: 0;
}

.hmd-bw-measures-v2-note {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #666666;
  text-align: center;
}

/* =========================================================
   RESPONSIVO MOBILE
   ========================================================= */

@media (max-width: 767px) {
  #hmd-bw-measures-v2-widget {
    display: none !important;
  }

  #hmd-bw-measures-v2-inline {
    display: block;
    padding: 16px 0 4px;
  }

  #hmd-bw-measures-v2-inline .hmd-bw-measures-v2-content {
    padding: 16px 12px;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    background: #ffffff;
  }

  #hmd-bw-measures-v2-inline .hmd-bw-measures-v2-header {
    text-align: left;
    margin: 0 0 16px;
  }

  #hmd-bw-measures-v2-inline .hmd-bw-measures-v2-title {
    font-size: 22px;
  }

  #hmd-bw-measures-v2-inline .hmd-bw-measures-v2-subtitle {
    font-size: 13px;
  }

  .hmd-bw-measures-v2-image-wrap {
    margin: 14px auto 20px;
  }

  .hmd-bw-measures-v2-image-wrap img {
    max-height: none;
    width: 100%;
    height: auto;
    border-radius: 12px;
  }

  .hmd-bw-measures-v2-blocks {
    gap: 22px;
  }

  .hmd-bw-measures-v2-block-title {
    font-size: 17px;
  }

  .hmd-bw-measures-v2-block-subtitle {
    font-size: 12px;
  }

  .hmd-bw-measures-v2-table-wrap {
    width: 100%;
    overflow: visible;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    background: #ffffff;
  }

  .hmd-bw-measures-v2-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 11.5px;
  }

  .hmd-bw-measures-v2-table thead {
    display: table-header-group;
  }

  .hmd-bw-measures-v2-table tbody {
    display: table-row-group;
  }

  .hmd-bw-measures-v2-table tr {
    display: table-row;
  }

  .hmd-bw-measures-v2-table th,
  .hmd-bw-measures-v2-table td {
    display: table-cell;
    width: auto;
    padding: 9px 4px;
    text-align: center;
    border-bottom: 1px solid #ececec;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
    line-height: 1.25;
    vertical-align: middle;
  }

  .hmd-bw-measures-v2-table th {
    background: #111111;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }

  .hmd-bw-measures-v2-table td {
    color: #222222;
    font-weight: 600;
  }

  .hmd-bw-measures-v2-table td:first-child {
    background: transparent;
    color: #111111;
    font-size: 12px;
    font-weight: 900;
  }
}

@media (min-width: 768px) {
  #hmd-bw-measures-v2-inline {
    display: none !important;
  }
}

/*
    =========================================================
    AVISOS DE DIREITOS AUTORAIS
    =========================================================
  * Este código foi desenvolvido pela Hartmidia Digital e possui autorização temporária de uso
  * para aplicação em páginas, produtos e campanhas digitais da Black White Sports.
  * A cópia, reprodução, redistribuição, adaptação, revenda, extração, reutilização ou duplicação
  * deste código, total ou parcial, sem autorização expressa da Hartmidia Digital e de seu autor,
  * poderá caracterizar violação de direitos autorais e de propriedade intelectual.
 */