#akin-consent-root,
#akin-consent-root * { box-sizing: border-box; }

html.akin-consent-lock { overflow: hidden !important; }

#akin-consent-root {
  --akin-green: #176247;
  --akin-green-dark: #0f4934;
  --akin-green-soft: #e4efe8;
  --akin-cream: #f8f6ef;
  --akin-text: #19342b;
  --akin-muted: #52685f;
  --akin-line: #cbd9d0;
  color: var(--akin-text);
  font-family: Manrope, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  position: relative;
  z-index: 2147483000;
}

#akin-consent-root[hidden],
#akin-consent-root [hidden] { display: none !important; }

#akin-consent-root button,
#akin-consent-root a { font: inherit; }

#akin-consent-root button:focus-visible,
#akin-consent-root a:focus-visible,
#akin-consent-root input:focus-visible {
  outline: 3px solid #b85c17;
  outline-offset: 3px;
}

.akin-consent__banner {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  left: max(20px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 28px;
  border: 1px solid #b9d0c2;
  border-left: 6px solid var(--akin-green);
  border-radius: 16px;
  background: var(--akin-cream);
  color: var(--akin-text);
  box-shadow: 0 20px 60px rgba(20,54,42,.22);
}

.akin-consent__copy { max-width: 660px; }
.akin-consent__eyebrow { margin: 0 0 5px; color: var(--akin-green); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.akin-consent__copy h2,
.akin-consent__modal h2 { margin: 0 0 8px; color: var(--akin-text); font-size: clamp(22px, 2vw, 29px); line-height: 1.2; letter-spacing: -.025em; }
.akin-consent__copy p:not(.akin-consent__eyebrow) { margin: 0 0 10px; color: var(--akin-muted); font-size: 14px; }
.akin-consent__copy a { color: var(--akin-green-dark); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.akin-consent__trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 9px; color: #315c4c; font-size: 12px; font-weight: 700; }
.akin-consent__trust span { position: relative; padding-left: 14px; }
.akin-consent__trust span::before { position: absolute; top: .55em; left: 0; width: 6px; height: 6px; border-radius: 50%; background: #3d8a68; content: ""; }
.akin-consent__actions,
.akin-consent__modal-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.akin-consent__actions { display: grid; flex: 0 0 360px; grid-template-columns: 1fr 1fr; }

.akin-consent__button,
.akin-consent__close,
.akin-consent__reopen {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 700;
}

.akin-consent__button { padding: 10px 16px; white-space: nowrap; transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease; }
.akin-consent__button--primary { grid-column: 1 / -1; min-height: 50px; background: var(--akin-green); color: #fff; box-shadow: 0 8px 20px rgba(23,98,71,.2); }
.akin-consent__button--primary:hover { background: var(--akin-green-dark); box-shadow: 0 10px 24px rgba(15,73,52,.25); }
.akin-consent__button--secondary { border-color: #94b4a4; background: #fff; color: var(--akin-text); }
.akin-consent__button--secondary:hover { background: var(--akin-green-soft); }
.akin-consent__button--ghost { border-color: transparent; background: transparent; color: #53685f; font-weight: 600; }
.akin-consent__button--ghost:hover { background: #ecebe4; color: var(--akin-text); }

.akin-consent__backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8,34,25,.7);
  backdrop-filter: blur(5px);
}

.akin-consent__modal {
  width: min(620px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid #b9d0c2;
  background: var(--akin-cream);
  box-shadow: 0 28px 90px rgba(8,34,25,.38);
}

.akin-consent__modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.akin-consent__close { flex: 0 0 44px; padding: 0; background: var(--akin-green-soft); color: var(--akin-green-dark); font-size: 28px; line-height: 1; }
.akin-consent__option { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; border-top: 1px solid var(--akin-line); }
.akin-consent__option strong { display: block; margin-bottom: 3px; }
.akin-consent__option p,
.akin-consent__option span span { display: block; margin: 0; color: var(--akin-muted); font-size: 14px; }
.akin-consent__option input { flex: 0 0 auto; width: 24px; height: 24px; accent-color: var(--akin-green); }
.akin-consent__always { flex: 0 0 auto; color: var(--akin-green) !important; font-size: 13px !important; font-weight: 700; }
.akin-consent__modal-actions { justify-content: flex-end; padding-top: 20px; border-top: 1px solid var(--akin-line); }
.akin-consent__modal .akin-consent__button--primary { grid-column: auto; }
.akin-consent__modal .akin-consent__button--ghost { color: var(--akin-muted); border-color: transparent; }

.akin-consent__reopen {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  bottom: max(12px, env(safe-area-inset-bottom));
  min-height: 36px;
  padding: 7px 11px;
  border-color: #9fbdad;
  background: var(--akin-cream);
  color: var(--akin-green-dark);
  box-shadow: 0 5px 20px rgba(20,54,42,.16);
  font-size: 12px;
}

@media (max-width: 760px) {
  .akin-consent__banner { align-items: stretch; flex-direction: column; gap: 18px; padding: 22px 20px; }
  .akin-consent__actions { flex-basis: auto; grid-template-columns: 1fr 1fr; }
  .akin-consent__modal { padding: 22px; }
  .akin-consent__option { align-items: flex-start; gap: 14px; }
  .akin-consent__modal-actions { display: grid; grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  #akin-consent-root *,
  #akin-consent-root *::before,
  #akin-consent-root *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
