/* =========================================================
   CRONEX BAU — COOKIE CONSENT
========================================================= */

.cookie-consent[hidden] {
  display: none;
}


.cookie-consent {
  position: fixed;

  left: 0;
  right: 0;
  bottom: 0;

  z-index: 10000;

  padding:
    20px
    max(20px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));

  pointer-events: none;
}


.cookie-consent__inner {
  width: min(1180px, 100%);
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 32px;

  padding: 24px 26px;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;

  background:
    linear-gradient(
      145deg,
      rgba(24, 24, 27, 0.97),
      rgba(10, 10, 12, 0.98)
    );

  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  opacity: 0;

  transform: translateY(20px);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;

  pointer-events: auto;
}


.cookie-consent.is-visible
.cookie-consent__inner {
  opacity: 1;
  transform: translateY(0);
}


/* ---------- Content ---------- */

.cookie-consent__content {
  max-width: 720px;
}


.cookie-consent__eyebrow {
  margin: 0 0 7px;

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 0.13em;
  text-transform: uppercase;

  color: rgba(255, 255, 255, 0.55);
}


.cookie-consent h2 {
  margin: 0 0 8px;

  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.2;

  color: #fff;
}


.cookie-consent__content > p:not(.cookie-consent__eyebrow) {
  margin: 0;

  font-size: 14px;
  line-height: 1.65;

  color: rgba(255, 255, 255, 0.7);
}


.cookie-consent__privacy {
  display: inline-block;

  margin-top: 10px;

  font-size: 13px;
  font-weight: 600;

  color: rgba(255, 255, 255, 0.8);

  text-decoration: underline;
  text-underline-offset: 3px;
}


.cookie-consent__privacy:hover {
  color: #fff;
}


/* ---------- Actions ---------- */

.cookie-consent__actions {
  flex: 0 0 auto;

  display: flex;
  align-items: center;

  gap: 10px;
}


.cookie-consent__button {
  min-height: 46px;

  padding: 0 20px;

  border-radius: 12px;

  font: inherit;
  font-size: 14px;
  font-weight: 700;

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}


.cookie-consent__button:active {
  transform: translateY(1px);
}


/* Reject */

.cookie-consent__button--secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);

  background: rgba(255, 255, 255, 0.055);

  color: #fff;
}


.cookie-consent__button--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}


/* Accept */

.cookie-consent__button--primary {
  border: 1px solid rgba(150, 25, 55, 0.9);

  background:
    linear-gradient(
      135deg,
      #8d1632,
      #6f0d24
    );

  color: #fff;
}


.cookie-consent__button--primary:hover {
  background:
    linear-gradient(
      135deg,
      #9b1b3a,
      #7c102a
    );
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {

  .cookie-consent {
    padding: 12px;
  }


  .cookie-consent__inner {
    flex-direction: column;
    align-items: stretch;

    gap: 20px;

    padding: 22px;

    border-radius: 20px;
  }


  .cookie-consent__actions {
    width: 100%;

    display: grid;

    grid-template-columns: 1fr 1fr;
  }


  .cookie-consent__button {
    width: 100%;

    padding-left: 12px;
    padding-right: 12px;
  }

}


@media (max-width: 480px) {

  .cookie-consent__actions {
    grid-template-columns: 1fr;
  }


  .cookie-consent__button--primary {
    order: -1;
  }

}