
/* EUCC minimal modern UI */
.eucc-root { position: relative; z-index: 999999; font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial; }
.eucc-wrap {
  position: fixed;
  left: 16px;
  right: 16px;
  max-width: 920px;
  margin: 0 auto;
  border-radius: 14px;
  padding: 16px 16px 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  border: 1px solid rgba(0,0,0,.08);
}
.eucc-bottom { bottom: 16px; }
.eucc-top { top: 16px; }

.eucc-theme-light { background: #fff; color: #111; }
.eucc-theme-dark  { background: #111; color: #f5f5f5; border-color: rgba(255,255,255,.10); }

.eucc-title { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.eucc-message { font-size: 14px; line-height: 1.4; opacity: .92; margin-bottom: 12px; }

.eucc-actions { display:flex; gap:10px; flex-wrap: wrap; }
.eucc-btn {
  appearance: none;
  border: 1px solid rgba(0,0,0,.16);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  background: transparent;
}
.eucc-theme-dark .eucc-btn { border-color: rgba(255,255,255,.18); color: #f5f5f5; }

.eucc-accept { background: rgba(0,0,0,.86); color: #fff; border-color: rgba(0,0,0,.86); }
.eucc-theme-dark .eucc-accept { background: #f5f5f5; color: #111; border-color: #f5f5f5; }

.eucc-footer { display:flex; justify-content: flex-start; align-items:center; margin-top: 10px; gap: 12px; }
.eucc-footer a { font-size: 12px; text-decoration: underline; opacity: .9; }
.eucc-theme-dark .eucc-footer a { color: #f5f5f5; }

.eucc-noscript { position: fixed; left: 0; right: 0; bottom: 0; background: #111; color: #fff; padding: 10px 12px; font-size: 13px; z-index: 999999; }
.eucc-noscript a { color: #fff; text-decoration: underline; }

/* Floating manage button (no shortcode needed) */
.eucc-fab{ position: fixed; left: 16px; bottom: 16px; z-index: 999998; }
.eucc-fab-btn{
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.16);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  /* smaller, less intrusive button */
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,.14);
}
.eucc-fab-btn:hover{ transform: translateY(-1px); }
.eucc-theme-dark .eucc-fab-btn{ background: rgba(17,17,17,.92); color:#f5f5f5; border-color: rgba(255,255,255,.18); }

/* Modal */
.eucc-modal-backdrop{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
  z-index: 1000000;
}
.eucc-modal{
  width: min(720px, 100%);
  background: #fff;
  color: #111;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  overflow: hidden;
}
.eucc-modal-head{
  display:flex; align-items:center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.eucc-modal-title{ font-weight:700; }
.eucc-close{
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  background: transparent;
  cursor:pointer;
  font-size: 18px;
  line-height: 1;
}
.eucc-modal-body{ padding: 14px 16px; }
.eucc-small{ font-size: 13px; opacity: .9; line-height: 1.4; }
.eucc-cat-list{ display:flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.eucc-cat{
  display:flex; justify-content: space-between; gap: 12px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 10px 12px;
}
.eucc-cat-label{ font-weight:600; font-size: 14px; }
.eucc-cat-desc{ font-size: 12px; opacity: .85; margin-top: 3px; }
.eucc-cat-right{ display:flex; align-items:center; }

/* Toggle switch */
.eucc-toggle{ position:absolute; opacity:0; width:1px; height:1px; }
.eucc-switch{
  width: 44px; height: 26px; border-radius: 999px;
  border: 1px solid rgba(0,0,0,.18);
  background: rgba(0,0,0,.06);
  position: relative;
  cursor: pointer;
}
.eucc-switch:after{
  content:'';
  width: 20px; height: 20px; border-radius: 999px;
  background: #fff;
  position: absolute; top: 2px; left: 2px;
  box-shadow: 0 6px 12px rgba(0,0,0,.18);
  transition: transform .15s ease;
}
.eucc-toggle:checked + .eucc-switch{ background: rgba(0,0,0,.86); }
.eucc-toggle:checked + .eucc-switch:after{ transform: translateX(18px); }
.eucc-toggle:disabled + .eucc-switch{ opacity: .55; cursor: not-allowed; }

.eucc-modal-actions{
  display:flex; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(0,0,0,.08);
}
.eucc-save{ background: rgba(0,0,0,.86); color:#fff; border-color: rgba(0,0,0,.86); }


/* --- EUCC tweaks: smaller buttons + green accent --- */
.eucc-wrap .eucc-btn{
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 9px;
  border-color: #5fb69a;
  color: #5fb69a;
}
.eucc-wrap .eucc-btn:hover{ filter: brightness(0.98); }

.eucc-wrap .eucc-accept,
.eucc-modal-actions .eucc-accept,
.eucc-modal-actions .eucc-save,
.eucc-wrap .eucc-save{
  background: #5fb69a !important;
  border-color: #5fb69a !important;
  color: #fff !important;
}

.eucc-wrap .eucc-reject,
.eucc-modal-actions .eucc-reject{
  background: transparent !important;
  border-color: #5fb69a !important;
  color: #5fb69a !important;
}

/* Dark theme: keep green accent but improve contrast */
.eucc-theme-dark .eucc-wrap .eucc-btn{
  border-color: #5fb69a;
  color: #5fb69a;
}
.eucc-theme-dark .eucc-wrap .eucc-accept,
.eucc-theme-dark .eucc-modal-actions .eucc-accept,
.eucc-theme-dark .eucc-modal-actions .eucc-save{
  background: #5fb69a !important;
  border-color: #5fb69a !important;
  color: #0b0b0b !important;
}

/* EUCC 1.1.8: el botón flotante de gestión queda desactivado por petición del cliente. */
#eucc-fab, .eucc-fab, .eucc-fab-btn { display: none !important; }
