/* Dedicated regular Flash page. Geometry follows the public form reference;
   mobile layout and limit popovers are local adaptations. */
.main.flash-promotion-wide {
  margin-left: 0;
  padding: 0 24px 32px;
}
.fp-page,
.fs-overlay {
  color: rgba(0, 0, 0, 0.92);
  font:
    14px/20px TikTokFont,
    Arial,
    sans-serif;
}
.fp-page {
  max-width: 1248px;
  margin: 0 auto;
  min-width: 0;
}
.fp-page *,
.fs-overlay * {
  box-sizing: border-box;
}
.fp-page [hidden],
.fs-overlay [hidden] {
  display: none !important;
}
.fp-page button,
.fp-page input,
.fp-page select,
.fs-overlay button,
.fs-overlay input,
.fs-overlay select {
  font: inherit;
}
.fp-page button,
.fs-overlay button {
  cursor: pointer;
}
.fp-page button:disabled,
.fs-overlay button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.fp-page :is(input, select, button):focus-visible,
.fs-overlay :is(input, select, button):focus-visible {
  outline: 2px solid #009995;
  outline-offset: 2px;
}
.fp-page input[type="checkbox"],
.fp-page input[type="radio"],
.fs-overlay input[type="checkbox"] {
  accent-color: #009995;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 0;
}
.fp-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 18px 0;
}
.fp-toolbar h1 {
  font-size: 28px;
  line-height: 36px;
  margin: 0;
  font-weight: 700;
}
.fp-toolbar-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.fp-back {
  border: 0;
  background: transparent;
  width: 32px;
  height: 32px;
  padding: 6px;
  flex: 0 0 32px;
}
.fp-back svg {
  transform: rotate(180deg);
}
.fp-button,
.fs-dialog button,
.fp-row-limit button,
.fp-pagination button {
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 4px;
  background: #fff;
  min-height: 36px;
  padding: 7px 16px;
  line-height: 20px;
  font-weight: 500;
  color: inherit;
}
.fp-button.fp-primary,
.fs-dialog .fs-primary {
  background: #009995;
  border-color: #009995;
  color: #fff;
}
.fp-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: #008582;
  white-space: nowrap;
}
.fp-page form {
  margin: 0;
}
.fp-card {
  border-radius: 4px;
  background: #fff;
  padding: 24px;
  margin-bottom: 16px;
  min-width: 0;
}
.fp-card h2 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  margin: 0 0 24px;
}
.fp-basic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 32px;
  align-items: center;
}
.fp-basic-fields {
  min-width: 0;
  max-width: 720px;
}
.fp-field {
  margin-bottom: 24px;
}
.fp-field > label,
.fp-date-row > label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
}
.fp-input-wrap {
  position: relative;
}
.fp-input-wrap input {
  width: 100%;
  padding-right: 66px;
}
.fp-name-count {
  position: absolute;
  right: 12px;
  top: 9px;
  color: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.fp-page input:not([type="radio"], [type="checkbox"]),
.fp-page select,
.fs-overlay input:not([type="checkbox"]),
.fs-overlay select {
  min-width: 0;
  max-width: 100%;
  height: 38px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 4px;
  color: inherit;
}
.fp-date-row {
  margin: 0 0 24px;
}
.fp-date-row:last-child {
  margin-bottom: 0;
}
.fp-date-row small {
  font: inherit;
}
.fp-date-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}
.fp-date-pair input,
.fp-time-wrap {
  width: 100%;
}
.fp-preview {
  margin: 0;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  color: rgba(0, 0, 0, 0.55);
}
.fp-guide-visual {
  width: 132px;
  height: 228px;
  background-image: url("/assets/flash-guide-official-form.png");
  background-repeat: no-repeat;
  background-size: 1265px 457px;
  background-position: -817px -124px;
}
.fp-levels {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.fp-levels label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fp-notice {
  background: #eff7ff;
  color: #164579;
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 24px;
  border-radius: 4px;
}
.fp-notice > span:first-child {
  display: flex;
  flex-shrink: 0;
  padding-top: 2px;
  color: #1677ff;
}
.fp-products-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  min-width: 0;
}
.fp-product-count {
  font-weight: 600;
  flex-shrink: 0;
}
.fp-product-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.fp-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 4px;
  padding: 0 10px;
  min-width: 0;
}
.fp-page .fp-search input {
  border: 0;
  background: transparent;
  width: 180px;
  height: 36px;
  padding: 6px 0;
}
.fp-search svg {
  color: rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
}
.fp-batch {
  background: #f7f8fa;
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 20px;
}
.fp-batch-heading {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: center;
}
.fp-batch-heading > span {
  color: rgba(0, 0, 0, 0.55);
}
.fp-batch-fields {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.fp-batch-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
  max-width: 100%;
}
.fp-batch-field > span {
  font-weight: 500;
}
.fp-batch-field input {
  width: 180px;
}
.fp-batch-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.fp-table-scroll {
  max-width: 100%;
  overflow: auto;
  overscroll-behavior-x: contain;
  border-top: 1px solid #ececee;
}
.fp-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 1040px;
  table-layout: auto;
  font-size: 14px;
}
.fp-table th {
  background: #f7f8fa;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.55);
  text-align: left;
  padding: 12px;
  white-space: nowrap;
  border-bottom: 1px solid #ececee;
}
.fp-table td {
  padding: 16px 12px;
  border-bottom: 1px solid #ececee;
  vertical-align: top;
  background: #fff;
}
.fp-table :is(th, td):first-child {
  width: 40px;
  padding-left: 12px;
  padding-right: 8px;
}
.fp-table :is(th, td):nth-child(2) {
  min-width: 238px;
  max-width: 360px;
}
.fp-table :is(th, td):nth-child(3) {
  min-width: 94px;
  white-space: nowrap;
}
.fp-table :is(th, td):nth-child(4) {
  min-width: 265px;
}
.fp-table :is(th, td):nth-child(5) {
  min-width: 68px;
}
.fp-table :is(th, td):nth-child(6) {
  min-width: 132px;
}
.fp-table .fp-sticky-action {
  position: sticky;
  right: 0;
  min-width: 72px;
  width: 72px;
  z-index: 1;
  box-shadow: -4px 0 6px -6px #444;
}
.fp-table th.fp-sticky-action {
  z-index: 2;
  background: #f7f8fa;
}
.fp-product-cell {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.fp-product-cell img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  flex: 0 0 48px;
}
.fp-product-cell > div {
  min-width: 0;
}
.fp-product-cell strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 400;
  overflow-wrap: anywhere;
  line-height: 20px;
}
.fp-product-cell small {
  display: block;
  color: rgba(0, 0, 0, 0.55);
  margin-top: 6px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.fp-parent-row td {
  background: #f7f8fa;
}
.fp-parent-row .fp-product-cell {
  align-items: center;
}
.fp-parent-row .fp-link {
  margin-left: auto;
}
.fp-sku-row .fp-product-cell {
  padding-left: 12px;
}
.fp-price-pair {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 245px;
}
.fp-price-pair > label {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 4px;
  min-width: 0;
  height: 36px;
  flex: 1;
  padding: 0 8px;
}
.fp-price-pair > span {
  color: rgba(0, 0, 0, 0.55);
  font-size: 12px;
  flex-shrink: 0;
}
.fp-page .fp-price-pair input {
  border: 0;
  padding: 6px 0;
  width: 100%;
  height: 32px;
}
.fp-price-pair label span {
  color: rgba(0, 0, 0, 0.55);
}
.fp-row-limit > button {
  padding: 6px 10px;
  min-height: 34px;
  max-width: 160px;
  overflow-wrap: anywhere;
}
.fp-customer-limit {
  display: block;
  margin-top: 6px;
  color: rgba(0, 0, 0, 0.55);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.fp-conflict td {
  background: #fafafa;
  color: rgba(0, 0, 0, 0.35);
}
.fp-row-note {
  display: block;
  color: #777;
  font-size: 12px;
  margin-top: 6px;
}
.fp-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.fp-pagination button {
  padding: 5px 10px;
  min-height: 32px;
}
.fp-empty {
  text-align: center;
  padding: 48px 12px;
  color: rgba(0, 0, 0, 0.55);
  border-top: 1px solid #ececee;
}
.fp-error {
  color: #c92031;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.fp-submit-terms {
  color: rgba(0, 0, 0, 0.55);
  font-size: 12px;
  margin: 0 0 20px;
}
.fp-limit-overlay,
.fs-overlay {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.4);
}
.fp-limit-popover {
  background: #fff;
  width: 360px;
  max-width: 100%;
  max-height: calc(100dvh - 48px);
  overflow: auto;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 8px 40px #0003;
}
.fp-limit-popover h3 {
  font-size: 18px;
  line-height: 26px;
  margin: 0 0 20px;
}
.fp-limit-popover > label {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
}
.fp-limit-popover > input {
  width: 100%;
}
.fp-limit-popover > div {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 24px;
}
.fp-visually-hidden {
  position: absolute;
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.fs-dialog {
  display: flex;
  flex-direction: column;
  width: 1080px;
  max-width: 100%;
  max-height: calc(100dvh - 48px);
  min-height: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 40px #0003;
}
.fs-dialog-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  flex-shrink: 0;
}
.fs-dialog-header h2 {
  font-size: 20px;
  line-height: 28px;
  margin: 0;
  font-weight: 700;
}
.fs-dialog .fs-close {
  margin-left: auto;
  border: 0;
  background: transparent;
  min-height: 24px;
  padding: 4px;
}
.fs-dialog-body {
  min-height: 0;
  overflow: auto;
  padding: 0 24px;
}
.fs-picker-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid #e5e6eb;
  margin-bottom: 24px;
}
.fs-dialog .fs-picker-tabs button {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 8px 0 12px;
  color: rgba(0, 0, 0, 0.55);
}
.fs-dialog .fs-picker-tabs button.selected {
  color: #009995;
  border-bottom: 2px solid #009995;
}
.fs-picker-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  min-width: 0;
}
.fs-picker-filters select:first-child {
  min-width: 160px;
  max-width: 240px;
}
.fs-picker-filters input {
  flex: 1;
  min-width: 0;
}
.fs-table-wrap {
  max-width: 100%;
  overflow: auto;
}
.fs-picker-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
.fs-picker-table th {
  background: #f7f8fa;
  color: rgba(0, 0, 0, 0.55);
  font-weight: 500;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}
