/* Comafe. Medidas, fuentes y colores sacados del CSS de www.comafe.es (Astra + Elementor). */

@font-face { font-family: "Open Sans"; src: url("../assets/fonts/open-sans.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../assets/fonts/open-sans-italic.woff2") format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Questrial"; src: url("../assets/fonts/questrial.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../assets/fonts/roboto.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../assets/fonts/roboto-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Roboto Slab"; src: url("../assets/fonts/roboto-slab.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --green: #b5bf02;
  --green-text: #b5bf00;
  --green-link: #b5bf03;
  --grey: #8c8d8f;
  --grey-text: #8b8d8f;
  --text: #7a7a7a;
  --dark: #3a3a3a;
  --blue-link: #0170b9;
  --wb-accent: #b5bf03;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 100%; }

@media (max-width: 921px) {
  html { font-size: 91.2%; }
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: #fff;
  color: #4b4f58;
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.65em;
}

img { max-width: 100%; height: auto; border: 0; }

a { color: var(--blue-link); }

p { margin: 0 0 1.6em; }

:focus-visible { outline: 2px solid #3a3a3a; outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: .5rem 1rem;
  background: #fff;
  color: #000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.page-content { flex: 1 0 auto; }

/* ---------- Cabecera ---------- */

.site-header {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: stretch;
  min-height: 54px;
  padding-right: .695%;
  border-bottom: 2px solid #fff;
  background: var(--green);
}

.site-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 11.666%;
  flex: 0 0 auto;
}
.site-logo img { display: block; width: 97px; }

.site-nav { flex: 1 1 auto; display: flex; justify-content: center; align-items: center; padding: .25rem 0; }

.nav-list { display: flex; justify-content: center; margin: 0; padding: 0; list-style: none; }
.nav-list > li { position: relative; margin: 0 12.5px; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border: 0;
  background: none;
  color: #fff;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.nav-link svg { width: 9px; height: 14px; fill: currentColor; }
.nav-link .icon-caret { display: none; }
button.nav-link { cursor: default; }

.sub-list {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  min-width: 100%;
  margin: 0;
  padding: 0;
  background: #b5bf03;
  list-style: none;
}
.nav-list > li:hover > .sub-list,
.nav-list > li:focus-within > .sub-list,
.nav-list > li.is-open > .sub-list { display: block; }

.sub-list a {
  display: block;
  padding: 13px 27px;
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
}
.sub-list a:hover, .sub-list a:focus { background: #fff; color: #b5bf03; }

.private-access {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.604%;
  flex: 0 0 auto;
  margin-right: 3px;
  background: var(--grey);
  color: #fff;
}
.private-access svg { width: 14px; height: 16px; fill: currentColor; }

.menu-toggle { display: none; }

/* Tableta: el menú pasa a icono, con el desplegable verde de la original */
@media (max-width: 1024px) {
  .site-header { min-height: 46px; }
  .site-logo { width: 14%; }
  .site-logo img { margin-left: 1rem; }
  .site-nav { display: none; }
  .private-access { order: 3; width: 5%; margin-right: 0; }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    order: 2;
    width: 34px;
    height: 34px;
    margin: auto 1rem auto auto;
    padding: 7px;
    border: 0;
    border-radius: 3px;
    background: #0000000d;
    cursor: pointer;
  }
  .menu-toggle span { display: block; height: 3px; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s; }
  .menu-toggle { gap: 4px; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav.is-open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    padding: 0;
    background: #b5bf03;
    box-shadow: 0 6px 10px #0000001f;
  }
  .site-nav.is-open .nav-list { flex-direction: column; }
  .site-nav.is-open .nav-list > li { margin: 0; }
  .site-nav.is-open .nav-link {
    justify-content: center;
    width: 100%;
    padding: 10px 20px;
    font-family: "Roboto", sans-serif;
    font-size: 15px;
    font-weight: 500;
  }
  .site-nav.is-open .nav-link:hover, .site-nav.is-open .nav-link:focus,
  .site-nav.is-open .nav-link[aria-current="page"] { background: #fff; color: #b5bf03; }
  .site-nav.is-open .sub-list { position: static; display: none; text-align: center; }
  .site-nav.is-open li.is-open > .sub-list { display: block; }
  .site-nav.is-open .sub-list a { padding: 10px 20px; font-size: 13px; }
}

/* Móvil: la cabecera propia de móvil de la original (logo, usuario y hamburguesa oscura) */
@media (max-width: 767px) {
  .site-header { min-height: 44px; padding-right: 0; border-bottom: 0; }
  .site-logo { justify-content: flex-start; width: 72%; }
  .site-logo img { width: 97px; }
  .private-access { order: 2; width: 13%; }
  .menu-toggle {
    order: 3;
    width: 40px;
    height: 40px;
    margin: 2px 5px 2px auto;
    padding: 0 5px;
    align-items: center;
    background: #0000000d;
    border-radius: 3px;
  }
  .menu-toggle span { width: 29px; background: #33373d; }
  .site-nav.is-open { background: #fff; box-shadow: none; }
  .site-nav.is-open .icon-angle { display: none; }
  .site-nav.is-open .icon-caret { display: block; }
  .site-nav.is-open .nav-link {
    color: #33373d;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
  }
  .site-nav.is-open .nav-link:hover, .site-nav.is-open .nav-link:focus,
  .site-nav.is-open .nav-link[aria-current="page"] { background: #3f444b; color: #fff; }
  .site-nav.is-open .sub-list { background: #fff; }
  .site-nav.is-open .sub-list a { color: #33373d; font-family: "Open Sans", sans-serif; font-weight: 600; }
  .site-nav.is-open .sub-list a:hover, .site-nav.is-open .sub-list a:focus { background: #3f444b; color: #fff; }
}

/* ---------- Pie ---------- */

.site-footer {
  padding: 1rem 10px 0;
  background: var(--grey);
  color: #fff;
  text-align: center;
}
.footer-inner { max-width: 800px; margin: 0 auto; padding: 10px; }
.footer-logo { display: block; margin: 0 auto 8px; width: 97px; }
.footer-address { margin: 0 0 2.9em; font-size: 13px; line-height: 1.65em; }
.footer-social { display: flex; justify-content: center; gap: 10px; margin: 0 0 4px; }
.footer-social img { display: block; width: 48px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; list-style: none; }
.footer-links a {
  display: block;
  padding: 13px 20px;
  color: #fff;
  font-size: 13px;
  line-height: 20px;
  text-decoration: none;
}

@media (max-width: 767px) {
  .footer-links a { padding: 13px 6px; font-size: 10px; }
}

/* ---------- Títulos de página ---------- */

.page-title {
  margin: 0 0 20px;
  color: var(--green-text);
  font-family: "Questrial", sans-serif;
  font-size: 46px;
  font-weight: 600;
  line-height: 1.4em;
  text-transform: uppercase;
}

.container { width: 100%; max-width: 1300px; margin: 0 auto; padding: 10px; }
.container-narrow { width: 100%; max-width: 1140px; margin: 0 auto; padding: 10px; }

@media (max-width: 1024px) {
  .container, .container-narrow { padding: 10px; }
}

/* ---------- Portada ---------- */

.home-hero {
  position: relative;
  padding: 4rem 0 19rem;
  background-position: center center;
  background-size: cover;
}
.home-hero-column { position: relative; width: 50%; padding: 0 0 0 4rem; }
.home-hero h1 {
  position: relative;
  width: 42%;
  margin: 0;
  color: #000;
  font-family: "Open Sans", sans-serif;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.3em;
}
.home-hero strong { color: var(--green-link); font-weight: 500; }

.home-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 1140px;
  margin: 0 auto;
  padding: 3rem 0;
  list-style: none;
}
.home-stats li { padding: 10px; text-align: center; }
.home-stats img { display: block; width: var(--icon-width); height: 80px; margin: 0 auto 20px; object-fit: contain; }
.home-stats span {
  display: block;
  color: var(--grey);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3em;
}

@media (max-width: 1024px) {
  .home-hero { margin: 0; padding: 2rem 0 3rem 4rem; }
  .home-hero-column { padding: 0; }
  .home-hero h1 { width: 62.977%; }
  .home-stats img { width: 38%; }
  .home-stats span { font-size: 12px; }
}

@media (max-width: 767px) {
  .home-hero { padding: 2rem 0 2rem 2rem; background-position: center left; }
  .home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-overlay);
    background-size: cover;
    opacity: .7;
  }
  .home-hero-column { width: 100%; }
  .home-hero h1 { width: 70%; }
  .home-stats { grid-template-columns: repeat(2, 1fr); }
  .home-stats li:last-child { grid-column: 1 / -1; }
  .home-stats li:last-child img { height: 68px; }
  .home-stats span { font-size: 13px; }
}

/* ---------- Nuestra empresa ---------- */

.about-page { margin-top: 2rem; }
.about-row { display: flex; align-items: flex-start; }
.about-row-image img { display: block; width: 100%; }
.about-row.image-left .about-row-image { width: 57.511%; }
.about-row.image-left .about-row-text { width: 42.444%; }
.about-row.image-right .about-row-text { width: 49.863%; order: -1; }
.about-row.image-right .about-row-image { width: 50.092%; }
.about-row-text { padding: 3rem; }
.about-row-text h2 {
  margin: 0 0 20px;
  color: var(--grey-text);
  font-family: "Questrial", sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3em;
}
.about-row-text p {
  color: var(--grey-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 21px;
  letter-spacing: -.9px;
}
.about-divider { margin: 2rem 0 calc(1rem + 20px); padding: 15px 0; }
.about-divider hr { margin: 0; border: 0; border-top: 1px solid #eee; }
.about-page .about-row:last-child { margin-bottom: 8rem; }

@media (max-width: 1024px) {
  .about-row { align-items: center; }
  .about-row-text { padding: 2rem; }
}

@media (max-width: 767px) {
  .about-row { flex-direction: column; }
  .about-row.image-left .about-row-image, .about-row.image-left .about-row-text,
  .about-row.image-right .about-row-image, .about-row.image-right .about-row-text { width: 100%; }
  .about-row.image-right .about-row-text { order: 0; }
  .about-row-text { padding: 2rem 0 10px; }
  .about-page .about-row:last-child .about-row-text { padding: 0; }
  .about-row-text h2 { font-size: 30px; }
}

/* ---------- Marcas propias ---------- */

.brands-page { margin: 2rem 0 3rem; }
.brands-intro p { color: var(--grey-text); font-weight: 500; }
.brand-item { margin: 0 0 calc(var(--brand-gap) + 20px); text-align: center; }
.brand-item h2 {
  /* Por delante del logo: con headingGap negativo (natuur) el JPEG, de fondo blanco, taparía el texto. */
  position: relative;
  z-index: 1;
  margin: 0 0 calc(var(--brand-heading-gap) + 20px);
  color: var(--grey-text);
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3em;
}
.brand-item h2 em { font-style: italic; }
.brand-item img { display: inline-block; width: var(--brand-width); vertical-align: middle; }
.brand-item a { display: inline-block; }

@media (max-width: 767px) {
  .brand-item { margin-bottom: calc(var(--brand-mobile-gap) + 20px); }
  .brand-item h2 { margin-bottom: calc(var(--brand-mobile-heading-gap) + 20px); }
  .brand-item img { width: var(--brand-mobile-width); }
}

/* ---------- Comunicación ---------- */

.news-page { margin: 2rem 0 3rem; }
.news-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: calc(2rem + 20px); }
.news-head .page-title { margin: 0; }
.news-filters { display: flex; margin: 0; padding: 0; list-style: none; }
.news-filters a {
  display: block;
  padding: 13px 20px;
  background: var(--green-text);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  text-transform: uppercase;
}

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px 30px; margin: 0; padding: 0; list-style: none; }
.news-card-image { position: relative; display: block; margin-bottom: 20px; padding-bottom: 66%; overflow: hidden; }
.news-card-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-card h2 {
  margin: 0 0 4px;
  font-family: "Questrial", sans-serif;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.3em;
}
.news-card h2 a { color: var(--green-text); text-decoration: none; }
.news-card time { display: block; margin-bottom: 13px; color: #adadad; font-family: "Roboto Slab", serif; font-size: 12px; line-height: 1.3em; }
.news-card p { margin: 0; color: #777; font-size: 14px; line-height: 1.5em; }

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  font-family: "Questrial", sans-serif;
  font-size: 16px;
  font-weight: 600;
}
.pagination a, .pagination span { color: var(--green-text); text-decoration: none; }
.pagination .is-disabled { opacity: 1; }

@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .news-head { flex-direction: column; align-items: flex-end; gap: 20px; margin-bottom: calc(2rem + 20px); }
  .news-head .page-title { align-self: stretch; }
  .news-filters a { padding: 13px 10px; font-size: 12px; }
  .news-grid { grid-template-columns: 1fr; row-gap: 45px; }
  .news-card-image { padding-bottom: 50%; }
}

/* ---------- Detalle de noticia ---------- */

.article-page { margin-top: 2rem; }
.article-image { display: block; margin: calc(1rem + 20px) 0 calc(1rem + 20px); text-align: center; }
.article-image img { display: inline-block; width: 100%; max-width: 1200px; }
.article-body { color: var(--text); font-family: "Roboto", sans-serif; }
.article-body a { color: var(--blue-link); text-decoration: none; }
.article-back { margin: 0 0 1rem; font-family: "Questrial", sans-serif; font-size: 17px; font-weight: 600; }
.article-back a { color: var(--green-text); text-decoration: none; }

.comments { margin-top: 2em; padding: 0 20px 0; border-top: 1px solid #e5e5e5; }
.comments h2 {
  margin: 1em 0 .3em;
  color: #8b8d8f;
  font-family: "Questrial", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3em;
}
.comments h2::before { content: "\2712"; padding-right: 5px; font-family: sans-serif; font-size: 1.2em; font-weight: 400; color: #555; }
.comments-notes { margin: 0 0 1.5em; color: #4b4f58; }
.comments form { display: grid; gap: 34px 20px; grid-template-columns: repeat(3, 1fr); }
.comments label.wide, .comments .comments-check, .comments .comments-actions, .comments .comments-status { grid-column: 1 / -1; }
.comments-actions { margin: -14px 0 0; }
.comments textarea, .comments input[type="text"], .comments input[type="email"], .comments input[type="url"] {
  width: 100%;
  padding: .75em 12px;
  border: 1px solid #dddddd;
  border-radius: 2px;
  background: #fafafa;
  color: #666;
  font: inherit;
}
.comments textarea { min-height: 236px; resize: vertical; }
.comments ::placeholder { color: #666; opacity: 1; }
.comments-check { display: block; margin: 0; }
.comments-check input { margin: 0 12px 0 0; vertical-align: -1px; }
.comments button[type="submit"] {
  padding: 10px 15px;
  border: 0;
  border-radius: 2px;
  background: #b5bf03;
  color: #fff;
  font-family: "Questrial", sans-serif;
  font-size: 16px;
  line-height: 1.857em;
  cursor: pointer;
}
.comments-status { margin: 0; color: #4b4f58; font-weight: 600; }
.comments-status:empty { display: none; }
.comments-privacy { margin: 5em 0 0; padding: 0 20px; color: var(--text); font-size: 14px; font-style: italic; }
.comments-privacy a { color: var(--green-link); text-decoration: none; }
/* Antibots: fuera de la vista, sin display:none (algunos bots se saltan los campos ocultos). */
.comments-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.comments-published { margin-top: 2em; padding: 0 20px; border-top: 1px solid #e5e5e5; }
.comments-published h2 { margin: 1em 0; font-size: 1.4em; color: #3a3a3a; }
.comment { margin: 0 0 1.5em; padding: 1em 1.2em; border: 1px solid #e5e5e5; border-radius: 4px; background: #fff; }
.comment-author { margin: 0; font-weight: 700; }
.comment-author a { color: var(--green-link); text-decoration: none; }
.comment-date { margin: 0 0 .5em; color: #6b6f78; font-size: .9em; }
.comment-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.comments-link { margin: 0 0 2em; padding: 1.2em 1.4em; border-left: 5px solid var(--green-link); background: #f4f8e6; }
.comments-link h3 { margin: 0 0 .5em; font-size: 1.2em; }
.comments-link p { margin: 0 0 1em; }
.comments-link .comments-status { margin: 1em 0 0; }
.comments-link-button {
  min-height: 44px; padding: 10px 15px; border: 0; border-radius: 2px; background: #b5bf03;
  color: #fff; font-family: "Questrial", sans-serif; font-size: 16px; cursor: pointer;
}
.comments-link-button:disabled { cursor: wait; opacity: .65; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 3.3em 0 .5rem; }
.post-nav a {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--green-text);
  font-family: "Questrial", sans-serif;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
}
.post-nav .post-nav-next { margin-left: auto; text-align: right; }
.post-nav svg { width: 12px; height: 20px; fill: currentColor; flex: 0 0 auto; }

@media (max-width: 767px) {
  .comments form { grid-template-columns: 1fr; }
}

/* ---------- Contacto y trabaja con nosotros ---------- */

.contact-page { margin-top: 0; }
.contact-page h2 {
  margin: 0 0 20px;
  color: var(--grey-text);
  font-family: "Questrial", sans-serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.3em;
}
.contact-map { display: block; width: 100%; height: 480px; margin-bottom: 20px; border: 0; }
.contact-map-link { margin: 0 0 20px; font-size: 13px; }
.contact-map-link a { color: var(--green-link); text-decoration: none; }
.contact-info { margin-bottom: 1rem; color: var(--grey-text); font-weight: 500; }

.jobs-page { margin: 5rem 0 3rem; }
.jobs-page p { color: var(--grey-text); font-weight: 500; }
.jobs-page a { color: var(--green-link); }

/* ---------- Textos legales ---------- */

.legal-page { margin-bottom: 2rem; }
/* Acceso de clientes: el formulario es del módulo modulos/acceso-clientes (color con --ac-accent). */
.access-page { --ac-accent: #b5bf03; margin-bottom: 4rem; }
/* Acceso de comerciales: lo pinta el módulo modulos/comerciales (color con --co-accent). */
.sales-page { --co-accent: #b5bf03; margin-bottom: 4rem; }
.access-intro { max-width: 640px; margin: 0 auto 1.5rem; color: var(--grey-text); text-align: center; }
.legal-text { color: var(--text); font-family: "Roboto", sans-serif; }
.legal-text h2 { margin: 0 0 20px; color: var(--dark); font-size: 32px; font-weight: 600; line-height: 1.3em; }
.legal-text h3 { margin: 0 0 20px; color: var(--dark); font-size: 26px; font-weight: 600; line-height: 1.3em; }
.legal-text-open { color: var(--grey-text); font-family: "Open Sans", sans-serif; font-weight: 500; }
.legal-text-open a { color: var(--green-link); text-decoration: none; }

@media (max-width: 921px) {
  .legal-text h2 { font-size: 25px; }
  .legal-text h3 { font-size: 20px; }
}
.legal-text ul, .legal-text ol { margin: 0 0 1.5em 3em; padding: 0; }
.legal-text .legal-indent { padding-left: 40px; }
.legal-text .legal-16 { font-size: 16px; }
.legal-text .legal-bold { font-weight: 700; }
.legal-text .legal-underline { text-decoration: underline; }
.legal-text table { width: 100%; margin: 0 0 1.5em; border-collapse: collapse; border: 1px solid #e5e5e5; }
.legal-text td, .legal-text th { padding: .7em 1em; border: 1px solid #e5e5e5; vertical-align: top; }
.legal-text .wb-intro a { color: var(--green-link); }
.legal-table-wrap { overflow-x: auto; }

@media (max-width: 767px) {
  .legal-page .container-narrow { padding: 10px 30px; }
  .legal-page.is-narrow-margin .container-narrow { padding: 10px; }
  .legal-text .legal-indent { padding-left: 40px; }
  .legal-text td, .legal-text th { padding: .5em; }
}

/* ---------- Banner de cookies (como Complianz en la original) ---------- */

.cookie-banner {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 9999;
  display: grid;
  grid-template-columns: 1fr minmax(0, 1.25fr);
  grid-template-areas: "head head" "text buttons" "cats buttons";
  gap: 14px 20px;
  align-items: center;
  max-height: calc(100vh - 20px);
  padding: 15px 20px 22px;
  overflow-y: auto;
  border-radius: 12px;
  background: #fff;
  color: #222;
  box-shadow: 0 0 10px #8080804d;
  font-size: 12px;
  line-height: 18px;
}
.cookie-banner[hidden] { display: none; }
.cookie-head { grid-area: head; position: relative; display: flex; justify-content: center; align-items: center; min-height: 30px; }
.cookie-head h2 { margin: 0; font-size: 15px; font-weight: 400; line-height: 1.3; }
.cookie-close {
  position: absolute;
  right: 0;
  top: 50%;
  width: 24px;
  height: 24px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  background: none;
  cursor: pointer;
}
.cookie-close svg { width: 24px; height: 24px; }
.cookie-text { grid-area: text; margin: 0; }
.cookie-text a { color: var(--green-link); text-decoration: none; }
.cookie-categories { grid-area: cats; display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cookie-categories[hidden] { display: none; }
.cookie-categories li { padding: 8px 10px; border-radius: 6px; background: #f2f2f2; }
.cookie-category-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.cookie-category-head input { width: 18px; height: 18px; margin: 0; accent-color: #b5bf03; }
.cookie-always { color: green; font-size: 12px; font-weight: 400; }
.cookie-categories p { margin: 6px 0 0; }
.cookie-buttons { grid-area: buttons; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
.cookie-buttons button {
  min-height: 115px;
  padding: 10px;
  border: 1px solid #b5bf03;
  border-radius: 6px;
  background: #b5bf03;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.cookie-buttons button[data-consent="settings"], .cookie-buttons button[data-consent="save"] {
  border-color: #f2f2f2;
  background: #f9f9f9;
  color: #333;
  font-weight: 400;
}
.cookie-manage {
  position: fixed;
  right: 40px;
  bottom: -35px;
  z-index: 9998;
  min-width: 100px;
  height: 50px;
  padding: 15px;
  border: 0;
  border-radius: 12px 12px 0 0;
  background: #fff;
  color: #222;
  box-shadow: 0 0 10px #8080804d;
  font: inherit;
  font-size: 12px;
  line-height: normal;
  cursor: pointer;
  transition: bottom .5s;
}
.cookie-manage:hover, .cookie-manage:focus { bottom: 0; }
.cookie-manage[hidden] { display: none; }

@media (max-width: 767px) {
  .cookie-banner {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "text" "cats" "buttons";
    gap: 12px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 15px 20px 20px;
  }
  .cookie-head { padding: 0 34px; }
  .cookie-head h2 { max-width: 260px; }
  .cookie-buttons { grid-auto-flow: row; }
  .cookie-buttons button { min-height: 45px; }
  .cookie-text { margin-bottom: 20px; }
}

.data-status { max-width: 1140px; margin: 2rem auto; padding: 0 1rem; color: #b00020; font-weight: 600; }
