/* The cookie banner (site/consent.js, #246). Its own file, because every page
   of www.jobsjai.com shows it, also /features, which does not load styles.css;
   so the colours are written out here (brand/palette.mjs). Calm, as the rest
   of the site: a white card with a hairline, Reject and Accept the same
   outlined pill, no tinted tiles. */
.jj-consent {
  position: fixed;
  z-index: 1000;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 22px 22px;
  border: 1px solid #e6e9f0;
  border-radius: 22px;
  background: #fff;
  color: #3a3f4a;
  box-shadow: 0 30px 60px -30px rgba(1, 64, 229, 0.45), 0 2px 10px rgba(17, 17, 18, 0.06);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', 'Noto Sans Thai', 'Thonburi', 'Leelawadee UI', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  text-align: left;
  animation: jj-consent-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.jj-consent[hidden],
[data-cookie-settings][hidden] { display: none; }

.jj-consent-title {
  margin: 0;
  color: #202a4f;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.jj-consent-text { margin: 6px 0 0; }

.jj-consent-text a {
  color: #0140e5;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.jj-consent-now { margin: 8px 0 0; color: #6e7686; font-size: 14px; }

.jj-consent-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

/* Reject and Accept look the same: neither is the "right" answer. */
.jj-consent-btn {
  flex: 1 1 0;
  min-height: 46px;
  padding: 0 20px;
  border: 1.5px solid #0140e5;
  border-radius: 999px;
  background: #fff;
  color: #0140e5;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.jj-consent-btn:hover { background: #e8edfb; }
.jj-consent-btn:active { transform: scale(0.97); }

.jj-consent-btn:focus-visible,
.jj-consent-text a:focus-visible {
  outline: 3px solid rgba(1, 64, 229, 0.4);
  outline-offset: 3px;
}

/* Thai needs a little more line height for its vowels and tone marks. */
:lang(th) .jj-consent { line-height: 1.7; }
:lang(th) .jj-consent-title { letter-spacing: 0; }

@keyframes jj-consent-in {
  from { opacity: 0; transform: translateY(16px); }
}

@media (min-width: 761px) {
  .jj-consent {
    left: auto;
    right: 24px;
    bottom: 24px;
    width: 440px;
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jj-consent { animation: none; }
  .jj-consent-btn { transition: none; }
}

@media print {
  .jj-consent { display: none; }
}
