.stlfh-wrap,
.stlfh-wrap * { box-sizing: border-box; }


.stlfh-wrap {
  --stlfh-ink: #151515;
  --stlfh-muted: #6c6c6c;
  --stlfh-line: #e6e6e6;
  --stlfh-accent: #f4c400;
  --stlfh-soft: #f7f7f7;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 22px;
  max-width: 1120px;
  margin: 32px auto;
  color: var(--stlfh-ink);
}

.stlfh-card,
.stlfh-result {
  background: #fff;
  border: 1px solid var(--stlfh-line);
  border-radius: 20px;
  padding: clamp(22px, 4vw, 38px);
  box-shadow: 0 14px 40px rgba(0,0,0,.06);
}

.stlfh-heading h2,
.stlfh-result h3 { margin: 5px 0 10px; line-height: 1.12; }
.stlfh-heading h2 { font-size: clamp(28px, 4vw, 44px); }
.stlfh-heading p,
.stlfh-note { color: var(--stlfh-muted); }
.stlfh-kicker { font-size: 12px; font-weight: 800; letter-spacing: .12em; }

.stlfh-upload {
  position: relative;
  display: grid;
  place-items: center;
  gap: 7px;
  margin: 26px 0 20px;
  min-height: 180px;
  padding: 25px;
  border: 2px dashed #c9c9c9;
  border-radius: 16px;
  background: var(--stlfh-soft);
  text-align: center;
  cursor: pointer;
  transition: .2s ease;
}
.stlfh-upload:hover { border-color: var(--stlfh-ink); transform: translateY(-1px); }
.stlfh-upload input {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  pointer-events: auto;
}
.stlfh-upload-title { font-size: 20px; font-weight: 800; }
.stlfh-upload-subtitle { color: var(--stlfh-muted); font-size: 14px; }
.stlfh-file-name {
  margin-top: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.stlfh-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.stlfh-grid label,
.stlfh-full {
  display: grid;
  gap: 7px;
  font-weight: 700;
}
.stlfh-grid label span,
.stlfh-full > span { font-size: 14px; }

.stlfh-grid select,
.stlfh-grid input,
.stlfh-full textarea {
  width: 100%;
  border: 1px solid #d7d7d7;
  border-radius: 10px;
  background: #fff;
  color: var(--stlfh-ink);
  font: inherit;
}
.stlfh-grid select,
.stlfh-grid input {
  height: 48px;
  padding: 0 13px;
}
.stlfh-full {
  margin-top: 16px;
}
.stlfh-full textarea {
  min-height: 90px;
  padding: 12px 13px;
  resize: vertical;
}

.stlfh-color-field.is-hidden { display: none; }

.stlfh-multicolor-info,
.stlfh-review-warning {
  display: grid;
  gap: 5px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #ead17a;
  border-radius: 12px;
  background: #fff8dc;
  font-size: 14px;
  line-height: 1.45;
}
.stlfh-multicolor-info[hidden],
.stlfh-review-warning[hidden] { display: none; }
.stlfh-multicolor-info strong,
.stlfh-review-warning strong { font-weight: 900; }

.stlfh-reference {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--stlfh-line);
  border-radius: 12px;
  background: var(--stlfh-soft);
  cursor: pointer;
}
.stlfh-reference-title { font-weight: 800; }
.stlfh-reference-title em {
  color: var(--stlfh-muted);
  font-style: normal;
  font-weight: 600;
}
.stlfh-reference-help {
  color: var(--stlfh-muted);
  font-size: 13px;
}
.stlfh-reference input {
  width: 100%;
  margin-top: 4px;
}
.stlfh-reference-name {
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 700;
}

.stlfh-primary,
.stlfh-cart {
  width: 100%;
  min-height: 52px;
  margin-top: 20px;
  border: 0;
  border-radius: 11px;
  background: var(--stlfh-accent);
  color: #111;
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
}
.stlfh-primary:hover,
.stlfh-cart:hover { filter: brightness(.96); }
.stlfh-primary:disabled,
.stlfh-cart:disabled { opacity: .65; cursor: wait; }

