/* Site footer v2 — matches footer mockup */

:root {
  --ci-footer-red: #8b1538;
  --ci-footer-red-dark: #6f112d;
  --ci-footer-bg: #f5f5f5;
  --ci-footer-text: #111111;
  --ci-footer-muted: #111111;
  --ci-footer-border: #e0e0e0;
  --ci-footer-serif: "Playfair Display", "Times New Roman", Times, serif;
  --ci-footer-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.ci-has-v2-footer .site-footer:not(.ci-site-footer),
body.ci-has-v2-footer .footer-copyright,
body.ci-has-v2-footer .footer-all-reviews,
body.ci-has-v2-footer .footer-disclaimer,
body.ci-has-v2-footer .footer-lang-switcher {
  display: none !important;
}

/* Sticky footer on flex column body (same behaviour as legacy .site-footer) */
body.ci-has-v2-footer #main.main-wrapper {
  flex: 1 0 auto;
}

body.ci-has-v2-footer .ci-site-footer {
  margin-top: auto;
  flex-shrink: 0;
}

.ci-site-footer {
  box-sizing: border-box;
  width: 100%;
  font-family: var(--ci-footer-sans);
  color: var(--ci-footer-text);
  background: var(--ci-footer-bg) !important;
  margin-top: 0;
  padding: 0;
  border-top: 1px solid var(--ci-footer-border);
  line-height: normal;
}

.ci-site-footer *,
.ci-site-footer *::before,
.ci-site-footer *::after {
  box-sizing: border-box;
}

.ci-site-footer__inner {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 0;
}

.ci-site-footer__grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.45fr) repeat(3, minmax(0, 1fr));
  gap: 0;
  align-items: start;
  padding-bottom: 36px;
}

.ci-site-footer__brand {
  padding-right: 40px;
}

.ci-site-footer__col,
.ci-site-footer__accordion {
  padding: 0 32px;
  border-left: 1px solid var(--ci-footer-border);
}

.ci-site-footer__accordion {
  display: block;
}

.ci-site-footer__accordion-summary {
  list-style: none;
  cursor: default;
}

.ci-site-footer__accordion-summary::-webkit-details-marker {
  display: none;
}

.ci-site-footer__accordion-icon {
  display: none;
  flex-shrink: 0;
  color: var(--ci-footer-red);
  line-height: 0;
  transition: transform 0.2s ease;
}

.ci-site-footer__accordion-panel {
  padding: 0;
}

.ci-site-footer__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin: 0 0 18px;
  line-height: 0;
}

.ci-site-footer__logo-img {
  display: block;
  height: 22px;
  width: auto;
  max-width: 206px;
}

.ci-site-footer__tagline {
  margin: 0 0 22px;
  max-width: 300px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ci-footer-muted);
}

.ci-site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ci-site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 5px;
  background: var(--ci-footer-red);
  color: #fff;
  text-decoration: none;
  transition: background 0.15s ease;
}

.ci-site-footer__social-link:hover {
  background: var(--ci-footer-red-dark);
  color: #fff;
}

.ci-site-footer__social-link svg,
.ci-site-footer__social-icon-img {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  object-fit: contain;
}

.ci-site-footer__social-icon-img {
  filter: brightness(0) invert(1);
}

.ci-site-footer__heading {
  margin: 0 0 14px;
  font-family: var(--ci-footer-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ci-footer-red);
}

.ci-site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ci-site-footer__links li + li {
  margin-top: 8px;
}

.ci-site-footer__links a {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ci-footer-text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.ci-site-footer__links a:hover {
  color: var(--ci-footer-red);
}

.ci-site-footer__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 0 22px;
  border-top: 1px solid var(--ci-footer-border);
}

.ci-site-footer__utilities {
  display: contents;
}

.ci-site-footer__bar:not(:has(.ci-site-footer__center)) {
  grid-template-columns: 1fr auto;
}

.ci-site-footer__bar:not(:has(.ci-site-footer__center)) .ci-site-footer__utilities {
  display: flex;
  justify-content: flex-end;
}

.ci-site-footer__copy {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ci-footer-text);
  justify-self: start;
}

.ci-site-footer__center {
  justify-self: center;
  text-align: center;
}

.ci-site-footer__sitemap,
.ci-site-footer__cookies,
.ci-site-footer__center .cn-revoke-cookie,
.ci-site-footer__center .gdpr-cmp-manage-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ci-footer-text);
  text-decoration: none;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  margin: 0;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.4;
  width: auto;
  cursor: pointer;
  font-family: inherit;
  justify-self: start;
  transition: color 0.15s ease;
}

.ci-site-footer__sitemap:hover,
.ci-site-footer__cookies:hover,
.ci-site-footer__center .cn-revoke-cookie:hover,
.ci-site-footer__center .gdpr-cmp-manage-link:hover,
.ci-site-footer__center .gdpr-cmp-manage-link:focus {
  color: var(--ci-footer-red);
  text-decoration: underline;
}

