/* =============================================
   Mkonnect Estimator – stílusok
   (Scoped to pages that load this stylesheet; most rules sit under
   .est-page-bg for clarity and to avoid side effects elsewhere.)
   ============================================= */

/* ---- Estimator shell (body.estimator-app from estimator templates) ---- */
/* Turn off the global site shell gradient on body so it does not mask the
   estimator art; flat mint only shows if .est-page-bg is shorter than main. */
body.estimator-app.gradient-bg {
  /* Was #edfdf4; nudged toward white so base tint is ~half as chromatic */
  background: #f4f9f6;
  background-image: none;
  background-attachment: scroll;
}

/* Fill <main> so .est-page-bg can stretch to the full content column */
body.estimator-app main {
  display: flex;
  flex-direction: column;
  background: transparent;
}

/* ---- Page background (Marketplace + all estimator step pages) ---- */
/* Conic wash + *transparent* outer veil: the old radial used ~88–99% white
   across the *entire* circle, so the conic was invisible in the browser. */
body.estimator-app .est-page-bg,
.est-page-bg {
  --est-text-secondary: #4b5559;
  --est-text-tertiary: #5c666d;
  --est-text-hint: #6a747c;
  width: 100%;
  position: relative;
  isolation: isolate;
  color: #1e2930;
  line-height: 1.55;
  min-height: calc(100vh - 3.5rem);
  flex: 1 0 auto;
  padding: 0.5rem 0 3rem;
  /* Bottom: conic; top: soft center. Veil a touch stronger in mid-stops to halve green punch vs prior */
  background:
    radial-gradient(
      ellipse 92% 88% at 50% 36%,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.9) 18%,
      rgba(255, 255, 255, 0.7) 36%,
      rgba(255, 255, 255, 0.4) 52%,
      rgba(255, 255, 255, 0.1) 70%,
      rgba(255, 255, 255, 0) 80%
    ),
    conic-gradient(
      from 200deg at 50% 46%,
      #f0fdf4 0deg,
      #edf6f0 55deg,
      #f7fdfa 120deg,
      #dcfce7 200deg,
      #e8f3ed 280deg,
      #f0fdf4 360deg
    );
  background-attachment: scroll;
  /* Fallback under gradients; was #e8fcf1 */
  background-color: #f0f7f3;
}

/* ---- Typography & muted text (estimator only) ---- */

