/* ==========================================================================
   CL Compliance Suite — Estilos públicos
   ========================================================================== */

/* --- Cookie banner -------------------------------------------------------- */
.clcs-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 999999;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 16px 20px;
  max-width: 720px;
  margin: 0 auto;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: #111827;
  transform: translateY(100%);
  transition: transform 240ms ease-out;
  will-change: transform;
}
.clcs-banner[hidden] { display: none; }
.clcs-banner.is-visible { transform: translateY(0); }

.clcs-banner__inner { display: flex; flex-direction: column; gap: 10px; }
.clcs-banner__text { margin: 0; }
.clcs-banner__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.clcs-banner__link { font-size: 12px; color: #2563eb; text-decoration: underline; }
.clcs-banner__config { margin-top: 8px; border-top: 1px solid #e5e7eb; padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.clcs-banner__config[hidden] { display: none; }
.clcs-cat { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.clcs-cat input { margin-top: 3px; }

.clcs-btn {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
  transition: background 120ms;
}
.clcs-btn:hover { background: #f3f4f6; }
.clcs-btn--primary { background: #2563eb; color: #fff; border-color: #2563eb; }
.clcs-btn--primary:hover { background: #1d4ed8; }
.clcs-btn--secondary { background: #f3f4f6; }
.clcs-btn--link { background: transparent; border: none; color: #2563eb; text-decoration: underline; padding: 8px 4px; }

/* --- Legal shortcodes ---------------------------------------------------- */
.clcs-legal { max-width: 760px; margin: 0 auto; }
.clcs-legal h1 { font-size: 1.8em; margin: 0 0 .5em; }
.clcs-legal h2 { font-size: 1.3em; margin: 1.5em 0 .5em; border-bottom: 1px solid #e5e7eb; padding-bottom: .3em; }
.clcs-legal h3 { font-size: 1.1em; margin: 1.2em 0 .4em; }
.clcs-dl { display: grid; grid-template-columns: 200px 1fr; gap: 4px 16px; }
.clcs-dl dt { font-weight: 600; }
.clcs-dl dd { margin: 0; }
.clcs-table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.clcs-table th,
.clcs-table td { padding: 8px 12px; border: 1px solid #e5e7eb; text-align: left; }
.clcs-table th { background: #f9fafb; font-weight: 600; }

/* --- Checkout fields ----------------------------------------------------- */
.clcs-checkout-fields { margin: 16px 0; }
.clcs-rut-field input,
.clcs-tipo-doc-field select { font-size: 16px; }
.clcs-privacy-optin {
  padding: 12px 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin: 16px 0;
}
.clcs-privacy-optin label { display: flex; gap: 8px; align-items: flex-start; }
.clcs-privacy-optin input { margin-top: 4px; }

/* --- ARCO form ----------------------------------------------------------- */
.clcs-arco-form { max-width: 500px; display: flex; flex-direction: column; gap: 12px; }
.clcs-arco-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 500; }
.clcs-arco-form input,
.clcs-arco-form select { padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 15px; }
.clcs-arco-form button { padding: 10px 20px; background: #2563eb; color: #fff; border: 0; border-radius: 6px; cursor: pointer; font-weight: 500; }
.clcs-form-note { font-size: 12px; color: #6b7280; margin: 0; }

/* --- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .clcs-banner { transition: none; }
}