.stlfh-status { min-height: 24px; margin-top: 10px; font-size: 14px; font-weight: 700; }
.stlfh-status.is-error { color: #b42318; }
.stlfh-status.is-success { color: #067647; }

.stlfh-result { align-self: start; position: sticky; top: 24px; }
.stlfh-result[hidden] { display: none; }
.stlfh-result-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.stlfh-price { font-size: clamp(32px, 5vw, 50px); }
.stlfh-badge {
  display: inline-flex;
  padding: 7px 9px;
  border-radius: 999px;
  background: #fff7d6;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.stlfh-metrics { display: grid; gap: 0; margin-top: 18px; border-top: 1px solid var(--stlfh-line); }
.stlfh-metrics > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--stlfh-line);
}
.stlfh-metrics span { color: var(--stlfh-muted); }
.stlfh-metrics strong { text-align: right; }
.stlfh-review-warning { margin-top: 18px; }
.stlfh-note { font-size: 13px; line-height: 1.55; margin-top: 18px; }

@media (max-width: 820px) {
  .stlfh-wrap { grid-template-columns: 1fr; }
  .stlfh-result { position: static; }
}

@media (max-width: 520px) {
  .stlfh-grid { grid-template-columns: 1fr; }
  .stlfh-card, .stlfh-result { border-radius: 14px; padding: 20px; }
  .stlfh-result-top { display: block; }
  .stlfh-badge { margin-top: 4px; }
}

.stlfh-privacy {
  display: inline-flex;
  align-items: center;
  margin-top: 7px;
  padding: 7px 11px;
  border: 1px solid #d9eadf;
  border-radius: 999px;
  background: #effaf3;
  color: #176b3a;
  font-size: 12px;
  font-weight: 800;
}

.stlfh-progress {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}
.stlfh-progress[hidden] { display: none; }
.stlfh-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #ececec;
}
.stlfh-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--stlfh-accent);
  transition: width .15s linear;
}
.stlfh-progress small {
  color: var(--stlfh-muted);
  font-weight: 700;
}

.stlfh-technology {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}
.stlfh-technology legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  font-size: 14px;
  font-weight: 900;
}
.stlfh-technology label {
  position: relative;
  display: block;
  cursor: pointer;
}
.stlfh-technology input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  pointer-events: auto;
}
.stlfh-technology label > span {
  display: grid;
  gap: 3px;
  min-height: 72px;
  padding: 14px 15px;
  border: 1px solid #d7d7d7;
  border-radius: 12px;
  background: #fff;
  transition: .18s ease;
}
.stlfh-technology label:hover > span { border-color: #8d8d8d; }
.stlfh-technology input:checked + span {
  border: 2px solid var(--stlfh-ink);
  padding: 13px 14px;
  background: #fff9df;
}
.stlfh-technology strong { font-size: 15px; }
.stlfh-technology small { color: var(--stlfh-muted); font-weight: 600; }

.stlfh-msla-info {
  display: grid;
  gap: 5px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #b9d9ee;
  border-radius: 12px;
  background: #eef8ff;
  font-size: 14px;
  line-height: 1.45;
}
.stlfh-msla-info[hidden] { display: none; }
.stlfh-msla-info strong { font-weight: 900; }

.stlfh-preview {
  margin: 0 0 20px;
  overflow: hidden;
  border: 1px solid var(--stlfh-line);
  border-radius: 16px;
  background: #f2f2f2;
}
.stlfh-preview[hidden] { display: none; }
.stlfh-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--stlfh-line);
  background: #fff;
}
.stlfh-preview-head > div { display: grid; gap: 2px; }
.stlfh-preview-head strong { font-size: 15px; }
.stlfh-preview-head span { color: var(--stlfh-muted); font-size: 12px; }
.stlfh-preview-reset {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #d7d7d7;
  border-radius: 9px;
  background: #fff;
  color: var(--stlfh-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.stlfh-preview-reset:hover { border-color: var(--stlfh-ink); }
.stlfh-preview-stage {
  position: relative;
  height: clamp(250px, 42vw, 390px);
  min-height: 250px;
  touch-action: none;
  user-select: none;
}
.stlfh-preview-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}
.stlfh-preview-stage canvas:active { cursor: grabbing; }
.stlfh-preview-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(247,247,247,.84);
  color: var(--stlfh-ink);
  font-size: 14px;
  font-weight: 900;
}
.stlfh-preview-loading[hidden] { display: none; }
.stlfh-preview-note {
  display: block;
  padding: 10px 15px;
  border-top: 1px solid var(--stlfh-line);
  background: #fff;
  color: #176b3a;
  font-weight: 700;
}

