/* ============================================================
   pay-checkout.css — NokashConnect Checkout UI
   Inspired by Stripe Checkout — split two-column layout
   CSS class prefix: ck-
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --ck-primary:        var(--app-them, #16489f);
  --ck-primary-dark:   #0f3478;
  --ck-primary-light:  #e8edf8;
  --ck-secondary:      var(--app-second-them, #1ea64a);
  --ck-secondary-dark: #167a37;

  --ck-bg:             #f5f5f9;
  --ck-card-bg:        #ffffff;
  --ck-border:         #e5e7eb;
  --ck-border-focus:   var(--ck-primary);

  --ck-text:           #1a1d23;
  --ck-text-muted:     #6b7280;
  --ck-text-light:     #9ca3af;

  --ck-success:        #1ea64a;
  --ck-success-bg:     #f0fdf4;
  --ck-success-border: #bbf7d0;

  --ck-error:          #dc2626;
  --ck-error-bg:       #fef2f2;
  --ck-error-border:   #fecaca;

  --ck-warning:        #d97706;
  --ck-warning-bg:     #fffbeb;
  --ck-warning-border: #fde68a;

  --ck-radius-sm:      8px;
  --ck-radius-md:      12px;
  --ck-radius-lg:      16px;
  --ck-radius-full:    9999px;

  --ck-shadow:         0 1px 4px 0 rgba(0, 0, 0, 0.06), 0 2px 12px 0 rgba(0, 0, 0, 0.04);
  --ck-shadow-md:      0 4px 16px 0 rgba(0, 0, 0, 0.08), 0 1px 4px 0 rgba(0, 0, 0, 0.04);

  --ck-transition:     150ms cubic-bezier(0.4, 0, 0.2, 1);
  --ck-transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  --ck-font:           -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                       "Helvetica Neue", Arial, sans-serif;
}

/* ── Reset / Base ───────────────────────────────────────────── */
/* ── Navbar ────────────────────────────────────────────────── */
.ck-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--ck-border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.ck-navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}
.ck-navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Pas de hauteur imposee : le logo officiel est en portrait (3664x4882), le
   contraindre dans un carre le deformait. La largeur seule laisse la hauteur
   suivre les proportions natives. */
.ck-navbar-logo {
  width: 24px;
  border-radius: 8px;
  object-fit: contain;
}
.ck-navbar-powered {
  font-size: 0.78rem;
  color: var(--ck-text-muted);
}
.ck-navbar-powered strong {
  color: var(--ck-primary);
  font-weight: 700;
}
.ck-navbar-cta {
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: var(--ck-primary);
  padding: 6px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.ck-navbar-cta:hover {
  opacity: 0.85;
  color: #fff;
  text-decoration: none;
}
@media (max-width: 480px) {
  .ck-navbar-powered { font-size: 0.68rem; }
  .ck-navbar-cta { font-size: 0.7rem; padding: 5px 12px; }
  .ck-navbar-logo { width: 22px; }   /* pas de hauteur : elle deformerait le logo */
}

.ck-page {
  font-family: var(--ck-font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ck-text);
  background-color: var(--ck-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px 60px;
}
.ck-page h1, .ck-page h2, .ck-page h3, .ck-page h4, .ck-page h5, .ck-page h6 {
  margin: 0; line-height: 1.3;
}
.ck-page p { margin: 0; }
.ck-page img { max-width: 100%; height: auto; }

/* ── Page Container ─────────────────────────────────────────── */
.ck-container {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.ck-col-summary {
  flex: 0 0 43%;
  min-width: 0;
}
.ck-col-form {
  flex: 1;
  min-width: 0;
  position: sticky;
  top: 68px;
  align-self: flex-start;
}

/* ── Column Cards ───────────────────────────────────────────── */
.ck-col-summary,
.ck-col-form {
  background: var(--ck-card-bg);
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-radius-lg);
  padding: 32px;
  box-shadow: var(--ck-shadow);
  width: 100%;
}

/* Single column layout (no services) */
.ck-container.ck-single-col {
  max-width: 520px;
}
.ck-container.ck-single-col .ck-col-summary,
.ck-container.ck-single-col .ck-col-form {
  flex: 0 0 100%;
}
.ck-container.ck-single-col .ck-col-summary {
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0 0 24px;
}

/* Override multiStepForm plugin */
.ck-col-form .msf-wrapper {
  padding: 0 !important;
  margin: 0 !important;
  display: block;
  background: transparent;
}
.ck-col-form .msf-container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.ck-col-form .msf-indicator {
  max-width: 200px;
  margin: 0 auto 24px;
}
.ck-col-form .msf-indicator .step {
  width: 28px;
  height: 28px;
  font-size: 0.75rem;
  z-index: 1;
}

/* Override page-wrapper/page-content for checkout */
.page-wrapper { margin: 0 !important; padding: 0 !important; }
.page-content { padding: 0 !important; }

/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */
/*  SECTION 2 — ORDER SUMMARY (left column)                    */
/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */

.ck-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.ck-summary-header h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ck-text);
}
.ck-summary-count {
  font-size: 12px;
  color: var(--ck-text-muted);
  font-weight: 500;
}

.ck-summary-header .ck-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ck-primary-light);
  color: var(--ck-primary);
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--ck-radius-full);
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
}

/* Item row */
.ck-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ck-border);
  position: relative;
  transition: background var(--ck-transition);
}

.ck-item:last-of-type {
  border-bottom: none;
}

