.cv-cookie-consent {
  position: fixed;
  z-index: 2147483000;
  right: clamp(16px, 2.2vw, 32px);
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(520px, calc(100vw - 32px));
  color: #f4efe6;
  font-family: Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(.985);
  transition: opacity .22s ease, transform .42s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}

.cv-cookie-consent.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
}

.cv-cookie-consent.is-leaving {
  opacity: 0;
  transform: translate3d(0, 14px, 0) scale(.99);
}

.cv-cookie-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px 14px;
  align-items: start;
  overflow: hidden;
  padding: 15px;
  border: 1px solid rgba(232, 201, 108, .28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 4% 0%, rgba(232, 201, 108, .12), transparent 33%),
    linear-gradient(152deg, rgba(24, 24, 20, .97), rgba(8, 9, 8, .985) 68%);
  box-shadow:
    0 22px 65px rgba(0, 0, 0, .46),
    0 1px 0 rgba(255, 255, 255, .035) inset,
    0 0 0 1px rgba(255, 255, 255, .012) inset;
  -webkit-backdrop-filter: blur(22px) saturate(125%);
  backdrop-filter: blur(22px) saturate(125%);
}

.cv-cookie-panel::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 20px;
  right: 48%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 226, 139, .85), transparent);
  pointer-events: none;
}

.cv-cookie-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -68px;
  top: -76px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(230, 200, 111, .07);
  filter: blur(30px);
  pointer-events: none;
}

.cv-cookie-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 239, 183, .46);
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(255, 246, 205, .22), transparent 42%),
    linear-gradient(145deg, #efd47b, #b98528);
  color: #11120e;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: -.04em;
  box-shadow: 0 9px 24px rgba(201, 152, 50, .16), inset 0 1px 0 rgba(255, 255, 255, .52);
}

.cv-cookie-copy {
  min-width: 0;
}

.cv-cookie-kicker {
  display: block;
  margin: 1px 0 4px;
  color: rgba(232, 201, 108, .78);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .2em;
}

.cv-cookie-copy h2 {
  margin: 0 0 5px;
  color: #f7f2e8;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.08;
  letter-spacing: -.035em;
  text-transform: none;
}

.cv-cookie-copy p {
  margin: 0;
  color: rgba(244, 239, 230, .62);
  font-size: 11px;
  font-weight: 550;
  line-height: 1.48;
  text-transform: none;
}

.cv-cookie-copy a {
  color: rgba(245, 218, 129, .9);
  text-decoration: underline;
  text-decoration-color: rgba(240, 215, 126, .4);
  text-underline-offset: 3px;
}

.cv-cookie-actions {
  grid-column: 2;
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.cv-cookie-button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 11px;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  letter-spacing: .01em;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.cv-cookie-button:hover {
  transform: translateY(-1px);
}

.cv-cookie-button:focus-visible {
  outline: 2px solid #f0d77e;
  outline-offset: 3px;
}

.cv-cookie-button-secondary {
  border-color: rgba(244, 239, 230, .1);
  background: rgba(255, 255, 255, .025);
  color: rgba(244, 239, 230, .67);
}

.cv-cookie-button-primary {
  min-width: 106px;
  border-color: rgba(255, 240, 188, .42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .22), transparent 44%),
    linear-gradient(135deg, #f4d982, #c89532);
  color: #11120e;
  box-shadow: 0 9px 24px rgba(212, 164, 63, .14), inset 0 1px 0 rgba(255, 255, 255, .38);
}

.cv-cookie-button-primary:hover {
  box-shadow: 0 12px 28px rgba(212, 164, 63, .22), inset 0 1px 0 rgba(255, 255, 255, .46);
}

.cookie-settings-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 20px;
  border: 1px solid rgba(230, 200, 111, .34);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(230, 200, 111, .16), rgba(230, 200, 111, .06));
  color: #f0d77e;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 620px) {
  .cv-cookie-consent {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
  }

  .cv-cookie-panel {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px 10px;
    padding: 12px;
    border-radius: 17px;
  }

  .cv-cookie-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 10px;
  }

  .cv-cookie-kicker {
    margin-bottom: 4px;
    font-size: 7px;
  }

  .cv-cookie-copy h2 {
    margin-bottom: 4px;
    font-size: 16px;
  }

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

  .cv-cookie-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .cv-cookie-button {
    min-width: 0;
    min-height: 35px;
    padding: 0 8px;
    font-size: 9.25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cv-cookie-consent,
  .cv-cookie-button {
    transition: none !important;
  }
}
