#darogan-consent-root {
  position: relative;
  z-index: 99999;
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.darogan-consent-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 28, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.darogan-consent-overlay[hidden],
.darogan-consent-tab[hidden],
.darogan-consent-prefs[hidden] {
  display: none !important;
}

.darogan-consent-modal {
  position: relative;
  width: min(560px, 100%);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  padding: 1.75rem 1.75rem 1.35rem;
  color: #1d2327;
}

.darogan-consent-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  border: 0;
  background: transparent;
  color: #50575e;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
}

.darogan-consent-title {
  margin: 0 1.5rem 1rem 0;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
}

.darogan-consent-message {
  margin: 0 0 1.35rem;
  color: #3c434a;
  font-size: 0.95rem;
  line-height: 1.55;
}

.darogan-consent-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.darogan-consent-btn {
  appearance: none;
  border-radius: 6px;
  border: 1px solid #c3c4c7;
  background: #fff;
  color: #1d2327;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  text-align: center;
}

.darogan-consent-btn:hover {
  background: #f6f7f7;
}

.darogan-consent-btn--primary {
  background: #1e73be;
  border-color: #1e73be;
  color: #fff;
}

.darogan-consent-btn--primary:hover {
  background: #1862a1;
  border-color: #1862a1;
}

.darogan-consent-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.darogan-consent-links a {
  color: #1e73be;
  font-size: 0.9rem;
  text-decoration: underline;
}

.darogan-consent-prefs {
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.85rem;
}

.darogan-consent-pref {
  border: 1px solid #dcdcde;
  border-radius: 8px;
  padding: 0.85rem 1rem;
}

.darogan-consent-pref label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  font-weight: 600;
}

.darogan-consent-pref input {
  margin-top: 0.2rem;
}

.darogan-consent-pref p {
  margin: 0.35rem 0 0 1.55rem;
  color: #646970;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.45;
}

.darogan-consent-pref.is-disabled label {
  cursor: default;
  color: #646970;
}

.darogan-consent-tab {
  position: fixed;
  right: 0;
  bottom: 0;
  transition: transform 0.3s ease-in-out;
  transform: translateX(-25%) translateY(66.66%);
  z-index: 99998;
  border: 0;
  border-radius: 8px 8px 0 0;
  background: #fff;
  color: #1d2327;
  box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.12);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.15rem 0.75rem;
  cursor: pointer;
}

.darogan-consent-tab:hover {
  background: #f6f7f7;

  transform: translateX(-25%) translateY(0);
}

@media (max-width: 560px) {
  .darogan-consent-actions {
    grid-template-columns: 1fr;
  }

  .darogan-consent-modal {
    padding: 1.35rem 1.15rem 1.15rem;
  }
}