.ck-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--ck-radius-md);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--ck-bg);
  border: 1px solid var(--ck-border);
}

.ck-item-info {
  flex: 1;
  min-width: 0;
}

.ck-item-info .ck-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ck-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.ck-item-info .ck-item-desc {
  font-size: 13px;
  color: var(--ck-text-muted);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ck-item-info .ck-item-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ck-text-muted);
}

.ck-item-info .ck-item-qty span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--ck-bg);
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--ck-text);
}

.ck-item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--ck-text);
  white-space: nowrap;
  padding-top: 2px;
}

.ck-item-remove {
  position: absolute;
  top: 14px;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--ck-text-light);
  border-radius: var(--ck-radius-full);
  transition: background var(--ck-transition), color var(--ck-transition);
  padding: 0;
  font-size: 16px;
  line-height: 1;
}

.ck-item-remove:hover {
  background: var(--ck-error-bg);
  color: var(--ck-error);
}

/* Totals block */
.ck-totals {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--ck-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ck-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ck-text-muted);
}

.ck-total-row .ck-label {
  font-weight: 400;
}

.ck-total-row .ck-amount {
  font-weight: 500;
  color: var(--ck-text);
}

.ck-total-row.total {
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--ck-border);
  font-size: 16px;
  font-weight: 700;
  color: var(--ck-text);
}

.ck-total-row.total .ck-label,
.ck-total-row.total .ck-amount {
  font-size: 16px;
  font-weight: 700;
  color: var(--ck-text);
}

/* Empty cart */
.ck-empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  color: var(--ck-text-muted);
  gap: 12px;
}

.ck-empty-cart .ck-empty-icon {
  font-size: 40px;
  opacity: 0.35;
}

.ck-empty-cart p {
  font-size: 14px;
}

/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */
/*  SECTION 3 — PAYMENT LINK PRESENTATION                      */
/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */

/* En-tete marchand sur UNE LIGNE (logo + identite), aligne sur celui de la page
   de frais scolaires. Empile, il occupait pres de 200 px de haut avant meme que
   le payeur voie le recapitulatif de sa commande. */
.ck-presentation {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--ck-border);
}
.ck-presentation-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.ck-presentation-eyebrow {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ck-text-muted, #94a3b8);
}

.ck-presentation-logo {
  width: 46px;
  height: 46px;
  border-radius: var(--ck-radius-md);
  overflow: hidden;
  border: 1px solid var(--ck-border);
  background: var(--ck-bg);
  flex-shrink: 0;
}
.ck-presentation-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ck-presentation-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ck-text);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* Une seule ligne : la description complete est deja affichee dans la premiere
   etape du formulaire, la repeter en entier ici allongeait la page pour rien. */
.ck-presentation-desc {
  font-size: 0.78rem;
  color: var(--ck-text-muted);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ck-presentation-amount {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--ck-border);
}

.ck-presentation-amount .ck-currency-suffix {
  font-size: 18px;
  font-weight: 600;
  color: var(--ck-text-muted);
  margin-left: 4px;
}

/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */
/*  SECTION 4 — PAYMENT FORM (right column)                    */
/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */

.ck-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.ck-form-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ck-text);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ck-form-header h2 .ck-lock-icon {
  color: var(--ck-primary);
  font-size: 16px;
}

.ck-secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--ck-success);
  background: var(--ck-success-bg);
  border: 1px solid var(--ck-success-border);
  border-radius: var(--ck-radius-full);
  padding: 3px 10px;
  font-weight: 500;
}

.ck-secure-badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ck-success);
}

/* ── Country Select ─────────────────────────────────────────── */
.ck-country-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--ck-card-bg);
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-radius-md);
  padding: 11px 40px 11px 14px;
  font-size: 14px;
  font-family: var(--ck-font);
  color: var(--ck-text);
  cursor: pointer;
  transition: border-color var(--ck-transition), box-shadow var(--ck-transition);
  background-position: right 14px center;
  margin-bottom: 20px;
}

.ck-country-select:focus {
  outline: none;
  border-color: var(--ck-border-focus);
  box-shadow: 0 0 0 3px rgba(22, 72, 159, 0.12);
}

.ck-country-select:hover {
  border-color: #d1d5db;
}

/* ── Provider Cards ─────────────────────────────────────────── */
/* Tuiles carrees sur 3 colonnes : logo au-dessus du nom. En 2 colonnes, un
   3e operateur restait orphelin sur la ligne suivante. */
.ck-providers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.ck-provider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 14px 10px;
  border: 2px solid var(--ck-border);
  border-radius: var(--ck-radius-md);
  cursor: pointer;
  transition: border-color var(--ck-transition), background var(--ck-transition),
              box-shadow var(--ck-transition);
  position: relative;
  background: var(--ck-card-bg);
  user-select: none;
}
.ck-provider input[type="radio"] {
  display: none;
}

.ck-provider:hover {
  border-color: var(--ck-primary);
  background: var(--ck-primary-light);
}

.ck-provider.active {
  border-color: var(--ck-primary);
  background: var(--ck-primary-light);
  box-shadow: 0 0 0 3px rgba(22, 72, 159, 0.10);
}

.ck-provider.active::after {
  content: "✓";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ck-primary);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23fff' d='M1.5 5l2.5 2.5 4.5-4.5' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Meme boite pour tous les logos, fond blanc et `contain` : chaque operateur
   fournit une image de proportions et de fond differents. */
