/* Anka Cookie — farver/fonte kommer fra sitets Elementor-kit via CSS-variabler (class-style.php) */
.anka-ck, .anka-ck *, .anka-ck-icon, .anka-ck-ph, .anka-ck-ph * { box-sizing: border-box; }
/* Temaer (fx Hello Elementor) styler alle <button> — nulstil, saa popuppen altid ser ens ud */
.anka-ck [hidden], .anka-ck-icon[hidden] { display: none !important; }
.anka-ck button, .anka-ck-ph button, button.anka-ck-icon, button.anka-ck-decl-btn {
  margin: 0 !important; box-shadow: none; text-shadow: none; text-transform: none !important; letter-spacing: 0 !important;
  width: auto; min-width: 0; max-width: none; display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
}
.anka-ck-title { font-family: var(--ack-font-h) !important; }

.anka-ck {
  position: fixed; z-index: 2147483000; left: 20px; bottom: 20px; width: min(440px, calc(100vw - 32px));
  font-family: var(--ack-font); color: var(--ack-text); font-size: 15px; line-height: 1.55;
  opacity: 0; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease;
}
.anka-ck.anka-ck-show { opacity: 1; transform: none; }
.anka-ck[hidden] { display: none; }
.anka-ck-pos-bottom-right { left: auto; right: 20px; }
.anka-ck-pos-bottom { left: 50%; bottom: 16px; width: min(1120px, calc(100vw - 32px)); transform: translate(-50%, 12px); }
.anka-ck-pos-bottom.anka-ck-show { transform: translate(-50%, 0); }
.anka-ck-pos-center { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, calc(-50% + 12px)); width: min(540px, calc(100vw - 32px)); }
.anka-ck-pos-center.anka-ck-show { transform: translate(-50%, -50%); }

.anka-ck-box {
  background: var(--ack-bg); border-radius: calc(var(--ack-radius) + 4px); padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18), 0 2px 8px rgba(0, 0, 0, .08); border: 1px solid rgba(0, 0, 0, .06);
  max-height: calc(100vh - 40px); display: flex; flex-direction: column;
}
.anka-ck-main { overflow-y: auto; overscroll-behavior: contain; }
.anka-ck-pos-bottom .anka-ck-box { flex-direction: row; align-items: center; gap: 28px; }
.anka-ck-pos-bottom .anka-ck-main { flex: 1; }
.anka-ck-pos-bottom.anka-ck-open-prefs .anka-ck-box { flex-direction: column; align-items: stretch; }

.anka-ck-title { font-family: var(--ack-font-h); font-size: 20px; line-height: 1.25; font-weight: 700; margin: 0 0 8px; color: var(--ack-primary); letter-spacing: 0; text-transform: none; }
.anka-ck-intro { margin: 0; font-size: 14.5px; }
.anka-ck-intro a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.anka-ck-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.anka-ck-actions [data-act="custom"], .anka-ck-actions [data-act="save"] { grid-column: 1 / -1; }
.anka-ck-pos-bottom .anka-ck-actions { margin-top: 0; min-width: 330px; }
.anka-ck-pos-bottom.anka-ck-open-prefs .anka-ck-actions { margin-top: 18px; }

.anka-ck .anka-ck-btn, .anka-ck-ph .anka-ck-btn {
  appearance: none; width: 100%; font: 600 14.5px/1.2 var(--ack-font); border-radius: var(--ack-radius); padding: 12px 16px; cursor: pointer;
  border: 2px solid var(--ack-primary); transition: filter .15s ease, background .15s ease; text-transform: none; letter-spacing: 0; min-height: 46px;
}
/* "Accepter alle" og "Afvis alle" er bevidst ens (lige synlige) */
.anka-ck .anka-ck-btn-solid, .anka-ck-ph .anka-ck-btn-solid { background: var(--ack-primary) !important; color: var(--ack-on-primary) !important; border: 2px solid var(--ack-primary) !important; }
.anka-ck-ph .anka-ck-btn { width: auto; }
.anka-ck .anka-ck-btn-solid:hover, .anka-ck-ph .anka-ck-btn-solid:hover { filter: brightness(1.15); background: var(--ack-primary) !important; color: var(--ack-on-primary) !important; }
.anka-ck .anka-ck-btn-ghost { background: transparent !important; color: var(--ack-primary) !important; border: 2px solid var(--ack-primary) !important; }
.anka-ck .anka-ck-btn-ghost:hover { background: rgba(0, 0, 0, .05) !important; color: var(--ack-primary) !important; }
.anka-ck-btn:focus-visible, .anka-ck-icon:focus-visible, .anka-ck-more:focus-visible, .anka-ck-switch input:focus-visible + span { outline: 3px solid var(--ack-accent); outline-offset: 2px; }

