/* Sell Your Phone – Wizard UI – Pantaphone LIGHT */

/* Shell layout (around [syp_wizard]) */
.syp-shell{
  position:relative;
}

/* Göm beräknat pris-raden inne i själva frågeområdet */
.syp-widget .syp-estimate{
  display:none !important;
}

/* Header + pills */
.syp-shell-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:12px;
}
.syp-shell-title h2{
  margin:0 0 4px;
}
.syp-shell-title p{
  margin:0;
  color:#4b5563;
}
.syp-shell-meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.syp-pill{
  padding:4px 10px;
  border-radius:999px;
  background:#e0f2ff;
  font-size:.8rem;
  font-weight:600;
  color:#0f172a;
}

/* Hide ONLY the wizard header on mobile (NOT the WP/Divi main header) */
@media (max-width:560px){
  body .syp-shell-header{
    display:none !important;
  }
  /* Removed global #main-header / #page-container hiding so other pages are unaffected */
}

/* Footer shell */
.syp-shell-footer{
  margin-top:12px;
  display:block !important;
  width:100%;
}
.syp-shell-footer-inner{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  font-size:.9rem;
  max-width:1160px;
  margin:0 auto;
}

/* LEFT: links (home + restart) */
.syp-footer-links{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-start;
}
.syp-footer-link{
  border-radius:999px;
  padding:6px 12px;
  border:1px solid #e5e7eb;
  background:#ffffff;
  color:#0f172a;
  text-decoration:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:600;
  font-size:.88rem;
}
.syp-footer-link:hover{
  background:#eff6ff;
}
.syp-footer-restart{
  border-color:#01A1FF;
  background:#01A1FF;
  color:#ffffff;
}
.syp-footer-restart:hover{
  background:#0284c7;
  border-color:#0284c7;
}

/* RIGHT: footer price */
.syp-footer-price{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:baseline;
  justify-content:flex-end;
}
.syp-footer-price-label{
  font-size:.84rem;
  color:#4b5563;
  font-weight:600;
}
.syp-footer-price-value{
  font-size:.95rem;
  font-weight:700;
  color:#0b1220;
}

/* Footer fixed on mobile */
@media (max-width:560px){
  .syp-shell-footer{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    background:#ffffff;
    border-top:1px solid #e5e7eb;
    box-shadow:0 -8px 20px rgba(15,23,42,0.12);
    padding:6px 10px;
    z-index:9999; /* make sure it's above other stuff */
  }
  .syp-shell-footer-inner{
    flex-wrap:wrap;
    align-items:flex-start;
  }
  .syp-footer-link{
    padding:6px 10px;
    font-size:.8rem;
  }
  .syp-footer-price{
    width:100%;
    justify-content:flex-start;
    margin-top:4px;
  }
  .syp-footer-price-value{
    font-size:.96rem;
  }
}

/* ============================================================
   BLOCK A – Variables, Base, Layout, Cards, Grids
   ============================================================ */

.syp-widget{
  --syp-bg: transparent;
  --syp-surface: #ffffff;
  --syp-surface-soft: #f8fafc;
  --syp-text: #0b1220;
  --syp-text-dim: #4b5563;
  --syp-border: #e5e7eb;
  --syp-border-strong: #cbd5f5;
  --syp-primary: #01A1FF;
  --syp-primary-weak: rgba(1,161,255,0.14);
  --syp-radius-md: 10px;
  --syp-radius-lg: 16px;
  --syp-radius-xl: 20px;
  --syp-shadow: 0 8px 24px rgba(15,23,42,0.10);
  --syp-shadow-hover: 0 18px 38px rgba(15,23,42,0.16);
  --syp-grid-gap: 14px;
  --syp-container-max: 1160px;
  --syp-font: system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
}

/* Hide internal h2 title from plugin */
.syp-widget #syp-title{
  display:none;
}

/* Base container */
.syp-widget{
  max-width: var(--syp-container-max);
  margin: 16px auto 24px;
  padding: 0 4px 16px;
  background: var(--syp-bg);
  color: var(--syp-text);
  font-family: var(--syp-font);
  line-height: 1.5;
  position: relative;
  font-size: 1rem;
  box-sizing:border-box;
}

