/* EOMA cookie consent banner — KVKK + GDPR compliant
 *
 * Scoped under #eoma-consent-banner so it cannot leak into the rest
 * of the landing styles. Token-bridged to fall back to inline values
 * on legal pages that don't load the full landing styles.css.
 */

#eoma-consent-banner {
  position: fixed;
  left: clamp(12px, 2vw, 24px);
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  z-index: 9999;
  max-width: 980px;
  margin: 0 auto;
  background: #ffffff;
  color: #161e33;
  border: 1px solid rgba(22, 30, 51, 0.1);
  border-radius: 16px;
  box-shadow:
    0 24px 56px -12px rgba(22, 30, 51, 0.22),
    0 8px 16px -8px rgba(22, 30, 51, 0.12);
  font-family:
    "Poppins",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  transform: translateY(140%);
  opacity: 0;
  transition:
    transform 280ms cubic-bezier(0, 0, 0.2, 1),
    opacity 220ms cubic-bezier(0, 0, 0.2, 1);
}
#eoma-consent-banner.is-in {
  transform: translateY(0);
  opacity: 1;
}
#eoma-consent-banner.is-out {
  transform: translateY(140%);
  opacity: 0;
}
.eoma-consent-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  padding: clamp(16px, 2.5vw, 24px) clamp(20px, 3vw, 32px);
}
.eoma-consent-text {
  flex: 1;
  min-width: 0;
}
.eoma-consent-title {
  margin: 0 0 6px 0;
  font-family: "FinalSix", "Poppins", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: #161e33;
}
.eoma-consent-body {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(22, 30, 51, 0.7);
}
.eoma-consent-link {
  color: #5273b8;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.eoma-consent-link:hover {
  color: #45619c;
}
.eoma-consent-actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-shrink: 0;
}
.eoma-consent-btn {
  font-family: inherit;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background 140ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 140ms cubic-bezier(0.4, 0, 0.2, 1),
    color 140ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 140ms cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.eoma-consent-btn:active {
  transform: translateY(1px);
}
.eoma-consent-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 4px #5273b8;
}
.eoma-consent-btn-decline {
  background: transparent;
  color: #161e33;
  border-color: rgba(22, 30, 51, 0.14);
}
.eoma-consent-btn-decline:hover {
  background: rgba(22, 30, 51, 0.05);
}
.eoma-consent-btn-accept {
  background: #161e33;
  color: #ffffff;
}
.eoma-consent-btn-accept:hover {
  background: #20294a;
}

@media (max-width: 720px) {
  .eoma-consent-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px 18px 16px;
  }
  .eoma-consent-actions {
    flex-direction: column-reverse; /* Accept on top on mobile, easier reach */
    gap: 8px;
  }
  .eoma-consent-btn {
    width: 100%;
    text-align: center;
  }
  .eoma-consent-body {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #eoma-consent-banner,
  #eoma-consent-banner.is-in,
  #eoma-consent-banner.is-out {
    transition: none;
  }
}
