.clicks-consent {
  position: fixed;
  z-index: 100000;
  inset: auto 1rem 1rem;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.clicks-consent--annoying {
  inset: 0;
  align-items: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.72);
  pointer-events: auto;
}

.clicks-consent--annoying .clicks-consent__dialog {
  width: min(42rem, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

body.clicks-consent-modal-open {
  overflow: hidden;
}

.clicks-consent__manage {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 100001;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: #454545;
  background: #e2e2e2;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.24);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.clicks-consent__manage::after {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.5rem);
  max-width: 16rem;
  padding: 0.4rem 0.6rem;
  color: #ffffff;
  background: #1e293b;
  border-radius: 0.25rem;
  content: attr(data-tooltip);
  font-size: 0.8rem;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.25rem);
  transition: opacity 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.clicks-consent__manage:hover::after,
.clicks-consent__manage:focus::after {
  opacity: 1;
  transform: translateY(0);
}

.clicks-consent__manage .dashicons {
  width: auto;
  height: auto;
  font-size: 1.75rem;
  line-height: 1;
}

.clicks-consent__manage:hover,
.clicks-consent__manage:focus {
  background: #e2e2e2;
}

.clicks-consent__manage--emoji {
  background: transparent;
  box-shadow: none;
  font-size: 1.75rem;
}

.clicks-consent__manage--emoji:hover,
.clicks-consent__manage--emoji:focus {
  background: transparent;
}

.clicks-consent__manage--emoji img.emoji {
  width: 2.25rem !important;
  height: 2.25rem !important;
  margin: 2px 0 0 0 !important;
}

.clicks-consent__dialog {
  position: relative;
  max-width: 42rem;
  padding: 1.25rem;
  color: #1e293b;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 0.75rem 2.5rem rgba(15, 23, 42, 0.2);
  pointer-events: auto;
}

.clicks-consent__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  color: #475569;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.clicks-consent__close:hover,
.clicks-consent__close:focus {
  color: #0f172a;
}

.clicks-consent__dialog h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.clicks-consent__dialog p {
  margin: 0 0 1rem;
}

.clicks-consent__choices,
.clicks-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.clicks-consent__choices {
  margin-bottom: 1rem;
}

.clicks-consent__custom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.clicks-consent__custom-actions button {
  padding: 1rem 0.8rem;
  color: #ffffff;
  background: #0f766e;
  border: 0;
  cursor: pointer;
  border-radius: 0.25rem;
}

.clicks-consent__custom-actions button.clicks-consent__secondary {
  color: #334155;
  background: #e2e8f0;
  border-radius: 0.25rem;
}

.clicks-consent__actions button {
  padding: 1rem 0.8rem;
  color: #ffffff;
  background: #0f766e;
  border: 0;
  cursor: pointer;
  border-radius: 0.25rem;
}

.clicks-consent__actions button:first-child {
  color: #334155;
  background: #e2e8f0;
}

.clicks-consent__actions button[data-clicks-consent="reject"],
.clicks-consent__custom-actions button[data-clicks-consent="reject"] {
  color: #ffffff;
  background: #b45353;
}

.clicks-consent__actions button[data-clicks-consent="reject"]:hover,
.clicks-consent__actions button[data-clicks-consent="reject"]:focus,
.clicks-consent__custom-actions button[data-clicks-consent="reject"]:hover,
.clicks-consent__custom-actions button[data-clicks-consent="reject"]:focus {
  background: #9f4141;
}
