#mir-cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
}

.mir-cookie-banner__content {
  background: #fff;
  border: 1px solid #d9e1e8;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 1rem;
  max-width: 860px;
  margin: 0 auto;
}

.mir-cookie-banner__detail_content {
  overflow: scroll;
  max-height: calc(100vh - 200px);
}

.mir-cookie-banner__content h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.mir-cookie-banner__toggles {
  display: grid;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.mir-cookie-banner__toggles label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.mir-cookie-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mir-cookie-open-preferences {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9998;
  border: 0;
  border-radius: 999px;
  background: #004b84;
  color: #fff;
  padding: 0.55rem 0.85rem;
  font-size: 0.875rem;
  cursor: pointer;
}

#mir-cookie-banner:not([hidden]) + .mir-cookie-open-preferences {
  bottom: 15rem;
}

@media (max-width: 768px) {
  .mir-cookie-open-preferences {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}
