/* anam-widget.css — usa los colores del sitio (--dark, --gold, --border…) */
.anamw {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9000; /* debajo del cursor personalizado del sitio (9999) */
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--dark, #111010);
}
.anamw *,
.anamw *::before,
.anamw *::after {
  box-sizing: border-box;
}
.anamw button,
.anamw a,
.anamw input {
  font: inherit;
  cursor: none; /* el sitio dibuja su propio cursor */
}

.anamw-launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--dark, #111010);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}
.anamw-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold, #c5873a);
  box-shadow: 0 0 0 4px rgba(197, 135, 58, 0.25);
}
.anamw.is-open .anamw-launcher {
  display: none;
}

.anamw-panel {
  width: 360px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--bg, #fafaf8);
  border: 1px solid var(--border, #e5e2dc);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  padding: 14px;
}
.anamw-panel[hidden] {
  display: none;
}

.anamw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 15px;
}
.anamw-badge {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gold, #c5873a);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}
.anamw-x {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border, #e5e2dc);
  border-radius: 50%;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  color: var(--dark, #111010);
}

.anamw-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--dark, #111010);
}
.anamw-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.anamw-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
  background: radial-gradient(circle at 50% 40%, #2a2522, var(--dark, #111010));
}
.anamw-cover[hidden] {
  display: none;
}
.anamw-timer {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.anamw-notice {
  margin: 10px 0 6px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--mid, #555);
}
.anamw-status {
  min-height: 1.4em;
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--dark, #111010);
}

.anamw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.anamw-actions button,
.anamw-type button {
  flex: 1 1 auto;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border, #e5e2dc);
  background: transparent;
  color: var(--dark, #111010);
  font-size: 13px;
  font-weight: 600;
}
.anamw-actions .anamw-start {
  background: var(--dark, #111010);
  color: #fff;
  border-color: var(--dark, #111010);
}
.anamw-actions .anamw-start:disabled {
  opacity: 0.6;
}
.anamw-actions .anamw-stop {
  background: var(--red, #d94f2b);
  border-color: var(--red, #d94f2b);
  color: #fff;
}
.anamw-actions [hidden],
.anamw-type[hidden] {
  display: none;
}

.anamw-type {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.anamw-type input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border, #e5e2dc);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
}
.anamw-type button {
  flex: 0 0 auto;
}

.anamw-wa {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--green, #3a9e6f);
  text-align: center;
}

@media (max-width: 520px) {
  .anamw {
    right: 16px;
    left: 16px;
    bottom: 16px;
    display: flex;
    justify-content: flex-end;
    pointer-events: none; /* la franja vacía no bloquea la página */
  }
  .anamw > * {
    pointer-events: auto;
  }
  .anamw-panel {
    width: 100%;
    max-width: none;
  }
}
