body.lj-commerce-video-setup-open { overflow: hidden; }

.lj-commerce-video-setup-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: #f5f7fb;
  color: #182033;
  overflow: auto;
}

.lj-commerce-video-setup-page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.lj-commerce-video-setup-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(92px, 1fr) auto minmax(92px, 1fr);
  align-items: center;
  min-height: 76px;
  padding: 0 28px;
  border-bottom: 1px solid #e6eaf2;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
}

.lj-commerce-video-back {
  justify-self: start;
  border: 0;
  background: transparent;
  color: #44506a;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 10px;
}

.lj-commerce-video-back:hover { background: #f0f3f8; }
.lj-commerce-video-heading { grid-column: 2; text-align: center; }
.lj-commerce-video-heading small { display: block; color: #7657e8; font-weight: 750; letter-spacing: .04em; }
.lj-commerce-video-heading h1 { margin: 4px 0 0; font-size: 21px; line-height: 1.2; }

.lj-commerce-video-setup-body {
  width: min(100% - 32px, 980px);
  margin: 28px auto 120px;
  display: grid;
  gap: 18px;
}

.lj-commerce-video-setup-intro {
  margin: 0;
  padding: 15px 18px;
  border: 1px solid #dfe6ff;
  border-radius: 14px;
  background: #f7f9ff;
  color: #4b5873;
  line-height: 1.7;
}

.lj-commerce-video-setup-card {
  border: 1px solid #e5e9f1;
  border-radius: 18px;
  background: #fff;
  padding: 22px;
  box-shadow: 0 12px 32px rgba(28, 38, 64, .06);
}

.lj-commerce-video-card-title {
  display: grid;
  grid-template-columns: 30px auto 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.lj-commerce-video-card-title strong { font-size: 17px; }
.lj-commerce-video-card-title small { color: #7a8499; }
.lj-commerce-video-step {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7657e8, #5488f4);
  color: #fff;
  font-weight: 800;
}

.lj-commerce-video-dropzone {
  width: 100%;
  min-height: 142px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1.5px dashed #aeb9d8;
  border-radius: 15px;
  background: #fafbff;
  color: #273149;
  cursor: pointer;
  font: inherit;
  transition: .18s ease;
}

.lj-commerce-video-dropzone:hover,
.lj-commerce-video-dropzone.is-dragging { border-color: #7657e8; background: #f5f2ff; transform: translateY(-1px); }
.lj-commerce-video-dropzone small { color: #7a8499; }
.lj-commerce-video-upload-icon { font-size: 28px; line-height: 1; color: #7657e8; }

.lj-commerce-video-previews {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.lj-commerce-video-preview {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #e1e6ef;
  border-radius: 12px;
  background: #f7f8fb;
}

.lj-commerce-video-preview img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.lj-commerce-video-preview figcaption { display: grid; gap: 2px; padding: 8px; }
.lj-commerce-video-preview figcaption b { font-size: 12px; }
.lj-commerce-video-preview figcaption small { overflow: hidden; color: #7a8499; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.lj-commerce-video-preview > button {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 50%;
  background: rgba(25, 30, 44, .76);
  color: #fff;
  cursor: pointer;
}

.lj-commerce-video-settings-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 14px; }
.lj-commerce-video-field { display: grid; gap: 7px; min-width: 0; }
.lj-commerce-video-field > span { font-weight: 720; }
.lj-commerce-video-field > small { min-height: 18px; color: #7a8499; font-size: 12px; }
.lj-commerce-video-field select {
  width: 100%;
  height: 46px;
  border: 1px solid #d7ddea;
  border-radius: 11px;
  background: #fff;
  color: #20293d;
  padding: 0 12px;
  font: inherit;
}

.lj-commerce-video-field select:focus { outline: 3px solid rgba(118, 87, 232, .16); border-color: #7657e8; }
.lj-commerce-video-default-note { margin: 12px 0 0; color: #657087; font-size: 13px; }
.lj-commerce-video-mode-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lj-commerce-video-mode-options label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 15px;
  border: 1px solid #dfe4ed;
  border-radius: 13px;
  cursor: pointer;
}
.lj-commerce-video-mode-options label:has(input:checked) { border-color: #7657e8; background: #f6f3ff; box-shadow: 0 0 0 2px rgba(118, 87, 232, .08); }
.lj-commerce-video-mode-options input { margin-top: 4px; accent-color: #7657e8; }
.lj-commerce-video-mode-options span { display: grid; gap: 4px; }
.lj-commerce-video-mode-options small { color: #737e94; line-height: 1.5; }
.lj-commerce-video-error { min-height: 20px; margin: 10px 0 0; color: #c8394f; }

.lj-commerce-video-setup-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
  padding: 14px max(24px, calc((100vw - 980px) / 2));
  border-top: 1px solid #e4e8f0;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -12px 36px rgba(28, 38, 64, .08);
  backdrop-filter: blur(16px);
}

.lj-commerce-video-summary { color: #5c687f; line-height: 1.5; }
.lj-commerce-video-continue {
  flex: none;
  min-width: 230px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #7657e8, #4e80ed);
  color: #fff;
  font: inherit;
  font-weight: 780;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(92, 92, 220, .22);
}
.lj-commerce-video-continue:disabled { cursor: not-allowed; opacity: .45; box-shadow: none; }

section[aria-labelledby="commerce-product-video-title"] lanjuan-video-mode { display: none; }

@media (max-width: 760px) {
  .lj-commerce-video-setup-header { grid-template-columns: 74px 1fr 74px; min-height: 66px; padding: 0 10px; }
  .lj-commerce-video-heading h1 { font-size: 17px; }
  .lj-commerce-video-heading small { font-size: 11px; }
  .lj-commerce-video-back { padding: 8px 5px; font-size: 13px; }
  .lj-commerce-video-setup-body { width: min(100% - 20px, 980px); margin-top: 14px; gap: 12px; }
  .lj-commerce-video-setup-card { padding: 16px; border-radius: 15px; }
  .lj-commerce-video-card-title { grid-template-columns: 28px 1fr; gap: 8px; }
  .lj-commerce-video-card-title small { grid-column: 2; }
  .lj-commerce-video-previews { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lj-commerce-video-settings-grid { grid-template-columns: 1fr; }
  .lj-commerce-video-mode-options { grid-template-columns: 1fr; }
  .lj-commerce-video-setup-footer { min-height: 104px; align-items: stretch; flex-direction: column; gap: 8px; padding: 10px; }
  .lj-commerce-video-summary { text-align: center; font-size: 12px; }
  .lj-commerce-video-continue { width: 100%; min-width: 0; }
}
