.dgn-cookie-panel,
.dgn-cookie-preferences {
  position: fixed;
  z-index: 2147483000;
  right: 88px;
  bottom: 18px;
  width: min(520px, calc(100vw - 32px));
  background: #ffffff;
  color: #2d2d2d;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
  font-family: Rubik, Arial, sans-serif;
}

.dgn-cookie-panel[hidden],
.dgn-cookie-preferences[hidden] {
  display: none;
}

.dgn-cookie-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: #7a7a7a;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.dgn-cookie-content {
  padding: 2rem 1.3rem 1rem;
}

.dgn-cookie-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.dgn-cookie-text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #4b5563;
}

.dgn-cookie-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  padding: 0 1.3rem 0.9rem;
}

.dgn-cookie-actions button,
.dgn-cookie-save {
  min-height: 44px;
  border: 1px solid #eceff3;
  border-radius: 6px;
  background: #f8f8f8;
  color: #2d2d2d;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.dgn-cookie-actions button:hover,
.dgn-cookie-save:hover {
  background: #eeeeee;
}

.dgn-cookie-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding: 0 1rem 1rem;
  font-size: 0.78rem;
}

.dgn-cookie-links a {
  color: #0f62ba;
  text-decoration: underline;
}

.dgn-cookie-preferences {
  max-width: 540px;
}

.dgn-cookie-preferences-header {
  padding: 1.4rem 1.4rem 0.4rem;
}

.dgn-cookie-preferences-header h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
}

.dgn-cookie-preferences-body {
  padding: 0 1.4rem 1.4rem;
}

.dgn-cookie-option {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid #edf0f4;
}

.dgn-cookie-option strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #111827;
}

.dgn-cookie-option p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #4b5563;
}

.dgn-cookie-switch {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: #4b5563;
}

.dgn-cookie-save {
  width: 100%;
  background: #35d3aa;
  border-color: #35d3aa;
  color: #08111f;
}

.dgn-cookie-save:hover {
  background: #4be0b9;
}

@media (max-width: 720px) {
  .dgn-cookie-panel,
  .dgn-cookie-preferences {
    right: 12px;
    bottom: 12px;
  }

  .dgn-cookie-actions {
    grid-template-columns: 1fr;
  }
}
