/* TuttyCosas Kids — css/consent.css
   Banner de consentimiento. Coherente con paleta de marca (#5C7A5F). */

/* Banner arranca oculto — JS lo muestra con delay 800ms */
#tcConsentBanner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9998;                        /* bajo modales del carrito (9999) */
  background: rgba(15, 15, 15, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.22);
  padding: 10px 20px;

  /* Arranca invisible, slide-up activado por clase .tc-visible */
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

#tcConsentBanner.tc-visible {
  transform: translateY(0);
}

.tc-consent-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;                    /* todo en una línea */
}

.tc-consent-text {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(245, 240, 232, 0.80);
  flex: 1 1 0;
  min-width: 0;
}

.tc-consent-text a {
  color: #8fb892;                       /* sage claro — legible sobre oscuro */
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.tc-consent-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}

.tc-consent-btn {
  padding: 7px 16px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease, background 0.15s ease;
  font-family: inherit;
}

.tc-consent-reject {
  background: transparent;
  color: rgba(245, 240, 232, 0.50);
  border: 1px solid rgba(255,255,255,0.18);
}
.tc-consent-reject:hover {
  color: rgba(245, 240, 232, 0.85);
  border-color: rgba(255,255,255,0.35);
}

.tc-consent-accept {
  background: #5C7A5F;
  color: #fff;
  border: 1px solid #5C7A5F;
}
.tc-consent-accept:hover { background: #4a6a4d; }

/* ── MOBILE ── */
@media (max-width: 600px) {
  #tcConsentBanner {
    /* Sube sobre el bottom-nav (64px) para no superponerse */
    bottom: 64px;
    padding: 9px 14px;
  }

  .tc-consent-inner {
    gap: 10px;
  }

  .tc-consent-text {
    font-size: 0.72rem;
  }

  .tc-consent-btn {
    padding: 6px 12px;
    font-size: 0.72rem;
  }
}
