#qatested-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: #0f1724;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.875rem;
  line-height: 1.45;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#qatested-consent-banner[hidden] {
  display: none;
}

.qatested-consent-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.qatested-consent-text {
  margin: 0;
  min-width: 0;
  color: rgba(255, 255, 255, 0.75);
}

.qatested-consent-text a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.qatested-consent-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.qatested-consent-btn {
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.qatested-consent-btn-accept {
  background: #2563eb;
  color: #fff;
}

.qatested-consent-btn-accept:hover {
  background: #1d4ed8;
}

.qatested-consent-btn-decline {
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  padding: 7px 10px;
}

.qatested-consent-btn-decline:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* Mobile: natural height only — never flex-grow / flex-basis on the text block */
@media (max-width: 640px) {
  #qatested-consent-banner {
    padding: 8px 12px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    font-size: 0.8125rem;
    line-height: 1.35;
  }

  .qatested-consent-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      'text text'
      'actions actions';
    gap: 8px;
    align-items: center;
  }

  .qatested-consent-text {
    grid-area: text;
  }

  .qatested-consent-actions {
    grid-area: actions;
    justify-content: flex-end;
    gap: 6px;
  }

  .qatested-consent-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .qatested-consent-btn-decline {
    padding: 6px 8px;
  }
}

@media (min-width: 400px) and (max-width: 640px) {
  .qatested-consent-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas: 'text actions';
    gap: 10px;
  }

  .qatested-consent-actions {
    justify-content: flex-end;
  }
}
