.cookie-consent {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  max-height: calc(100vh - 88px);
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 12px max(16px, calc((100vw - 1200px) / 2));
  overflow-y: auto;
  color: #072E25;
  background: #FFFFFF;
  box-shadow: 0 -5px 20px rgba(7, 46, 37, 0.12);
}

.cookie-consent[hidden],
.cookie-consent [hidden] {
  display: none !important;
}

.cookie-consent__title {
  max-width: 1200px;
  margin: 0 auto 6px;
  color: #064A3C;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
  text-align: left;
}

.cookie-consent__description,
.cookie-consent__settings-description,
.cookie-consent__option-description {
  margin: 0;
  color: #4A4A4A;
}

.cookie-consent__description,
.cookie-consent__settings-description {
  font-size: 13px;
  line-height: 1.35;
}

.cookie-consent__summary,
.cookie-consent__settings {
  max-width: 1200px;
  margin-inline: auto;
}

.cookie-consent__summary {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 8px 12px;
}

.cookie-consent__icon {
  width: 44px;
  height: 44px;
  display: block;
  flex: 0 0 auto;
}

.cookie-consent__icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.cookie-consent__copy {
  min-width: 0;
}

.cookie-consent__copy .cookie-consent__title {
  margin-inline: 0;
}

.cookie-consent__actions,
.cookie-consent__settings-actions {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.cookie-consent__actions {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cookie-consent__settings-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cookie-consent__button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  color: #FFFFFF;
  background: #064A3C;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible {
  color: #072E25;
  background: #FECD45;
  transform: translateY(-1px);
}

.cookie-consent__button:focus-visible,
.cookie-consent__checkbox:focus-visible,
.site-footer__cookie-preferences:focus-visible {
  outline: 3px solid #FECD45;
  outline-offset: 3px;
}

.cookie-consent__button--secondary {
  color: #064A3C;
  background: #FFFFFF;
  box-shadow: inset 0 0 0 1px #064A3C;
}

.cookie-consent__settings-description {
  margin-bottom: 10px;
}

.cookie-consent__option {
  border-top: 1px solid #E0E0E0;
  padding-block: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cookie-consent__option-content {
  min-width: 0;
}

.cookie-consent__option-title {
  display: inline-block;
  color: #072E25;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.cookie-consent__option-description {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.3;
}

.cookie-consent__checkbox {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: #064A3C;
  cursor: pointer;
}

.cookie-consent__checkbox:disabled,
.cookie-consent__checkbox:disabled + * {
  cursor: not-allowed;
}

.site-footer__legal {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.site-footer__cookie-preferences {
  border: 0;
  padding: 0;
  color: #FFFFFF;
  background: transparent;
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.site-footer__cookie-preferences:hover,
.site-footer__cookie-preferences:focus-visible {
  color: #FECD45;
}

.has-cookie-consent-interface .whatsapp-float {
  bottom: var(--guara-consent-offset, 96px);
}

.has-cookie-consent-interface .back-to-top {
  bottom: calc(var(--guara-consent-offset, 96px) + 72px);
}

@media (min-width: 640px) {
  .cookie-consent__settings-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 479px) {
  .cookie-consent__button {
    padding-inline: 5px;
    font-size: 11px;
  }
}

@media (min-width: 768px) {
  .cookie-consent {
    max-height: calc(100vh - 96px);
    padding-block: 12px;
  }

  .cookie-consent__title {
    font-size: 17px;
  }

  .cookie-consent__description,
  .cookie-consent__settings-description {
    font-size: 13px;
  }

  .site-footer__cookie-preferences {
    font-size: 14px;
  }

  .has-cookie-consent-interface .back-to-top {
    bottom: calc(var(--guara-consent-offset, 112px) + 80px);
  }
}

@media (min-width: 900px) {
  .cookie-consent__summary {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
  }

  .cookie-consent__icon {
    width: 58px;
    height: 58px;
  }

  .cookie-consent__copy {
    grid-column: 2;
  }

  .cookie-consent__actions {
    grid-column: 3;
    grid-row: 1;
    margin-top: 0;
    display: flex;
    align-items: center;
  }

  .cookie-consent__button {
    white-space: nowrap;
  }
}

.cookie-consent.cookie-consent--settings-open {
  inset: 0 0 auto auto;
  width: 0;
  height: 0;
  max-height: none;
  padding: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.cookie-consent.cookie-consent--settings-open .cookie-consent__settings {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  max-width: none;
  margin: 0;
  padding: 24px;
  display: block;
  overflow-y: auto;
  color: #072E25;
  background: #FFFFFF;
  box-shadow: -10px 0 32px rgba(7, 46, 37, 0.18);
  pointer-events: auto;
  animation: cookie-consent-slide-in 0.22s ease-out;
}

.cookie-consent__settings-title {
  margin-bottom: 6px;
}

.cookie-consent--settings-open .cookie-consent__settings-actions {
  position: sticky;
  bottom: -24px;
  margin: 10px -24px -24px;
  padding: 14px 24px 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #FFFFFF;
}

.has-cookie-consent-settings .whatsapp-float,
.has-cookie-consent-settings .back-to-top {
  right: min(442px, calc(100vw - 76px));
}

@media (max-width: 520px) {
  .has-cookie-consent-settings .whatsapp-float,
  .has-cookie-consent-settings .back-to-top {
    visibility: hidden;
    pointer-events: none;
  }
}

@keyframes cookie-consent-slide-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 767px) {
  .has-cookie-consent-settings .whatsapp-float,
  .has-cookie-consent-settings .back-to-top {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent.cookie-consent--settings-open .cookie-consent__settings {
    animation: none;
  }

  .cookie-consent__button,
  .site-footer__cookie-preferences {
    transition: none;
  }
}