.ck-provider-logo {
  width: 46px;
  height: 46px;
  border-radius: var(--ck-radius-sm);
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  padding: 3px;
}

.ck-provider-name {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ck-text);
}
.ck-provider-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* ── Phone Input ─────────────────────────────────────────────── */
.ck-phone-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-radius-md);
  overflow: hidden;
  transition: border-color var(--ck-transition), box-shadow var(--ck-transition);
  margin-bottom: 20px;
  background: var(--ck-card-bg);
}

.ck-phone-wrap:focus-within {
  border-color: var(--ck-border-focus);
  box-shadow: 0 0 0 3px rgba(22, 72, 159, 0.12);
}

.ck-phone-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-right: 1px solid var(--ck-border);
  background: var(--ck-bg);
  font-size: 14px;
  color: var(--ck-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.ck-phone-prefix .ck-flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}

.ck-phone-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--ck-font);
  color: var(--ck-text);
  background: transparent;
  min-width: 0;
}

.ck-phone-input::placeholder {
  color: var(--ck-text-light);
}

.ck-phone-suffix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-left: 1px solid var(--ck-border);
  background: var(--ck-bg);
  flex-shrink: 0;
}

.ck-phone-suffix .ck-provider-logo-sm {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
}

/* ── Amount Input ─────────────────────────────────────────────── */
.ck-amount-field {
  position: relative;
  margin-bottom: 20px;
}

.ck-amount-field .ck-currency-label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 600;
  color: var(--ck-text-muted);
  pointer-events: none;
  user-select: none;
}

.ck-amount-input {
  width: 100%;
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-radius-md);
  padding: 14px 16px 14px 56px;
  font-size: 22px;
  font-weight: 700;
  font-family: var(--ck-font);
  color: var(--ck-text);
  text-align: left;
  transition: border-color var(--ck-transition), box-shadow var(--ck-transition);
  background: var(--ck-card-bg);
  -moz-appearance: textfield;
}

.ck-amount-input::-webkit-outer-spin-button,
.ck-amount-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ck-amount-input:focus {
  outline: none;
  border-color: var(--ck-border-focus);
  box-shadow: 0 0 0 3px rgba(22, 72, 159, 0.12);
}

.ck-amount-input::placeholder {
  color: var(--ck-text-light);
  font-weight: 400;
  font-size: 16px;
}

/* ── Customer Info Fields ────────────────────────────────────── */
.ck-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.ck-field:last-of-type {
  margin-bottom: 0;
}

.ck-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ck-text);
  letter-spacing: 0.01em;
}

.ck-field input,
.ck-field select,
.ck-field textarea {
  width: 100%;
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-radius-md);
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--ck-font);
  color: var(--ck-text);
  background: var(--ck-card-bg);
  transition: border-color var(--ck-transition), box-shadow var(--ck-transition);
}

.ck-field input::placeholder,
.ck-field textarea::placeholder {
  color: var(--ck-text-light);
}

.ck-field input:focus,
.ck-field select:focus,
.ck-field textarea:focus {
  outline: none;
  border-color: var(--ck-border-focus);
  box-shadow: 0 0 0 3px rgba(22, 72, 159, 0.12);
}

.ck-field input:hover,
.ck-field select:hover,
.ck-field textarea:hover {
  border-color: #d1d5db;
}

.ck-field .ck-field-error {
  font-size: 12px;
  color: var(--ck-error);
  margin-top: 2px;
}

.ck-field input.is-invalid,
.ck-field select.is-invalid {
  border-color: var(--ck-error);
}

.ck-field input.is-invalid:focus,
.ck-field select.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */
/*  SECTION 5 — FORM COLUMN TOTALS                             */
/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */

.ck-form-totals {
  margin-top: 20px;
  padding: 16px;
  background: var(--ck-bg);
  border-radius: var(--ck-radius-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ck-form-totals .ck-total-row {
  font-size: 13px;
}

.ck-form-totals .ck-total-row.total {
  padding-top: 10px;
  border-top: 1px solid var(--ck-border);
  margin-top: 2px;
  font-size: 15px;
}

/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */
/*  SECTION 6 — PAY BUTTON                                     */
/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */

.ck-pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background: var(--ck-primary);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--ck-font);
  border: none;
  border-radius: var(--ck-radius-md);
  cursor: pointer;
  margin-top: 24px;
  transition: background var(--ck-transition), transform var(--ck-transition),
              box-shadow var(--ck-transition);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.ck-pay-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background var(--ck-transition);
}

.ck-pay-btn:hover {
  background: var(--ck-primary-dark);
  box-shadow: 0 4px 20px rgba(22, 72, 159, 0.35);
  transform: translateY(-1px);
}

.ck-pay-btn:hover::before {
  background: rgba(255, 255, 255, 0.05);
}

.ck-pay-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.ck-pay-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(22, 72, 159, 0.3);
}

.ck-pay-btn:disabled,
.ck-pay-btn[disabled] {
  background: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.ck-pay-btn:disabled::before {
  display: none;
}

.ck-pay-btn .ck-pay-lock {
  font-size: 15px;
  opacity: 0.85;
}

/* Spinner inside button */
.ck-pay-btn .ck-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: ck-spin 0.65s linear infinite;
  flex-shrink: 0;
}

/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */
/*  SECTION 7 — POWERED BY FOOTER                              */
/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */

.ck-powered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--ck-text-light);
  user-select: none;
}

