/* Footer, cookie panel, and footer utility controls. */

.footer {
  flex: 0 0 auto !important;
  margin-top: 0 !important;
  padding: 0 !important;
  background: #e2e8f1 !important;
  color: var(--txt-2, #475569);
  border-top: 1px solid #cbd5e1 !important;
}

html[data-theme="dark"] .footer {
  background: #0f172a !important;
  color: #cbd5e1;
  border-top-color: rgba(148, 163, 184, .18) !important;
}

.footer a {
  text-decoration: none;
}

.footer-inner {
  width: min(var(--evc-shell-max, 1320px), calc(100% - var(--evc-page-gutter, 32px))) !important;
  max-width: none !important;
  margin-inline: auto !important;
  padding: 46px 0 22px !important;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 1.05fr) minmax(0, 1.95fr);
  gap: clamp(34px, 5vw, 70px);
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(148, 163, 184, .42);
}

html[data-theme="dark"] .footer-top {
  border-bottom-color: rgba(148, 163, 184, .18);
}

.footer-brand {
  align-items: flex-start;
  gap: 5px;
}

.footer-brand .brand-logo {
  height: 34px;
}

.footer-brand-caption {
  max-width: 260px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

html[data-theme="dark"] .footer-brand-caption {
  color: #94a3b8;
}

.footer-desc {
  max-width: 430px;
  margin: 18px 0 20px;
  color: #334155;
  font-size: 15px;
  line-height: 1.65;
}

html[data-theme="dark"] .footer-desc {
  color: #cbd5e1;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.footer-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  color: #334155;
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1;
}

html[data-theme="dark"] .footer-badges span {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .10);
  color: #e5edf8;
}

.footer-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.footer-share-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, .32);
  border-radius: 10px;
  background: rgba(255, 255, 255, .68);
  color: #334155;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}

.footer-share-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, .34);
  background: rgba(255, 255, 255, .86);
  color: var(--c-primary, #2563eb);
}

.footer-share-btn i {
  font-size: 14px;
  line-height: 1;
}

