@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@700;800;900&display=swap');
/* ═══════════════════════════════════════════════════════
   Crémaillère Finder Pro — Frontend v3.3
   Design: compact card, big image strip, mobile-first
═══════════════════════════════════════════════════════ */

/* ── CSS token defaults (overridden by PHP inline vars) ── */
.cfp-widget {
  --cfp-primary:    #2563eb;
  --cfp-accent:     #eff6ff;
  --cfp-card-bg:    #ffffff;
  --cfp-border:     #e2e8f0;
  --cfp-radius:     20px;
  --cfp-badge-r:    999px;
  --cfp-btn-r:      10px;
  --cfp-font:       'Inter', system-ui, sans-serif;
  --cfp-font-size:  15px;
  --cfp-hw:         800;
  --cfp-price-color:#111827;
  --cfp-price-size: 20px;
  --cfp-price-align:left;
  --cfp-img-scale: 0.85;       /* scale() value for rack image zoom */
  --cfp-btn-buy:    #2563eb;
  --cfp-btn-wa:     #25d366;
  --cfp-btn-call:   #7c3aed;
  /* static */
  --cfp-text:   #111827;
  --cfp-text-2: #6b7280;
  --cfp-green:  #16a34a;
  --cfp-orange: #ea580c;
  --cfp-wa:     #25d366;
  --cfp-ph:     #7c3aed;
  font-family: var(--cfp-font) !important;
  font-size:   var(--cfp-font-size) !important;
  color: var(--cfp-text);
  max-width: 1120px;
  margin: 24px auto !important;
  padding: 0 16px;
}
.cfp-widget, .cfp-widget * { box-sizing: border-box; }
.cfp-widget label { margin: 0 !important; }

