.cookie-consent-root {
  font-family: var(--fuente-ui, system-ui, sans-serif);
}

.cookie-consent-banner {
  background: #ffffff;
  border-top: 4px solid #99182c;
  bottom: 0;
  box-shadow: 0 -12px 28px rgba(0, 0, 0, .12);
  display: none;
  gap: 1rem;
  left: 0;
  padding: 1.25rem;
  position: fixed;
  right: 0;
  z-index: 1100;
}

.cookie-consent-banner.is-visible {
  display: grid;
}

.cookie-consent-copy h2,
.cookie-consent-copy p,
.cookie-consent-copy a,
.cookie-consent-modal-card h2,
.cookie-consent-modal-card h3,
.cookie-consent-modal-card p,
.cookie-consent-modal-card a {
  color: #222222;
}

.cookie-consent-copy h2,
.cookie-consent-modal-card h2,
.cookie-consent-modal-card h3 {
  font-family: var(--fuente-antigua, Georgia, serif);
}

.cookie-consent-copy h2 {
  font-size: clamp(1.2rem, 2.3vw, 1.6rem);
  margin: 0 0 .5rem;
}

.cookie-consent-copy p,
.cookie-consent-modal-card p {
  line-height: 1.6;
  margin: 0;
}

.cookie-consent-copy p + p {
  margin-top: .65rem;
}

.cookie-consent-copy a,
.cookie-consent-modal-card a,
.cookie-placeholder a {
  color: #99182c;
  font-weight: 700;
}

.cookie-consent-eyebrow {
  color: #99182c !important;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .04em;
  margin-bottom: .35rem !important;
  text-transform: uppercase;
}

.cookie-consent-actions,
.cookie-consent-modal-actions {
  align-items: stretch;
  display: grid;
  gap: .75rem;
}

.cookie-consent-btn {
  align-items: center;
  border-radius: .75rem;
  border: 1px solid #99182c;
  cursor: pointer;
  display: inline-flex;
  font-size: .98rem;
  font-weight: 700;
  justify-content: center;
  line-height: 1.2;
  min-height: 3rem;
  padding: .85rem 1rem;
  text-align: center;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.cookie-consent-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(153, 24, 44, .22);
  outline: none;
}

.cookie-consent-btn-primary {
  background: #99182c;
  color: #ffffff;
}

.cookie-consent-btn-primary:hover {
  background: #7b1122;
  border-color: #7b1122;
  color: #ffffff;
}

.cookie-consent-btn-secondary {
  background: #ffffff;
  color: #99182c;
}

.cookie-consent-btn-secondary:hover {
  background: #f8ecef;
  color: #7b1122;
}

.cookie-consent-modal {
  align-items: center;
  background: rgba(22, 17, 19, .62);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 1rem;
  position: fixed;
  z-index: 1200;
}

.cookie-consent-modal.is-visible {
  display: flex;
}

.cookie-consent-modal-card {
  background: #ffffff;
  border-radius: 1.2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .24);
  max-height: min(90vh, 820px);
  max-width: 760px;
  overflow: auto;
  padding: 1.5rem;
  width: 100%;
}

.cookie-consent-modal-head {
  border-bottom: 1px solid #e5d8dc;
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
}

.cookie-consent-modal-head h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  margin: 0 0 .55rem;
}

.cookie-consent-groups {
  display: grid;
  gap: .9rem;
}

.cookie-consent-group {
  align-items: center;
  background: #fcf8f9;
  border: 1px solid #ead7dd;
  border-radius: 1rem;
  display: grid;
  gap: .85rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 1rem;
}

.cookie-consent-group h3 {
  font-size: 1.1rem;
  margin: 0 0 .25rem;
}

.cookie-consent-group p {
  font-size: .96rem;
}

.cookie-consent-state {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: .85rem;
  font-weight: 700;
  min-height: 2.25rem;
  padding: .35rem .8rem;
}

.cookie-consent-state-fixed {
  background: #f0d8de;
  color: #6c1020;
}

.cookie-consent-switch {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
}

.cookie-consent-switch input {
  height: 1px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.cookie-consent-switch span[aria-hidden="true"] {
  background: #c7b8be;
  border-radius: 999px;
  display: inline-block;
  height: 2rem;
  position: relative;
  transition: background-color .2s ease;
  width: 3.5rem;
}

.cookie-consent-switch span[aria-hidden="true"]::after {
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  content: "";
  height: 1.5rem;
  left: .25rem;
  position: absolute;
  top: .25rem;
  transition: transform .2s ease;
  width: 1.5rem;
}

.cookie-consent-switch input:checked + span[aria-hidden="true"] {
  background: #99182c;
}

.cookie-consent-switch input:checked + span[aria-hidden="true"]::after {
  transform: translateX(1.5rem);
}

.cookie-consent-switch input:focus-visible + span[aria-hidden="true"] {
  box-shadow: 0 0 0 3px rgba(153, 24, 44, .22);
}

.cookie-consent-modal-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.25rem;
}

.cookie-consent-modal-open {
  overflow: hidden;
}

.cookie-placeholder {
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #f9f3f5 100%);
  border: 1px solid #dfc7ce;
  border-radius: 1rem;
  display: grid;
  gap: .9rem;
  justify-items: start;
  min-height: 260px;
  padding: 1.25rem;
}

.cookie-placeholder h3 {
  color: #99182c;
  font-family: var(--fuente-antigua, Georgia, serif);
  margin: 0;
}

.cookie-placeholder p {
  margin: 0;
}

.cookie-placeholder .cookie-placeholder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

@media (min-width: 920px) {
  .cookie-consent-banner {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 1.2rem 1.5rem;
  }

  .cookie-consent-actions {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
}

@media (max-width: 919.98px) {
  .cookie-consent-actions,
  .cookie-consent-modal-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .cookie-consent-modal-card {
    padding: 1.2rem;
  }

  .cookie-consent-group {
    grid-template-columns: 1fr;
  }
}
