/**
 * أضف مصلحتك — قشرة جوال أولاً (متسق مع business-list).
 */

.jf-biz-submit {
  --jf-biz-ink: #1a1c1e;
  --jf-biz-soft: #eef3f8;
  --jf-biz-line: #d7e0ea;
  --jf-biz-blue: #1d4f91;
  padding-block: 0.75rem 5.5rem;
  padding-inline: var(--jf-pad-x, 0.85rem);
  max-width: var(--jf-max, 720px);
  margin-inline: auto;
}

/* مساحة إضافية للجوال عند ظهور تحذير الحذف في الشريط السفلي */
.jf-biz-submit--can-trash {
  padding-bottom: 11.5rem;
}

.has-jf-dock .jf-biz-submit--can-trash {
  padding-bottom: 13.5rem;
}

@media (min-width: 520px) {
  .jf-biz-submit--can-trash {
    padding-bottom: 9rem;
  }

  .has-jf-dock .jf-biz-submit--can-trash {
    padding-bottom: 9rem;
  }
}

.jf-biz-submit__hero {
  margin-bottom: 0.85rem;
  padding: 1rem 1rem 0.9rem;
  border-radius: 16px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(29, 79, 145, 0.1), transparent 55%),
    linear-gradient(165deg, #fff 0%, var(--jf-biz-soft) 100%);
  border: 1px solid var(--jf-biz-line);
}

.jf-biz-submit__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--jf-biz-blue, #1d4f91);
}