/* Microgrid background */
.syp-widget::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:0.04;
  background-image:
    radial-gradient(#e5e7eb 1px, transparent 1px),
    radial-gradient(#e5e7eb 1px, transparent 1px);
  background-size:32px 32px;
  background-position:0 0,16px 16px;
  z-index:0;
}
.syp-widget > *{
  position:relative;
  z-index:3;
}

/* Headings */
.syp-widget h2{
  font-size: clamp(24px, 2.6vw, 32px);
  margin: 10px 0 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0b1220;
}
.syp-widget h3{
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 800;
  margin: 10px 0 14px;
  color: #111827;
}
.syp-widget h4{
  font-size: 17px;
  font-weight: 800;
  margin: 16px 0 10px;
  color: #111827;
}
.syp-widget p{
  margin: 0 0 10px;
  color: var(--syp-text);
  font-size: 1.02rem;
}
.syp-muted{
  color: var(--syp-text-dim);
}

/* Two-column helper */
.syp-two-col{
  display:grid;
  grid-template-columns:1fr 360px;
  gap:22px;
}
@media(max-width:1024px){
  .syp-two-col{ grid-template-columns:1fr; }
}

/* Step cards */
section[data-step]{
  background: var(--syp-surface);
  border:1px solid var(--syp-border);
  border-radius: var(--syp-radius-xl);
  padding: 26px 22px;
  box-shadow: var(--syp-shadow);
  margin-bottom:24px;
  position:relative;
  box-sizing:border-box;
}
section[data-step]::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height:3px;
  background:linear-gradient(90deg,#01A1FF,#33BEFF,#FFD932);
  border-radius: var(--syp-radius-xl) var(--syp-radius-xl) 0 0;
}
section[data-step][aria-hidden="true"]{
  display:none !important;
}

/* Grid for brand/device/variant */
.syp-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(230px, 1fr));
  gap:var(--syp-grid-gap);
}
@media(max-width:1024px){
  .syp-grid{
    grid-template-columns:repeat(auto-fit, minmax(210px, 1fr));
  }
}
@media(max-width:820px){
  .syp-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:480px){
  .syp-grid{ grid-template-columns:1fr; }
}

/* Cards */
.syp-card,
.syp-device,
.syp-variant{
  background: #ffffff;
  border:1px solid var(--syp-border);
  border-radius: var(--syp-radius-lg);
  box-shadow:var(--syp-shadow);
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, border-color .2s ease, background .15s ease;
  box-sizing:border-box;
}
.syp-card:hover,
.syp-device:hover,
.syp-variant:hover{
  transform:translateY(-3px);
  border-color:var(--syp-border-strong);
  box-shadow:var(--syp-shadow-hover);
  background:#f9fafb;
}

/* Device cards */
.syp-device{
  display:grid;
  grid-template-columns:auto 1fr;
  grid-template-rows:auto auto;
  column-gap:14px;
  row-gap:4px;
  padding:12px 14px;
  text-align:left;
  align-items:center;
  min-height:88px;
}
.syp-device .syp-thumb{
  grid-column:1;
  grid-row:1 / span 2;
  width:64px;
  height:64px;
  border-radius:14px;
  background:#f3f4f6;
  overflow:hidden;
  border:1px solid #e5e7eb;
  display:flex;
  align-items:center;
  justify-content:center;
}
.syp-device .syp-thumb img{
  width:80%;
  height:auto;
  object-fit:contain;
  object-position:center;
}
.syp-device .syp-title{
  grid-column:2;
  grid-row:1;
  font-size:15px;
  font-weight:700;
  color:#0b1220;
  line-height:1.3;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  min-height:2.6em;
}
.syp-device .syp-meta{
  grid-column:2;
  grid-row:2;
  align-self:flex-start;
  font-size:12px;
  font-weight:600;
  padding:3px 9px;
  border-radius:999px;
  background:#eff6ff;
  color:#1d4ed8;
  display:inline-flex;
}

