.rf-cookie-consent[hidden] {
  display: none !important;
}

.rf-cookie-consent {
  width: min(720px, calc(100% - 32px));
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60000;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border: 1px solid rgba(118, 87, 232, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 80px rgba(30, 27, 53, 0.2);
  opacity: 0;
  transform: translateY(18px);
  backdrop-filter: blur(20px) saturate(1.12);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
  transition: opacity 180ms ease, transform 180ms ease;
}

.rf-cookie-consent.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.rf-cookie-icon {
  width: 52px;
  height: 52px;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(145deg, #a8e1ff, #7657e8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.rf-cookie-icon span {
  width: 33px;
  height: 33px;
  position: absolute;
  left: 9px;
  top: 9px;
  border: 3px solid white;
  border-radius: 50%;
}

.rf-cookie-icon span::after {
  content: "";
  width: 17px;
  height: 17px;
  position: absolute;
  right: -7px;
  top: -7px;
  border-radius: 50%;
  background: #7657e8;
}

.rf-cookie-icon i {
  width: 4px;
  height: 4px;
  position: absolute;
  z-index: 2;
  border-radius: 50%;
  background: white;
}

.rf-cookie-icon i:nth-child(2) { left: 19px; top: 20px; }
.rf-cookie-icon i:nth-child(3) { left: 31px; top: 31px; }
.rf-cookie-icon i:nth-child(4) { left: 18px; top: 35px; }

.rf-cookie-content p,
.rf-cookie-content h2 {
  margin: 0;
}

.rf-cookie-content .rf-cookie-kicker {
  margin-bottom: 4px;
  color: #7657e8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.rf-cookie-content h2 {
  color: #171829;
  font: 700 20px/1.1 "Manrope", sans-serif;
  letter-spacing: -0.04em;
}

.rf-cookie-content #rf-cookie-copy {
  max-width: 430px;
  margin-top: 7px;
  color: #666875;
  font-size: 13px;
  line-height: 1.48;
}

.rf-cookie-content > a {
  display: inline-block;
  margin-top: 7px;
  color: #393b46;
  font-size: 11px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.rf-cookie-actions {
  display: grid;
  gap: 8px;
}

.rf-cookie-actions button {
  min-width: 142px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font: 750 10px/1 "DM Sans", sans-serif;
  cursor: pointer;
}

.rf-cookie-accept {
  border: 1px solid #171921;
  background: #171921;
  color: white;
}

.rf-cookie-reject {
  border: 1px solid #d8d9e4;
  background: #fff;
  color: #343640;
}

.rf-cookie-actions button:focus-visible,
.rf-cookie-content > a:focus-visible,
.rf-cookie-settings:focus-visible {
  outline: 3px solid rgba(118, 87, 232, 0.3);
  outline-offset: 3px;
}

.rf-cookie-settings {
  width: max-content;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #696b74;
  font: 700 9px/1.4 "DM Sans", sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .rf-cookie-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
    border-radius: 15px;
  }

  .rf-cookie-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  .rf-cookie-actions button {
    min-width: 0;
  }
}

@media (max-width: 430px) {
  .rf-cookie-icon {
    display: none;
  }

  .rf-cookie-consent {
    grid-template-columns: 1fr;
  }

  .rf-cookie-actions {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rf-cookie-consent {
    transition-duration: 0.01ms;
  }
}