@media (max-width: 520px) {
  .stlfh-technology { grid-template-columns: 1fr; }
  .stlfh-preview-head { align-items: flex-start; }
  .stlfh-preview-head span { display: none; }
  .stlfh-preview-stage { height: 280px; }
}

/* 0.5.4 — Tema çakışmalarına karşı güvenilir, görünür form kontrolleri. */
.stlfh-wrap .stlfh-technology label {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.stlfh-wrap .stlfh-technology input[type="radio"] {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 20px !important;
  min-width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  clip: auto !important;
  pointer-events: auto !important;
  appearance: auto !important;
  -webkit-appearance: radio !important;
  accent-color: #151515;
  flex: 0 0 20px;
}
.stlfh-wrap .stlfh-technology label > span {
  flex: 1 1 auto !important;
}

.stlfh-wrap .stlfh-upload input[type="file"] {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: min(100%, 420px) !important;
  height: auto !important;
  min-height: 44px !important;
  margin: 10px auto 2px !important;
  padding: 7px !important;
  clip: auto !important;
  overflow: visible !important;
  border: 1px solid #d7d7d7 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #151515 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  appearance: auto !important;
  -webkit-appearance: auto !important;
}
.stlfh-wrap input[type="file"]::file-selector-button {
  min-height: 34px;
  margin-right: 10px;
  padding: 6px 12px;
  border: 0;
  border-radius: 8px;
  background: #151515;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.stlfh-wrap .stlfh-grid select,
.stlfh-wrap .stlfh-grid input[type="number"],
.stlfh-wrap .stlfh-reference input[type="file"],
.stlfh-wrap .stlfh-full textarea {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  clip: auto !important;
  pointer-events: auto !important;
}
.stlfh-wrap .stlfh-grid select {
  width: 100% !important;
  min-width: 0 !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 36px 0 13px !important;
  overflow: hidden !important;
  border: 1px solid #d7d7d7 !important;
  border-radius: 10px !important;
  background-color: #fff !important;
  color: #151515 !important;
  font: inherit !important;
  line-height: normal !important;
  appearance: auto !important;
  -webkit-appearance: menulist !important;
}
.stlfh-wrap .stlfh-grid select option {
  display: block !important;
  visibility: visible !important;
  color: #151515 !important;
  background: #fff !important;
}
.stlfh-wrap .stlfh-grid input[type="number"] {
  appearance: auto !important;
  -webkit-appearance: auto !important;
}
.stlfh-wrap .stlfh-reference input[type="file"] {
  width: 100% !important;
  min-height: 44px !important;
  padding: 7px !important;
  border: 1px solid #d7d7d7 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #151515 !important;
  cursor: pointer !important;
  appearance: auto !important;
  -webkit-appearance: auto !important;
}

.stlfh-wrap [hidden] {
  display: none !important;
}

/* 0.5.5 — asset cache bust: form controls use a new URL on every real file update. */

/* Standalone 1.0.0 — isolated native-control reset. */
[data-stlfh] select,
[data-stlfh] input,
[data-stlfh] textarea,
[data-stlfh] button {
  box-sizing: border-box !important;
  font-family: inherit !important;
}
[data-stlfh] .stlfh-grid select {
  display: block !important;
  width: 100% !important;
  min-height: 48px !important;
  opacity: 1 !important;
  visibility: visible !important;
  appearance: auto !important;
  -webkit-appearance: menulist !important;
}
[data-stlfh] .stlfh-upload input[type="file"] {
  display: block !important;
  position: static !important;
  width: min(100%, 420px) !important;
  min-height: 46px !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  appearance: auto !important;
  -webkit-appearance: auto !important;
}