/* Bootstrap + helper muted — darker than default, still not bold */
.est-page-bg .text-muted,
.est-page-bg small.text-muted {
  color: var(--est-text-tertiary) !important;
  line-height: 1.55;
}
.est-page-bg .small,
.est-page-bg small {
  color: var(--est-text-hint);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.est-page-bg .lead.text-muted {
  color: var(--est-text-secondary) !important;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.5;
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}
.est-page-bg .est-header .btn-link.text-muted,
.est-page-bg a.btn-link.text-muted {
  color: var(--est-text-secondary) !important;
  font-weight: 500;
  font-size: 0.9375rem;
}
.est-page-bg .est-header .btn-link.text-muted:hover,
.est-page-bg a.btn-link.text-muted:hover {
  color: #166534 !important;
}
.est-page-bg .form-label {
  color: #2a3438;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}
.est-page-bg .est-card h4,
.est-page-bg .est-card .h4 {
  color: #1a2026;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ---- Általános keret ---- */
.estimator-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.est-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 18px rgba(16, 35, 26, 0.07);
  border: 1px solid rgba(16, 101, 52, 0.06);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

/* ---- Home – típusválasztó kártyák ---- */
.estimator-type-card {
  border-radius: 16px;
  border: 2px solid #e5e7eb;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  cursor: pointer;
  color: inherit;
}
.estimator-type-card:hover {
  border-color: #16a34a;
  box-shadow: 0 4px 20px rgba(22,163,74,0.15);
  transform: translateY(-3px);
  color: inherit;
}
.estimator-type-card.featured {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #fff 100%);
  position: relative;
}
.estimator-type-card.featured:hover {
  border-color: #d97706;
  box-shadow: 0 4px 20px rgba(245,158,11,0.2);
}

/* In-flow badge (no negative top / absolute) so long labels (e.g. DE) are not
   clipped by overflow:hidden on the card. Kept neutral for all languages. */
.featured-badge,
.estimator-type-card .featured-badge {
  position: static;
  top: auto;
  left: auto;
  transform: none;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: min(100%, 22rem);
  margin-bottom: 1rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.35;
  white-space: normal;
  text-transform: none;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.14);
}

/* Long CTA labels (e.g. German “Bestes Angebot”) stay readable and centered */
.estimator-type-card.featured .btn-warning {
  white-space: normal;
  text-align: center;
  line-height: 1.3;
  min-height: auto;
}
.type-icon {
  font-size: 3rem;
  line-height: 1;
}

/* ---- Trust sáv ---- */
.trust-item {
  padding: 1rem;
}
.trust-num {
  font-size: 2rem;
  font-weight: 800;
  color: #16a34a;
  line-height: 1;
}
.trust-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #5a6369;
  margin-top: 4px;
  line-height: 1.45;
}

/* ---- Wizard progress ---- */
.wizard-progress {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(22, 101, 52, 0.08);
  border-radius: 50px;
  padding: 0.55rem 1.1rem;
  display: inline-block;
  width: 100%;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}
.step-pill {
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.86rem;
  font-weight: 500;
  color: #6b7680;
  line-height: 1.3;
  background: transparent;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.step-pill.active {
  background: #16a34a;
  color: #fff;
  font-weight: 600;
}
.step-pill.done {
  color: #15803d;
  font-weight: 500;
}

/* ---- Price bar ---- */
.price-bar {
  background: linear-gradient(90deg, #f0fdf4, #dcfce7);
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
}
.price-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #4d5a55;
  text-transform: uppercase;
  letter-spacing: 0.55px;
  line-height: 1.4;
}
.price-value {
  font-size: 1.32rem;
  font-weight: 600;
  color: #14532d;
  line-height: 1.35;
}

/* ---- Pill choices ---- */
.pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill, .pill-lang {
  padding: 7px 16px;
  border-radius: 50px;
  border: 2px solid #e5e7eb;
  font-size: 0.9rem;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  background: #fff;
  color: #374151;
  font-weight: 500;
}
.pill:hover, .pill-lang:hover {
  border-color: #16a34a;
  color: #16a34a;
}
.pill.on, .pill-lang.on {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
  font-weight: 600;
}

/* ---- Q-block ---- */
.q-block .q-label {
  font-weight: 600;
  margin-bottom: 10px;
  color: #2a343c;
  font-size: 1.02rem;
  line-height: 1.45;
}
.req {
  color: #ef4444;
}

/* ---- Service rows ---- */
.svc-group-title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: #6a7674;
  margin-bottom: 8px;
  line-height: 1.35;
}
.svc-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.svc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 2px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.15s;
  background: #fff;
}
.svc-row:hover {
  border-color: #86efac;
  background: #f0fdf4;
}
.svc-row.on {
  border-color: #16a34a;
  background: #f0fdf4;
}
.svc-em {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}
.svc-info {
  flex: 1;
  min-width: 0;
}
.svc-name {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #1a2329;
}
.svc-desc {
  font-size: 0.84rem;
  line-height: 1.45;
  color: #5f696e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.svc-price {
  font-size: 0.84rem;
  font-weight: 500;
  color: #4b555c;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.3;
}
.svc-toggle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  flex-shrink: 0;
  transition: all 0.15s;
  position: relative;
}
.svc-row.on .svc-toggle {
  background: #16a34a;
  border-color: #16a34a;
}
.svc-row.on .svc-toggle::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 11px;
  font-weight: bold;
}

/* ---- Marketplace cards ---- */
.mkt-tabs {
  flex-wrap: wrap;
}
.mkt-tab {
  padding: 7px 16px;
  border-radius: 50px;
  border: 2px solid #e5e7eb;
  background: #fff;
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  color: #2f3840;
}
.mkt-tab:hover,
.mkt-tab.active {
  border-color: #16a34a;
  background: #16a34a;
  color: #fff;
}
.mkt-region-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.85px;
  color: #5f6c67;
  margin: 16px 0 8px;
  line-height: 1.35;
}
.mkt-region-section[style*="none"] {
  display: none !important;
}
.mkt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.mkt-card {
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  background: #fff;
  position: relative;
}
.mkt-card:hover {
  border-color: #86efac;
  background: #f0fdf4;
}
.mkt-card.on {
  border-color: #16a34a;
  background: #f0fdf4;
}
/* ---- Marketplace page (#estimator-marketplace-root): logos + „Már van regisztrációm” sor ----
   Nincs pill háttér: csak checkbox + szöveg. */

