/* Certidox public website: opt-in analytics banner. */
.cdx-cookie-banner {
  position: fixed;
  z-index: 99999;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 880px;
  margin: 0 auto;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #cce2ef;
  border-radius: 14px;
  box-shadow: 0 10px 40px #08224935;
  color: #142849;
  font: 15px/1.5 Arial, sans-serif;
  display: none;
}

.cdx-cookie-banner[aria-hidden="false"] { display: block; }

.cdx-cookie-banner .cdx-cookie-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cdx-cookie-banner .cdx-cookie-copy { flex: 1 1 auto; min-width: 0; }
.cdx-cookie-banner strong { color: #092860; font-size: 16px; }
.cdx-cookie-banner p {
  margin: 5px 0 0;
  font-size: 14px;
  line-height: 1.5;
  max-width: 580px;
  color: #3b5271;
}
.cdx-cookie-banner a { color: #075a3c; text-decoration: underline; }
.cdx-cookie-banner .cdx-cookie-current { color: #075a3c; font-weight: 700; }

.cdx-cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Same visual weight: declining must be as prominent as accepting. */
.cdx-cookie-actions button {
  min-height: 44px;
  padding: 11px 13px;
  background: #fff;
  border: 2px solid #08774f;
  border-radius: 8px;
  color: #075a3c;
  cursor: pointer;
  font: 700 13px/1.3 Arial, sans-serif;
}
.cdx-cookie-actions button:hover { background: #e8f6ef; }
.cdx-cookie-actions button:focus-visible,
.cdx-cookie-banner a:focus-visible {
  outline: 3px solid #094584;
  outline-offset: 2px;
}

.cdx-cookie-settings-link {
  font: inherit;
  color: #075a3c;
  background: transparent;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
  padding: 5px;
}

@media (max-width: 700px) {
  .cdx-cookie-banner {
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
    right: 8px;
    padding: 14px;
  }
  .cdx-cookie-banner .cdx-cookie-layout { display: block; }
  .cdx-cookie-actions {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .cdx-cookie-actions button { padding: 10px 6px; }
}