/* Variant cards */
.syp-variant{
  display:grid;
  grid-template-columns:auto 1fr;
  grid-template-rows:auto auto;
  column-gap:12px;
  row-gap:2px;
  padding:10px 12px;
  text-align:left;
  align-items:center;
  min-height:76px;
}
.syp-variant .syp-thumb{
  grid-column:1;
  grid-row:1 / span 2;
  width:52px;
  height:52px;
  border-radius:12px;
  background:#f3f4f6;
  overflow:hidden;
  border:1px solid #e5e7eb;
  display:flex;
  align-items:center;
  justify-content:center;
}
.syp-variant .syp-thumb img{
  width:80%;
  height:auto;
  object-fit:contain;
  object-position:center;
}
.syp-variant .syp-title{
  grid-column:2;
  grid-row:1;
  font-size:14px;
  font-weight:700;
  color:#0b1220;
  line-height:1.3;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
}
.syp-variant .syp-meta{
  grid-column:2;
  grid-row:2;
  align-self:flex-start;
  font-size:13px;
  font-weight:700;
  padding:3px 10px;
  border-radius:999px;
  background:#ecfdf5;
  color:#166534;
  display:inline-flex;
}

/* Generic thumb */
.syp-thumb{
  width:100%;
  height:140px;
  border-radius:12px;
  background:#f3f4f6;
  overflow:hidden;
}
.syp-thumb img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
}
.syp-title{
  font-size:14px;
  font-weight:700;
  color:#111827;
}
.syp-meta{
  font-size:12px;
  opacity:.8;
  color:var(--syp-text-dim);
}

/* Brand chip */
.syp-chip{
  display:flex !important;
  align-items:center;
  justify-content:center;
  padding:10px 14px !important;
  border:1px solid var(--syp-border-strong);
  border-radius:999px !important;
  background:#f9fafb !important;
  font-weight:700;
  gap:6px;
  color:#0b1220 !important;
}
.syp-chip:hover{
  background:var(--syp-primary-weak) !important;
  border-color:#38bdf8;
}

/* ============================================================
   BLOCK B – Questions, Inputs, Nav, Form, Review, Actions
   ============================================================ */

.syp-answers-host{ display:block; }

.syp-q-group{
  background: var(--syp-surface-soft);
  border:1px solid var(--syp-border);
  border-radius:var(--syp-radius-xl);
  padding:20px 22px;
  margin-bottom:18px;
  box-shadow:0 8px 22px rgba(15,23,42,0.08);
  position:relative;
}
.syp-q-group .q-label{
  font-weight:800;
  font-size:1.02rem;
  margin-bottom:8px;
  color:#0f172a;
}
.syp-q-group::before{
  content:"🔍";
  position:absolute;
  right:16px; top:12px;
  opacity:0.16;
  font-size:1.2rem;
}

/* Option rows */
.syp-option{
  display:flex;
  align-items:center;
  gap:.75rem;
  padding:11px 12px;
  border-radius:var(--syp-radius-md);
  border:1px solid rgba(148,163,184,0.6);
  background:#ffffff;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .12s ease;
  cursor:pointer;
}
.syp-option:hover{
  background:#eff6ff;
  border-color:#93c5fd;
  transform:translateY(-1px);
}
.syp-option input{
  width:20px;
  height:20px;
  accent-color:var(--syp-primary);
  cursor:pointer;
}
.syp-option .txt{
  font-size:1rem;
  color:#111827;
}
.syp-option input:checked + .txt{
  font-weight:700;
  color:#0f172a;
}

/* Question header + options wrapper */
.syp-q-header{
  margin-bottom: 8px;
}
.syp-q-options{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top:8px;
}

/* Media layout */
.syp-q-group.syp-has-media{
  display:grid;
  grid-template-columns:minmax(0, 1.45fr) minmax(0, 1.1fr);
  grid-template-rows:auto auto 1fr;
  column-gap:20px;
  row-gap:10px;
  align-items:flex-start;
}
.syp-q-group.syp-has-media .syp-q-header{
  grid-column:1;
  grid-row:1;
}
.syp-q-group.syp-has-media .syp-helper-box{
  grid-column:1;
  grid-row:2;
}
.syp-q-group.syp-has-media .syp-q-options{
  grid-column:1;
  grid-row:3;
}
.syp-q-group.syp-has-media .syp-q-media{
  grid-column:2;
  grid-row:1 / span 3;
  margin:0;
  align-self:stretch;
}