#estimator-marketplace-root .mkt-logo-wrap {
  min-height: 72px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#estimator-marketplace-root .mkt-card img.mkt-logo,
.mkt-card img.mkt-logo {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 68px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

/* Marketplace card: checkbox + label — inline-flex, nincs pseudo, nincs fehér „csík” */
#estimator-marketplace-root .est-card .mkt-card label.mkt-registration {
  margin-bottom: 0 !important;
  width: auto !important;
  max-width: max-content !important;
  color: #14532d !important;
  font-weight: 600 !important;
}

#estimator-marketplace-root .mkt-card .mkt-registration,
#estimator-webshop-integration-root .mkt-card .mkt-registration,
.wf-webshop-wizard .mkt-card .mkt-registration,
.mkt-card .mkt-registration {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35rem !important;
  width: auto !important;
  max-width: max-content !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  white-space: nowrap;
  font-size: 0.765rem;
  font-weight: 600;
  cursor: pointer;
  color: #14532d;
  box-sizing: border-box;
  min-height: 0 !important;
  height: auto !important;
  overflow: visible !important;
}

#estimator-marketplace-root .mkt-card .mkt-registration::before,
#estimator-marketplace-root .mkt-card .mkt-registration::after,
#estimator-webshop-integration-root .mkt-card .mkt-registration::before,
#estimator-webshop-integration-root .mkt-card .mkt-registration::after,
.wf-webshop-wizard .mkt-card .mkt-registration::before,
.wf-webshop-wizard .mkt-card .mkt-registration::after,
.mkt-card .mkt-registration::before,
.mkt-card .mkt-registration::after {
  content: none !important;
  display: none !important;
}

#estimator-marketplace-root .mkt-card .mkt-registration input.mkt-registration-checkbox,
#estimator-webshop-integration-root .mkt-card .mkt-registration input.mkt-registration-checkbox,
.wf-webshop-wizard .mkt-card .mkt-registration input.mkt-registration-checkbox,
.mkt-card .mkt-registration input.mkt-registration-checkbox {
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  accent-color: #15803d;
  background: transparent !important;
  box-shadow: none !important;
}

#estimator-marketplace-root .mkt-card .mkt-registration .mkt-registration-text,
#estimator-webshop-integration-root .mkt-card .mkt-registration .mkt-registration-text,
.wf-webshop-wizard .mkt-card .mkt-registration .mkt-registration-text,
.mkt-card .mkt-registration .mkt-registration-text {
  display: inline !important;
  line-height: 1.2;
  white-space: nowrap !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#estimator-marketplace-root .mkt-registration-wrapper,
#estimator-webshop-integration-root .mkt-registration-wrapper,
.wf-webshop-wizard .mkt-registration-wrapper {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: auto !important;
  max-width: max-content !important;
  margin: 0.75rem auto 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

#estimator-marketplace-root .mkt-logo-fallback {
  min-height: 48px;
  max-width: 100%;
  padding: 0.4rem 0.65rem;
  border-radius: 0.6rem;
  border: 1px dashed rgba(22, 163, 74, 0.35);
  background: #f4faf6;
  color: #166534;
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1.25;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#estimator-marketplace-root .mkt-logo-fallback-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mkt-initial {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #dcfce7;
  color: #166534;
  font-weight: bold;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mkt-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: #1a2328;
  margin-bottom: 4px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mkt-hours {
  font-size: 0.8rem;
  font-weight: 500;
  color: #5a6468;
  margin-bottom: 6px;
  line-height: 1.35;
}
.mkt-reg-wrap {
  margin-top: 4px;
}
.mkt-reg-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: #50595e;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1.35;
}
.mkt-check-icon {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 13px;
  color: #16a34a;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.15s;
}
.mkt-card.on .mkt-check-icon {
  opacity: 1;
}

/* ---- Summary box ---- */
.summary-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

/* ---- Login prompt (anon users) ---- */
.login-prompt-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
  color: #5c3d0f;
  font-weight: 500;
}
.login-prompt-box a {
  color: #166534;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.login-prompt-box a:hover {
  color: #14532d;
}

