.cc {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 400px;
  z-index: 60;
  visibility: hidden;
  font-family: 'Inter', sans-serif;
}

.cc.is-open {
  visibility: visible;
  animation: cc-in .7s cubic-bezier(.2, 1.25, .35, 1) both;
}

.cc.is-closing {
  visibility: visible;
  animation: cc-out .35s cubic-bezier(.5, 0, .75, 0) both;
}

@keyframes cc-in {
  from {
    opacity: 0;
    transform: translateY(32px) scale(.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cc-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(24px) scale(.96);
  }
}

.cc-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid #efe8f9;
  box-shadow: 0 24px 60px -16px rgba(67, 34, 105, .28), 0 4px 14px -6px rgba(67, 34, 105, .12);
}

.cc-card::before {
  content: '';
  position: absolute;
  top: -90px;
  right: -70px;
  width: 220px;
  height: 220px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(148, 102, 211, .22), transparent 70%);
  pointer-events: none;
}

.cc.is-open .cc-cookie {
  animation: cc-wobble 1.1s .5s ease-in-out both;
}

@keyframes cc-wobble {
  0% { transform: rotate(0) scale(.6); opacity: 0; }
  40% { transform: rotate(-14deg) scale(1.08); opacity: 1; }
  60% { transform: rotate(10deg) scale(1); }
  80% { transform: rotate(-4deg); }
  100% { transform: rotate(0); opacity: 1; }
}

.cc-reveal {
  opacity: 0;
}

.cc.is-open .cc-reveal {
  animation: cc-rise .5s cubic-bezier(.2, .9, .3, 1) forwards;
}

.cc.is-closing .cc-reveal {
  opacity: 1;
}

@keyframes cc-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cc-prefs {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s cubic-bezier(.3, .9, .3, 1);
}

.cc-prefs > div {
  overflow: hidden;
}

.cc.is-prefs .cc-prefs {
  grid-template-rows: 1fr;
}

.cc-prefs-list {
  max-height: 46vh;
  overflow-y: auto;
}

.cc-cat {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s, transform .3s;
}

.cc.is-prefs .cc-cat {
  opacity: 1;
  transform: none;
}

.cc-switch {
  position: relative;
  width: 40px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

.cc-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: inherit;
  margin: 0;
}

.cc-switch .track {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: #e2e8f0;
  transition: background .25s;
}

.cc-switch .thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 10, 28, .25);
  transition: transform .3s cubic-bezier(.3, 1.4, .5, 1);
}

.cc-switch input:checked ~ .track {
  background: #6b3fa0;
}

.cc-switch input:checked ~ .thumb {
  transform: translateX(16px);
}

.cc-switch input:focus-visible ~ .track {
  outline: 2px solid #af8de1;
  outline-offset: 2px;
}

.cc-switch.is-locked {
  cursor: not-allowed;
}

.cc-switch.is-locked .track {
  background: #af8de1;
}

.cc-chevron {
  transition: transform .35s;
}

.cc.is-prefs .cc-chevron {
  transform: rotate(180deg);
}

.cc-handle {
  display: none;
  padding-top: 12px;
  padding-bottom: 2px;
  text-align: center;
}

.cc-handle-bar {
  display: inline-block;
  width: 40px;
  height: 5px;
  border-radius: 9999px;
  background-color: #cbd5e1;
}

.cc-scrim {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(15, 10, 28, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}

@media (max-width: 640px) {
  .cc {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
  }
  .cc-card {
    border-radius: 28px 28px 0 0;
    border-bottom: 0;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -12px 40px -12px rgba(67, 34, 105, .3);
  }
  .cc-handle {
    display: block;
  }
  .cc-prefs-list {
    max-height: none;
  }
  .cc.is-open {
    animation: cc-sheet-in .55s cubic-bezier(.2, 1, .3, 1) both;
  }
  .cc.is-closing {
    animation: cc-sheet-out .35s cubic-bezier(.5, 0, .75, 0) both;
  }
  .cc-actions > button {
    height: 48px;
    padding: 0 12px;
  }
  body.cc-active .cc-scrim {
    opacity: 1;
    pointer-events: auto;
  }
}

@keyframes cc-sheet-in {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes cc-sheet-out {
  from { transform: translateY(0); }
  to { transform: translateY(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .cc,
  .cc *,
  .cc::before,
  .cc::after,
  .cc-scrim {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
  }
}

.phone-mask-wrap {
  position: relative;
  width: 100%;
}

.phone-mask-ghost {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
  overflow: hidden;
  white-space: pre;
  user-select: none;
  box-sizing: border-box;
}

.phone-mask-ghost .phone-mask-typed {
  visibility: hidden;
  white-space: pre;
}

.phone-mask-ghost .phone-mask-remain {
  color: #94a3b8;
  white-space: pre;
}

