/* Cookie consent — Vendoty GDPR banner (shared across layouts) */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.vy-cookie {
  position: fixed;
  inset: auto 0 0;
  z-index: 1200;
  padding: 0.75rem clamp(0.75rem, 3vw, 1.25rem) calc(0.75rem + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  opacity: 0;
  transform: translateY(110%);
  transition:
    opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.vy-cookie.is-visible {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.vy-cookie__panel {
  max-width: 56rem;
  margin-inline: auto;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(19, 19, 19, 0.08);
  border-radius: 1.25rem;
  box-shadow:
    0 20px 50px rgba(19, 19, 19, 0.12),
    0 2px 8px rgba(19, 19, 19, 0.04);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.vy-cookie__main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem 1.5rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
}

.vy-cookie__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #758696;
}

.vy-cookie__title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #131313;
  line-height: 1.25;
}

.vy-cookie__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #585858;
  max-width: 42rem;
}

.vy-cookie__link {
  color: #131313;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.vy-cookie__link:hover {
  color: #e6b000;
}

.vy-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.vy-cookie__btn {
  padding: 0.65rem 1.1rem;
  font-size: 0.84rem;
  min-height: 2.5rem;
}

.vy-cookie__settings-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.75rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #585858;
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: color 0.2s ease;
}

.vy-cookie__settings-btn:hover {
  color: #131313;
}

.vy-cookie__details {
  border-top: 1px solid rgba(19, 19, 19, 0.08);
  padding: 0.85rem 1.25rem 1.15rem;
  background: rgba(242, 242, 242, 0.55);
}

.vy-cookie__category + .vy-cookie__category {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(19, 19, 19, 0.06);
}

.vy-cookie__category-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.vy-cookie__category-title {
  margin: 0 0 0.2rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #131313;
}

.vy-cookie__category-desc {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #585858;
  max-width: 36rem;
}

.vy-cookie__badge {
  flex-shrink: 0;
  padding: 0.28rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #585858;
  background: rgba(19, 19, 19, 0.06);
  border-radius: 999px;
}

.vy-cookie__switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  cursor: pointer;
}

.vy-cookie__switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.vy-cookie__switch-ui {
  width: 2.65rem;
  height: 1.45rem;
  border-radius: 999px;
  background: rgba(19, 19, 19, 0.14);
  transition: background 0.2s ease;
  position: relative;
}

.vy-cookie__switch-ui::after {
  content: '';
  position: absolute;
  top: 0.16rem;
  left: 0.16rem;
  width: 1.13rem;
  height: 1.13rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(19, 19, 19, 0.18);
  transition: transform 0.2s ease;
}

.vy-cookie__switch input:checked + .vy-cookie__switch-ui {
  background: #ffc500;
}

.vy-cookie__switch input:checked + .vy-cookie__switch-ui::after {
  transform: translateX(1.2rem);
}

.vy-cookie__switch input:focus-visible + .vy-cookie__switch-ui {
  outline: 2px solid #ffc500;
  outline-offset: 2px;
}

.vy-cookie__details-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.vy-foot__legal-btn {
  font: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.vy-foot__legal-btn:hover {
  color: #131313;
}

@media (max-width: 768px) {
  .vy-cookie__main {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .vy-cookie__actions {
    justify-content: stretch;
  }

  .vy-cookie__btn {
    flex: 1 1 calc(50% - 0.25rem);
  }

  .vy-cookie__settings-btn {
    flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  .vy-cookie__btn {
    flex: 1 1 100%;
  }
}