.jf-biz-submit__title {
  margin: 0;
  font-size: clamp(1.35rem, 4.5vw, 1.75rem);
  font-weight: 900;
  color: var(--jf-biz-ink);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.jf-biz-submit__sub {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--jf-muted, #667085);
  line-height: 1.45;
  max-width: 40ch;
}

.jf-biz-submit__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.jf-biz-submit__modes {
  margin: 0.65rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--jf-muted, #667085);
}

.jf-biz-submit__modes a {
  color: var(--jf-biz-blue, #1d4f91);
  text-decoration: none;
}

/* Compose gate — نص الإعلان */
.jf-biz-submit__compose {
  margin-bottom: 0.85rem;
  padding: 1rem 0.95rem 1.05rem;
  border-radius: 16px;
  border: 1px solid var(--jf-biz-line);
  background:
    radial-gradient(90% 80% at 0% 0%, rgba(29, 79, 145, 0.06), transparent 55%),
    #fff;
  animation: jf-biz-step-in 0.32s ease;
}

.jf-biz-submit__label--lg {
  margin-top: 0;
  font-size: 1rem;
  font-weight: 900;
}

.jf-biz-submit__hint {
  margin: 0.35rem 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--jf-muted, #667085);
  line-height: 1.5;
}

.jf-biz-submit__hint--inline {
  margin: 0 0 0.35rem;
}

.jf-biz-submit__textarea--hero {
  min-height: 160px;
  background: #fff;
  border-color: color-mix(in srgb, var(--jf-biz-blue, #1d4f91) 22%, var(--jf-biz-line));
}

.jf-biz-submit__continue {
  width: 100%;
  margin-top: 0.75rem;
  min-height: 48px;
  font-weight: 900;
}

.jf-biz-submit__continue.is-busy {
  opacity: 0.78;
  pointer-events: none;
}

.jf-biz-autofill-gate {
  margin-top: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(227, 0, 15, 0.22);
  background: rgba(227, 0, 15, 0.05);
}

.jf-biz-autofill-gate[hidden] {
  display: none !important;
}

.jf-biz-autofill-gate__msg {
  margin: 0 0 0.7rem;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.55;
  color: #1a1c1e;
}

.jf-biz-autofill-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: stretch;
}

.jf-biz-autofill-gate__primary {
  width: 100%;
  min-height: 44px;
  font-weight: 900;
}

.jf-biz-autofill-gate__skip {
  appearance: none;
  border: 0;
  background: transparent;
  color: #64748b;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
  padding: 0.35rem 0.25rem;
  opacity: 0.85;
}

.jf-biz-autofill-gate__skip:hover {
  color: #475569;
  opacity: 1;
}

.jf-biz-submit__form.is-unlocked .jf-biz-submit__compose {
  padding-bottom: 0.85rem;
}

.jf-biz-submit__rest[hidden],
.jf-biz-submit__bar[hidden],
.jf-biz-submit__continue[hidden] {
  display: none !important;
}

.jf-biz-submit__rest {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  animation: jf-biz-step-in 0.34s ease;
}

.jf-biz-submit__step--extras .jf-biz-submit__step-num {
  font-size: 0.95rem;
}

/* Accordion steps */
.jf-biz-submit__form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.jf-biz-submit__step {
  border: 1px solid var(--jf-biz-line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.jf-biz-submit__step[open] {
  border-color: color-mix(in srgb, var(--jf-biz-blue, #1d4f91) 35%, var(--jf-biz-line));
}

.jf-biz-submit__step-sum {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 0.9rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.jf-biz-submit__step-sum::-webkit-details-marker {
  display: none;
}

.jf-biz-submit__step-num {
  flex: 0 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--jf-biz-blue, #1d4f91) 12%, #fff);
  color: var(--jf-biz-blue, #1d4f91);
  font-size: 0.78rem;
  font-weight: 900;
}

.jf-biz-submit__step[open] .jf-biz-submit__step-num {
  background: var(--jf-biz-blue, #1d4f91);
  color: #fff;
}

.jf-biz-submit__step-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--jf-biz-ink);
}

.jf-biz-submit__step-sub {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--jf-muted, #667085);
}

.jf-biz-submit__step-body {
  padding: 0 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  animation: jf-biz-step-in 0.28s ease;
}

@keyframes jf-biz-step-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.jf-biz-submit__label {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--jf-biz-ink);
}

.jf-biz-submit__input,
.jf-biz-submit__textarea,
.jf-biz-submit__select,
.jf-biz-submit__file {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--jf-biz-line);
  border-radius: 10px;
  background: var(--jf-biz-soft);
  color: var(--jf-biz-ink);
  font-family: var(--jf-font, Cairo, sans-serif);
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.jf-biz-submit__textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.jf-biz-submit__input:focus,
.jf-biz-submit__textarea:focus,
.jf-biz-submit__select:focus {
  outline: none;
  border-color: var(--jf-biz-blue, #1d4f91);
  background: #fff;
}

.jf-biz-submit__file {
  padding-block: 0.45rem;
  font-size: 0.8rem;
}

.jf-biz-submit__hint {
  margin: 0 0 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #667085;
  line-height: 1.45;
}

.jf-biz-submit__hint--inline {
  margin-top: -0.15rem;
  margin-bottom: 0.55rem;
}

/* Featured cover — archive 4:3 stage + home crop guide overlays */
.jf-biz-cover {
  --jf-biz-cover-focal: 50% 22%;
  --jf-biz-cover-frame-home: #e3000f;
  --jf-biz-cover-frame-archive: #e6b800;
  margin: 0.35rem 0 0.85rem;
  padding: 0.75rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--jf-biz-blue, #1d4f91) 22%, var(--jf-biz-line));
  background: linear-gradient(145deg, color-mix(in srgb, var(--jf-biz-blue, #1d4f91) 6%, #fff), #fff);
}

.jf-biz-cover[hidden] {
  display: none;
}

.jf-biz-cover__label {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--jf-biz-ink);
}

.jf-biz-cover__legend {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
}

.jf-biz-cover__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--jf-muted, #667085);
  line-height: 1.35;
}

.jf-biz-cover__swatch {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.jf-biz-cover__legend-item--home .jf-biz-cover__swatch {
  background: var(--jf-biz-cover-frame-home);
}

.jf-biz-cover__legend-item--archive .jf-biz-cover__swatch {
  background: var(--jf-biz-cover-frame-archive);
}

.jf-biz-cover__viewport {
  position: relative;
  margin-top: 0.45rem;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--jf-biz-soft, #f3f5f7);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.jf-biz-cover__viewport.is-dragging {
  cursor: grabbing;
}

.jf-biz-cover__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--jf-biz-cover-focal);
  display: block;
  pointer-events: none;
}

.jf-biz-cover__guides {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.jf-biz-cover__frame {
  position: absolute;
  box-sizing: border-box;
  pointer-events: none;
}

/* Yellow = /businesses/ card crop (matches viewport 4:3). */
.jf-biz-cover__frame--archive {
  inset: 0;
  border: 2.5px solid var(--jf-biz-cover-frame-archive);
  border-radius: 12px;
  box-shadow:
    inset 0 0 0 1px rgba(230, 184, 0, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}

/*
 * Red = homepage directory hero band inside the same 4:3 stage.
 * Mobile hero 16/9 → height = 75% of 4:3; desktop 2/1 → ~66.7%.
 */
.jf-biz-cover__frame--home {
  left: 0;
  right: 0;
  top: 12.5%;
  bottom: 12.5%;
  border: 2.5px solid var(--jf-biz-cover-frame-home);
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 1px rgba(227, 0, 15, 0.28),
    0 0 0 9999px rgba(8, 12, 18, 0.12);
}

@media (min-width: 640px) {
  .jf-biz-cover__frame--home {
    top: 16.666%;
    bottom: 16.666%;
  }
}

.jf-biz-submit__check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--jf-biz-ink);
  cursor: pointer;
}

.jf-biz-submit__check input {
  margin-top: 0.15rem;
  accent-color: var(--jf-biz-blue, #1d4f91);
}

.jf-biz-submit__note {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--jf-muted, #667085);
  line-height: 1.4;
}

.jf-biz-submit__note code {
  font-size: 0.68rem;
}

/* Sticky CTA — mobile first */
.jf-biz-submit__bar {
  position: fixed;
  z-index: 40;
  inset-inline: 0;
  bottom: 0;
  padding: 0.55rem var(--jf-pad-x, 0.85rem) calc(0.55rem + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, #fff 94%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--jf-biz-line);
  box-shadow: 0 -6px 24px rgba(26, 28, 30, 0.06);
}

.jf-biz-submit__bar--danger {
  padding-top: 0.45rem;
}

.has-jf-dock .jf-biz-submit__bar {
  bottom: calc(var(--jf-dock-h, 58px) + env(safe-area-inset-bottom, 0px));
}

/* بدون dock — شريط الإرسال ملتصق بأسفل الشاشة دون تغطية */
body.jf-no-dock .jf-biz-submit__bar,
body.jf-compose-screen .jf-biz-submit__bar {
  bottom: 0;
}

.jf-biz-submit__bar .jf-biz-submit__send,
.jf-biz-submit__bar .jf-btn {
  width: 100%;
  max-width: var(--jf-max, 720px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  font-weight: 900;
}

.jf-biz-submit__bar-inner {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  max-width: var(--jf-max, 720px);
  margin-inline: auto;
}

.jf-biz-submit__bar-inner .jf-btn {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

/* تحذير الحذف — واضح على الجوال */
.jf-biz-submit__delete-warn {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--jf-primary, #e3000f) 35%, transparent);
  background: color-mix(in srgb, var(--jf-primary, #e3000f) 8%, #fff);
  color: #7a0010;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.45;
  order: -1;
}

.jf-biz-submit__delete-warn-ico {
  flex-shrink: 0;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--jf-primary, #e3000f);
}

.jf-biz-submit__delete-warn-text {
  flex: 1 1 auto;
  min-width: 0;
}

.jf-biz-submit__delete,
.jf-biz-submit__bar .janoob-biz-delete-btn {
  background: transparent;
  color: var(--jf-primary, #e3000f);
  border: 1.5px solid color-mix(in srgb, var(--jf-primary, #e3000f) 50%, transparent);
  box-shadow: none;
  font-size: 0.9rem;
}

.jf-biz-submit__delete:hover,
.jf-biz-submit__bar .janoob-biz-delete-btn:hover {
  background: color-mix(in srgb, var(--jf-primary, #e3000f) 10%, transparent);
}

.jf-biz-submit__delete:disabled,
.jf-biz-submit__bar .janoob-biz-delete-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* سطح المكتب: صف أزرار تحت التحذير */
@media (min-width: 520px) {
  .jf-biz-submit__bar-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem 0.65rem;
    align-items: stretch;
  }

  .jf-biz-submit__delete-warn {
    grid-column: 1 / -1;
    font-size: 0.78rem;
    padding: 0.6rem 0.75rem;
  }

  .jf-biz-submit__bar-inner .jf-biz-submit__send {
    grid-column: 1;
  }

  .jf-biz-submit__bar-inner .jf-biz-submit__delete {
    grid-column: 2;
    min-width: 9.5rem;
    align-self: stretch;
  }
}

.jf-biz-submit__send.is-busy {
  opacity: 0.72;
  pointer-events: none;
}

/* Toast */
.jf-biz-submit__toast {
  position: fixed;
  z-index: 50;
  inset-inline: 0.85rem;
  bottom: calc(5.2rem + env(safe-area-inset-bottom, 0px));
  max-width: var(--jf-max, 720px);
  margin-inline: auto;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--jf-biz-ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 10px 28px rgba(26, 28, 30, 0.2);
  animation: jf-biz-toast-in 0.28s ease;
}

.has-jf-dock .jf-biz-submit__toast {
  bottom: calc(8.8rem + env(safe-area-inset-bottom, 0px));
}

.jf-biz-submit--can-trash ~ .jf-biz-submit__toast,
.jf-biz-submit--can-trash .jf-biz-submit__toast {
  bottom: calc(10.5rem + env(safe-area-inset-bottom, 0px));
}

.has-jf-dock .jf-biz-submit--can-trash .jf-biz-submit__toast {
  bottom: calc(14rem + env(safe-area-inset-bottom, 0px));
}

.jf-biz-submit__toast.is-ok {
  background: #0f766e;
}

.jf-biz-submit__toast.is-soft {
  background: #1d4f91;
}

.jf-biz-submit__input.is-soft-nudge,
.jf-biz-submit__select.is-soft-nudge,
.jf-biz-submit__textarea.is-soft-nudge,
.jf-biz-submit__file.is-soft-nudge {
  border-color: rgba(29, 79, 145, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(29, 79, 145, 0.12);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.jf-biz-submit__field-msg.is-soft {
  color: #1d4f91;
}

/* Soft post-AI assist (mobile-first bottom sheet) */
.jf-biz-assist {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(15, 23, 42, 0.38);
}

.jf-biz-assist[hidden] {
  display: none !important;
}

.jf-biz-assist__sheet {
  width: min(100%, 28rem);
  max-height: min(86vh, 34rem);
  overflow: auto;
  margin: 0;
  padding: 1rem 1.05rem calc(1rem + env(safe-area-inset-bottom, 0px));
  border-radius: 1.15rem 1.15rem 0 0;
  background: #fff;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.18);
  animation: jf-biz-assist-up 0.28s ease;
}

@keyframes jf-biz-assist-up {
  from {
    transform: translateY(18px);
    opacity: 0.7;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.jf-biz-assist__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.jf-biz-assist__progress {
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
}

.jf-biz-assist__x {
  appearance: none;
  border: 0;
  background: #f1f5f9;
  color: #334155;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.jf-biz-assist__title {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.45;
}

.jf-biz-assist__hint {
  margin: 0 0 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  line-height: 1.5;
}

.jf-biz-assist__actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.jf-biz-assist__yes {
  width: 100%;
  min-height: 2.85rem;
  border: 0;
  border-radius: 12px;
  background: #e3000f;
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 900;
  cursor: pointer;
}

.jf-biz-assist__later {
  appearance: none;
  border: 0;
  background: transparent;
  color: #64748b;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
  padding: 0.45rem;
}

.jf-biz-assist__ta {
  width: 100%;
  min-height: 7.5rem;
  margin: 0 0 0.75rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.55;
  resize: vertical;
  direction: ltr;
  text-align: left;
}

@media (min-width: 720px) {
  .jf-biz-assist {
    align-items: center;
    padding: 1rem;
  }

  .jf-biz-assist__sheet {
    border-radius: 1.1rem;
    max-height: 80vh;
  }
}

.jf-biz-submit__toast.is-err {
  background: #e3000f;
}

/* Field inline messages */
.jf-biz-submit__field-msg {
  margin: 0.2rem 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.4;
  color: #e3000f;
}

.jf-biz-submit__field-msg.is-ok {
  color: #0f766e;
}

.jf-biz-submit__input.is-invalid,
.jf-biz-submit__textarea.is-invalid,
.jf-biz-submit__select.is-invalid {
  border-color: rgba(227, 0, 15, 0.55);
  box-shadow: 0 0 0 2px rgba(227, 0, 15, 0.12);
}

.jf-biz-submit__textarea--sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Compact gallery URL add + chips */
.jf-biz-url-add {
  display: flex;
  gap: 0.45rem;
  align-items: stretch;
  margin-bottom: 0.65rem;
}

.jf-biz-url-add .jf-biz-submit__input {
  flex: 1 1 auto;
  margin: 0;
}

.jf-biz-url-add__btn {
  flex: 0 0 auto;
  min-height: 2.65rem;
  padding: 0 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(227, 0, 15, 0.35);
  background: rgba(227, 0, 15, 0.08);
  color: #e3000f;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
}

.jf-biz-url-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}

.jf-biz-url-chip {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f1f5f9;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.jf-biz-url-chip.is-invalid,
.jf-biz-url-chip.is-warn {
  border-color: rgba(227, 0, 15, 0.55);
  background: rgba(227, 0, 15, 0.06);
}

.jf-biz-url-chip.is-ok {
  border-color: rgba(22, 163, 74, 0.45);
}

.jf-biz-url-chip.is-pending {
  opacity: 0.72;
}

.jf-biz-url-chip__badge {
  position: absolute;
  bottom: 0.2rem;
  inset-inline-end: 0.2rem;
  z-index: 1;
  max-width: calc(100% - 0.4rem);
  padding: 0.1rem 0.28rem;
  border-radius: 9999px;
  font-size: 0.55rem;
  font-weight: 900;
  line-height: 1.2;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jf-biz-url-chip__badge.is-ok {
  background: rgba(22, 163, 74, 0.92);
}

.jf-biz-url-chip__badge.is-err,
.jf-biz-url-chip__badge.is-warn {
  background: rgba(227, 0, 15, 0.92);
}

.jf-biz-url-chip__badge.is-pending {
  background: rgba(100, 116, 139, 0.9);
}

.jf-biz-submit__hint--media {
  margin-top: -0.15rem;
  color: #475569;
  font-weight: 700;
}

.jf-biz-file-chips {
  margin-top: 0.35rem;
}

.jf-biz-cover__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  align-items: center;
  margin: 0.45rem 0 0.85rem;
}

.jf-biz-cover__clear {
  appearance: none;
  border: 1px solid rgba(227, 0, 15, 0.35);
  background: rgba(227, 0, 15, 0.07);
  color: #e3000f;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  border-radius: 9999px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
}

.jf-biz-cover__clear[hidden] {
  display: none !important;
}

.jf-biz-cover__clear:hover {
  background: rgba(227, 0, 15, 0.12);
}

.jf-biz-submit__check--inline {
  margin: 0;
}

.jf-biz-logo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7.25rem;
  gap: 0.75rem 0.9rem;
  align-items: start;
  margin: 0 0 0.85rem;
}

.jf-biz-logo-row__meta {
  min-width: 0;
}

.jf-biz-logo-preview {
  position: relative;
  width: 7.25rem;
  height: 7.25rem;
  border-radius: 0.9rem;
  border: 1.5px dashed rgba(29, 79, 145, 0.35);
  background: linear-gradient(160deg, #f8fafc, #eef2ff);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.jf-biz-logo-preview.has-file {
  border-style: solid;
  border-color: rgba(22, 163, 74, 0.45);
  background: #f1f5f9;
}

.jf-biz-logo-preview__tag {
  position: absolute;
  z-index: 2;
  top: 0.3rem;
  inset-inline-end: 0.3rem;
  max-width: calc(100% - 0.5rem);
  padding: 0.12rem 0.35rem;
  border-radius: 9999px;
  background: rgba(29, 79, 145, 0.92);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.jf-biz-logo-preview__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 1.4rem 0.4rem 0.4rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #64748b;
}

.jf-biz-logo-preview__empty[hidden] {
  display: none !important;
}

.jf-biz-logo-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jf-biz-logo-preview__x {
  position: absolute;
  z-index: 2;
  top: 0.3rem;
  inset-inline-start: 0.3rem;
  width: 1.4rem;
  height: 1.4rem;
  border: 0;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.jf-biz-logo-preview__x:hover {
  background: #e3000f;
}

.jf-biz-logo-preview__badge {
  position: absolute;
  z-index: 2;
  bottom: 0.3rem;
  inset-inline-start: 0.3rem;
  padding: 0.1rem 0.35rem;
  border-radius: 9999px;
  background: rgba(22, 163, 74, 0.92);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 900;
}

@media (max-width: 420px) {
  .jf-biz-logo-row {
    grid-template-columns: minmax(0, 1fr) 6.4rem;
  }

  .jf-biz-logo-preview {
    width: 6.4rem;
    height: 6.4rem;
  }
}

.jf-biz-url-chip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jf-biz-url-chip__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0.35rem;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.25;
  color: #e3000f;
}

.jf-biz-url-chip__x {
  position: absolute;
  top: 0.2rem;
  inset-inline-start: 0.2rem;
  width: 1.35rem;
  height: 1.35rem;
  border: 0;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.jf-biz-url-chip__x:hover {
  background: #e3000f;
}

@keyframes jf-biz-toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 720px) {
  .jf-biz-submit__bar {
    position: sticky;
    bottom: 0;
    margin-top: 1rem;
    border-radius: 12px;
    border: 1px solid var(--jf-biz-line);
    box-shadow: none;
  }

  .has-jf-dock .jf-biz-submit__bar {
    bottom: 0;
  }

  .jf-biz-submit {
    padding-bottom: 1.5rem;
  }

  .jf-biz-submit__toast {
    bottom: 1.5rem;
  }

  .has-jf-dock .jf-biz-submit__toast {
    bottom: 1.5rem;
  }
}
