.dbgm-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-top: 1px solid #e0e0e0;
  padding: 1rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
}

.dbgm-consent-banner__inner {
  max-width: 600px;
  width: 100%;
}

.dbgm-consent-banner__text {
  font-size: 0.8rem;
  color: #555;
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.dbgm-consent-banner__text a {
  color: var(--dbgm-theme, #000);
}

.dbgm-consent-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dbgm-consent-settings {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: env(safe-area-inset-bottom);
}

.dbgm-consent-settings__panel {
  background: #fff;
  border-radius: 1rem 1rem 0 0;
  padding: 1.5rem;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
}

.dbgm-consent-settings__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
}

.dbgm-consent-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.dbgm-consent-item__info strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.dbgm-consent-item__info p {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.dbgm-consent-item__info a {
  color: var(--dbgm-theme, #000);
}

.dbgm-consent-item__always {
  font-size: 0.75rem;
  color: #888;
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 2px;
}

.dbgm-consent-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
  cursor: pointer;
}

.dbgm-consent-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.dbgm-consent-toggle__slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 26px;
  transition: background 0.2s;
}

.dbgm-consent-toggle__slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.dbgm-consent-toggle input:checked + .dbgm-consent-toggle__slider {
  background: var(--dbgm-theme, #000);
}

.dbgm-consent-toggle input:checked + .dbgm-consent-toggle__slider::before {
  transform: translateX(18px);
}

.dbgm-consent-btn {
  border: none;
  border-radius: 2rem;
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 500;
  transition: opacity 0.15s;
}

.dbgm-consent-btn:hover {
  opacity: 0.85;
}

.dbgm-consent-btn--primary {
  background: var(--dbgm-theme, #000);
  color: #fff;
}

.dbgm-consent-btn--secondary {
  background: #f0f0f0;
  color: #333;
}

.dbgm-consent-btn--ghost {
  background: transparent;
  color: #666;
  text-decoration: underline;
  padding-left: 0;
}

.dbgm-consent-btn--link {
  background: none;
  color: var(--dbgm-theme, #000);
  font-size: 0.8rem;
  padding: 0;
  text-decoration: underline;
}

.dbgm-consent-settings__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.dbgm-consent-settings__legal {
  font-size: 0.75rem;
  color: #aaa;
  text-align: center;
  margin-top: 1rem;
}

.dbgm-consent-settings__legal a {
  color: #aaa;
}

.dbgm-consent-reopen {
  position: fixed;
  bottom: calc(8px + env(safe-area-inset-bottom));
  right: 12px;
  z-index: 9998;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  border-radius: 2rem;
  padding: 4px 10px;
  font-size: 0.7rem;
  color: #999;
  cursor: pointer;
  backdrop-filter: blur(4px);
  line-height: 1.4;
}

.dbgm-consent-reopen:hover {
  color: var(--dbgm-theme, #333);
  border-color: var(--dbgm-theme, #999);
}
