/* ============================================================
  MODERN CONFIRM POPUP — light theme, click-to-toggle switches
  Reskin everything via the :root variables right below.
============================================================= */
:root{
  /* ---------- BRAND: change these ---------- */
  --cp-brand-name: "Bienvenue";                 /* title text */
  --cp-brand-logo: url('./popup.png'); /* drop a file named popup.png next to this CSS file */
  --cp-accent: rgba(50, 114, 233);        /* main teal (slightly deepened for contrast on white) */
  --cp-accent-dark: rgba(50, 114, 233);    /* hover / pressed */
  --cp-accent-glow: rgba(50, 114, 233);  /* glow tint */

  /* ---------- structural, rarely needs editing ---------- */
  --cp-card-bg: #FFFFFF;
  --cp-text-primary: #12151C;
  --cp-text-muted: #6B7280;
  --cp-track-off: #E4E8EF;
  --cp-divider: #ECEEF3;
  --cp-font: "Plus Jakarta Sans", Inter, -apple-system, sans-serif;
}

.cp-overlay{
  display: none;
  position: fixed; inset: 0;
  align-items: center; justify-content: center;
  background: rgba(20, 24, 33, 0.35);
  backdrop-filter: blur(2px);
  z-index: 1000;
  padding: 20px;
  font-family: var(--cp-font);
}
.cp-overlay.open{
  display: flex;
}

.cp-card{
  width: 100%;
  max-width: 420px;
  background: var(--cp-card-bg);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  padding: 36px 32px 28px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.16);
  position: relative;
}

.cp-logo{
  position: relative;
  width: 400px; height: 130px;
  margin: 0 auto 18px;
  background: var(--cp-brand-logo, none) center/contain no-repeat;
}

.cp-title{
  font-size: 20px;
  font-weight: 700;
  color: var(--cp-text-primary);
  text-align: center;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.cp-subtitle{
  font-size: 14px;
  line-height: 1.5;
  color: var(--cp-text-muted);
  text-align: center;
  margin: 0 0 22px;
}

.cp-toggle-row{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}
.cp-toggle-row + .cp-toggle-row{
  border-top: 1px solid var(--cp-divider);
}

.cp-toggle-label{
  font-size: 14px;
  color: var(--cp-text-primary);
  line-height: 1.4;
}
.cp-toggle-label a{
  color: var(--cp-accent-dark);
  text-decoration: none;
}
.cp-toggle-label a:hover{ text-decoration: underline; }

/* ---------- small click-to-toggle switch ---------- */
.cp-switch{
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 24px;
  border-radius: 999px;
  background: var(--cp-track-off);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease;
}
.cp-switch::before{
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
  transition: left 0.25s cubic-bezier(.2,.8,.2,1), background 0.2s ease;
}
.cp-switch.is-on{
  background: linear-gradient(135deg, var(--cp-accent), var(--cp-accent-dark));
}
.cp-switch.is-on::before{ left: 19px; background: #ffffff; }

/* little "slide" pulse feedback on click */
.cp-switch.is-animating::before{ transition: left 0.25s cubic-bezier(.2,.8,.2,1), background 0.2s ease, box-shadow 0.15s ease; }

/* ---------- action buttons ---------- */
.cp-actions{
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.cp-decline, .cp-continue{
  flex: 1 1 0%;
  height: 38px;
  border-radius: 999px;
  font-family: var(--cp-font);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.cp-decline{
  background: transparent;
  color: var(--cp-text-primary);
  border: 1px solid rgba(15, 23, 42, 0.14);
}
.cp-decline:hover{ background: rgba(15, 23, 42, 0.04); }

.cp-continue{
  border: none;
  color: rgba(15, 23, 42, 0.32);
  background: var(--cp-track-off);
  cursor: not-allowed;
}

.cp-continue.is-ready{
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--cp-accent), var(--cp-accent-dark));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--cp-accent) 35%, transparent),
    0 6px 14px color-mix(in srgb, var(--cp-accent) 25%, transparent),
    0 0 10px color-mix(in srgb, var(--cp-accent-glow) 20%, transparent);
}
.cp-continue.is-ready:hover{ filter: brightness(1.05); transform: translateY(-1px); }
.cp-continue.is-ready:active{ transform: translateY(0); filter: brightness(0.97); }


@media (prefers-reduced-motion: reduce){
  .cp-switch::before{ transition: none; }
}
