.arga4-consent[hidden],
.arga4-footer[hidden],
.arga4-preferences[hidden] {
  display: none !important;
}

.arga4-consent {
  position: fixed;
  z-index: 10000;
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: max(1rem, env(safe-area-inset-left));
  right: max(1rem, env(safe-area-inset-right));
  box-sizing: border-box;
  width: auto;
  max-width: 38rem;
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  padding: clamp(1rem, 3vw, 1.5rem);
  color: #e4ebf7;
  background: #0b182c;
  border: 1px solid #435e82;
  border-radius: 0.8rem;
  box-shadow: 0 0.5rem 2rem #0008;
  color-scheme: dark;
  font: inherit;
  line-height: 1.5;
}

.arga4-consent h2 {
  margin: 0 0 0.35rem;
  color: white;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
}

.arga4-consent p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: inherit;
}

.arga4-consent a,
.arga4-footer .arga4-preferences {
  color: #c1dbff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.arga4-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.arga4-consent .arga4-actions button {
  flex: 1 1 10rem;
  min-height: 44px;
  padding: 0.45rem 0.75rem;
  color: #f1f6ff;
  background: #213655;
  border: 1px solid #7b9ac6;
  border-radius: 0.45rem;
  font: inherit;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.arga4-consent .arga4-actions button:hover {
  background: #304d75;
}

.arga4-consent :focus-visible,
.arga4-preferences:focus-visible {
  outline: 2px solid #8abaff;
  outline-offset: 3px;
}

.arga4-footer {
  box-sizing: border-box;
  background: #0b182c;
  border-top: 1px solid #263b58;
  text-align: center;
}

.arga4-footer .arga4-preferences {
  min-height: 44px;
  padding: 0.4rem 0.7rem;
  border: 0;
  border-radius: 0.3rem;
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}
