.clml {
  --clml-ink: #182231;
  --clml-muted: #546174;
  --clml-border: #dfe5ec;
  --clml-orange: #fd5c05;
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 12px;
  color: var(--clml-ink);
  padding-bottom: 72px;
}

.clml-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.clml-header p,
.clml h1,
.clml h2,
.clml-help {
  margin: 0;
}
.clml-header p,
.clml-help {
  color: var(--clml-muted);
  font-size: 13px;
  line-height: 1.4;
}
.clml h1 {
  font-size: 23px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.clml h1:focus { outline: none; }
.clml h2 {
  font-size: 17px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.clml-progress,
.clml progress { width: 100%; }
.clml progress {
  height: 6px;
  accent-color: var(--clml-orange);
}
.clml-stage {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.clml-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--clml-border);
  border-radius: 15px;
  padding: 12px;
}
.clml-grid,
.clml-types {
  display: grid;
  gap: 7px;
}
.clml-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.clml-types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.clml-option,
.clml-primary,
.clml-field > input,
.clml-field > select,
.clml-field > textarea,
.clml-market-sort select {
  box-sizing: border-box;
  min-height: 44px;
  min-width: 0;
  border: 1px solid #dfe5ec;
  border-radius: 11px;
  color: #182231;
  background: #fff;
  font: inherit;
}
.clml-option,
.clml-primary {
  display: inline-flex;
  gap: 5px;
  justify-content: center;
  text-align: center;
  align-items: center;
  cursor: pointer;
  padding-inline: 8px;
  font-size: 13px;
  font-weight: 650;
}
.clml-option[aria-pressed="true"] {
  border-color: var(--clml-orange);
  background: #fff1e8;
  color: #853305;
}
.clml-field {
  display: grid;
  gap: 5px;
  min-width: 0;
  font-size: 13px;
  color: var(--clml-muted);
  font-weight: 600;
}
.clml-field > input,
.clml-field > select,
.clml-field > textarea,
.clml-market-sort select {
  width: 100%;
  font-size: 16px;
  padding: 8px 10px;
  font-weight: 450;
}
.clml :is(input, textarea),
[data-ceplink-mobile-market-search] input,
[data-ceplink-mobile-market-own-toolbar] input,
[data-ceplink-mobile-market-buy-toolbar] input,
[data-ceplink-mobile-market-buy-form] input,
[data-ceplink-mobile-market-buy-form] textarea {
  min-width: 0;
  font-size: 16px;
}
.clml-picker,
.clml-picker > * {
  min-width: 0;
  max-width: 100%;
}
.clml-selected,
.clml-check {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--clml-border);
  border-radius: 11px;
  font-size: 14px;
}
.clml-link {
  appearance: none;
  cursor: pointer;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #873c11;
  font: inherit;
  margin-inline-start: auto;
}
.clml-check { min-height: 46px; }
.clml-check input {
  margin: 0;
  accent-color: var(--clml-orange);
  width: 18px;
  height: 18px;
}
.clml-preview-image {
  width: min(100%, 124px);
  height: 124px;
  object-fit: contain;
  border-radius: 12px;
  background: #f7f8fa;
}
.clml-summary { margin: 0; }
.clml-summary > div {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 10px;
}
.clml-summary > div + div { border-top: 1px solid var(--clml-border); }
.clml-summary dt { color: var(--clml-muted); font-size: 13px; }
.clml-summary dd {
  min-width: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  text-align: right;
  overflow-wrap: anywhere;
}
.clml-issue {
  background: #fff4ee;
  border: 1px solid #ffd7c5;
  border-radius: 11px;
  color: #8b3721;
  font-size: 14px;
  padding: 10px 12px;
}
.clml-footer {
  display: flex;
  gap: 8px;
  position: fixed;
  z-index: 7000;
  inset-inline: 14px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  padding: 8px;
  background: #fff;
  border: 1px solid var(--clml-border);
  border-radius: 16px;
  box-shadow: 0 7px 24px #202d3a25;
}
.clml .clml-primary {
  flex: 1;
  background: var(--clml-orange);
  border-color: var(--clml-orange);
}
.clml button:disabled { opacity: .6; cursor: default; }

/* RN Web scroll containers use a transform, which otherwise captures fixed actions. */
[data-ceplink-mobile-phone-shell][data-ceplink-mobile-screen="createListing"] [data-ceplink-mobile-home-scroll],
[data-ceplink-mobile-phone-shell][data-ceplink-mobile-screen="stockListing"] [data-ceplink-mobile-home-scroll] {
  transform: none;
}

.clml-market-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  min-width: 0;
}
.clml-market-sort {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #526073;
  font-size: 12px;
  font-weight: 650;
}
.clml-market-tools .clml-market-reset {
  grid-column: 1 / -1;
  justify-self: end;
  appearance: none;
  border: 0;
  background: transparent;
  min-height: 44px;
  color: #873c11;
  font: inherit;
  cursor: pointer;
}
[data-ceplink-mobile-market-filter] {
  max-width: min(100%, 480px);
  min-width: 0;
}

[data-ceplink-mobile-market-own-toolbar] > :first-child,
[data-ceplink-mobile-market-buy-toolbar] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  min-width: 0;
}
[data-ceplink-mobile-market-own-toolbar] > :first-child > :first-child,
[data-ceplink-mobile-market-buy-toolbar] > :first-child {
  grid-column: 1 / -1;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
[data-ceplink-mobile-market-own-toolbar] > :first-child > :last-child,
[data-ceplink-mobile-market-buy-toolbar] > :last-child {
  grid-column: 1 / -1;
  justify-self: start;
}
[data-ceplink-mobile-market-buy-toolbar] > * {
  min-width: 0;
  max-width: 100%;
}

[data-ceplink-mobile-market-buy-form],
[data-ceplink-mobile-market-buy-form] > * {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

[data-ceplink-mobile-market-favorites] {
  background: #fff;
}
[data-ceplink-mobile-market-favorites] > :first-child {
  padding: 10px 14px;
}
[data-ceplink-mobile-market-favorites] > :first-child button {
  width: 44px;
  height: 44px;
}
[data-ceplink-mobile-market-favorites-body] > :first-child {
  padding: 12px 14px calc(16px + env(safe-area-inset-bottom, 0px));
}