/* ---- Success oldal ---- */
@media (max-width: 576px) {
  .est-card { padding: 1.25rem; }
  .mkt-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

/* ===== Estimator wizard final repair ===== */

.estimator-app .estimator-wrap {
    max-width: 1180px;
}

.estimator-app .est-header {
    padding-top: 1.5rem;
}

.estimator-app .wizard-progress {
    display: flex;
    justify-content: center;
}

.estimator-app .step-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(22, 163, 74, 0.25);
    background: #ffffff;
    color: #166534;
    font-weight: 600;
    font-size: 0.92rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.estimator-app .step-pill.active {
    background: #198754;
    color: #ffffff;
    border-color: #198754;
}

.estimator-app .step-pill.done {
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
}

.estimator-app .price-bar {
    width: fit-content;
    min-width: 280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0.9rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid rgba(34, 197, 94, 0.22);
    background: linear-gradient(180deg, rgba(236, 253, 245, 0.95), rgba(255, 255, 255, 0.98));
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.estimator-app .price-label {
    color: #4b5563;
    font-size: 0.9rem;
}

.estimator-app .price-value {
    color: #111827;
    font-weight: 700;
    font-size: 1.08rem;
}

.estimator-app .est-card {
    max-width: 980px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.estimator-app .q-block {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.estimator-app .q-block:last-child {
    border-bottom: 0;
}

.estimator-app .q-label {
    margin-bottom: 0.75rem;
    color: #111827;
    font-weight: 700;
}

.estimator-app .req {
    color: #dc2626;
}

.estimator-app .pills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.estimator-app .pill,
.estimator-app .pill-lang {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 42px;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #ffffff;
    color: #1f2937;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    transition:
        transform 0.15s ease,
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease;
}

.estimator-app .pill:hover,
.estimator-app .pill-lang:hover {
    transform: translateY(-1px);
    border-color: rgba(22, 163, 74, 0.35);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.estimator-app .pill.on,
.estimator-app .pill-lang.on {
    background: #198754;
    color: #ffffff;
    border-color: #198754;
    box-shadow: 0 8px 18px rgba(25, 135, 84, 0.20);
}

.estimator-app .pill img {
    max-height: 20px;
    max-width: 70px;
    object-fit: contain;
}

.estimator-app .svc-group {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(240, 253, 244, 0.62);
    border: 1px solid rgba(34, 197, 94, 0.14);
}

.estimator-app .svc-group-title {
    margin-bottom: 0.75rem;
    color: #166534;
    font-weight: 800;
}

.estimator-app .svc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.estimator-app .service-item,
.estimator-app .svc-item {
    padding: 1rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.estimator-app .summary-box {
    border: 1px solid rgba(34, 197, 94, 0.18);
    background: rgba(240, 253, 244, 0.75);
}

.estimator-app .login-prompt-box {
    border-radius: 0.8rem;
    padding: 0.85rem 1rem;
    background: #fff7ed;
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #92400e;
}

.estimator-app .wizard-step-content {
    animation: estFadeIn 0.18s ease;
}

@keyframes estFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .estimator-app .est-card {
        padding: 1.25rem;
        border-radius: 1rem;
    }

    .estimator-app .wizard-progress .d-flex {
        flex-wrap: wrap;
        gap: 0.5rem !important;
    }

    .estimator-app .step-pill {
        font-size: 0.82rem;
        padding: 0.45rem 0.7rem;
    }

    .estimator-app .svc-grid {
        grid-template-columns: 1fr;
    }

    .estimator-app .pill,
    .estimator-app .pill-lang {
        width: 100%;
        justify-content: center;
    }

    .estimator-app .price-bar {
        width: 100%;
        min-width: 0;
    }
}


#estimator-marketplace-root .mkt-card img.mkt-logo {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    max-height: 68px !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Final hard reset: marketplace registration row — felülír minden korábbi szabályt; fehér függőleges csík kiküszöbölése */
#estimator-marketplace-root .mkt-card .mkt-registration,
#estimator-marketplace-root .mkt-card > .mkt-registration,
#estimator-webshop-integration-root .mkt-card .mkt-registration,
.wf-webshop-wizard .mkt-card .mkt-registration {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;

    width: auto !important;
    max-width: max-content !important;
    min-width: 0 !important;

    height: auto !important;
    min-height: 0 !important;

    padding: 0 !important;
    margin: 0.75rem auto 0 !important;

    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    border-radius: 0 !important;

    position: relative !important;
    overflow: visible !important;
    align-self: center !important;
}

#estimator-marketplace-root .mkt-card .mkt-registration-wrapper,
#estimator-webshop-integration-root .mkt-card .mkt-registration-wrapper,
.wf-webshop-wizard .mkt-card .mkt-registration-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    max-width: max-content !important;
    min-width: 0 !important;

    height: auto !important;
    min-height: 0 !important;

    padding: 0 !important;
    margin: 0 auto !important;

    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    border-radius: 0 !important;

    position: static !important;
    overflow: visible !important;
}

#estimator-marketplace-root .mkt-card .mkt-registration::before,
#estimator-marketplace-root .mkt-card .mkt-registration::after,
#estimator-marketplace-root .mkt-card .mkt-registration-wrapper::before,
#estimator-marketplace-root .mkt-card .mkt-registration-wrapper::after,
#estimator-marketplace-root .mkt-card label.mkt-registration::before,
#estimator-marketplace-root .mkt-card label.mkt-registration::after,
#estimator-webshop-integration-root .mkt-card .mkt-registration::before,
#estimator-webshop-integration-root .mkt-card .mkt-registration::after,
#estimator-webshop-integration-root .mkt-card .mkt-registration-wrapper::before,
#estimator-webshop-integration-root .mkt-card .mkt-registration-wrapper::after,
#estimator-webshop-integration-root .mkt-card label.mkt-registration::before,
#estimator-webshop-integration-root .mkt-card label.mkt-registration::after,
.wf-webshop-wizard .mkt-card .mkt-registration::before,
.wf-webshop-wizard .mkt-card .mkt-registration::after,
.wf-webshop-wizard .mkt-card .mkt-registration-wrapper::before,
.wf-webshop-wizard .mkt-card .mkt-registration-wrapper::after,
.wf-webshop-wizard .mkt-card label.mkt-registration::before,
.wf-webshop-wizard .mkt-card label.mkt-registration::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

#estimator-marketplace-root .mkt-card .mkt-registration-checkbox,
#estimator-webshop-integration-root .mkt-card .mkt-registration-checkbox,
.wf-webshop-wizard .mkt-card .mkt-registration-checkbox {
    display: inline-block !important;
    flex: 0 0 auto !important;

    width: 14px !important;
    height: 14px !important;

    min-width: 14px !important;
    min-height: 14px !important;

    padding: 0 !important;
    margin: 0 !important;

    background: transparent !important;
    background-image: none !important;
    border-radius: 2px !important;
    box-shadow: none !important;
    outline: none !important;

    position: static !important;
    transform: none !important;
}

#estimator-marketplace-root .mkt-card .mkt-registration-text,
#estimator-webshop-integration-root .mkt-card .mkt-registration-text,
.wf-webshop-wizard .mkt-card .mkt-registration-text {
    display: inline !important;

    padding: 0 !important;
    margin: 0 !important;

    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;

    white-space: nowrap !important;
    line-height: 1.2 !important;
}

#estimator-marketplace-root .mkt-card .mkt-registration > *,
#estimator-webshop-integration-root .mkt-card .mkt-registration > *,
.wf-webshop-wizard .mkt-card .mkt-registration > * {
    box-shadow: none !important;
}

/* ---- Webshop wizard step 1: platform logo cards (#q-platform.ws-platform-grid) ---- */
.estimator-app #ws-s1 #q-platform.ws-platform-grid,
#wf-webshop-wizard #ws-s1 #q-platform.ws-platform-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.estimator-app #ws-s1 .ws-platform-card,
#wf-webshop-wizard #ws-s1 .ws-platform-card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0.55rem !important;
    min-height: 116px !important;
    padding: 1rem 0.85rem !important;
    border-radius: 1rem !important;
    border: 1px solid rgba(22, 163, 74, 0.16) !important;
    background: #fafdfb !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
    text-align: center !important;
    overflow: hidden !important;
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        border-color 0.16s ease,
        background-color 0.16s ease !important;
    user-select: none;
}

.estimator-app #ws-s1 .ws-platform-card:focus-visible,
#wf-webshop-wizard #ws-s1 .ws-platform-card:focus-visible {
    outline: 2px solid rgba(25, 135, 84, 0.55);
    outline-offset: 2px;
}

.estimator-app #ws-s1 .ws-platform-card:hover,
#wf-webshop-wizard #ws-s1 .ws-platform-card:hover {
    transform: translateY(-1px) !important;
    border-color: rgba(34, 163, 90, 0.45) !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08) !important;
}

