/* BW2026 compatibility, accessibility and responsive corrections. */

:root {
  --bw-focus-ring: 3px solid currentColor;
}

html {
  max-width: 100%;
  scroll-behavior: smooth;
}

body,
#page-wrapper,
.main-container {
  max-width: 100%;
}

body {
  overflow-x: clip;
}

img,
picture,
video,
canvas,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

iframe {
  max-width: 100%;
}

.row > *,
[class*="col-"] {
  min-width: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: var(--bw-focus-ring);
  outline-offset: 3px;
}

.visually-hidden-focusable:focus {
  position: fixed !important;
  top: .75rem;
  left: .75rem;
  z-index: 10000;
  width: auto !important;
  height: auto !important;
  padding: .65rem 1rem !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  background: #fff;
  color: #0a4da2;
}

.default-page-header .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#winemakers-map2,
#dealer-map,
#map {
  width: 100%;
  min-height: 420px;
}

.dealer-item {
  cursor: pointer;
}

.filter-toggle-button {
  border: 0;
  background: transparent;
}

.wine-loop img.etiquette,
.product img.etiquette {
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 767.98px) {
  #mobile-header .logo img {
    width: 100%;
    max-height: 76px;
    object-fit: contain;
  }

  .default-page-header .title-container,
  .default-page-header .page-title {
    min-width: 0;
  }

  #winemakers-map2,
  #dealer-map,
  #map {
    min-height: 340px;
  }

  .filter-cotes {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Wine Star Awards 2026 — homepage popup
   ============================================================ */
#wineStarAwardsModal {
  z-index: 200100 !important;
}

body.wine-star-modal-open .modal-backdrop {
  z-index: 200000 !important;
}

#wineStarAwardsModal .modal-dialog {
  max-width: 600px;
}

#wineStarAwardsModal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #000;
  color: #fff;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

#wineStarAwardsModal .modal-body {
  padding: 0;
}

#wineStarAwardsModal .btn-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
  opacity: 1;
}

#wineStarAwardsModal .btn-close:focus-visible {
  outline-color: #fff;
}

.wine-star-visual {
  padding: 30px 38px 12px;
  text-align: center;
}

.wine-star-visual img {
  width: 100%;
  max-width: 500px;
  height: auto;
}

.wine-star-content {
  padding: 6px 40px 30px;
  text-align: center;
}

.wine-star-kicker {
  margin-bottom: 10px;
  color: #bc9d47;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wine-star-content h2 {
  margin: 0 0 15px;
  color: #fff;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 400;
  line-height: 1;
}

.wine-star-content p {
  max-width: 570px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14.5px;
  line-height: 1.55;
}

@media (max-width: 767.98px) {
  #wineStarAwardsModal .modal-dialog {
    margin: 12px;
  }

  .wine-star-visual {
    padding: 34px 20px 10px;
  }

  .wine-star-content {
    padding: 6px 20px 26px;
  }

  .wine-star-content p {
    font-size: 14px;
  }
}