.ck-powered a {
  color: var(--ck-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--ck-transition);
}

.ck-powered a:hover {
  color: var(--ck-primary);
}

.ck-powered img {
  height: 18px;
  width: auto;
  opacity: 0.6;
}

/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */
/*  SECTION 8 — PAYMENT STATUS                                 */
/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */

.ck-status {
  grid-column: 1 / -1;
  background: var(--ck-card-bg);
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-radius-lg);
  padding: 64px 48px;
  box-shadow: var(--ck-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  animation: ck-fade-in var(--ck-transition-slow) both;
}

#payment-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 32px 0;
}
#payment-loader .ck-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--ck-border);
  border-top-color: var(--ck-primary);
  border-radius: 50%;
  animation: ck-spin 0.8s linear infinite;
}
#payment-loader p {
  font-size: 0.88rem;
  color: var(--ck-text-muted);
}

.ck-status-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ck-status-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 8px;
}

.ck-status-icon.success {
  background: var(--ck-success-bg);
  color: var(--ck-success);
  border: 2px solid var(--ck-success-border);
}

.ck-status-icon.error {
  background: var(--ck-error-bg);
  color: var(--ck-error);
  border: 2px solid var(--ck-error-border);
}

.ck-status-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ck-text);
  letter-spacing: -0.02em;
}

.ck-status-message {
  font-size: 14px;
  color: var(--ck-text-muted);
  max-width: 380px;
  line-height: 1.6;
}

.ck-status-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 36px;
  background: var(--ck-primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--ck-font);
  border: none;
  border-radius: var(--ck-radius-md);
  cursor: pointer;
  margin-top: 8px;
  transition: background var(--ck-transition), box-shadow var(--ck-transition),
              transform var(--ck-transition);
}

.ck-status-btn:hover {
  background: var(--ck-primary-dark);
  box-shadow: 0 4px 16px rgba(22, 72, 159, 0.3);
  transform: translateY(-1px);
}

.ck-status-btn:active {
  transform: none;
  box-shadow: none;
}

.ck-status-btn.secondary {
  background: transparent;
  color: var(--ck-primary);
  border: 2px solid var(--ck-primary);
}

.ck-status-btn.secondary:hover {
  background: var(--ck-primary-light);
  box-shadow: none;
}

.ck-recheck-btn {
  font-size: 13px;
  color: var(--ck-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--ck-font);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px 8px;
  transition: color var(--ck-transition);
}

.ck-recheck-btn:hover {
  color: var(--ck-primary);
}

/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */
/*  SECTION 9 — NOTIFICATION ALERT                             */
/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */

.ck-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--ck-radius-md);
  border: 1px solid transparent;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  animation: ck-slide-down 200ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.ck-alert.success {
  background: var(--ck-success-bg);
  border-color: var(--ck-success-border);
  color: var(--ck-secondary-dark);
}

.ck-alert.error {
  background: var(--ck-error-bg);
  border-color: var(--ck-error-border);
  color: #991b1b;
}

.ck-alert.warning {
  background: var(--ck-warning-bg);
  border-color: var(--ck-warning-border);
  color: #92400e;
}

.ck-alert .ck-alert-icon {
  flex-shrink: 0;
  font-size: 16px;
  margin-top: 1px;
}

.ck-alert .ck-alert-body {
  flex: 1;
  min-width: 0;
}

.ck-alert .ck-alert-title {
  font-weight: 700;
  margin-bottom: 2px;
}

.ck-alert .ck-alert-text {
  font-size: 13px;
  opacity: 0.85;
}

.ck-alert-close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  opacity: 0.55;
  padding: 2px 4px;
  border-radius: var(--ck-radius-sm);
  color: inherit;
  transition: opacity var(--ck-transition), background var(--ck-transition);
  font-family: var(--ck-font);
  margin-top: 1px;
}

.ck-alert-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.06);
}

/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */
/*  SECTION 10 — STEP PROGRESS                                 */
/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */

.ck-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
}

.ck-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

.ck-step .ck-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--ck-border);
  background: var(--ck-card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--ck-text-light);
  transition: background var(--ck-transition), border-color var(--ck-transition),
              color var(--ck-transition);
  z-index: 1;
}

.ck-step .ck-step-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--ck-text-light);
  white-space: nowrap;
  transition: color var(--ck-transition);
}

.ck-step.active .ck-step-dot {
  border-color: var(--ck-primary);
  background: var(--ck-primary);
  color: #ffffff;
}

.ck-step.active .ck-step-label {
  color: var(--ck-primary);
  font-weight: 700;
}

.ck-step.done .ck-step-dot {
  border-color: var(--ck-secondary);
  background: var(--ck-secondary);
  color: #ffffff;
}

.ck-step.done .ck-step-label {
  color: var(--ck-secondary);
}

/* Connector line between steps */
.ck-step-connector {
  flex: 1;
  height: 2px;
  background: var(--ck-border);
  min-width: 40px;
  margin-bottom: 20px;
  transition: background var(--ck-transition-slow);
}

.ck-step-connector.done {
  background: var(--ck-secondary);
}

/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */
/*  SECTION 11 — NAVIGATION BUTTONS                            */
/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */

.ck-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.ck-prev-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  background: transparent;
  color: var(--ck-text-muted);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--ck-font);
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-radius-md);
  cursor: pointer;
  transition: background var(--ck-transition), border-color var(--ck-transition),
              color var(--ck-transition);
}

