/* Analytics consent card for the editor shells. Site pages style their own
   banner with the site CSS; editors link this file instead (CSP: style-src
   'self'). Colors and fonts are set here, not inherited, so the card reads the
   same on the dark photo and vector editors as on the light ones. */

#eia-consent.eia-card {
  position: fixed;
  z-index: 2147483000;
  top: auto;
  right: 16px;
  bottom: 16px;
  left: auto;
  box-sizing: border-box;
  width: min(352px, calc(100vw - 32px));
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #e7e0d6;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(28, 25, 23, 0.22);
  color: #1c1917;
  font: 400 13px/1.45 ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    'PingFang SC', 'Hiragino Sans', 'Noto Sans', sans-serif;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
}

#eia-consent.eia-card[hidden] { display: none; }

#eia-consent.eia-card[data-place='bottom-left'] { right: auto; left: 16px; }
#eia-consent.eia-card[data-place='top-right'] { top: 60px; bottom: auto; }

#eia-consent.eia-card p {
  margin: 0;
  color: inherit;
  font: inherit;
}

#eia-consent.eia-card a {
  color: #c2410c;
  text-decoration: underline;
}

#eia-consent.eia-card .eia-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

#eia-consent.eia-card button {
  box-sizing: border-box;
  height: 32px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #d6cfc4;
  border-radius: 8px;
  background: #ffffff;
  color: #1c1917;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  appearance: none;
}

#eia-consent.eia-card button:hover { border-color: #a8a29e; }

#eia-consent.eia-card #eia-consent-accept {
  border-color: #1c1917;
  background: #1c1917;
  color: #faf7f2;
}

#eia-consent.eia-card #eia-consent-accept:hover { background: #292524; }

#eia-consent.eia-card button:focus-visible,
#eia-consent.eia-card a:focus-visible {
  outline: 2px solid #c2410c;
  outline-offset: 2px;
}

@media (max-width: 600px) {
  #eia-consent.eia-card,
  #eia-consent.eia-card[data-place] {
    right: 8px;
    left: 8px;
    width: auto;
    padding: 12px 14px;
  }
}