/* Stack on smaller screens */
@media(max-width:900px){
  .syp-q-group.syp-has-media{
    display:block;
  }
  .syp-q-group.syp-has-media .syp-q-media{
    margin-top:14px;
  }
}

/* Media box */
.syp-q-media{
  margin:16px auto 18px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid #e5e7eb;
  background:#ffffff;
  box-shadow:0 6px 18px rgba(15,23,42,0.08);
  max-width:680px;
}
.syp-q-media img,
.syp-q-media video{
  width:100%;
  height:auto;
  max-height:460px;
  display:block;
  object-fit:contain;
}

/* Make media smaller on very small screens */
@media (max-width:560px){
  .syp-q-media{
    max-width:100%;
  }
  .syp-q-media img,
  .syp-q-media video{
    max-height:240px;
  }
}

/* Guidance */
.syp-q-subtitle{
  font-size:.9rem;
  color:var(--syp-text-dim);
  margin:4px 0 10px;
}
.syp-q-helpertext{
  font-size:.95rem;
  color:#1f2937;
  line-height:1.5;
  margin:6px 0 12px;
}

/* Helper box */
.syp-helper-box{
  padding:18px 18px;
  margin:20px 0;
  border-radius:16px;
  background:#f9fafb;
  border-left:5px solid var(--syp-primary);
  box-shadow:0 8px 20px rgba(15,23,42,0.08);
}
.syp-helper-title{
  font-weight:800;
  margin-bottom:6px;
  color:#0f172a;
}
.syp-helper-title::before{
  content:"💡 ";
  opacity:.8;
}
.syp-helper-body{
  font-size:.95rem;
  color:#111827;
}
.syp-helper-list li{
  list-style:none;
  margin:4px 0 4px 0;
  position:relative;
  padding-left:12px;
  font-size:.95rem;
  color:#111827;
}
.syp-helper-list li::before{
  content:"";
  position:absolute;
  left:-2px;
  top:8px;
  width:6px; height:6px;
  background:var(--syp-primary);
  border-radius:50%;
}

/* Question navigation (inside wizard) */
.syp-q-nav{
  display:grid;
  grid-template-areas:
    "prev label next"
    "bar  bar   bar";
  grid-template-columns:auto 1fr auto;
  row-gap:8px;
  margin-top:18px;
}
#syp-q-prev{ grid-area:prev; }
#syp-q-label{
  grid-area:label;
  background:#e0f2ff;
  padding:4px 10px;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
  color:#0b1220;
  text-align:center;
}
#syp-q-next{ grid-area:next; }

.syp-q-nav .button{
  padding:8px 12px !important;
  border-radius:10px !important;
  font-weight:700 !important;
  background:#ffffff !important;
  border:1px solid var(--syp-border) !important;
  color:#0b1220 !important;
  cursor:pointer !important;
  font-size:.9rem !important;
}
.syp-q-nav .button.primary{
  background:#01A1FF !important;
  color:#ffffff !important;
  border-color:#0284c7 !important;
  box-shadow:0 6px 16px rgba(1,161,255,0.25) !important;
}

/* Progress bar */
#syp-q-progress{
  grid-area:bar;
  height:6px;
  background:#e5e7eb;
  border-radius:999px;
  overflow:hidden;
}
#syp-q-progress .fill{
  height:100%;
  width:0%;
  background:linear-gradient(90deg,#01A1FF,#33BEFF);
  transition:width .25s ease;
}

/* Hide internal nav on mobile – footer handles navigation / leaving */
@media (max-width:560px){
  .syp-widget .syp-q-nav{
    display:none !important;
  }
}

/* Estimate + actions */
.syp-estimate{
  margin-top:.75rem;
  font-size:1.03rem;
  color:#111827;
}
.syp-actions{
  margin-top:1rem;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* Primary actions */
#syp-next-to-customer,
#syp-submit{
  background:#01A1FF !important;
  color:#ffffff !important;
  border:none !important;
  border-radius:var(--syp-radius-lg) !important;
  padding:11px 18px !important;
  cursor:pointer !important;
  font-weight:700 !important;
  box-shadow:0 10px 26px rgba(1,161,255,0.25);
  font-size:.95rem !important;
}
#syp-next-to-customer:hover,
#syp-submit:hover{
  background:#0284c7 !important;
}