.ck-prev-btn:hover {
  background: var(--ck-bg);
  border-color: #d1d5db;
  color: var(--ck-text);
}

.ck-prev-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(22, 72, 159, 0.15);
}

.ck-next-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 28px;
  background: var(--ck-primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--ck-font);
  border: none;
  border-radius: var(--ck-radius-md);
  cursor: pointer;
  transition: background var(--ck-transition), box-shadow var(--ck-transition),
              transform var(--ck-transition);
}

.ck-next-btn:hover {
  background: var(--ck-primary-dark);
  box-shadow: 0 4px 16px rgba(22, 72, 159, 0.3);
  transform: translateY(-1px);
}

.ck-next-btn:active {
  transform: none;
  box-shadow: none;
}

.ck-next-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(22, 72, 159, 0.3);
}

.ck-next-btn:disabled,
.ck-next-btn[disabled] {
  background: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */
/*  SECTION 12 — FLOATING CART PANEL (mobile)                  */
/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */

.ck-cart-float {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--ck-card-bg);
  border-top: 1px solid var(--ck-border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.10);
  border-radius: var(--ck-radius-lg) var(--ck-radius-lg) 0 0;
  padding: 0;
  transition: transform var(--ck-transition-slow);
}

.ck-cart-float.is-open .ck-cart-content {
  max-height: 60vh;
}

.ck-cart-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--ck-font);
  font-size: 15px;
  font-weight: 700;
  color: var(--ck-text);
  gap: 10px;
}

.ck-cart-toggle .ck-toggle-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ck-cart-toggle .ck-toggle-right {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ck-primary);
  font-size: 14px;
  font-weight: 700;
}

.ck-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ck-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--ck-radius-full);
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
}

.ck-cart-content {
  max-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  transition: max-height var(--ck-transition-slow);
  padding: 0 20px;
}

.ck-cart-float.is-open .ck-cart-content {
  padding-bottom: 16px;
}

/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */
/*  SECTION 13 — SERVICE GRID                                  */
/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */

.ck-services-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}

.ck-service {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1.5px solid var(--ck-border);
  border-radius: var(--ck-radius-md);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  background: #fff;
  user-select: none;
}
.ck-service:last-child { margin-bottom: 0; }

.ck-service:hover {
  border-color: #d1d5db;
  background: #fafbfd;
}
.ck-service:has(.service-checkbox:checked) {
  border-color: var(--ck-primary, #16489f);
  background: rgba(22,72,159,0.03);
  box-shadow: 0 0 0 3px rgba(22,72,159,0.08);
}

.ck-service-img {
  width: 64px;
  height: 64px;
  border-radius: var(--ck-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--ck-bg);
}
.ck-service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ck-service-body {
  flex: 1;
  min-width: 0;
}

.ck-service-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--ck-text);
  white-space: nowrap;
  flex-shrink: 0;
}
.ck-service-price small {
  font-weight: 400;
  color: var(--ck-text-muted);
  font-size: 12px;
}

.ck-service .service-title,
.ck-service-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ck-text);
  line-height: 1.3;
  margin: 0;
}