.fs-picker-table td {
  padding: 16px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}
.fs-picker-table :is(td, th):first-child {
  width: 48px;
}
.fs-picker-table :is(td, th):nth-child(2) {
  min-width: 350px;
  max-width: 600px;
}
.fs-picker-table :is(td, th):nth-child(3) {
  width: 140px;
  white-space: nowrap;
}
.fs-picker-table :is(td, th):last-child {
  width: 110px;
}
.fs-picker-product {
  display: flex;
  gap: 12px;
  min-width: 0;
}
.fs-picker-product img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  flex: 0 0 48px;
}
.fs-picker-product strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-weight: 400;
}
.fs-picker-product small,
.fs-picker-product em {
  display: block;
  color: rgba(0, 0, 0, 0.55);
  font-size: 12px;
  font-style: normal;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.fs-picker-disabled {
  opacity: 0.4;
}
.fs-picker-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 20px 0;
}
.fs-picker-pagination > span:first-child {
  margin-right: auto;
}
.fs-dialog-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px 24px;
  border-top: 1px solid #eee;
}
.fs-dialog-footer > span {
  margin-right: auto;
}
.fs-picker-status {
  color: #c92031;
  min-height: 20px;
  overflow-wrap: anywhere;
  margin: 12px 0;
}
.fs-upload-panel {
  padding-bottom: 24px;
}
.fs-upload-panel h3 {
  font-size: 16px;
  line-height: 24px;
  margin: 24px 0 8px;
}
.fs-upload-panel p {
  color: rgba(0, 0, 0, 0.55);
}
.fs-upload-panel > div {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .fp-basic-layout {
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 24px;
  }
  .fp-batch-actions {
    margin-left: 0;
  }
  .fp-search input {
    max-width: 140px;
  }
}
@media (max-width: 640px) {
  .main.flash-promotion-wide {
    padding: 0 12px 24px;
  }
  .fp-toolbar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0;
  }
  .fp-toolbar h1 {
    font-size: 22px;
    line-height: 30px;
  }
  .fp-toolbar-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .fp-card {
    padding: 20px 16px;
  }
  .fp-card h2 {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 26px;
  }
  .fp-basic-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  .fp-preview {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
  }
  .fp-guide-visual {
    flex-shrink: 0;
  }
  .fp-date-pair {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
  .fp-page .fp-date-pair input {
    padding: 6px;
  }
  .fp-products-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .fp-product-tools {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
    gap: 8px;
  }
  .fp-search {
    flex: 1;
    min-width: 100%;
  }
  .fp-page .fp-search input {
    width: 100%;
    max-width: none;
  }
  .fp-product-tools > .fp-button {
    margin-left: auto;
  }
  .fp-levels {
    gap: 16px;
  }
  .fp-batch {
    padding: 12px;
  }
  .fp-batch-fields {
    gap: 12px;
  }
  .fp-batch-field {
    width: 100%;
    min-width: 0;
  }
  .fp-batch-field > input,
  .fp-batch-field > select {
    width: 100%;
  }
  .fp-batch-actions {
    width: 100%;
    gap: 8px;
    flex-wrap: wrap;
  }
  .fp-batch-actions .fp-button {
    padding: 6px 12px;
  }
  .fp-pagination {
    gap: 8px;
  }
  .fp-limit-overlay,
  .fs-overlay {
    padding: 12px;
  }
  .fp-limit-popover {
    padding: 20px;
    max-height: calc(100dvh - 24px);
  }
  .fs-dialog {
    max-height: calc(100dvh - 24px);
  }
  .fs-dialog-header {
    padding: 20px 16px;
  }
  .fs-dialog-body {
    padding: 0 16px;
  }
  .fs-picker-filters {
    flex-wrap: wrap;
    gap: 8px;
  }
  .fs-picker-filters select:first-child {
    min-width: 0;
    width: 100%;
    max-width: none;
  }
  .fs-picker-filters select:nth-child(2) {
    max-width: 110px;
  }
  .fs-picker-filters input {
    width: 0;
  }
  .fs-dialog-footer {
    padding: 16px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .fs-dialog-footer > span {
    width: 100%;
  }
  .fs-picker-pagination {
    gap: 6px;
    flex-wrap: wrap;
  }
  .fs-picker-pagination button {
    padding: 6px 8px;
  }
  .fs-upload-panel > div {
    flex-direction: column;
  }
}

.fs-picker-product > div {
  min-width: 0;
}
.fs-disabled {
  color: rgba(0, 0, 0, 0.35);
  background: #fafafa;
}
.fs-picker-warning {
  font-size: 12px;
  line-height: 18px;
  margin: 4px 0 0;
  color: rgba(0, 0, 0, 0.55);
}
.fp-definition {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}
.fp-definition > div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 16px;
}
.fp-definition dt {
  color: rgba(0, 0, 0, 0.55);
}
.fp-definition dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.fp-definition + .fp-table-scroll .fp-table {
  min-width: 920px;
}
.fp-definition + .fp-table-scroll .fp-table :is(th, td) {
  min-width: 100px;
  max-width: none;
  width: auto;
}
.fp-definition + .fp-table-scroll .fp-table :is(th, td):first-child {
  width: 280px;
  min-width: 260px;
  padding-left: 12px;
}
.fp-definition + .fp-table-scroll td:first-child small {
  display: block;
  color: rgba(0, 0, 0, 0.55);
  font-size: 12px;
  margin-top: 8px;
}
@media (max-width: 640px) {
  .fp-definition > div {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 8px;
  }
}