/* GDPR CMP prints a duplicate manage link after the footer in wp_footer */
body.ci-has-v2-footer #gdpr-cmp-manage-link {
  display: none !important;
}

body.ci-has-v2-footer #ciFooterCookies #gdpr-cmp-manage-link {
  display: inline-block !important;
}

/* V2 footer uses the footer "Manage cookies" link — never show the plugin fixed bar */
body.ci-has-v2-footer #cookie-notice {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

/* Never show the plugin revoke strip; footer bar link is the control */
body.ci-has-v2-footer #cookie-notice .cookie-revoke-container {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Collapse fixed bar when only the revoke strip would show (below footer) */
body.ci-has-v2-footer #cookie-notice.cookie-revoke-visible:not(.cookie-notice-visible),
body.ci-has-v2-footer #cookie-notice.ci-footer-revoke-hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  background: transparent !important;
}

.ci-site-footer__rss {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ci-footer-text);
  text-decoration: none;
  transition: color 0.15s ease;
  justify-self: end;
}

.ci-site-footer__rss:hover {
  color: var(--ci-footer-red);
}

.ci-site-footer__rss svg {
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .ci-site-footer__accordion-summary {
    pointer-events: none;
    padding: 0;
  }

  .ci-site-footer__accordion .ci-site-footer__heading {
    margin: 0 0 14px;
  }
}

@media (max-width: 991px) {
  .ci-site-footer__inner {
    width: calc(100% - 32px);
    padding-top: 36px;
  }

  .ci-site-footer__grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 20px;
  }

  .ci-site-footer__brand {
    padding-right: 0;
    border-bottom: none;
    padding-bottom: 20px;
  }

  .ci-site-footer__accordion {
    width: 100%;
    align-self: stretch;
    border-left: none;
    border-top: 1px solid var(--ci-footer-border);
    padding: 0;
  }

  .ci-site-footer__accordion:last-of-type {
    border-bottom: none;
  }

  .ci-site-footer__accordion-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 15px 0;
    cursor: pointer;
  }

  .ci-site-footer__accordion-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    flex-shrink: 0;
  }

  .ci-site-footer__accordion[open] .ci-site-footer__accordion-icon {
    transform: rotate(180deg);
  }

  .ci-site-footer__accordion .ci-site-footer__heading {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-family: var(--ci-footer-serif);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ci-footer-red);
  }

  .ci-site-footer__accordion-panel {
    padding: 0 0 16px;
  }

  .ci-site-footer__links li + li {
    margin-top: 10px;
  }

  .ci-site-footer__bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 22px 0 26px;
    text-align: center;
  }

  .ci-site-footer__utilities {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 100%;
  }

  .ci-site-footer__copy {
    justify-self: auto;
    width: 100%;
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
    color: #4b5563;
  }

  .ci-site-footer__center {
    justify-self: auto;
    text-align: center;
    padding-right: 14px;
    margin-right: 14px;
    border-right: 1px solid var(--ci-footer-border);
  }

  .ci-site-footer__sitemap,
  .ci-site-footer__cookies,
  .ci-site-footer__center .cn-revoke-cookie,
  .ci-site-footer__center .gdpr-cmp-manage-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    justify-self: auto;
  }

  .ci-site-footer__center .ci-site-footer__cookies::before,
  .ci-site-footer__center .cn-revoke-cookie::before,
  .ci-site-footer__center .gdpr-cmp-manage-link::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 3c-4 0-7 2.2-7 5.5 0 1.2.5 2.3 1.3 3.2L5 21l4.2-2.2c.9.3 1.9.5 2.8.5 4 0 7-2.2 7-5.5S16 3 12 3z' stroke='black' stroke-width='1.6'/%3E%3Ccircle cx='9' cy='10' r='1' fill='black'/%3E%3Ccircle cx='12' cy='8.5' r='1' fill='black'/%3E%3Ccircle cx='15' cy='10' r='1' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 3c-4 0-7 2.2-7 5.5 0 1.2.5 2.3 1.3 3.2L5 21l4.2-2.2c.9.3 1.9.5 2.8.5 4 0 7-2.2 7-5.5S16 3 12 3z' stroke='black' stroke-width='1.6'/%3E%3Ccircle cx='9' cy='10' r='1' fill='black'/%3E%3Ccircle cx='12' cy='8.5' r='1' fill='black'/%3E%3Ccircle cx='15' cy='10' r='1' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
    opacity: 0.9;
  }

  .ci-site-footer__rss {
    justify-self: auto;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    gap: 6px;
  }
}

@media (max-width: 600px) {
  .ci-site-footer__inner {
    width: calc(100% - 24px);
    padding-top: 32px;
  }

  .ci-site-footer__tagline {
    margin-bottom: 18px;
  }
}
