/* Announcement popup (AnnouncementPopup.vue) styles.
   Loaded as a plain stylesheet in BaseLayout head — deliberately NOT in the
   Vue SFC <style> block, so it applies regardless of island style injection.
   Loaded after swiper-bundle.min.css so it also wins on cascade order. */

[popup-name="announcement"] {
  opacity: 0;
  pointer-events: none;
}

.quantum-zenith-design-system--ann-slider {
  max-width: 800px;
  position: relative;
  overflow: hidden;
}

@media only screen and (max-width: 600px) {
  .quantum-zenith-design-system--ann-slider .quantum-zenith-design-system--c-btn {
    padding: 10px 12px;
    font-size: 14px;
  }
}

/* The wrapper doubles as the Swiper track: it must stay a horizontal flex row
   (as swiper-bundle.css expects) — a grid here wraps the 3rd+ slide onto a
   second row and breaks Swiper's translate-based sliding. */
.quantum-zenith-design-system--ann-slider_wrapper {
  width: 100%;
  display: flex;
  height: 405px;
}

.quantum-zenith-design-system--ann-popup_img {
  height: 405px;
}

.quantum-zenith-design-system--announcement-container {
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr;
  grid-auto-columns: 1fr;
  max-width: 800px;
  display: grid;
}

.quantum-zenith-design-system--ann-popup_content {
  color: #000;
  background-color: #fff;
  flex-flow: column;
  justify-content: space-between;
  align-items: stretch;
  height: 400px;
  padding: 50px;
  display: flex;
}

.quantum-zenith-design-system--ann-popup_inner {
  grid-column-gap: 16px;
  grid-row-gap: 16px;
  color: #000;
  background-color: #fff;
  flex-flow: column;
  display: flex;
}

.quantum-zenith-design-system--ann-popup_title {
  text-transform: uppercase;
  font-size: 32px;
  line-height: 150%;
}

/* !important because Swiper stamps swiper-pagination-* classes on this
   container at init, and swiper-bundle.css hard-codes bottom:8px/left:0/
   width:100% on those classes — the dots must stay pinned to the
   bottom-left of the slider (50px in from each edge) per the design. */
.quantum-zenith-design-system--ann-popup_indicators {
  /* Must beat .swiper-wrapper's z-index:1 (from swiper-bundle.css) — at a
     tie the wrapper paints on top (later sibling) and hides the dots.
     10 matches Swiper's own .swiper-pagination convention. */
  z-index: 10;
  grid-column-gap: 4px;
  grid-row-gap: 4px;
  justify-content: center;
  align-items: stretch;
  width: max-content !important;
  display: flex;
  position: absolute;
  top: auto !important;
  right: auto !important;
  bottom: 50px !important;
  left: 50px !important;
}

/* Swiper injects bullets as inline <span>s — force block so the
   12x12 sizing applies even outside a flex context. */
.quantum-zenith-design-system--ann-popup_pagebtn {
  display: block;
  background-color: #f1f1f1;
  width: 12px;
  height: 12px;
  transition: background-color 0.2s;
  cursor: pointer;
}

.quantum-zenith-design-system--ann-popup_pagebtn.cc-active,
.quantum-zenith-design-system--ann-popup_img {
  background-color: var(--quantum-zenith-design-system---zenith-red, #e30110);
}

@media screen and (max-width: 767px) {
  .quantum-zenith-design-system--announcement-container {
    grid-template-rows: auto auto;
    grid-template-columns: 1fr;
    max-width: 90vw;
  }

  .quantum-zenith-design-system--ann-popup_content {
    height: auto;
    padding: 24px;
  }

  .quantum-zenith-design-system--ann-popup_indicators {
    left: auto !important;
    right: 50px !important;
  }

  .quantum-zenith-design-system--ann-popup_img {
    height: 320px;
  }

  .quantum-zenith-design-system--ann-slider.swiper {
    max-width: 90vw;
  }

  .quantum-zenith-design-system--ann-popup_title {
    text-transform: uppercase;
    font-size: 20px;
    line-height: 120%;
  }

  .quantum-zenith-design-system--ann-slider_wrapper {
    height: auto;
  }
}
