/* Cookie consent banner styles — Conforma light palette.
 * Mirrors Stockunity behaviour (first visit, essentials / accept all). */

.cookie-banner-shell {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 70;
  max-width: 100%;
  padding-bottom: env(safe-area-inset-bottom, 0);
  opacity: 0;
  transform: translateY(100%);
  transition:
    opacity 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.cookie-banner-shell.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner-panel {
  background: rgba(246, 248, 249, 0.96);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid #dde5e9;
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 40px rgba(22, 35, 42, 0.12);
  overflow: hidden;
  position: relative;
  max-height: min(85dvh, 100%);
  display: flex;
  flex-direction: column;
}

.cookie-banner-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(14, 90, 109, 0.45) 40%,
    rgba(31, 122, 77, 0.4) 60%,
    transparent 100%
  );
  pointer-events: none;
}

.cookie-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.cookie-banner-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
}

.cookie-banner-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(14, 90, 109, 0.08);
  border: 1px solid rgba(14, 90, 109, 0.18);
  color: #0e5a6d;
  margin-top: 2px;
}

.cookie-banner-copy {
  flex: 1;
  min-width: 0;
}

.cookie-banner-title {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: #16232a;
  line-height: 1.25;
  margin: 0 0 6px;
}

.cookie-banner-subtitle {
  font-size: 13.5px;
  color: #3d4e57;
  line-height: 1.45;
  margin: 0 0 8px;
}

.cookie-banner-desc {
  font-size: 13px;
  color: #5a6b74;
  line-height: 1.55;
  text-wrap: pretty;
  margin: 0;
}

.cookie-banner-desc a {
  color: #0e5a6d;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}

.cookie-banner-desc a:hover {
  color: #0b4757;
}

.cookie-banner-actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  width: 100%;
  padding-top: 4px;
}

.cookie-banner-btn {
  min-height: 44px;
  border-radius: 999px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 16px;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.cookie-banner-btn-secondary {
  background: #ffffff;
  color: #16232a;
  border: 1px solid #c9d4da;
}

.cookie-banner-btn-secondary:hover {
  border-color: rgba(14, 90, 109, 0.45);
  background: rgba(14, 90, 109, 0.06);
  color: #0e5a6d;
}

.cookie-banner-btn-secondary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(14, 90, 109, 0.35);
}

.cookie-banner-btn-primary {
  background: #0e5a6d;
  color: #ffffff;
  border: 1px solid #0e5a6d;
}

.cookie-banner-btn-primary:hover {
  background: #0b4757;
  border-color: #0b4757;
  box-shadow: 0 4px 14px rgba(14, 90, 109, 0.28);
}

.cookie-banner-btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(14, 90, 109, 0.35);
}

@media (min-width: 48em) {
  .cookie-banner-shell {
    left: 50%;
    right: auto;
    bottom: 20px;
    width: calc(100vw - 40px);
    max-width: 720px;
    padding-bottom: 0;
    transform: translateX(-50%) translateY(16px);
  }

  .cookie-banner-shell.is-visible {
    transform: translateX(-50%) translateY(0);
  }

  .cookie-banner-panel {
    border-radius: 20px;
    border-bottom: 1px solid #dde5e9;
    box-shadow: 0 16px 48px rgba(22, 35, 42, 0.14);
    max-height: none;
  }

  .cookie-banner-inner {
    padding: 24px;
    gap: 20px;
  }

  .cookie-banner-title {
    font-size: 19px;
  }

  .cookie-banner-actions {
    flex-direction: row;
  }

  .cookie-banner-btn {
    flex: 1 1 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner-shell {
    opacity: 1;
    transform: none;
    transition: none;
    pointer-events: auto;
  }

  @media (min-width: 48em) {
    .cookie-banner-shell,
    .cookie-banner-shell.is-visible {
      transform: translateX(-50%);
    }
  }
}