/* Disabled */
:where(.syp-widget) button:disabled,
:where(.syp-widget) .button:disabled,
:where(.syp-widget) #syp-next-to-customer:disabled,
:where(.syp-widget) #syp-submit:disabled{
  background:#e5e7eb !important;
  color:#9ca3af !important;
  border-color:#e5e7eb !important;
  cursor:not-allowed !important;
  opacity:1 !important;
}

/* Secondary actions */
.syp-actions .button{
  background:#ffffff !important;
  color:var(--syp-text) !important;
  border:1px solid var(--syp-border-strong) !important;
  border-radius:var(--syp-radius-lg) !important;
  padding:10px 16px !important;
  cursor:pointer !important;
  font-weight:700 !important;
  font-size:.95rem !important;
}
.syp-actions .button:hover{
  background:#f3f4f6 !important;
}

/* Form grid */
.syp-form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
@media(max-width:720px){
  .syp-form-grid{ grid-template-columns:1fr; }
}
.syp-field{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.syp-field label{
  color:#111827;
  font-size:.96rem;
  font-weight:600;
}
.syp-field input,
.syp-field select{
  padding:13px 14px;
  border-radius:var(--syp-radius-md);
  border:1px solid var(--syp-border-strong);
  background:#ffffff;
  color:#0b1220;
  font:inherit;
  font-size:.98rem;
  box-sizing:border-box;
}
.syp-field input::placeholder{
  color:#9ca3af;
}
.syp-field input:focus,
.syp-field select:focus{
  outline:none;
  border-color:#3b82f6;
  box-shadow:0 0 0 1px #2563eb;
}

/* Customer form card */
.syp-card.syp-form{
  flex:1 1 520px;
  min-width:280px;
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-radius:var(--syp-radius-xl);
  padding:22px 20px;
  box-shadow:0 16px 40px rgba(15,23,42,0.10);
  display:flex;
  flex-direction:column;
  gap:14px;
  box-sizing:border-box;
}
.syp-card.syp-form .field{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.syp-card.syp-form .field label{
  font-size:.95rem;
  font-weight:600;
  color:#111827;
}
.syp-card.syp-form .field input{
  padding:11px 12px;
  border-radius:var(--syp-radius-md);
  border:1px solid #e5e7eb;
  background:#ffffff;
  color:#0b1220;
  font:inherit;
  font-size:.98rem;
}
.syp-card.syp-form .field input::placeholder{
  color:#9ca3af;
}
.syp-card.syp-form .field input:focus{
  outline:none;
  border-color:#3b82f6;
  box-shadow:0 0 0 1px #2563eb;
}

/* two-col rows inside form */
.syp-card.syp-form .syp-two{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
@media(max-width:720px){
  .syp-card.syp-form .syp-two{
    grid-template-columns:1fr;
  }
}
.syp-card.syp-form h4{
  margin-top:18px;
  padding-top:12px;
  border-top:1px solid #e5e7eb;
  color:#111827;
}

/* Summary */
.syp-summary{
  background: #ffffff;
  border:1px solid var(--syp-border);
  border-radius:var(--syp-radius-xl);
  padding:22px;
  box-shadow:0 12px 32px rgba(15,23,42,0.10);
  color:#0b1220;
  box-sizing:border-box;
}
.syp-summary .row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  padding:8px 0;
  border-bottom:1px dashed #d1d5db;
  font-size:.98rem;
  flex-wrap:wrap;
  row-gap:4px;
}
.syp-summary .row > div{
  min-width:0;
}
.syp-summary .row span{
  word-break:break-word;
}
.syp-summary .row:last-child{ border:0; }

/* First row is price card (desktop) */
.syp-summary .row:first-child{
  padding:12px 14px;
  margin-bottom:12px;
  border-radius:16px;
  border:1px solid #dbeafe;
  background:
    radial-gradient(140% 160% at 0% 0%, rgba(1,161,255,.06), transparent 60%),
    radial-gradient(140% 160% at 100% 100%, rgba(255,217,50,.08), transparent 60%),
    #ffffff;
  box-shadow:0 12px 30px rgba(15,23,42,0.10);
}
.syp-summary .row:first-child strong{
  font-size:1.02rem;
  color:#0f172a;
}
.syp-summary .row:first-child span{
  font-size:0.95rem;
  font-weight:800;
  letter-spacing:-0.01em;
  color:#0b1220;
  white-space:nowrap;
}
.syp-summary .edit{
  font-size:13px;
  color:var(--syp-primary);
  cursor:pointer;
}

/* On MOBILE, hide internal price card so footer price is the only one always visible */
@media (max-width:560px){
  .syp-summary .row:first-child{
    display:none !important;
  }
}

/* Layout of customer step */
.syp-flex{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
}
.syp-customer-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
  flex-wrap:wrap;
}
.syp-customer-header h3{
  margin:0;
}

/* Inline estimate beside "Dina uppgifter" (desktop only) */
.syp-inline-estimate{
  display:inline-flex;
  align-items:baseline;
  gap:10px;
  margin:0;
  padding:6px 14px;
  border-radius:999px;
  border:1px solid #dbeafe;
  background:
    radial-gradient(140% 160% at 0% 0%, rgba(37,99,235,0.05), transparent 60%),
    #eff6ff;
  box-shadow:0 8px 18px rgba(15,23,42,0.08);
  font-size:.9rem;
}
.syp-inline-estimate > div{
  display:flex;
  align-items:baseline;
}
.syp-inline-estimate > div:first-child strong{
  font-size:.9rem;
  font-weight:700;
  color:#0f172a;
}
.syp-inline-estimate > div:last-child span{
  font-size:1rem;
  font-weight:800;
  letter-spacing:-0.01em;
  color:#0b1220;
  white-space:nowrap;
}

/* MOBILE: hide inline estimate too (we show price in footer instead) */
@media (max-width:560px){
  .syp-inline-estimate{
    display:none !important;
  }
}

/* Desktop customer layout */
@media (min-width: 1025px){
  section[data-step="customer"]{
    display:grid;
    grid-template-columns:minmax(0,2.1fr) minmax(260px,1fr);
    grid-template-rows:auto 1fr;
    column-gap:24px;
    row-gap:18px;
  }
  section[data-step="customer"] > .syp-customer-header{
    grid-column:1;
    grid-row:1;
    margin-bottom:8px;
  }
  section[data-step="customer"] > .syp-flex{
    display:contents;
  }
  section[data-step="customer"] .syp-card.syp-form{
    grid-column:1;
    grid-row:2;
  }
  section[data-step="customer"] .syp-card.syp-summary{
    grid-column:2;
    grid-row:1 / span 2;
    align-self:start;
    position:sticky;
    top:24px;
  }
  .syp-inline-estimate{
    margin-left:auto;
  }
}

/* Below desktop */
@media (max-width:1024px){
  section[data-step="customer"]{
    display:block;
  }
  .syp-card.syp-form,
  .syp-card.syp-summary{
    width:100%;
    max-width:100%;
  }
}

/* Mobile header stack */
@media (max-width:640px){
  .syp-customer-header{
    align-items:flex-start;
    gap:8px;
  }
  .syp-inline-estimate{
    width:100%;
    justify-content:space-between;
    padding:8px 12px;
  }
}

/* ============================================================
   BLOCK C – Extra / Mobile tweaks
   ============================================================ */

/* Background */
body .syp-widget{
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(1,161,255,0.06), transparent 60%),
    radial-gradient(140% 140% at 100% 100%, rgba(255,217,50,0.06), transparent 60%),
    transparent;
}
.syp-q-group{
  background:#f8fafc;
  border-color:#e5e7eb;
}
.syp-summary{
  background:#ffffff;
  border-color:#e5e7eb;
}
.syp-card,
.syp-device,
.syp-variant{
  background:#ffffff;
}

