/*
 * Cookie notice.
 *
 * Unlayered and standalone, because it has to render identically on the
 * marketing pages (Azzle stack, no Tailwind) and on the blog and tools
 * (Tailwind, no Azzle). Nothing here depends on either.
 *
 * Both variants are in the markup and CSS picks one from data-mode, since the
 * page is cached at the edge and only JavaScript knows which applies.
 */
.tolinku-consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9998;
  padding: 0 16px 16px;
  /* This file loads on both asset paths, and only one of them guarantees a
     global border-box rule. Stated here so the 16px padding can never add to
     the width and make the banner itself the thing hanging off the page. */
  box-sizing: border-box;
  max-width: 100%;
  transform: translateY(110%);
  transition: transform .24s cubic-bezier(.2,.8,.3,1);
}
.tolinku-consent.is-open { transform: translateY(0); }

.tolinku-consent-inner {
  box-sizing: border-box;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 18px;
  background: #fffbf4;
  border: 2px solid #000;
  border-radius: 14px;
  box-shadow: 5px 5px 0 #000;
}
@media (max-width: 767px) {
  .tolinku-consent-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

.tolinku-consent-text { flex: 1; min-width: 0; }
.tolinku-consent-head {
  margin: 0 0 4px;
  font: 600 14px/1.3 Inter, system-ui, sans-serif;
  color: #000;
}
.tolinku-consent-body {
  margin: 0;
  overflow-wrap: anywhere;
  font: 400 13px/1.5 Inter, system-ui, sans-serif;
  color: #5c5952;
}
.tolinku-consent-body a { color: #c32200; text-decoration: underline; }
.tolinku-consent-body a:hover { color: #fe330a; }

/* Only the variant that applies is shown. */
.tolinku-consent .is-notice,
.tolinku-consent .is-optin { display: none; }
.tolinku-consent[data-mode="notice"] .is-notice { display: block; }
.tolinku-consent[data-mode="optin"] .is-optin { display: block; }
.tolinku-consent[data-mode="optin"] .tolinku-consent-btn.is-optin { display: inline-flex; }

.tolinku-consent-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.tolinku-consent-btn {
  display: none;
  align-items: center;
  font: 600 13px/1 Inter, system-ui, sans-serif;
  padding: 11px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease;
  white-space: nowrap;
}
.tolinku-consent-btn.is-solid { background: #000; color: #fff; border: 2px solid #000; }
.tolinku-consent-btn.is-ghost { background: transparent; color: #000; border: 2px solid #dbd6cf; }
.tolinku-consent-btn.is-ghost:hover { border-color: #000; }
.tolinku-consent-btn.is-solid:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 #fe330a; }

.tolinku-consent-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 999px;
  color: #5c5952; background: transparent; border: 0; cursor: pointer;
  transition: background-color .14s ease, color .14s ease;
}
.tolinku-consent-close:hover { background: #efeae3; color: #000; }

@media (prefers-reduced-motion: reduce) {
  .tolinku-consent { transition: none; }
}