.ck-service-desc {
  font-size: 11px;
  color: var(--ck-text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
}
 


/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */
/*  SECTION 14 — RESPONSIVE                                    */
/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */

/* Tablet — stack columns, reduce padding */
/* ── RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 992px) {
  .ck-page {
    padding: 16px 10px 100px;
  }

  /* 2-col → 1-col */
  .ck-col-summary,
  .ck-col-form {
    flex: 0 0 100%;
  }
  .ck-container {
    gap: 14px;
  }

  .ck-col-summary {
    order: 1;
    padding: 20px;
  }
  .ck-col-form {
    order: 2;
    padding: 20px;
  }

  /* Providers 1 col on mobile */
  .ck-providers {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .ck-provider { padding: 12px 8px; }
  .ck-provider-logo { width: 40px; height: 40px; }
  .ck-provider-name { font-size: 11.5px; }

  /* Services */
  .ck-service {
    padding: 10px 12px;
  }
  .ck-service-img {
    width: 52px;
    height: 52px;
  }

  /* Simple view */
  .ck-simple {
    margin: 0 4px;
  }
  .ck-simple-header {
    padding: 24px 16px 20px;
  }
  .ck-simple-form {
    padding: 16px;
  }
  .ck-simple-title {
    font-size: 1.05rem;
  }
  .ck-simple-price {
    font-size: 1.3rem;
  }

  /* Form header */
  .ck-form-header h2 {
    font-size: 1rem;
  }

  /* Status */
  .ck-status {
    padding: 32px 16px;
  }


  /* Summary header */
  .ck-summary-header h2 {
    font-size: 14px;
  }

  /* Presentation */
  .ck-presentation-title {
    font-size: 18px;
  }
  .ck-presentation-logo {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  .ck-page {
    padding: 8px 6px 100px;
    align-items: stretch;
  }

  .ck-col-summary,
  .ck-col-form {
    padding: 16px 14px;
    border-radius: var(--ck-radius-md);
  }

  .ck-container {
    gap: 10px;
  }

  /* Providers 1 col */
  .ck-providers {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .ck-provider { padding: 12px 8px; }
  .ck-provider-logo { width: 40px; height: 40px; }
  .ck-provider-name { font-size: 11.5px; }

  /* Service images smaller */
  .ck-service-img {
    width: 44px;
    height: 44px;
  }
  .ck-service .service-title {
    font-size: 12px;
  }
  .ck-service-desc {
    display: none;
  }
  .ck-service-price {
    font-size: 12px;
  }

  /* Simple view */
  .ck-simple { margin: 0; }
  .ck-simple-header { padding: 20px 14px 16px; border-radius: var(--ck-radius-md) var(--ck-radius-md) 0 0; }
  .ck-simple-form { padding: 14px; border-radius: 0 0 var(--ck-radius-md) var(--ck-radius-md); }
  .ck-simple-logo { width: 52px; height: 52px; }
  .ck-simple-title { font-size: 0.95rem; }
  .ck-simple-price { font-size: 1.2rem; }

  /* Totals */
  .ck-total-row { font-size: 13px; }
  .ck-total-row.total { font-size: 14px; }

  /* Amount input */
  .ck-amount-input-wrap input { font-size: 1rem; }

  /* Status */
  .ck-status { padding: 24px 12px; }
  .ck-status-title { font-size: 16px; }

  /* Cart flottant */
  .debug-panel:not(.collapsed) {
    width: calc(100% - 24px) !important;
    right: 12px !important;
    left: 12px !important;
  }

  /* Step indicator */
  .msf-indicator .step {
    width: 24px;
    height: 24px;
    font-size: 0.68rem;
  }


  .ck-steps {
    gap: 0;
    margin-bottom: 24px;
  }

  .ck-step-connector {
    min-width: 24px;
  }

  .ck-nav {
    flex-direction: column-reverse;
    gap: 8px;
  }

  .ck-prev-btn,
  .ck-next-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */
/*  SECTION 15 — ANIMATIONS                                    */
/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */

@keyframes ck-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ck-slide-down {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ck-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ck-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Staggered item entrance */
.ck-item {
  animation: ck-fade-in var(--ck-transition-slow) both;
}

.ck-item:nth-child(1) { animation-delay: 0ms; }
.ck-item:nth-child(2) { animation-delay: 40ms; }
.ck-item:nth-child(3) { animation-delay: 80ms; }
.ck-item:nth-child(4) { animation-delay: 120ms; }
.ck-item:nth-child(5) { animation-delay: 160ms; }

/* Loading skeleton (utility) */
.ck-skeleton {
  background: linear-gradient(
    90deg,
    var(--ck-bg) 25%,
    #e9eaef 50%,
    var(--ck-bg) 75%
  );
  background-size: 200% 100%;
  animation: ck-shimmer 1.4s infinite;
  border-radius: var(--ck-radius-sm);
}

@keyframes ck-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Success checkmark pop */
.ck-status-icon.success {
  animation: ck-pop var(--ck-transition-slow) cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes ck-pop {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Reduced motion override */
@media (prefers-reduced-motion: reduce) {
  .ck-page,
  .ck-item,
  .ck-status,
  .ck-alert,
  .ck-status-icon.success {
    animation: none;
  }

  .ck-status-spinner,
  .ck-pay-btn .ck-spinner {
    animation-duration: 1.5s;
  }

  .ck-pay-btn:hover,
  .ck-next-btn:hover,
  .ck-status-btn:hover {
    transform: none;
  }
}

/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */
/*  UTILITY — Divider, Section Labels, Misc                    */
/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */

.ck-divider {
  height: 1px;
  background: var(--ck-border);
  border: none;
  margin: 20px 0;
}

.ck-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ck-text-light);
  margin-bottom: 12px;
}

.ck-text-muted {
  color: var(--ck-text-muted);
  font-size: 13px;
}

.ck-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */
/*  MISSING CLASSES — Additional elements                       */
/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */

.ck-step-intro {
  text-align: center;
  padding: 32px 16px;
  color: var(--ck-text-muted);
}
.ck-step-intro i {
  font-size: 2.5rem;
  color: var(--ck-primary);
  margin-bottom: 12px;
  display: block;
}
.ck-step-intro p {
  font-size: 0.9rem;
}

.ck-step-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ck-text);
  margin-bottom: 14px;
}

.ck-country-select label {
  display: block;
  padding: 8px 0 10px;
}
.ck-select {
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: var(--ck-radius-md);
  font-size: 0.9rem;
  color: var(--ck-text);
  background: var(--ck-card-bg);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  transition: border-color var(--ck-transition);
}
.ck-select:focus {
  outline: none;
  border-color: var(--ck-primary);
  box-shadow: 0 0 0 3px rgba(22,72,159,0.1);
}

.ck-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ck-amount-section {
  margin-top: 20px;
}

.ck-amount-input-wrap {
  position: relative;
  transition: border-color var(--ck-transition);
}
.ck-amount-input-wrap input {
  width: 100%;
  border: 1.5px solid var(--ck-border);
  border-radius: var(--ck-radius-md);
  padding: 12px 60px 12px 55px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ck-text);
  outline: none;
}
.ck-amount-input-wrap input:focus {
  border-color: var(--ck-primary);
  box-shadow: 0 0 0 3px rgba(22,72,159,0.1);
}
.ck-currency-label {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ck-text-muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.ck-customer-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--ck-border);
}

.ck-fees-note {
  text-align: right;
  font-size: 0.72rem;
  color: var(--ck-text-light);
  margin-top: 2px;
}

.ck-form-totals {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--ck-border);
}

.ck-thank-you {
  margin-top: 16px;
  padding: 14px;
  background: var(--ck-success-bg);
  border: 1px solid var(--ck-success-border);
  border-radius: var(--ck-radius-md);
  font-size: 0.85rem;
  color: var(--ck-secondary-dark);
}