/* Step icons */
section[data-step="brand"] h3::before { content:"📱"; }
section[data-step="device"] h3::before{ content:"🗂"; }
section[data-step="variant"] h3::before{ content:"🎨"; }
section[data-step="quality"] h3::before{ content:"❓"; }
section[data-step="customer"] h3::before{ content:"👤"; }
section[data-step="done"] h3::before{ content:"📄"; }
section[data-step] h3::before{
  margin-right:8px;
  opacity:.85;
}

/* Micro animations */
.syp-device:hover,
.syp-variant:hover,
.syp-card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 40px rgba(15,23,42,0.14);
}
.syp-helper-box{
  transition:transform .15s ease, box-shadow .2s ease;
}
.syp-helper-box:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 34px rgba(15,23,42,0.12);
}
.syp-option{
  transition:background .15s ease, padding-left .15s ease;
}

/* Hide summary in quality */
.syp-widget [data-step="quality"] .syp-summary,
.syp-widget [data-step="quality"] .syp-q-side,
.syp-widget [data-step="quality"] #syp-summary,
.syp-widget [data-step="quality"] aside{
  display:none !important;
  visibility:hidden !important;
}
.syp-q-group.syp-hidden{
  display:none !important;
}

/* Utilities */
[aria-busy="true"]{
  opacity:.6;
  pointer-events:none;
}
[aria-busy="false"]{
  opacity:1;
  pointer-events:auto;
}
.syp-q-nav .button,
#syp-next-to-customer,
#syp-submit,
.syp-summary .edit{
  pointer-events:auto !important;
}
:focus{
  scroll-margin-top:80px;
}

