/* ---------- Cookie popup (template-parts/blocks/cookie-popup.php, all pages) ---------- */

.cookie_pop {
  position: fixed;
  left: 100px;
  right: 100px;
  bottom: 40px;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 64px;
  max-width: 1720px;
  margin: 0 auto;
  padding: 40px;
  border: 1px solid #c4e9f5;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 40px -30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s;
}

.cookie_pop[hidden] {
  display: none;
}

.cookie_pop.is-shown {
  opacity: 1;
  transform: none;
}

.cookie_pop_text {
  flex: 1 1 auto;
  min-width: 0;
}

.cookie_pop_title {
  margin: 0 0 12px;
  font-family: "Nata Sans", sans-serif;
  font-weight: 800;
  font-size: 22px;
  line-height: 30px;
  color: #011b2b;
}

.cookie_pop_desc,
.cookie_pop_desc p {
  margin: 0;
  font-size: 18px;
  line-height: 28px;
  color: #003866;
}

.cookie_pop_desc a {
  color: inherit;
  text-decoration: none;
}

.cookie_pop_desc a:hover {
  text-decoration: underline;
}

.cookie_pop_btns {
  flex: 0 0 auto;
  display: flex;
  gap: 16px;
}

.cookie_pop_btn {
  border: 0;
  cursor: pointer;
  font-size: 18px;
  line-height: 26px;
  white-space: nowrap;
}

.cookie_pop_btn--blue {
  background: var(--palette-v2-d3);
  color: var(--palette-v2-white);
}

.cookie_pop_btn--blue:hover {
  background: var(--palette-v2-blue-700);
  color: var(--palette-v2-white);
}

/* Tablet: card in the middle of the screen */
@media (max-width: 1024px) {
  .cookie_pop {
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    width: 622px;
    max-width: calc(100% - 36px);
    max-height: calc(100% - 36px);
    overflow-y: auto;
    padding: 28px;
    transform: translate(-50%, calc(-50% + 16px));
  }

  .cookie_pop.is-shown {
    transform: translate(-50%, -50%);
  }

  .cookie_pop_desc,
  .cookie_pop_desc p {
    font-size: 16px;
    line-height: 26px;
  }

  .cookie_pop_btn {
    min-width: 208px;
  }
}

@media (max-width: 600px) {
  .cookie_pop {
    width: 324px;
  }

  .cookie_pop_title {
    font-size: 20px;
    line-height: 28px;
  }

  .cookie_pop_btns {
    flex-direction: column;
    gap: 24px;
  }

  .cookie_pop_btn {
    width: 100%;
    min-width: 0;
  }
}
