.cookie-consent,
.cookie-consent * {
  box-sizing: border-box;
}

.cookie-banner[hidden],
.cookie-details-overlay[hidden],
.cookie-choice-made .cookie-banner {
  display: none !important;
}

.cookie-banner {
  position: fixed;
  z-index: 12000;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  min-height: 76px;
  margin: 0;
  padding: 15px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #f6f3ed;
  background: #09294f;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -14px 45px rgba(1, 9, 19, 0.16);
  font-family: Geist, Arial, sans-serif;
  animation: cookie-bar-in 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cookie-banner-copy {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.cookie-banner-copy p {
  margin: 0;
  color: #f4f5f7;
  font-size: 12px;
  line-height: 1.48;
}

.cookie-more {
  padding: 0;
  border: 0;
  color: #ff861f;
  background: transparent;
  font-size: 11px;
  font-weight: 720;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  cursor: pointer;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.cookie-banner-actions button {
  min-width: 106px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 9px;
  color: #fff;
  background: transparent;
  font: 720 11px Geist, Arial, sans-serif;
  cursor: pointer;
}

.cookie-banner-actions [data-cookie-accept] {
  color: #08111c;
  background: #ff861f;
  border-color: #ff861f;
}

.cookie-details-overlay {
  position: fixed;
  z-index: 12100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 13, 24, 0.62);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.cookie-details {
  position: relative;
  width: min(590px, 100%);
  max-height: min(680px, calc(100dvh - 36px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  color: #071d3c;
  background: #f5f5f2;
  border: 1px solid #9aa6b2;
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  font-family: Geist, Arial, sans-serif;
}

.cookie-details-header {
  padding: 34px 38px 12px;
}

.cookie-details h2 {
  max-width: 450px;
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(27px, 4vw, 34px);
  font-weight: 400;
  line-height: 1.05;
}

.cookie-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #071d3c;
  background: rgba(7, 29, 60, 0.06);
  font-size: 20px;
  cursor: pointer;
}

.cookie-details-scroll {
  overflow: auto;
  padding: 0 38px 12px;
}

.cookie-details-scroll p {
  margin: 0;
  padding-top: 16px;
  color: #091d38;
  font-size: 14px;
  line-height: 1.65;
}

.cookie-details-actions {
  padding: 16px 38px 34px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #f5f5f2;
  border-top: 1px solid rgba(7, 29, 60, 0.1);
}

.cookie-details-actions button {
  min-width: 156px;
  min-height: 45px;
  padding: 0 20px;
  border: 1px solid rgba(7, 29, 60, 0.28);
  border-radius: 10px;
  color: #071d3c;
  background: transparent;
  font: 700 12px Geist, Arial, sans-serif;
  cursor: pointer;
}

.cookie-details-actions [data-cookie-accept] {
  color: #07111d;
  background: #ff861f;
  border-color: #e86e07;
}

.cookie-details-open {
  overflow: hidden;
}

@keyframes cookie-bar-in {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 700px) {
  .cookie-banner {
    min-height: 0;
    padding: 12px 14px max(12px, env(safe-area-inset-bottom));
    display: block;
  }

  .cookie-banner-copy {
    display: block;
  }

  .cookie-banner-copy p {
    font-size: 10px;
    line-height: 1.4;
  }

  .cookie-more {
    display: inline-block;
    margin-top: 4px;
    font-size: 10px;
  }

  .cookie-banner-actions {
    margin-top: 9px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .cookie-banner-actions button {
    width: 100%;
    min-width: 0;
    min-height: 36px;
  }

  .cookie-details-overlay {
    padding: 9px;
    align-items: end;
  }

  .cookie-details {
    max-height: calc(100dvh - 18px);
    border-radius: 18px 18px 12px 12px;
  }

  .cookie-details-header {
    padding: 28px 22px 8px;
  }

  .cookie-details-scroll {
    padding: 0 22px 8px;
  }

  .cookie-details-scroll p {
    padding-top: 13px;
    font-size: 12px;
    line-height: 1.55;
  }

  .cookie-details-actions {
    padding: 13px 22px max(22px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cookie-details-actions button {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    animation: none;
  }
}