/* Mobile: wizard scroll container + bottom padding for footer */
@media(max-width:560px){
  .syp-widget{
    background:#f8fafc !important;
    padding:0 8px 110px;  /* clears fixed footer */
    font-size:.96rem;
    max-height: calc(100vh - 20px);
    overflow-y:auto;
    overscroll-behavior: contain;
  }
  section[data-step]{
    padding:18px 12px;
  }
  .syp-summary{
    padding:18px 14px;
  }
}

/* Small-screen refinements */
@media(max-width:640px){
  .syp-q-group{
    padding:16px 14px;
  }
  .syp-option{
    padding:10px 8px;
    gap:.6rem;
  }
  .syp-option .txt{
    font-size:.96rem;
  }
}
@media(max-width:640px){
  .syp-device,
  .syp-variant{
    padding:10px 10px;
    column-gap:10px;
    row-gap:4px;
    min-height:72px;
  }
  .syp-device .syp-thumb{
    width:56px;
    height:56px;
  }
  .syp-variant .syp-thumb{
    width:48px;
    height:48px;
  }
  .syp-device .syp-title,
  .syp-variant .syp-title{
    font-size:.95rem;
  }
  .syp-device .syp-meta,
  .syp-variant .syp-meta{
    font-size:.78rem;
  }
}
@media(max-width:480px){
  .syp-field input,
  .syp-field select,
  .syp-card.syp-form .field input{
    padding:11px 12px;
    font-size:.95rem;
  }
  .syp-summary .row{
    font-size:.95rem;
  }
  .syp-summary .row:first-child span{
    font-size:1.1rem;
  }
}

/* Internal scroll for brand/device/variant lists on mobile */
@media(max-width:560px){
  #syp-brands,
  #syp-devices,
  #syp-variants{
    max-height: 320px;
    overflow-y:auto;
    -webkit-overflow-scrolling: touch;
    padding-right:4px;
  }
}

/* Avoid horizontal scroll */
@media(max-width:767px){
  .syp-widget{
    overflow-x:hidden;
  }
}

/* Accessories step: mobile-only "Till uppgifter" button */
.syp-accessories-cta{
  margin-top: 10px;
  text-align: right;
}

/* Hide this extra button on desktop; mobile uses it */
@media (min-width: 561px){
  .syp-accessories-done{
    display: none !important;
  }
}

/* Mobile: make it full width and comfy to tap */
@media (max-width: 560px){
  .syp-accessories-done{
    width: 100%;
  }
}

/* Target only the main actions row that contains #syp-submit */
section[data-step="customer"] .syp-actions:has(#syp-submit){
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;  /* both buttons grouped on the right */
  margin-top:14px;
}

/* Put Tillbaka first (to the left) */
section[data-step="customer"] .syp-actions:has(#syp-submit) [data-syp-back]{
  order:1;
}

/* Put Skicka to the right of it */
section[data-step="customer"] .syp-actions:has(#syp-submit) #syp-submit{
  order:2;
}