.ck-recent-tx {
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--ck-text-muted);
}
.ck-recent-tx summary {
  cursor: pointer;
  font-weight: 600;
  padding: 8px 0;
}
.ck-recent-tx ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.ck-recent-tx li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--ck-border);
}
.ck-recent-tx .tx-left { display: flex; flex-direction: column; gap: 2px; }
.ck-recent-tx .tx-amount { font-weight: 600; color: var(--ck-text); }
.ck-recent-tx .tx-date { font-size: 0.72rem; color: var(--ck-text-light); }
.ck-recent-tx .tx-right { display: flex; align-items: center; gap: 8px; }
.ck-recent-tx .tx-status { font-size: 0.72rem; font-weight: 600; padding: 2px 8px; border-radius: 20px; }
.ck-recent-tx .tx-status.SUCCESS { background: var(--ck-success-bg); color: var(--ck-secondary); }
.ck-recent-tx .tx-status.PENDING { background: var(--ck-warning-bg, #fffbeb); color: #b45309; }
.ck-recent-tx .tx-status.FAILED, .ck-recent-tx .tx-status.FAIL { background: var(--ck-error-bg); color: var(--ck-error); }
.ck-recent-tx .tx-icon { cursor: pointer; color: var(--ck-text-light); font-size: 0.85rem; }
.ck-recent-tx .tx-icon:hover { color: var(--ck-primary); }

.ck-recheck {
  text-align: center;
  margin-top: 16px;
}
.ck-recheck .ms-message {
  font-size: 0.82rem;
  color: var(--ck-text-muted);
  margin-bottom: 8px;
}

.ck-provider-inline-logo {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  height: 28px;
  width: 28px;
  object-fit: contain;
  border-radius: 4px;
  z-index: 1;
}

.ck-provider-placeholder {
  width: 40px;
  height: 40px;
  border-radius: var(--ck-radius-md);
  background: var(--ck-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ck-text-light);
  font-size: 1.2rem;
}

.ck-service-check {
  display: none;
}
.ck-service .service-checkbox { display: none; }
.ck-service-checkbox-label { display: none; }

.ck-service-body {
  flex: 1;
  min-width: 0;
}

.ck-service-placeholder {
  width: 64px;
  height: 64px;
  border-radius: var(--ck-radius-md);
  background: var(--ck-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ck-text-light);
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Phone input / wg-select widget */
.ck-fields .wg-select {
  position: relative;
  width: 100%;
  margin-bottom: 0 !important;
}
.ck-fields .wg-select .selected {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border: 1.5px solid var(--ck-border);
  border-radius: var(--ck-radius-md);
  background: #fff;
  transition: border-color 0.2s;
  width: 100%;
}
.ck-fields .wg-select .selected:focus-within {
  border-color: var(--ck-primary);
  box-shadow: 0 0 0 3px rgba(22,72,159,0.1);
}
.ck-fields .wg-select .show-list {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.ck-fields .wg-select .flag {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
}
.ck-fields .wg-select .dial-code {
  margin-left: 5px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ck-text);
  white-space: nowrap;
}
.ck-fields .wg-select .selected input[type="tel"] {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  flex: 1;
  margin-left: 10px;
  font-size: 0.9rem;
  color: var(--ck-text);
  padding: 0;
  background: transparent;
}
/* Exclude phone input from generic field styling */
.ck-fields .wg-select .selected input {
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.ck-fields .wg-select .logo {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  height: 50px;
  width: 50px;
  object-fit: contain;
  border-radius: 4px;
}
.ck-fields .wg-select .options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
}

/* Hide error SVG by default */
/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */
/*  SIMPLE PAYMENT VIEW (single column, no services)           */
/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */
.ck-simple {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}
.ck-simple-header {
  text-align: center;
  padding: 32px 24px 24px;
  background: var(--ck-card-bg);
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-radius-lg) var(--ck-radius-lg) 0 0;
}
.ck-simple-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  border: 1px solid var(--ck-border);
  background: var(--ck-bg);
}
.ck-simple-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ck-simple-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ck-text);
  margin-bottom: 6px;
}
.ck-simple-desc {
  font-size: 0.85rem;
  color: var(--ck-text-muted);
  line-height: 1.5;
}
.ck-simple-amount {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--ck-border);
}
.ck-simple-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ck-text);
  display: block;
}
.ck-simple-fees {
  font-size: 0.72rem;
  color: var(--ck-text-light);
  display: block;
  margin-top: 2px;
}
.ck-simple-form {
  background: var(--ck-card-bg);
  border: 1px solid var(--ck-border);
  border-top: none;
  border-radius: 0 0 var(--ck-radius-lg) var(--ck-radius-lg);
  padding: 24px;
}
.ck-simple-form .msf-wrapper {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent;
}
.ck-simple-form .msf-container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.ck-simple-form .msf-indicator {
  max-width: 180px;
  margin: 0 auto 20px;
}
.ck-simple-form .msf-indicator .step {
  width: 26px;
  height: 26px;
  font-size: 0.72rem;
  z-index: 1;
}

#error-svg { display: none; }
#payment-result { display: none; }

