:root {
  --khp-cookie-banner-offset: 0px;
  --khp-footer-lift-offset: 0px;
}

/* DESKTOP / DEFAULT */
.khp-cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: calc(24px + var(--khp-footer-lift-offset, 0px));
  z-index: 10030;
  display: flex;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease,
    visibility 0.24s ease,
    bottom 0.28s ease;
  pointer-events: none;
}

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

.khp-cookie-panel {
  width: min(900px, calc(100vw - 72px));
  min-height: 132px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 28px;
  padding: 28px 34px;
  background: linear-gradient(180deg, #344942 0%, #2d403a 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
  box-sizing: border-box;
}

.khp-cookie-copy {
  min-width: 0;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  row-gap: 10px;
  padding: 2px 6px 2px 0;
  box-sizing: border-box;
}

.khp-cookie-eyebrow {
  display: block;
  margin: 0;
  font-size: 0.58rem;
  line-height: 1;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
}

.khp-cookie-copy p,
#khp-cookie-banner .khp-cookie-copy p {
  margin: 0 !important;
  font-size: 0.78rem !important;
  line-height: 1.58 !important;
  color: rgba(255, 255, 255, 0.94) !important;
}

.khp-cookie-copy a,
#khp-cookie-banner .khp-cookie-copy a {
  color: #ffffff !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.khp-cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  align-self: center;
}

.khp-cookie-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  min-width: 110px;
  height: 40px;
  padding: 0 18px;
  font-family: var(--khp-font-main);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.khp-cookie-btn-solid {
  background: #c5a059;
  border-color: #c5a059;
  color: #1a1a1a;
}

.khp-cookie-btn-solid:hover {
  background: #d0ac67;
  border-color: #d0ac67;
}

.khp-cookie-btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.92);
}

.khp-cookie-btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.08);
}

/* Slightly tighter desktop */
@media (max-width: 980px) {
  .khp-cookie-panel {
    width: min(860px, calc(100vw - 56px));
    min-height: 124px;
    column-gap: 22px;
    padding: 24px 28px;
  }

  .khp-cookie-copy {
    max-width: 540px;
  }

  .khp-cookie-copy p,
  #khp-cookie-banner .khp-cookie-copy p {
    font-size: 0.74rem !important;
    line-height: 1.54 !important;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .khp-cookie-banner {
    left: 0;
    right: 0;
    bottom: 74px;
    justify-content: stretch;
  }

  .khp-cookie-panel {
    width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px 16px 16px 16px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.16);
  }

  .khp-cookie-copy {
    max-width: none;
    row-gap: 8px;
    padding: 0;
  }

  .khp-cookie-eyebrow {
    font-size: 0.54rem;
    letter-spacing: 2.2px;
  }

  .khp-cookie-copy p,
  #khp-cookie-banner .khp-cookie-copy p {
    font-size: 0.70rem !important;
    line-height: 1.5 !important;
  }

  .khp-cookie-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .khp-cookie-btn {
    width: 100%;
    min-width: 0;
    height: 38px;
    font-size: 0.64rem;
    border-radius: 999px;
  }
}

@media (max-width: 520px) {
  .khp-cookie-banner {
    bottom: 72px;
  }

  .khp-cookie-panel {
    padding: 16px 14px 14px 14px;
    gap: 12px;
  }

  .khp-cookie-copy p,
  #khp-cookie-banner .khp-cookie-copy p {
    font-size: 0.67rem !important;
    line-height: 1.46 !important;
  }
}