.gdd-consent-panel[hidden] {
  display: none !important;
}

.gdd-consent-panel {
  position: fixed;
  z-index: 10000;
  left: 50%;
  bottom: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(720px, calc(100% - 32px));
  padding: 20px 24px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: #242424;
  color: #f4f4f4;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.42);
  font: 14px/1.55 Arial, sans-serif;
}

.gdd-consent-copy {
  flex: 1 1 340px;
}

.gdd-consent-copy h2 {
  margin: 0 0 7px;
  color: inherit;
  font: 700 17px/1.25 Arial, sans-serif;
  letter-spacing: 0;
}

.gdd-consent-copy p {
  margin: 0 0 8px;
  color: #d2d2d2;
  font: 13px/1.5 Arial, sans-serif;
}

.gdd-consent-copy a {
  color: #d9ff56;
  font-size: 13px;
  text-underline-offset: 3px;
}

.gdd-consent-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 9px;
  min-width: 172px;
}

.gdd-consent-actions button,
.gdd-consent-settings {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font: 600 13px/1.25 Arial, sans-serif;
}

.gdd-consent-accept {
  padding: 10px 14px;
  background: #d9ff56;
  color: #151515;
}

.gdd-consent-reject {
  padding: 10px 14px;
  border-color: #696969 !important;
  background: #303030;
  color: #f4f4f4;
}

.gdd-consent-actions button:hover,
.gdd-consent-settings:hover {
  filter: brightness(0.92);
}

.gdd-consent-actions button:focus-visible,
.gdd-consent-settings:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.gdd-consent-settings {
  position: fixed;
  z-index: 9999;
  bottom: max(14px, env(safe-area-inset-bottom));
  left: 14px;
  padding: 9px 13px;
  border-color: #626262;
  background: #242424;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

@media (max-width: 600px) {
  .gdd-consent-panel {
    bottom: 72px;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding: 16px;
  }

  .gdd-consent-actions {
    flex-direction: row;
  }

  .gdd-consent-actions button {
    flex: 1 1 0;
    padding-inline: 8px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .gdd-consent-panel {
    animation: gdd-consent-enter 180ms ease-out both;
  }

  @keyframes gdd-consent-enter {
    from { opacity: 0; transform: translateX(-50%) translateY(8px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
  }
}