.footer-share-instagram { color: #c13584; }
.footer-share-x { color: #111827; }
.footer-share-facebook { color: #1877f2; }
.footer-share-linkedin { color: #0a66c2; }
.footer-share-rss { color: #ea580c; }

.footer-share-btn.is-copied {
  border-color: rgba(16, 185, 129, .45);
  background: rgba(16, 185, 129, .12);
  color: #059669;
}

html[data-theme="dark"] .footer-share-btn {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .10);
  color: #e5edf8;
}

html[data-theme="dark"] .footer-share-btn:hover {
  background: rgba(96, 165, 250, .14);
  border-color: rgba(96, 165, 250, .32);
  color: #93c5fd;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 40px);
}

.footer-col h4 {
  display: inline-flex;
  align-items: center;
  margin: 0 0 13px;
  padding-bottom: 7px;
  border-bottom: 2px solid rgba(15, 23, 42, .16);
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

html[data-theme="dark"] .footer-col h4 {
  color: #dbeafe;
  border-bottom-color: rgba(219, 234, 254, .24);
}

.footer-col a {
  display: block;
  width: fit-content;
  padding: 6px 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.45;
}

.footer-col a:hover {
  color: var(--c-primary, #2563eb);
}

html[data-theme="dark"] .footer-col a {
  color: #cbd5e1;
}

html[data-theme="dark"] .footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  width: 100%;
  padding-top: 18px !important;
  margin-top: 0 !important;
  overflow: visible !important;
}

.footer-copy {
  min-width: 0 !important;
  color: #334155 !important;
  font-size: 13px;
  line-height: 1.45 !important;
}

html[data-theme="dark"] .footer-copy {
  color: #cbd5e1 !important;
}

.footer-bottom-links {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 7px !important;
  flex-wrap: wrap !important;
  min-width: 0;
  margin-left: auto !important;
  overflow: visible !important;
  white-space: nowrap !important;
}

.footer-bottom-links .evc-dropdown {
  position: relative;
  flex: 0 0 auto;
}

.footer-tool {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: auto !important;
  min-width: 0 !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 10px !important;
  border: 1px solid transparent !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: #334155 !important;
  box-shadow: none !important;
  cursor: pointer;
  font: inherit;
  font-size: 11.5px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  text-decoration: none;
  box-sizing: border-box;
}

.footer-tool:hover,
.footer-tool.is-open,
.footer-tool[aria-expanded="true"] {
  border-color: transparent !important;
  background: var(--surf2, #f1f5f9) !important;
  color: var(--c-primary, #2563eb) !important;
}

.footer-tool i {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 13px !important;
  width: 13px !important;
  height: 13px !important;
  margin: 0 !important;
  color: var(--c-primary, #2563eb) !important;
  font-size: 11px !important;
  line-height: 1 !important;
}

.footer-tool-label {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: max-content !important;
  color: inherit !important;
  font-size: 11.5px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

html[data-theme="dark"] .footer-tool {
  background: transparent !important;
  border-color: transparent !important;
  color: #e5edf8 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .footer-tool:hover,
html[data-theme="dark"] .footer-tool.is-open,
html[data-theme="dark"] .footer-tool[aria-expanded="true"] {
  background: rgba(255, 255, 255, .08) !important;
  border-color: transparent !important;
  color: #bfdbfe !important;
}

html[data-theme="dark"] .footer-tool i {
  color: #60a5fa !important;
}

.pwa-only,
.footer-tool.pwa-only,
.mobile-top-actions .pwa-only,
.pwa-control.pwa-only {
  display: none !important;
}

html.is-pwa .pwa-only,
html.is-pwa-shell .pwa-only,
html.is-pwa .footer-tool.pwa-only,
html.is-pwa-shell .footer-tool.pwa-only,
html.is-pwa .mobile-top-actions .pwa-only,
html.is-pwa-shell .mobile-top-actions .pwa-only,
html.is-pwa .pwa-control.pwa-only,
html.is-pwa-shell .pwa-control.pwa-only {
  display: inline-flex !important;
}

html.is-pwa .browser-only,
html.is-pwa-shell .browser-only,
html.is-pwa .footer-tool.browser-only,
html.is-pwa-shell .footer-tool.browser-only,
html.is-pwa .mobile-top-actions .browser-only,
html.is-pwa-shell .mobile-top-actions .browser-only,
html.is-pwa .pwa-control.browser-only,
html.is-pwa-shell .pwa-control.browser-only,
[data-pwa-install][data-pwa-state="hidden"] {
  display: none !important;
}

html.is-browser .browser-only,
html.is-browser .footer-tool.browser-only,
html.is-browser .mobile-top-actions .browser-only,
html.is-browser .pwa-control.browser-only,
html:not(.is-pwa):not(.is-pwa-shell) .browser-only {
  display: inline-flex !important;
}

@media (display-mode: standalone) {
  .browser-only,
  .footer-tool.browser-only,
  .mobile-top-actions .browser-only,
  .pwa-control.browser-only {
    display: none !important;
  }

  .pwa-only,
  .footer-tool.pwa-only,
  .mobile-top-actions .pwa-only,
  .pwa-control.pwa-only {
    display: inline-flex !important;
  }
}

.footer-bottom-links .evc-dropdown {
  position: relative;
}

.footer-bottom-links .evc-dropdown-panel {
  display: none !important;
  position: absolute;
  z-index: 10050;
  right: 0;
  left: auto;
  bottom: calc(100% + 10px);
  top: auto;
  min-width: 180px;
  padding: 7px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 13px;
  background: var(--surf, #fff);
  color: var(--txt, #0f172a);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .16);
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.footer-bottom-links .evc-dropdown-panel.is-open {
  display: grid !important;
}

html[data-theme="dark"] .footer-bottom-links .evc-dropdown-panel {
  background: #101f36;
  border-color: rgba(148, 163, 184, .22);
  color: #e5edf8;
}

.footer-bottom-links .evc-dropdown-panel[data-evc-menu-panel="footer-lang"] {
  width: min(88vw, 278px) !important;
  min-width: 220px !important;
  max-height: min(58dvh, 320px) !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 5px;
}

.footer-bottom-links .evc-dropdown-panel[data-evc-menu-panel="footer-theme"] {
  width: 168px !important;
  min-width: 168px !important;
  max-height: min(54dvh, 220px) !important;
  grid-template-columns: 1fr;
  gap: 3px;
}

.footer-bottom-links .evc-dropdown-panel a,
.footer-bottom-links .evc-dropdown-panel button {
  width: 100%;
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 6px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.15;
  text-align: left;
  box-sizing: border-box;
}

.footer-bottom-links .evc-dropdown-panel a:hover,
.footer-bottom-links .evc-dropdown-panel button:hover,
.footer-bottom-links .evc-dropdown-panel .is-active,
.footer-bottom-links .evc-dropdown-panel button.is-active,
.footer-bottom-links .evc-dropdown-panel button[aria-pressed="true"] {
  background: rgba(37, 99, 235, .10);
  color: var(--txt, #0f172a);
}

html[data-theme="dark"] .footer-bottom-links .evc-dropdown-panel a:hover,
html[data-theme="dark"] .footer-bottom-links .evc-dropdown-panel button:hover,
html[data-theme="dark"] .footer-bottom-links .evc-dropdown-panel .is-active,
html[data-theme="dark"] .footer-bottom-links .evc-dropdown-panel button.is-active,
html[data-theme="dark"] .footer-bottom-links .evc-dropdown-panel button[aria-pressed="true"] {
  background: rgba(96, 165, 250, .16);
  color: #eff6ff;
}

.footer-bottom-links [data-evc-menu-panel="footer-lang"] a {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 7px;
  direction: ltr;
}

.footer-bottom-links [data-evc-menu-panel="footer-lang"] .evc-lang-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-bottom-links [data-evc-menu-panel="footer-lang"] .evc-lang-name[dir="rtl"] {
  direction: rtl;
  text-align: left;
  unicode-bidi: isolate;
}

.footer-bottom-links [data-evc-menu-panel="footer-lang"] small {
  justify-self: end;
  min-width: 20px;
  color: inherit;
  font-size: 9.5px;
  opacity: .62;
  text-align: right;
}

.footer-bottom-links [data-evc-menu-panel="footer-theme"] button {
  justify-content: flex-start;
  overflow: hidden;
  white-space: nowrap;
}

.footer-bottom-links [data-evc-menu-panel="footer-theme"] button i {
  flex: 0 0 18px;
  width: 18px;
  text-align: center;
}

.footer-bottom-links [data-evc-menu-panel="footer-theme"] button::after {
  content: "";
  flex: 0 0 14px;
  margin-left: auto;
  color: var(--c-primary, #2563eb);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-align: right;
}

.footer-bottom-links [data-evc-menu-panel="footer-theme"] button.is-active::after,
.footer-bottom-links [data-evc-menu-panel="footer-theme"] button[aria-pressed="true"]::after {
  content: "\2713";
}

[data-evc-theme-icon].evc-theme-icon-light,
#themeIcon.evc-theme-icon-light,
#themeIconMob.evc-theme-icon-light,
[data-evc-theme-choice="light"] .fa-sun {
  color: #f59e0b !important;
}
html[data-theme="dark"] [data-evc-theme-icon].evc-theme-icon-light,
html[data-theme="dark"] #themeIcon.evc-theme-icon-light,
html[data-theme="dark"] #themeIconMob.evc-theme-icon-light,
html[data-theme="dark"] [data-evc-theme-choice="light"] .fa-sun {
  color: #fbbf24 !important;
}

[data-evc-theme-icon].evc-theme-icon-dark,
#themeIcon.evc-theme-icon-dark,
#themeIconMob.evc-theme-icon-dark,
[data-evc-theme-choice="dark"] .fa-moon {
  color: #2563eb !important;
}
html[data-theme="dark"] [data-evc-theme-icon].evc-theme-icon-dark,
html[data-theme="dark"] #themeIcon.evc-theme-icon-dark,
html[data-theme="dark"] #themeIconMob.evc-theme-icon-dark,
html[data-theme="dark"] [data-evc-theme-choice="dark"] .fa-moon {
  color: #60a5fa !important;
}

[data-evc-theme-icon].evc-theme-icon-system-light,
[data-evc-theme-icon].evc-theme-icon-system-dark,
#themeIcon.evc-theme-icon-system-light,
#themeIconMob.evc-theme-icon-system-light,
#themeIcon.evc-theme-icon-system-dark,
#themeIconMob.evc-theme-icon-system-dark,
[data-evc-theme-choice="system"] .fa-desktop {
  color: #64748b !important;
}
html[data-theme="dark"] [data-evc-theme-icon].evc-theme-icon-system-light,
html[data-theme="dark"] [data-evc-theme-icon].evc-theme-icon-system-dark,
html[data-theme="dark"] #themeIcon.evc-theme-icon-system-light,
html[data-theme="dark"] #themeIconMob.evc-theme-icon-system-light,
html[data-theme="dark"] #themeIcon.evc-theme-icon-system-dark,
html[data-theme="dark"] #themeIconMob.evc-theme-icon-system-dark,
html[data-theme="dark"] [data-evc-theme-choice="system"] .fa-desktop {
  color: #94a3b8 !important;
}

@media (max-height: 560px) {
  .footer-bottom-links .evc-dropdown-panel {
    max-height: calc(100dvh - 92px) !important;
  }
}

@media (max-width: 920px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .footer-inner {
    width: min(var(--evc-shell-max, 1320px), calc(100% - var(--evc-page-gutter-mobile, 18px))) !important;
    padding: 38px 0 20px !important;
  }

  .footer-top {
    padding-bottom: 28px;
  }

  .footer-bottom {
    flex-direction: column !important;
    justify-content: center !important;
    gap: 13px !important;
    text-align: center !important;
  }

  .footer-bottom-links {
    order: 1 !important;
    width: 100% !important;
    justify-content: center !important;
    margin: 0 !important;
    white-space: normal !important;
  }

  .footer-copy {
    order: 2 !important;
    width: 100% !important;
    text-align: center !important;
    white-space: normal !important;
  }

  .footer-bottom-links .evc-dropdown-panel[data-evc-menu-panel="footer-lang"].is-open,
  .footer-bottom-links .evc-dropdown-panel[data-evc-menu-panel="footer-theme"].is-open {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: calc(92px + env(safe-area-inset-bottom)) !important;
    transform: translateX(-50%) !important;
    max-width: calc(100vw - 28px) !important;
  }

  .footer-bottom-links .evc-dropdown-panel[data-evc-menu-panel="footer-lang"].is-open {
    width: min(92vw, 320px) !important;
    min-width: 0 !important;
    max-height: min(58dvh, 380px) !important;
  }

  .footer-bottom-links .evc-dropdown-panel[data-evc-menu-panel="footer-theme"].is-open {
    width: min(72vw, 184px) !important;
    min-width: 0 !important;
    max-height: min(46dvh, 220px) !important;
  }
}

@media (max-width: 540px) {
  .footer-links {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-desc {
    font-size: 14px;
  }

  .footer-tool {
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 9px !important;
  }

  .footer-tool-label {
    font-size: 11px !important;
  }
}

@media (max-width: 380px) {
  .footer-bottom-links {
    gap: 6px !important;
  }

  .footer-tool {
    padding: 0 8px !important;
  }

  .footer-tool-label {
    font-size: 10.5px !important;
  }
}

/* Cookie bar */
#cookie-bar {
  display: none;
  opacity: 0;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10000;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 24px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: #1e293b;
  color: #e2eaf5;
  font-family: inherit;
  transition: opacity .3s ease;
}

.cb-left {
  flex: 1;
  min-width: 220px;
}

.cb-title {
  margin: 0 0 4px;
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
}

.cb-desc {
  margin: 0;
  color: #94a3b8;
  font-size: .8rem;
  line-height: 1.6;
}

.cb-desc a {
  margin-left: 6px;
  color: #60a5fa;
  text-decoration: underline;
}

.cb-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 8px;
}

.cb-btn {
  padding: 8px 18px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.cb-cst {
  border: 1px solid rgba(255, 255, 255, .25) !important;
  background: transparent;
  color: #e2eaf5;
}

.cb-cst:hover {
  background: rgba(255, 255, 255, .08);
}

.cb-nec {
  border: 1px solid rgba(255, 255, 255, .15) !important;
  background: rgba(255, 255, 255, .10);
  color: #e2eaf5;
}

.cb-nec:hover {
  background: rgba(255, 255, 255, .18);
}

.cb-all {
  background: var(--c-primary, #2563eb);
  color: #fff;
}

.cb-all:hover {
  background: var(--c-primary-dark, #1d4ed8);
}

#cookie-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(2px);
}

#cookie-panel {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 10002;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .25);
  color: #1e293b;
  font-family: inherit;
  transform: translate(-50%, -50%);
}

#cookie-panel.open {
  display: block;
  animation: cpIn .22s ease;
}

@keyframes cpIn {
  from { opacity: 0; transform: translate(-50%, -48%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.cp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 0;
}

.cp-title {
  color: #1e293b;
  font-size: 1rem;
  font-weight: 800;
}

.cp-close {
  padding: 4px 8px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: #64748b;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.cp-close:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.cp-intro {
  padding: 12px 22px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #475569;
  font-size: .84rem;
  line-height: 1.65;
}

.cp-intro a {
  margin-left: 4px;
  color: var(--c-primary, #2563eb);
  text-decoration: underline;
}

.cp-accept-all {
  display: block;
  width: calc(100% - 44px);
  margin: 14px 22px 4px;
  padding: 11px;
  border: 0;
  border-radius: 10px;
  background: var(--c-primary, #2563eb);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 700;
  transition: background .15s ease;
}

.cp-accept-all:hover {
  background: var(--c-primary-dark, #1d4ed8);
}

.cp-cat {
  border-top: 1px solid #f1f5f9;
}

.cp-cat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  cursor: pointer;
  user-select: none;
  transition: background .12s ease;
}

.cp-cat-head:hover {
  background: #f8fafc;
}

.cp-expand {
  flex-shrink: 0;
  width: 16px;
  color: #94a3b8;
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
  transition: transform .2s ease;
}

.cp-cat.open .cp-expand {
  transform: rotate(45deg);
}

.cp-cat-name {
  flex: 1;
  color: #1e293b;
  font-size: .88rem;
  font-weight: 600;
}

.cp-always {
  padding: 3px 10px;
  border-radius: 20px;
  background: #d1fae5;
  color: #059669;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}

.cp-toggle {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 42px;
  height: 22px;
  cursor: pointer;
}

.cp-toggle input {
  width: 0;
  height: 0;
  opacity: 0;
}

.cp-slider {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: #cbd5e1;
  transition: background .2s ease;
}

.cp-slider::before {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .2s ease;
}

.cp-toggle input:checked + .cp-slider {
  background: var(--c-primary, #2563eb);
}

.cp-toggle input:checked + .cp-slider::before {
  transform: translateX(20px);
}

.cp-cat-body {
  display: none;
  padding: 0 22px 14px 48px;
  color: #64748b;
  font-size: .82rem;
  line-height: 1.6;
}

.cp-cat.open .cp-cat-body {
  display: block;
}

.cp-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid #f1f5f9;
}

.cp-btn-rej,
.cp-btn-save {
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.cp-btn-rej {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
}

.cp-btn-rej:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.cp-btn-save {
  border: 0;
  background: var(--c-primary, #2563eb);
  color: #fff;
  font-weight: 700;
}

.cp-btn-save:hover {
  background: var(--c-primary-dark, #1d4ed8);
}

html[data-theme="dark"] #cookie-panel {
  background: #1e293b;
  color: #e2eaf5;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .6);
}

html[data-theme="dark"] .cp-title,
html[data-theme="dark"] .cp-cat-name {
  color: #f1f5f9;
}

html[data-theme="dark"] .cp-close {
  color: #94a3b8;
}

html[data-theme="dark"] .cp-close:hover,
html[data-theme="dark"] .cp-cat-head:hover {
  background: #263548;
  color: #f1f5f9;
}

html[data-theme="dark"] .cp-intro,
html[data-theme="dark"] .cp-cat-body {
  color: #94a3b8;
}

html[data-theme="dark"] .cp-intro,
html[data-theme="dark"] .cp-cat,
html[data-theme="dark"] .cp-foot {
  border-color: #334155;
}

html[data-theme="dark"] .cp-slider {
  background: #475569;
}

html[data-theme="dark"] .cp-btn-rej {
  background: #263548;
  border-color: #334155;
  color: #94a3b8;
}

html[data-theme="dark"] .cp-btn-rej:hover {
  background: #334155;
}

@media (max-width: 600px) {
  #cookie-bar {
    padding: 12px 14px;
  }

  .cb-actions {
    width: 100%;
  }

  .cb-btn {
    flex: 1;
    padding: 8px 10px;
    font-size: .75rem;
  }

  #cookie-panel {
    width: calc(100% - 24px);
    max-height: 92vh;
    border-radius: 14px;
  }

  .cp-head {
    padding: 14px 16px 0;
  }

  .cp-intro,
  .cp-cat-head {
    padding-right: 16px;
    padding-left: 16px;
  }

  .cp-accept-all {
    width: calc(100% - 32px);
    margin-right: 16px;
    margin-left: 16px;
  }

  .cp-cat-body {
    padding-left: 16px;
  }

  .cp-foot {
    padding: 12px 16px;
  }
}

/* Scroll-to-top */
.evc-scroll-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(var(--evc-scroll-top-bottom, 18px) + env(safe-area-inset-bottom));
  z-index: 9998;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  background: var(--c-primary, #2563eb);
  color: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .22);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.evc-scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.evc-scroll-top:hover {
  background: var(--c-primary-dark, #1d4ed8);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .28);
}

.evc-scroll-top:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--c-primary, #2563eb) 35%, transparent);
  outline-offset: 3px;
}

.evc-scroll-top i {
  font-size: 16px;
  line-height: 1;
}

@media (max-width: 720px) {
  .evc-scroll-top {
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(var(--evc-scroll-top-bottom, 14px) + env(safe-area-inset-bottom));
    width: 40px;
    height: 40px;
  }

  .evc-scroll-top i {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .evc-scroll-top {
    transition: none;
  }
}