.anka-ck-prefs { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.anka-ck-prefs[hidden] { display: none; }
.anka-ck-cat { border: 1px solid rgba(0, 0, 0, .09); border-radius: var(--ack-radius); padding: 12px 14px; }
.anka-ck-cat p { margin: 6px 0 0; font-size: 13.5px; opacity: .85; }
.anka-ck-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.anka-ck .anka-ck-more { background: none !important; border: 0 !important; border-radius: 0; min-height: 0; padding: 2px 0 !important; font: 500 12.5px var(--ack-font); color: var(--ack-primary); text-decoration: underline; cursor: pointer; white-space: nowrap; }
.anka-ck-list { list-style: none; margin: 8px 0 0; padding: 0; font-size: 12.5px; max-height: 180px; overflow-y: auto; }
.anka-ck-list[hidden] { display: none; }
.anka-ck-list li { padding: 6px 0; border-top: 1px solid rgba(0, 0, 0, .06); }
.anka-ck-list code { font-size: 12px; background: rgba(0, 0, 0, .05); padding: 1px 5px; border-radius: 4px; }
.anka-ck-list span { opacity: .75; }
.anka-ck-list small { display: block; opacity: .7; margin-top: 2px; }

.anka-ck-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.anka-ck-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.anka-ck-switch span { position: relative; width: 40px; height: 23px; border-radius: 999px; background: rgba(0, 0, 0, .22); transition: background .2s ease; flex: none; }
.anka-ck-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .2s ease; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.anka-ck-switch input:checked + span { background: var(--ack-primary); }
.anka-ck-switch input:checked + span::after { transform: translateX(17px); }
.anka-ck-switch input:disabled + span { opacity: .55; }
.anka-ck-switch strong { font-size: 14.5px; }

.anka-ck-test { margin-top: 12px; font-size: 11.5px; text-align: center; opacity: .6; }

.anka-ck-icon, button.anka-ck-icon {
  position: fixed; z-index: 2147482999; bottom: 18px; left: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0 !important; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; background: var(--ack-primary) !important; color: var(--ack-on-primary) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2); opacity: .85; transition: opacity .15s ease, transform .15s ease; padding: 0;
}
.anka-ck-icon:hover { opacity: 1; transform: scale(1.05); }
.anka-ck-icon-right { left: auto; right: 18px; }
.anka-ck-icon[hidden] { display: none; }

/* Pladsholder for blokeret indhold (YouTube, Vimeo, Google Maps ...) */
.anka-ck-ph { display: flex; align-items: center; justify-content: center; width: 100%; background: rgba(0, 0, 0, .05); border-radius: var(--ack-radius); padding: 24px; text-align: center; font-family: var(--ack-font); color: var(--ack-text); }
.anka-ck-ph-in { max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.anka-ck-ph p { margin: 0; font-size: 14.5px; }
.anka-ck-ph .anka-ck-link { background: none !important; border: 0 !important; padding: 2px 0 !important; color: inherit !important; font: 500 13px var(--ack-font); color: inherit; text-decoration: underline; cursor: pointer; opacity: .8; }

/* Cookieerklaering [anka_cookies] */
.anka-ck-declaration .anka-ck-decl-consent { background: rgba(0, 0, 0, .04); border-radius: 12px; padding: 16px 18px; margin: 0 0 24px; }
.anka-ck-declaration .anka-ck-decl-consent p { margin: 0 0 8px; }
.anka-ck-declaration .anka-ck-decl-consent p:last-child { margin: 0; }
.anka-ck-decl-btn, button.anka-ck-decl-btn { appearance: none; background: var(--ack-primary) !important; color: var(--ack-on-primary) !important; border: 0 !important; border-radius: var(--ack-radius); padding: 10px 16px; font: 600 14px/1.2 var(--ack-font); cursor: pointer; }
.anka-ck-table-wrap { overflow-x: auto; margin: 10px 0 24px; }
.anka-ck-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.anka-ck-table th, .anka-ck-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid rgba(0, 0, 0, .08); vertical-align: top; }
.anka-ck-table th { font-weight: 600; background: rgba(0, 0, 0, .03); }
.anka-ck-table code { font-size: 12.5px; }
.anka-ck-decl-meta { font-size: 13px; opacity: .7; }

@media (max-width: 767px) {
  .anka-ck, .anka-ck-pos-bottom-right, .anka-ck-pos-bottom, .anka-ck-pos-center { left: 8px; right: 8px; bottom: 8px; top: auto; width: auto; transform: translateY(12px); }
  .anka-ck.anka-ck-show { transform: none; }
  .anka-ck-box, .anka-ck-pos-bottom .anka-ck-box { padding: 20px 18px 18px; flex-direction: column; align-items: stretch; gap: 0; max-height: 85vh; }
  .anka-ck-pos-bottom .anka-ck-actions { min-width: 0; margin-top: 16px; }
  .anka-ck-title { font-size: 18px; }
  .anka-ck-table thead { display: none; }
  .anka-ck-table tr { display: block; border-bottom: 1px solid rgba(0, 0, 0, .1); padding: 6px 0; }
  .anka-ck-table td { display: block; border: 0; padding: 3px 0; }
  .anka-ck-table td::before { content: attr(data-label) ": "; font-weight: 600; }
}
@media (prefers-reduced-motion: reduce) { .anka-ck, .anka-ck-icon, .anka-ck-switch span, .anka-ck-switch span::after { transition: none; } }
