#cf-cookie-layer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, .50);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

#cf-cookie-box {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  box-sizing: border-box;
  padding: 24px;
  color: #334155;
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(203, 213, 225, .92);
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .30), 0 8px 24px rgba(15, 23, 42, .10);
  font: 14px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#cf-cookie-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, #4f46e5, #4338ca);
}

#cf-cookie-box h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 750;
  letter-spacing: -.01em;
}

#cf-cookie-box p {
  margin: 0 0 14px;
}

#cf-cookie-box a {
  color: #4338ca;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

#cf-cookie-box a:hover {
  color: #3730a3;
}

#cf-cookie-settings {
  margin: 15px 0;
  padding: 13px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

#cf-cookie-settings label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 8px 0;
}

#cf-cookie-settings input {
  margin-top: 3px;
  accent-color: #4f46e5;
}

#cf-cookie-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
}

#cf-cookie-actions button {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 11px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

#cf-cookie-actions button:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

#cf-cookie-actions button:active {
  transform: translateY(1px);
}

#cf-cookie-actions button:focus-visible {
  outline: 3px solid rgba(79, 70, 229, .22);
  outline-offset: 2px;
}

#cf-cookie-actions .primary {
  border-color: #4338ca;
  background: linear-gradient(180deg, #5147e7 0%, #4338ca 100%);
  color: #fff;
  box-shadow: 0 5px 14px rgba(67, 56, 202, .20);
}

#cf-cookie-actions .primary:hover {
  border-color: #3730a3;
  background: #4338ca;
}

#cf-cookie-actions .reject {
  border-color: #94a3b8;
  color: #1e293b;
}

#cf-cookie-actions button[hidden],
#cf-cookie-settings[hidden] {
  display: none !important;
}

@media (min-width: 700px) {
  #cf-cookie-layer {
    padding: 24px;
  }

  #cf-cookie-box {
    padding: 25px 26px 24px;
  }
}

@media (max-width: 560px) {
  #cf-cookie-layer {
    padding: 10px;
  }

  #cf-cookie-box {
    max-height: calc(100vh - 20px);
    padding: 21px 16px 16px;
    border-radius: 17px;
    font-size: 13.5px;
  }

  #cf-cookie-box::before {
    left: 20px;
    right: 20px;
  }

  #cf-cookie-box h2 {
    margin-bottom: 7px;
    font-size: 18px;
  }

  #cf-cookie-box p {
    margin-bottom: 12px;
  }

  #cf-cookie-settings {
    margin: 12px 0;
    padding: 11px 12px;
  }

  #cf-cookie-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #cf-cookie-actions button {
    min-height: 43px;
  }
}