/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */
/*  FLOATING CART                                               */
/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */
.debug-panel {
  position: fixed !important;
  bottom: 16px !important;
  right: 16px !important;
  left: auto !important;
  z-index: 1000;
  transition: width 0.25s ease, border-radius 0.25s ease;
}
.debug-panel.collapsed {
  width: 52px;
  height: 52px;
  background: var(--ck-primary, #16489f);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  overflow: visible;
  cursor: pointer;
}
.debug-panel.collapsed .cart-body,
.debug-panel.collapsed .cart-footer {
  display: none;
}
.debug-panel.collapsed .cart-header {
  background: transparent;
  border: none;
  padding: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}
.debug-panel.collapsed .cart-header h4 {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.debug-panel.collapsed .cart-header h4 > span:not(.cart-count) {
  display: none;
}
.debug-panel.collapsed .cart-header h4 > i {
  font-size: 1.3rem;
  color: #fff;
}
.debug-panel.collapsed .cart-toggle-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 52px;
  height: 52px;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
  background: none;
  border: none;
  border-radius: 50%;
}
/* Badge on the round button */
.debug-panel.collapsed .cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  font-size: 0.65rem;
  background: #ef4444;
  color: #fff;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 10;
  border: 2px solid #fff;
  font-weight: 700;
}

/* Expanded */
.debug-panel:not(.collapsed) {
  width: 320px;
  background: #fff;
  border: 1px solid var(--ck-border, #e5e7eb);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  overflow: hidden;
}
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fafbfd;
  border-bottom: 1px solid #f0f0f5;
}
.cart-header h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-count {
  background: var(--ck-primary, #16489f);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  min-width: 20px;
  text-align: center;
}
.cart-toggle-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: #eeeef3;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 0.85rem;
  transition: background 0.15s;
}
.cart-toggle-btn:hover {
  background: #e0e0e6;
}
.cart-body {
  padding: 8px 16px;
  max-height: 200px;
  overflow-y: auto;
}
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f9;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-price {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 2px;
}
.cart-item-remove {
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  color: #d1d5db;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.75rem;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.cart-item-remove:hover {
  color: #ef4444;
  background: #fef2f2;
}
.cart-empty {
  text-align: center;
  padding: 16px;
  color: #9ca3af;
  font-size: 0.82rem;
}
.cart-footer {
  padding: 12px 16px;
  border-top: 1px solid #f0f0f5;
  background: #fafbfd;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-total-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #6b7280;
}
.cart-total-amount {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
}
.cart-total-amount small {
  font-weight: 400;
  color: #9ca3af;
}


/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */
/*  SUIVI DE PARCOURS — pied de page                           */
/*  Remplace les 3 pastilles numerotees qui vivaient dans le    */
/*  formulaire : elles etaient toutes de la meme couleur (donc  */
/*  n'indiquaient rien) et flottaient sur un 3e axe entre un    */
/*  titre a gauche et un badge a droite. En pied de page, hors  */
/*  de la carte, elles deviennent un reperage discret.          */
/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */
.ck-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  /* width + align-self : les conteneurs de cette page sont des flex en
     align-items:center ; sans ca le suivi se reduit a son contenu et les traits
     de liaison, qui tirent leur largeur de l'espace restant (flex:1), tombent
     a 0 px. */
  width: 100%;
  align-self: stretch;
  /* COLLANT en bas de la colonne de paiement : le suivi doit rester sous les
     yeux du payeur pendant qu'il fait defiler le formulaire. Le fond opaque et
     le filet superieur evitent que le contenu passe dessous en transparence. */
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin-top: 20px;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--ck-card-bg, #fff);
  border-top: 1px solid var(--ck-border, #e6ebf3);
  border-radius: 0 0 var(--ck-radius-lg, 16px) var(--ck-radius-lg, 16px);
}
.ck-stepper-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.ck-stepper-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #94a3b8;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.ck-stepper-item.is-done .ck-stepper-dot { background: #1ea64a; color: #fff; }
.ck-stepper-item.is-active .ck-stepper-dot {
  background: var(--app-them, #16489f);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(22, 72, 159, 0.12);
}
.ck-stepper-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: #94a3b8;
  white-space: nowrap;
  transition: color 0.25s ease;
}
.ck-stepper-item.is-done .ck-stepper-label { color: #64748b; }
.ck-stepper-item.is-active .ck-stepper-label { color: #0f172a; font-weight: 700; }
/* Le trait est aligne sur le CENTRE des pastilles, pas sur le bloc entier :
   les libelles se trouvent sous les pastilles et decalent le milieu. */
.ck-stepper-line {
  flex: 1 1 auto;
  height: 2px;
  margin: 14px 10px 0;
  background: #e2e8f0;
  border-radius: 2px;
  transition: background 0.25s ease;
}
.ck-stepper-line.is-done { background: #1ea64a; }

@media (max-width: 480px) {
  /* Sur telephone les libelles ne tiennent plus cote a cote : on garde les
     pastilles et le trait, et seul le libelle de l'etape EN COURS reste
     affiche — c'est la seule information utile a ce moment. */
  .ck-stepper { padding: 0 10px; margin-top: 18px; }
  .ck-stepper-dot { width: 26px; height: 26px; font-size: 0.75rem; }
  .ck-stepper-line { margin-top: 12px; }
  .ck-stepper-label { display: none; }
  .ck-stepper-item.is-active .ck-stepper-label {
    display: block;
    position: absolute;
    transform: translateY(34px);
    font-size: 0.72rem;
  }
  .ck-stepper-item { position: relative; }
  .ck-stepper { padding-bottom: 22px; }
}