/* ══════════════════════════════════
   LOGO / HEADER
══════════════════════════════════ */
.cfp-hdr { display:flex; flex-direction:column; gap:6px; margin-bottom:20px; }
.cfp-hdr--left   { align-items:flex-start; }
.cfp-hdr--center { align-items:center; }
.cfp-hdr--right  { align-items:flex-end; }
.cfp-logo { display:block; height:auto; max-height:80px; object-fit:contain; }
.cfp-tagline {
  margin:0 !important;
  font-family: var(--cfp-tg-font, var(--cfp-font)) !important;
  font-size:   var(--cfp-tg-size, 15px) !important;
  font-weight: var(--cfp-tg-weight, 600) !important;
  color:       var(--cfp-tg-color, #6b7280) !important;
}

/* ══════════════════════════════════
   PAGE HEADING
══════════════════════════════════ */
.cfp-heading { text-align:center; margin-bottom:22px; }
.cfp-heading h2 {
  font-size: clamp(20px,3vw,34px) !important;
  font-weight: var(--cfp-hw) !important;
  line-height: 1.15; margin: 0 0 6px !important;
  color: var(--cfp-text); letter-spacing:-.3px;
}
.cfp-heading p { margin:0 !important; color:var(--cfp-text-2); font-size:clamp(13px,1.4vw,15px) !important; }

/* ══════════════════════════════════
   FILTER PANEL
══════════════════════════════════ */
.cfp-panel {
  display: grid;
  grid-template-columns: minmax(280px,.8fr) minmax(340px,1.2fr);
  gap: 20px;
  background: var(--cfp-card-bg);
  border: 1.5px solid var(--cfp-border);
  border-radius: var(--cfp-radius);
  padding: 22px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  margin-bottom: 18px;
}
.cfp-selects { display:flex; flex-direction:column; gap:12px; }

/* Select cards */
.cfp-select-card {
  display: flex !important;
  align-items: center;
  gap: 0;
  padding: 0 18px 0 72px !important;
  min-height: 72px;
  background: var(--cfp-card-bg);
  border: 1.5px solid var(--cfp-border) !important;
  border-radius: calc(var(--cfp-radius) - 4px) !important;
  position: relative;
  cursor: pointer;
  transition: border-color .16s, box-shadow .16s, transform .16s;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.cfp-select-card:hover   { border-color:var(--cfp-primary)!important; transform:translateY(-1px); box-shadow:0 6px 20px rgba(37,99,235,.1); }
.cfp-select-card:focus-within { border-color:var(--cfp-primary)!important; box-shadow:0 0 0 3px rgba(37,99,235,.12); }
.cfp-widget[dir=rtl] .cfp-select-card { padding:0 72px 0 18px !important; }

.cfp-icon {
  position:absolute; left:14px; top:50%; transform:translateY(-50%);
  width:40px; height:40px; border-radius:12px;
  background:var(--cfp-accent); color:var(--cfp-primary);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.cfp-widget[dir=rtl] .cfp-icon { left:auto; right:14px; }
.cfp-icon svg { width:19px; height:19px; }

.cfp-select-inner { display:flex; flex-direction:column; gap:2px; flex:1; min-width:0; }
.cfp-label {
  font-size:10px !important; font-weight:800 !important;
  text-transform:uppercase; letter-spacing:.55px; color:var(--cfp-text-2) !important;
}
.cfp-select-card select {
  width:100% !important; border:none !important; background:transparent !important;
  color:var(--cfp-text) !important; font-size:15px !important; font-weight:700 !important;
  outline:none !important; appearance:auto !important; cursor:pointer;
  box-shadow:none !important; padding:0 !important; height:auto !important;
  font-family:var(--cfp-font) !important;
}
.cfp-select-card select:disabled { opacity:.45; cursor:not-allowed; }

/* Preview pane */
.cfp-preview {
  border:1.5px solid var(--cfp-border); border-radius:calc(var(--cfp-radius) - 4px);
  background:#fff; display:flex; flex-direction:column;
  align-items:center; justify-content:center; padding:18px; min-height:240px;
}
.cfp-car-img {
  display:block; width:min(95%,420px); height:150px;
  object-fit:contain; margin-bottom:12px !important;
  transition:opacity .28s,transform .38s cubic-bezier(.34,1.56,.64,1);
}
.cfp-car-img.is-updating { opacity:.2; transform:scale(.95); }
.cfp-empty-note {
  text-align:center; font-size:13px !important; color:var(--cfp-text-2);
  line-height:1.6; padding:12px 16px; border-radius:12px;
  background:rgba(248,250,252,.8); max-width:280px;
}

/* ══════════════════════════════════
   RACK TYPE FILTER
══════════════════════════════════ */
.cfp-type-box {
  background:var(--cfp-card-bg); border:1.5px solid var(--cfp-border);
  border-radius:var(--cfp-radius); padding:18px 20px;
  box-shadow:0 2px 12px rgba(0,0,0,.04); margin-bottom:18px;
}
.cfp-type-header { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.cfp-type-badge {
  font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.5px;
  background:var(--cfp-accent); color:var(--cfp-primary);
  padding:3px 9px; border-radius:var(--cfp-badge-r);
}
.cfp-type-title { font-size:14px; font-weight:var(--cfp-hw); color:var(--cfp-text); }
.cfp-type-options { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.cfp-type-options label {
  display:flex !important; align-items:center; gap:9px;
  height:56px; padding:0 16px !important;
  border:1.5px solid var(--cfp-border) !important;
  border-radius:calc(var(--cfp-radius) - 4px);
  font-size:14px !important; font-weight:700 !important;
  cursor:pointer; transition:all .15s; background:var(--cfp-card-bg); color:var(--cfp-text);
}
.cfp-type-options label:hover { border-color:var(--cfp-primary) !important; }
.cfp-type-options input[type=radio] { width:17px !important; height:17px !important; accent-color:var(--cfp-primary); flex-shrink:0; margin:0 !important; }
.cfp-type-options label:has(input:checked) { border-color:var(--cfp-primary) !important; background:var(--cfp-accent); box-shadow:0 0 0 1px var(--cfp-primary); }

/* ══════════════════════════════════
   MESSAGES
══════════════════════════════════ */
.cfp-msg {
  display:flex; align-items:center; gap:12px;
  padding:16px 18px; border-radius:var(--cfp-radius);
  font-size:14px !important; border:1.5px solid var(--cfp-border);
  background:var(--cfp-card-bg); box-shadow:0 2px 12px rgba(0,0,0,.04);
}
.cfp-msg svg { width:20px; height:20px; flex-shrink:0; }
.cfp-msg--warn { border-color:#fde68a; background:#fffbeb; color:#92400e; }
.cfp-msg--warn svg { color:#d97706; }
.cfp-msg--info { border-color:#bfdbfe; background:#eff6ff; color:#1e40af; }

/* Loading spinner */
.cfp-loading {
  text-align:center; padding:22px; font-size:14px !important; font-weight:600;
  color:var(--cfp-text-2); background:var(--cfp-card-bg);
  border:1.5px solid var(--cfp-border); border-radius:var(--cfp-radius);
  display:flex; align-items:center; justify-content:center; gap:10px;
}
.cfp-loading::before {
  content:''; width:17px; height:17px;
  border:2.5px solid var(--cfp-border); border-top-color:var(--cfp-primary);
  border-radius:50%; animation:cfp-spin .7s linear infinite; flex-shrink:0;
}
@keyframes cfp-spin { to { transform:rotate(360deg); } }

/* Found banner */
.cfp-found {
  display:flex; align-items:center; justify-content:space-between;
  background:linear-gradient(90deg,var(--cfp-accent),transparent);
  border:1px solid rgba(37,99,235,.18); border-radius:var(--cfp-radius);
  padding:14px 18px; margin-bottom:16px;
}
.cfp-found__info strong { font-size:16px; font-weight:var(--cfp-hw); display:block; margin-bottom:2px; }
.cfp-found__info span   { font-size:12px; color:var(--cfp-text-2); }
.cfp-found__badge {
  min-width:38px; height:38px; border-radius:10px; padding:0 10px;
  background:var(--cfp-primary); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:17px; font-weight:900;
}

/* ══════════════════════════════════════════════════
   PRODUCT GRID
══════════════════════════════════════════════════ */
.cfp-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* ══════════════════════════════════════════════════
   PRODUCT CARD  ← the main redesign
   Structure: image strip (square top) + info block
══════════════════════════════════════════════════ */
.cfp-card {
  background: var(--cfp-card-bg);
  border: 1.5px solid var(--cfp-border);
  border-radius: var(--cfp-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,.05), 0 6px 24px rgba(0,0,0,.04);
  transition: box-shadow .2s ease, transform .2s ease;
}
.cfp-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.05);
  transform: translateY(-3px);
}

/* ── Image strip — square-ish, fills card width ── */
.cfp-card__gallery {
  position: relative;
  width: 100%;
  /* Short panoramic strip = fills with the wide rack part, crops white margins */
  height: 160px;
  background: #ffffff;
  overflow: hidden;
  border-bottom: 1.5px solid var(--cfp-border);
}
.cfp-card__track { display:flex; height:100%; transition:transform .32s cubic-bezier(.4,0,.2,1); }
.cfp-card__slide { flex:0 0 100%; height:100%; }
.cfp-card__slide img {
  display: block;
  width: 100%;
  height: 100%;
  /*
   * cover = crops the white manufacturer margins → rack fills the frame
   * This is the key fix: the rack image has large empty borders baked in,
   * cover crops them so the actual part appears much bigger.
   */
  object-fit: cover;
  object-position: center center;
  background: #ffffff;
  /*
   * Zoom control via scale() transform.
   * scale > 1  = zoom IN  (crops more margin, rack appears even bigger)
   * scale = 1  = default fill
   * scale < 1  = zoom out (shows more context/margin)
   * --cfp-img-scale is set from PHP: range 60-100 mapped to 0.9 - 1.4
   */
  transform: scale(var(--cfp-img-scale, 1.15));
  transform-origin: center center;
}

/* Prev/next arrows */
.cfp-card__arrow {
  position:absolute; top:50%; transform:translateY(-50%);
  width:30px; height:30px; border-radius:50%;
  background:rgba(255,255,255,.9); border:1.5px solid rgba(0,0,0,.08);
  cursor:pointer; font-size:16px; line-height:1;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 2px 8px rgba(0,0,0,.10); transition:all .14s; color:var(--cfp-text);
  z-index:2;
}
.cfp-card__arrow:hover { background:#fff; box-shadow:0 4px 14px rgba(0,0,0,.16); }
.cfp-card__arrow--p { left:8px; }
.cfp-card__arrow--n { right:8px; }

/* Dots */
.cfp-card__dots { position:absolute; bottom:8px; left:50%; transform:translateX(-50%); display:flex; gap:4px; z-index:2; }
.cfp-card__dot { width:5px; height:5px; border-radius:50%; background:rgba(0,0,0,.2); cursor:pointer; transition:all .18s; }
.cfp-card__dot.on { background:var(--cfp-primary); width:14px; border-radius:3px; }

/* Stock badge over image */
.cfp-badge {
  position:absolute; top:10px; right:10px; z-index:2;
  font-size:10px; font-weight:800; padding:3px 9px; border-radius:var(--cfp-badge-r);
  text-transform:uppercase; letter-spacing:.4px; line-height:1.4;
}
.cfp-badge--green  { background:#f0fdf4; color:#16a34a; border:1px solid #bbf7d0; }
.cfp-badge--orange { background:#fff7ed; color:#ea580c; border:1px solid #fed7aa; }

/* ── Body ── */
.cfp-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* Head: type pill + title */
.cfp-card__head { display:flex; flex-direction:column; gap:8px; }
.cfp-card__head-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.cfp-pill {
  display:inline-flex; align-items:center;
  font-size:10px; font-weight:900; padding:5px 12px;
  border-radius:var(--cfp-badge-r); white-space:nowrap;
  background:var(--cfp-accent); color:var(--cfp-primary);
  text-transform:uppercase; letter-spacing:.45px; width:fit-content;
}
.cfp-brand-logo-badge {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  max-width:92px;
  height:34px;
  padding:5px 9px;
  border-radius:12px;
  background:#fff;
  border:1.5px solid var(--cfp-border);
  box-shadow:0 3px 12px rgba(15,23,42,.06);
  flex-shrink:0;
}
.cfp-brand-logo-badge img {
  display:block;
  max-width:100%;
  max-height:24px;
  width:auto;
  height:auto;
  object-fit:contain;
}
.cfp-card__body h3 {
  font-size:17px !important; font-weight:900 !important;
  line-height:1.28; margin:0 !important; color:var(--cfp-text) !important;
  letter-spacing:-.2px;
}

/* Specs — modern info boxes */
.cfp-specs {
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  margin-top:2px;
}
.cfp-spec {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:9px 11px;
  border-radius:14px;
  border:1px solid #e6edf7;
  background:linear-gradient(135deg,#f8fbff 0%,#ffffff 100%);
}
.cfp-spec b {
  font-weight:900; color:#2563eb; font-size:11px;
  text-transform:uppercase; letter-spacing:.45px; flex-shrink:0;
}
.cfp-spec span {
  color:#0f172a;
  font-size:14px;
  font-weight:900;
  text-align:right;
  overflow-wrap:anywhere;
}
.cfp-widget[dir=rtl] .cfp-spec span { text-align:left; }
.cfp-spec--brand b { color:#7c3aed; }
.cfp-spec--condition b { color:#16a34a; }
.cfp-spec--ref span { color:#334155; font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; letter-spacing:-.3px; }

/* Note */
.cfp-note {
  font-size:12px !important; color:var(--cfp-text-2);
  font-style:italic; line-height:1.55; margin:0 !important;
  padding:8px 10px; background:var(--cfp-accent); border-radius:8px;
}

/* Price */
.cfp-price {
  font-size: var(--cfp-price-size) !important;
  font-weight: 900;
  color: var(--cfp-price-color) !important;
  text-align: var(--cfp-price-align) !important;
  line-height: 1; margin: 2px 0 0 !important;
  letter-spacing: -.3px;
  direction: ltr !important;
  unicode-bidi: isolate !important;
}
.cfp-price-value,
.cfp-price-ltr {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-flex;
  align-items: baseline;
  gap: .22em;
  white-space: nowrap;
}
.cfp-amount { direction: ltr !important; unicode-bidi: isolate !important; }
.cfp-cur { font-size:.7em; font-weight:700; opacity:.85; direction:ltr !important; unicode-bidi:isolate !important; }

/* CTA buttons — stacked column */
.cfp-card__cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}
.cfp-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none !important;
  padding: 12px 16px;
  border-radius: var(--cfp-btn-r);
  font-size: 13px !important; font-weight: 800;
  line-height: 1; letter-spacing: .2px;
  transition: filter .16s ease, transform .16s ease, box-shadow .16s ease;
  cursor: pointer; border: none; width: 100%;
}
.cfp-btn svg { flex-shrink:0; }

.cfp-btn--buy  { background: var(--cfp-btn-buy,  #2563eb); color:#fff!important; box-shadow:0 3px 10px rgba(0,0,0,.18); }
.cfp-btn--wa   { background: var(--cfp-btn-wa,   #25d366); color:#fff!important; box-shadow:0 3px 10px rgba(0,0,0,.14); }
.cfp-btn--call { background: var(--cfp-btn-call, #7c3aed); color:#fff!important; box-shadow:0 3px 10px rgba(0,0,0,.18); }
.cfp-btn--buy:hover,
.cfp-btn--wa:hover,
.cfp-btn--call:hover { filter:brightness(1.1); transform:translateY(-1px); box-shadow:0 6px 18px rgba(0,0,0,.2); }

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 860px) {
  .cfp-panel { grid-template-columns:1fr; padding:16px; gap:14px; }
  .cfp-preview { min-height:180px; padding:14px; }
  .cfp-car-img { height:120px; }
  .cfp-products { grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); gap:14px; }
}
@media (max-width: 600px) {
  .cfp-widget { padding:0 10px; }
  .cfp-heading h2 { font-size:19px !important; }
  .cfp-panel { padding:12px; border-radius:16px; }
  .cfp-select-card { min-height:64px !important; padding:0 12px 0 62px !important; border-radius:14px !important; }
  .cfp-widget[dir=rtl] .cfp-select-card { padding:0 62px 0 12px !important; }
  .cfp-icon { left:12px; width:36px; height:36px; border-radius:10px; }
  .cfp-widget[dir=rtl] .cfp-icon { left:auto; right:12px; }
  .cfp-icon svg { width:17px; height:17px; }
  .cfp-select-card select { font-size:14px !important; }
  .cfp-car-img { height:100px; }
  .cfp-empty-note { display:none; }
  .cfp-type-options { grid-template-columns:1fr; gap:8px; }
  .cfp-type-options label { height:50px !important; }
  /* Single column cards on mobile */
  .cfp-products { grid-template-columns:1fr; gap:14px; }
  .cfp-card__gallery { height:160px; } /* taller slot on mobile */
  .cfp-card__slide img { padding:10px; }
  .cfp-card__body { padding:16px; gap:10px; }
  .cfp-card__body h3 { font-size:18px !important; }
  .cfp-brand-logo-badge { height:32px; max-width:86px; padding:4px 8px; }
  .cfp-spec { padding:10px 12px; }
  .cfp-spec span { font-size:15px; }
  .cfp-btn { padding:11px 14px; font-size:13px !important; }
}

/* ══════════════════════════════════════════════════
   ORDER BUTTON + FORM
══════════════════════════════════════════════════ */
.cfp-btn--order {
  background: var(--cfp-btn-order, #16a34a);
  color: #fff !important;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 16px; border-radius: var(--cfp-btn-r, 10px);
  font-size: 14px !important; font-weight: 800;
  width: 100%; border: none; cursor: pointer;
  box-shadow: 0 3px 12px rgba(22,163,74,.3);
  transition: filter .16s, transform .16s, box-shadow .16s;
  margin-top: 8px;
}
.cfp-btn--order:hover { filter:brightness(1.08); transform:translateY(-1px); box-shadow:0 6px 20px rgba(22,163,74,.4); }

/* Form wrapper */
.cfp-order-form {
  margin-top: 12px;
  border: 1.5px solid var(--cfp-border, #e2e8f0);
  border-radius: var(--cfp-radius, 20px);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  animation: cfp-slide-down .28s ease;
}
@keyframes cfp-slide-down {
  from { opacity:0; transform:translateY(-10px); }
  to   { opacity:1; transform:translateY(0); }
}
.cfp-order-form__inner { padding: 20px; background: var(--cfp-card-bg, #fff); }

/* Order header */
.cfp-order-header {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 18px; margin: -20px -20px 18px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 62%, #ffffff 100%);
  border-bottom: 1.5px solid var(--cfp-border, #e2e8f0);
  position: relative; overflow: hidden;
}
.cfp-order-header::after {
  content: ''; position: absolute; inset-inline-end: -45px; top: -45px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.10) 0%, rgba(37,99,235,0) 72%);
  pointer-events: none;
}
.cfp-order-header__icon {
  width: 52px; height: 52px; border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
  color: var(--cfp-primary, #2563eb);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  border: 1px solid rgba(37,99,235,.12);
  box-shadow: 0 10px 24px rgba(37,99,235,.12);
}
.cfp-order-header__icon svg { width: 26px; height: 26px; }
.cfp-order-header__content { position: relative; z-index: 1; }
.cfp-order-header h4 {
  margin: 0 0 8px !important;
  font-size: 22px !important; line-height: 1.25 !important; font-weight: 900 !important;
  color: #0f172a !important;
}
.cfp-order-header__note {
  margin: 0 !important; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,.76); border: 1px solid rgba(22,163,74,.18);
  color: #15803d; font-size: 13px; font-weight: 800;
  box-shadow: 0 6px 16px rgba(15,23,42,.04);
}
.cfp-order-header__note svg { flex: 0 0 auto; }
.cfp-order-badge {
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0;
}

/* Form sections */
.cfp-form-section { margin-bottom: 16px; }
.cfp-form-section h5 {
  font-size: 12px !important; font-weight: 800 !important; text-transform: uppercase;
  letter-spacing: .5px; color: var(--cfp-text-2, #6b7280) !important;
  margin: 0 0 10px !important;
  display: flex; align-items: center; gap: 6px;
}
.cfp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cfp-form-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.cfp-form-field label { font-size: 12px; font-weight: 700; color: var(--cfp-text, #111); }
.cfp-form-field input,
.cfp-form-field select,
.cfp-form-field textarea {
  padding: 10px 12px;
  border: 1.5px solid var(--cfp-border, #e2e8f0);
  border-radius: 10px;
  font-size: 14px; color: var(--cfp-text, #111);
  font-family: var(--cfp-font, 'Inter', sans-serif);
  transition: border-color .15s, box-shadow .15s;
  background: #fff;
  width: 100%;
}
.cfp-form-field input:focus,
.cfp-form-field select:focus,
.cfp-form-field textarea:focus {
  outline: none;
  border-color: var(--cfp-primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.cfp-form-field input.cfp-input-error,
.cfp-form-field select.cfp-input-error { border-color: #ef4444; }
.cfp-req { color: #ef4444; }
.cfp-err { font-size: 11px; color: #ef4444; display: none; }
.cfp-err.show { display: block; }

/* Shipping options */
.cfp-ship-section { padding: 14px; background: var(--cfp-accent, #eff6ff); border-radius: 12px; }
.cfp-ship-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.cfp-ship-opt { cursor: pointer; display: block; }
.cfp-ship-opt input { display: none; }
.cfp-ship-opt__content {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border: 2px solid var(--cfp-border, #e2e8f0);
  border-radius: 12px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.cfp-ship-opt--active .cfp-ship-opt__content,
.cfp-ship-opt input:checked ~ .cfp-ship-opt__content {
  border-color: var(--cfp-primary, #2563eb);
  box-shadow: 0 0 0 1px var(--cfp-primary, #2563eb);
}
.cfp-ship-opt__content strong { display: block; font-size: 13px; font-weight: 800; }
.cfp-ship-opt__content span { font-size: 12px; color: var(--cfp-primary, #2563eb); font-weight: 700; }

/* Summary */
.cfp-order-summary {
  background: #f8fafc; border: 1.5px solid var(--cfp-border, #e2e8f0);
  border-radius: 12px; padding: 14px; margin: 14px 0;
}
.cfp-summary-line {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; font-size: 13px;
  border-bottom: 1px solid var(--cfp-border, #e2e8f0);
}
.cfp-summary-line:last-of-type { border-bottom: none; }
.cfp-summary-line--total {
  font-size: 16px; font-weight: 900; color: var(--cfp-primary, #2563eb);
  border-top: 2px solid var(--cfp-border, #e2e8f0);
  margin-top: 4px; padding-top: 10px;
}
.cfp-cod-note {
  font-size: 11px; color: #6b7280; margin: 8px 0 0 !important;
  display: flex; align-items: center; gap: 5px;
}

/* Order submit button */
.cfp-btn-order {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px 18px;
  border: none; border-radius: var(--cfp-btn-r, 10px);
  font-size: 15px !important; font-weight: 900;
  color: #fff !important; cursor: pointer;
  transition: filter .16s, transform .16s;
  margin-top: 12px;
}
.cfp-btn-order:hover { filter: brightness(1.08); transform: translateY(-1px); }
.cfp-btn-order:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* Loading state */
.cfp-btn-order.loading::after {
  content: ''; display: inline-block; width: 15px; height: 15px; margin-left: 8px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  border-radius: 50%; animation: cfp-spin .7s linear infinite;
}

/* Success state */
.cfp-order-success {
  text-align: center; padding: 28px 20px;
}
.cfp-order-success__icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: #f0fdf4; color: #16a34a;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.cfp-order-success h4 { font-size: 18px !important; font-weight: 900 !important; color: #16a34a !important; margin: 0 0 10px !important; }
.cfp-order-ref-line { font-size: 14px; margin: 0 0 8px !important; }
.cfp-order-total-confirm {
  margin-top: 14px; padding: 14px 16px;
  background: var(--cfp-accent, #eff6ff); border-radius: 12px;
  color: var(--cfp-primary, #2563eb);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; line-height: 1.15; text-align: center;
}
.cfp-order-total-confirm span { display: block; font-size: 13px; font-weight: 800; color: #475569; }
.cfp-order-total-confirm strong { display: block; font-size: 22px; font-weight: 950; white-space: nowrap; }

/* Responsive */
@media (max-width: 480px) {
  .cfp-form-row { grid-template-columns: 1fr; }
  .cfp-ship-options { grid-template-columns: 1fr; }
}

/* 2026 checkout polish */
.cfp-order-form--active { margin-top: 14px; }
.cfp-order-form__inner {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(148,163,184,.28);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(15,23,42,.10);
  overflow: hidden;
}
.cfp-checkout-progress { display: none !important; }
.cfp-order-mini { display:block; font-size:11px; font-weight:900; color:var(--cfp-primary,#2563eb); margin-bottom:3px; }
.cfp-commune-custom {
  width: 100%; margin-top: 8px; border: 1.5px solid var(--cfp-border,#e2e8f0);
  border-radius: 12px; padding: 11px 12px; font-size: 14px;
}
.cfp-btn--order-disabled {
  background:#e5e7eb !important; color:#64748b !important; cursor:not-allowed !important;
  box-shadow:none !important; transform:none !important;
}
.cfp-thankyou-page {
  background: radial-gradient(circle at top, #f0fdf4 0%, #ffffff 48%, #f8fafc 100%);
  border-radius: 20px; margin: 14px; border: 1px solid rgba(22,163,74,.20);
}
.cfp-thankyou-kicker {
  display:inline-flex; padding: 5px 10px; border-radius:999px; background:#dcfce7; color:#15803d;
  font-size:11px; font-weight:900; margin-bottom:8px;
}
.cfp-input-error { border-color:#ef4444 !important; box-shadow:0 0 0 3px rgba(239,68,68,.10) !important; }
.cfp-err.show { display:block; color:#ef4444; font-size:11px; font-weight:700; margin-top:4px; }
@media (max-width: 640px) {
  .cfp-order-form__inner { border-radius: 18px; }
  .cfp-order-header { padding: 16px 14px; margin: -20px -20px 16px; align-items: flex-start; }
  .cfp-order-header__icon { width: 46px; height: 46px; border-radius: 14px; }
  .cfp-order-header h4 { font-size: 18px !important; }
  .cfp-order-header__note { font-size: 12px; line-height: 1.45; border-radius: 14px; padding: 8px 10px; }
}

/* Frontend language switcher */
.cfp-widget { position: relative; }
.cfp-lang-wrap {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0 0 18px;
  padding: 0 4px;
  position: relative;
  z-index: 6;
}
.cfp-lang-combo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 118px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(148,163,184,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 12px 30px rgba(15,23,42,.10);
  backdrop-filter: blur(8px);
}
.cfp-lang-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cfp-accent,#eef6ff);
  font-size: 13px;
  flex: 0 0 auto;
}
.cfp-lang-select {
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color: var(--cfp-text,#0f172a);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  min-width: 62px;
  height: 30px;
  direction: ltr;
}
.cfp-lang-arrow {
  color: var(--cfp-primary,#2563eb);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  margin-top: -3px;
  flex: 0 0 auto;
}
.cfp-widget[dir="rtl"] .cfp-lang-wrap,
.cfp-widget[dir="ltr"] .cfp-lang-wrap { justify-content: flex-end; }
@media (max-width: 640px) {
  .cfp-lang-wrap { margin-bottom: 14px; padding-inline-end: 2px; }
  .cfp-lang-combo { height: 36px; min-width: 106px; padding: 0 9px; }
  .cfp-lang-select { min-width: 56px; font-size: 11px; }
}

/* v3.7.3 — Result attention effect after selecting rack type */
.cfp-result {
  scroll-margin-top: 96px;
}
.cfp-result.cfp-result-reveal .cfp-found,
.cfp-result.cfp-result-reveal .cfp-card,
.cfp-result.cfp-result-reveal .cfp-msg {
  animation: cfp-result-rise .52s cubic-bezier(.22,1,.36,1) both;
}
.cfp-result.cfp-result-reveal .cfp-card:nth-child(2) { animation-delay: .04s; }
.cfp-result.cfp-result-reveal .cfp-card:nth-child(3) { animation-delay: .08s; }
.cfp-result.cfp-result-flash .cfp-card,
.cfp-result.cfp-result-flash .cfp-found,
.cfp-result.cfp-result-flash .cfp-msg {
  box-shadow: 0 0 0 3px rgba(37,99,235,.10), 0 14px 34px rgba(37,99,235,.14);
}
@keyframes cfp-result-rise {
  from { opacity: .15; transform: translateY(22px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .cfp-result.cfp-result-reveal .cfp-found,
  .cfp-result.cfp-result-reveal .cfp-card,
  .cfp-result.cfp-result-reveal .cfp-msg { animation: none !important; }
}

/* v3.8.5 — Conversion trust elements */
.cfp-card-trust {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:2px;
}
.cfp-card-trust span {
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:6px 9px;
  border-radius:999px;
  background:var(--cfp-trust-bg,#ecfdf5);
  color:var(--cfp-trust-color,#15803d);
  border:1px solid var(--cfp-trust-border,#bbf7d0);
  font-size:var(--cfp-trust-size,11px);
  font-weight:900;
  line-height:1.15;
  white-space:nowrap;
}
.cfp-fit-help {
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:12px;
  border-radius:16px;
  background:var(--cfp-help-bg,#f8fafc);
  border:1px solid rgba(148,163,184,.20);
  margin-top:2px;
}
.cfp-fit-help__icon {
  width:30px;
  height:30px;
  border-radius:11px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  background:var(--cfp-accent,#eff6ff);
  color:var(--cfp-primary,#2563eb);
  font-weight:950;
  font-size:17px;
}
.cfp-fit-help__content {
  display:flex;
  flex-direction:column;
  gap:5px;
  min-width:0;
}
.cfp-fit-help strong {
  color:var(--cfp-help-title,#0f172a);
  font-size:calc(var(--cfp-help-size,12px) + 1px);
  font-weight:950;
  line-height:1.25;
}
.cfp-fit-help p {
  margin:0 !important;
  color:var(--cfp-help-text,#64748b);
  font-size:var(--cfp-help-size,12px) !important;
  font-weight:700;
  line-height:1.45;
}

.cfp-fit-help__link {
  color:var(--cfp-help-btn,#25d366) !important;
  font-weight:950;
  text-decoration:none !important;
  border-bottom:2px solid rgba(37,211,102,.25);
  white-space:nowrap;
}
.cfp-fit-help__link:hover {
  filter:brightness(.92);
  border-bottom-color:currentColor;
}
.cfp-fit-help__btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:fit-content;
  margin-top:4px;
  padding:8px 11px;
  border-radius:999px;
  text-decoration:none !important;
  background:var(--cfp-help-btn,#25d366);
  color:#fff !important;
  font-size:calc(var(--cfp-help-size,12px) - 1px) !important;
  font-weight:950;
  box-shadow:0 8px 18px rgba(37,211,102,.22);
}
.cfp-thankyou-whatsapp {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top:14px;
  padding:13px 16px;
  min-width:min(100%, 280px);
  border-radius:999px;
  background:var(--cfp-thank-wa,#25d366);
  color:#fff !important;
  text-decoration:none !important;
  font-size:var(--cfp-thank-wa-size,14px) !important;
  font-weight:950;
  box-shadow:0 12px 28px rgba(37,211,102,.26);
}
.cfp-thankyou-whatsapp:hover,
.cfp-fit-help__btn:hover { filter:brightness(1.06); transform:translateY(-1px); }
@media (max-width: 520px) {
  .cfp-card-trust span { flex:1 1 calc(50% - 6px); justify-content:center; }
  .cfp-card-trust span:last-child { flex-basis:100%; }
  .cfp-fit-help { padding:11px; }
}

/* v3.8.6 — Help block uses a subtle WhatsApp text link instead of a competing green button */
.cfp-card__cta:empty { display:none; }
.cfp-card__cta {
  margin-top:2px;
  padding-top:0;
}
.cfp-card-trust {
  margin-top:4px;
  margin-bottom:2px;
}
.cfp-btn--order {
  margin-top:6px;
}
.cfp-fit-help--after-order {
  margin-top:12px;
  padding:11px;
  border-style:dashed;
  background:linear-gradient(135deg, var(--cfp-help-bg,#f8fafc) 0%, #ffffff 100%);
}
@media (max-width: 520px) {
  .cfp-fit-help--after-order {
    margin-top:10px;
  }
}

/* v3.8.11 — fixed Roboto typography for main order buttons */
.cfp-btn--order,
.cfp-btn--order span,
.cfp-btn--order .cfp-order-text,
.cfp-btn-order,
.cfp-btn-order span {
  font-family: 'Roboto', Arial, Helvetica, sans-serif !important;
  font-weight: 900 !important;
  letter-spacing: .01em;
  text-transform: none !important;
}
.cfp-btn--order { font-size: 14px !important; }
.cfp-btn-order { font-size: 15px !important; }

.cfp-thankyou-whatsapp-note {
  max-width: 360px;
  margin: 8px auto 0 !important;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

/* v3.8.12 — Thank you WhatsApp as elegant outline secondary CTA */
.cfp-thankyou-whatsapp {
  min-width: auto !important;
  width: auto !important;
  max-width: 240px;
  padding: 9px 15px !important;
  margin-top: 12px !important;
  border: 1.8px solid var(--cfp-thank-wa,#25d366) !important;
  background: rgba(255,255,255,.92) !important;
  color: var(--cfp-thank-wa,#25d366) !important;
  border-radius: 999px !important;
  font-size: calc(var(--cfp-thank-wa-size,14px) - 1px) !important;
  font-family: 'Roboto', Arial, Helvetica, sans-serif !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  box-shadow: 0 7px 18px rgba(15,23,42,.07), 0 0 0 4px rgba(37,211,102,.06) !important;
}
.cfp-thankyou-whatsapp svg {
  width: 15px !important;
  height: 15px !important;
  flex: 0 0 auto;
}
.cfp-thankyou-whatsapp:hover {
  background: rgba(37,211,102,.08) !important;
  filter: none !important;
  transform: translateY(-1px);
  box-shadow: 0 9px 22px rgba(15,23,42,.09), 0 0 0 4px rgba(37,211,102,.09) !important;
}
@media (max-width: 520px) {
  .cfp-thankyou-whatsapp {
    max-width: 220px;
    padding: 8px 13px !important;
  }
}