.estimator-app #ws-s1 .ws-platform-card.on,
.estimator-app #ws-s1 .ws-platform-card.selected,
#wf-webshop-wizard #ws-s1 .ws-platform-card.on,
#wf-webshop-wizard #ws-s1 .ws-platform-card.selected {
    border: 2px solid #22a35a !important;
    background: #f3fbf5 !important;
    box-shadow: 0 4px 16px rgba(34, 163, 90, 0.12) !important;
}

.estimator-app #ws-s1 .ws-platform-check,
#wf-webshop-wizard #ws-s1 .ws-platform-check {
    position: absolute !important;
    top: 0.65rem !important;
    right: 0.65rem !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 999px !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    background: #22a35a !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 0.85rem !important;
    line-height: 1 !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

.estimator-app #ws-s1 .ws-platform-card.on .ws-platform-check,
.estimator-app #ws-s1 .ws-platform-card.selected .ws-platform-check,
#wf-webshop-wizard #ws-s1 .ws-platform-card.on .ws-platform-check,
#wf-webshop-wizard #ws-s1 .ws-platform-card.selected .ws-platform-check {
    display: flex !important;
}

.estimator-app #ws-s1 .ws-platform-logo-wrap,
#wf-webshop-wizard #ws-s1 .ws-platform-logo-wrap {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 48px !important;
    padding: 0.25rem 0.35rem !important;
}

