/* Banner preferencias cookies / mapas (terceros) */
.chincha-consent-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 30000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(178, 15, 15, 0.2);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.18);
  transform: translateY(calc(100% + 28px));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
  max-width: 560px;
  margin: 0 auto;
}

.chincha-consent-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.chincha-consent-banner__title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.25;
}

.chincha-consent-banner__text {
  margin: 0;
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.4;
}

.chincha-consent-banner__text a {
  color: var(--color-brand-primary, #B20F0F);
  text-decoration: underline;
}

.chincha-consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.chincha-consent-banner__btn {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}

.chincha-consent-banner__btn--primary {
  background: var(--color-brand-primary, #B20F0F);
  color: #fff;
}

.chincha-consent-banner__btn--ghost {
  background: #f3f4f6;
  color: #374151;
}

.chincha-map-consent {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(160deg, #f8fafc 0%, #eef2f7 100%);
  box-sizing: border-box;
}

.chincha-map-consent__box {
  max-width: 280px;
  text-align: center;
}

.chincha-map-consent__title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
}

.chincha-map-consent__text {
  margin: 0 0 12px;
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.4;
}

.chincha-map-consent__btn {
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--color-brand-primary, #B20F0F);
  color: #fff;
}

@media (min-width: 640px) {
  .chincha-consent-banner {
    left: 20px;
    right: auto;
    bottom: 20px;
    margin: 0;
    flex-direction: row;
    align-items: center;
  }

  .chincha-consent-banner__body {
    flex: 1;
    min-width: 0;
  }

  .chincha-consent-banner__actions {
    flex-shrink: 0;
    flex-direction: column;
  }
}

@media (min-width: 900px) {
  .chincha-consent-banner__actions {
    flex-direction: row;
  }
}

@media (max-width: 1024px) {
  body:has(.mobile-app-bar) .chincha-consent-banner.is-visible {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}
