/* Chat-vindu (tmf-connect.js) i samme stil som tmf-design.css */
.tc-tg { position: fixed; z-index: 65; right: 24px; bottom: 24px; width: 60px; height: 60px; border: 0; border-radius: 50%; background: var(--copper); color: var(--fjord); display: grid; place-items: center; cursor: pointer; box-shadow: 0 14px 32px rgba(7,22,43,.32); transition: transform .15s; }
.tc-tg:active { transform: scale(.96); }
.tc-tg svg.i { width: 26px; height: 26px; }
.tc-win { position: fixed; z-index: 80; right: 24px; bottom: 96px; width: 370px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 140px); background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(7,22,43,.35); display: flex; flex-direction: column; overflow: hidden; }
.tc-win[hidden] { display: none !important; }
.tc-hd { background: var(--fjord); color: #fff; display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; }
.tc-hd b { display: block; font-size: 16px; line-height: 1.2; }
.tc-hd small { color: var(--steel-lt); font-size: 13px; }
.tc-av svg { display: block; }
.tc-x { margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--panel); color: #fff; display: grid; place-items: center; cursor: pointer; }
.tc-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--mist); }
.tc-msg { display: flex; }
.tc-msg--user { justify-content: flex-end; }
.tc-bubble { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.tc-msg--bot .tc-bubble { background: #fff; color: var(--fjord); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.tc-msg--user .tc-bubble { background: var(--fjord); color: #fff; border-bottom-right-radius: 4px; }
.tc-typing { display: flex; gap: 5px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; border-bottom-left-radius: 4px; }
.tc-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--steel-lt); animation: tcDot 1.2s infinite; }
.tc-typing span:nth-child(2) { animation-delay: .2s; }
.tc-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes tcDot { 0%, 80%, 100% { opacity: .4; transform: scale(1); } 40% { opacity: 1; transform: scale(1.3); } }
.tc-in { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.tc-in input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-size: 16px; color: var(--fjord); background: var(--mist); }
.tc-in input:focus { outline: none; border-color: var(--copper); background: #fff; }
.tc-send { width: 46px; height: 46px; flex: none; border: 0; border-radius: 12px; background: var(--copper); color: var(--fjord); display: grid; place-items: center; cursor: pointer; }
.tc-send:disabled, .tc-in input:disabled { opacity: .55; cursor: default; }
@media (max-width: 720px) {
  .tc-tg { display: none; }
  .tc-win { left: 12px; right: 12px; width: auto; max-width: none; bottom: calc(86px + env(safe-area-inset-bottom)); height: auto; top: calc(var(--hdh) + 12px); max-height: none; }
}

/* Oppmerksomhet (tmf-connect.js): chat-knappen pulserer til chatten er åpnet, hjelpeboble etter 1 min */
.tc-nudge .tc-tg { animation: tcPulse 2.4s ease-out infinite; }
.tc-nudge .bar .chat { animation: tcPulseBar 2.4s ease-out infinite; }
@keyframes tcPulse { 0% { box-shadow: 0 14px 32px rgba(7,22,43,.32), 0 0 0 0 rgba(224,138,79,.65); } 70%, 100% { box-shadow: 0 14px 32px rgba(7,22,43,.32), 0 0 0 18px rgba(224,138,79,0); } }
@keyframes tcPulseBar { 0% { box-shadow: inset 0 0 0 2px var(--fjord), 0 0 0 0 rgba(224,138,79,.7); } 70%, 100% { box-shadow: inset 0 0 0 2px var(--fjord), 0 0 0 12px rgba(224,138,79,0); } }
.tc-tip { position: fixed; z-index: 66; right: 24px; bottom: 100px; width: max-content; max-width: min(320px, calc(100vw - 48px)); display: flex; align-items: flex-start; background: #fff; color: var(--fjord); border-radius: 16px; box-shadow: 0 18px 44px rgba(7,22,43,.34); animation: tcTipIn .35s ease-out; }
.tc-tip::after { content: ""; position: absolute; bottom: -7px; right: 23px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); border-radius: 0 0 3px 0; }
.tc-tip-t { flex: 1; min-width: 0; border: 0; background: none; text-align: left; font: inherit; font-size: 16px; font-weight: 700; line-height: 1.4; color: inherit; padding: 14px 2px 14px 18px; cursor: pointer; }
.tc-tip-x { flex: none; width: 40px; height: 40px; margin: 6px 6px 0 0; border: 0; border-radius: 10px; background: none; color: var(--steel); display: grid; place-items: center; cursor: pointer; }
.tc-tip-x svg.i { width: 18px; height: 18px; }
@keyframes tcTipIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tc-open .tc-tip, html:has(#mnav.open) .tc-tip { display: none; }
@media (max-width: 720px) {
  .tc-tip { left: 12px; right: 12px; width: auto; max-width: none; bottom: calc(88px + env(safe-area-inset-bottom)); }
  .tc-tip::after { right: auto; left: var(--ax, 50%); }
}
@media (prefers-reduced-motion: reduce) { .tc-nudge .tc-tg, .tc-nudge .bar .chat, .tc-tip { animation: none; } }

/* Samtykkebanner (consent.js) bruker designets .consent-stil */
.consent a { color: #fff; text-decoration: underline; }

/* Rettslige sider (personvern, cookies) */
.s-legal h2 { font-size: clamp(22px, 2.6vw, 28px); margin-top: 40px; }
.s-legal h2:first-child { margin-top: 0; }
.s-legal ul { margin: 14px 0 0 22px; color: var(--steel); font-size: 18px; line-height: 1.65; }
.s-legal li + li { margin-top: 6px; }
.s-legal a { color: var(--fjord); font-weight: 700; }
.s-legal strong { color: var(--fjord); }
.s-legal .upd { font-size: 15px; color: var(--steel-lt); margin-top: 32px; }

/* Hurtigknapper og lenker i regelbasert chat (2026-11-12) */
.tc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tc-chips button { font: inherit; font-size: 14px; font-weight: 700; color: var(--fjord); background: #fff; border: 1.5px solid var(--copper); border-radius: 999px; padding: 8px 14px; min-height: 40px; cursor: pointer; }
.tc-chips button:hover, .tc-chips button:focus-visible { background: var(--copper); color: #fff; outline: none; }
.tc-bubble a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Samtykkebanner nederst i full bredde (2026-11-15). Dekker ikke chatten eller skjemaene:
   consent.js måler høyden (--cbh) og høyden på mobilens knapperad (--cbb),
   og chat-knappen, chat-hjelpen og sidens bunn flyttes like mye opp. */
#cookieBanner.consent { position: fixed; z-index: 64; top: auto; left: 0; right: 0; bottom: var(--cbb, 0px); max-width: none; margin: 0; border-radius: 0; display: flex; align-items: center; gap: 18px; padding: 12px max(20px, calc((100vw - 1240px) / 2)); font-size: 14px; box-shadow: 0 -8px 24px rgba(7,22,43,.28); }
#cookieBanner.consent b { display: block; flex: none; margin: 0; font-size: 15px; }
#cookieBanner.consent p { display: block; flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 1.45; }
#cookieBanner.consent .cb-s { display: none; }
#cookieBanner.consent .cb { flex: none; margin: 0; gap: 10px; }
#cookieBanner.consent .btn { flex: none; min-height: 44px; padding: 10px 22px; font-size: 15px; }
html.has-cb { scroll-padding-bottom: calc(var(--cbh) + var(--cbb, 0px) + 12px); }
html.has-cb body { padding-bottom: var(--cbh); }
html.has-cb .tc-tg { bottom: calc(24px + var(--cbh)); }
html.has-cb .tc-tip { bottom: calc(100px + var(--cbh)); }
html.has-cb .tc-win { bottom: calc(96px + var(--cbh)); max-height: calc(100vh - 140px - var(--cbh)); }
.tc-open #cookieBanner.consent { display: none; }
@media (max-width: 1000px) {
  #cookieBanner.consent b { display: none; }
  #cookieBanner.consent .cb-l { display: none; }
  #cookieBanner.consent .cb-s { display: inline; }
}
@media (max-width: 720px) {
  #cookieBanner.consent { gap: 10px; padding: 8px 12px; border-top: 1px solid rgba(255,255,255,.12); box-shadow: 0 -6px 18px rgba(7,22,43,.22); }
  #cookieBanner.consent p { font-size: 13px; line-height: 1.35; }
  #cookieBanner.consent .cb { gap: 6px; }
  #cookieBanner.consent .btn { min-height: 44px; padding: 8px 12px; font-size: 14px; }
  html.has-cb body { padding-bottom: calc(76px + var(--cbh)); }
  html.has-cb .tc-tip { bottom: calc(88px + var(--cbh) + env(safe-area-inset-bottom)); }
}

/* Sesongbånd: «Bestill til våren» under tillitsstripen */
.sesong { background: #FFF6EC; border-bottom: 1px solid var(--line); }
.sesong .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px 32px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.sesong .tx b { display: block; font-size: 19px; font-weight: 800; color: var(--fjord); }
.sesong .tx span { font-size: 15px; color: var(--steel); }
.sesong .ac { display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap; }
.sesong .more { font-weight: 800; color: var(--fjord); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) {
  .sesong .wrap { flex-direction: column; align-items: flex-start; padding-top: 16px; padding-bottom: 16px; }
  .sesong .ac { width: 100%; }
  .sesong .ac .btn { width: 100%; }
}