.estimator-app #ws-s1 .ws-platform-logo,
#wf-webshop-wizard #ws-s1 .ws-platform-logo {
    max-width: 100%;
    max-height: 48px !important;
    width: auto;
    height: auto;
    object-fit: contain !important;
}

.estimator-app #ws-s1 .ws-platform-logo-fallback,
#wf-webshop-wizard #ws-s1 .ws-platform-logo-fallback {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    min-height: 42px !important;
    padding: 0.35rem 0.35rem !important;
    border-radius: 0.65rem !important;
    border: 1px dashed rgba(15, 23, 42, 0.12) !important;
    background: rgba(248, 250, 249, 0.9) !important;
}

.estimator-app #ws-s1 .ws-platform-logo-fallback-text,
#wf-webshop-wizard #ws-s1 .ws-platform-logo-fallback-text {
    font-weight: 800 !important;
    font-size: 0.78rem !important;
    color: #4b5563 !important;
    line-height: 1.25 !important;
    max-width: 100%;
}

.estimator-app #ws-s1 .ws-platform-title,
#wf-webshop-wizard #ws-s1 .ws-platform-title {
    font-weight: 800 !important;
    font-size: 0.92rem !important;
    line-height: 1.25 !important;
    color: #111827 !important;
}

@media (max-width: 992px) {
    .estimator-app #ws-s1 #q-platform.ws-platform-grid,
    #wf-webshop-wizard #ws-s1 #q-platform.ws-platform-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 576px) {
    .estimator-app #ws-s1 #q-platform.ws-platform-grid,
    #wf-webshop-wizard #ws-s1 #q-platform.ws-platform-grid {
        grid-template-columns: 1fr !important;
    }
}
