/* =========================================================
   /styles/entries-tabs/entries-advanced-mode.css
   ChoiceSpin — Advanced Entries Mode (simple / compact style)
   - keeps the same logic
   - keeps the same height behavior
   - slightly bigger UI
   - NO borders
   - NO background color on each entry row
   ========================================================= */

.sc-adv-mode[hidden]{
  display: none !important;
}
:root{
  --sc-adv-field-height: 42px;
  --sc-adv-icon-filter-dark: brightness(0) invert(1) drop-shadow(0 0 0.35px rgba(255,255,255,0.72));
  --sc-adv-icon-filter-light: drop-shadow(0 0 0.35px rgba(15,23,42,0.38));
}
#panel-entries.is-advanced #optionsInput{
  display: none !important;
}

#panel-entries.is-advanced .sc-adv-mode{
  display: flex !important;
}

#panel-entries.is-advanced{
  overflow: hidden;
}

.sc-adv-mode{
  flex: 1 1 auto;
  min-height: 0;
  height: 0;
  display: none;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.sc-adv-mode__list{
  flex: 1 1 auto;
  min-height: 0;
  height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-right: 6px;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sc-adv-mode__list::-webkit-scrollbar{
  width: 10px;
}
.sc-adv-mode__list::-webkit-scrollbar-thumb{
  background: rgba(148,163,184,.35);
  border-radius: 999px;
}

/* =========================================================
   Row card — simple / flat / compact
   ========================================================= */

.sc-adv-item{
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 0 0 7px;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  position: relative;
  isolation: isolate;
  overflow: visible;

  --sc-move-row-start: rgba(34,197,94,0.20);
  --sc-move-row-mid: rgba(34,197,94,0.11);
  --sc-move-row-soft: rgba(34,197,94,0.05);

  --sc-move-field-fill: rgba(34,197,94,0.11);
  --sc-move-field-ring: rgba(74,222,128,0.34);
  --sc-move-field-shadow: rgba(34,197,94,0.22);

  --sc-move-chip-ring: rgba(74,222,128,0.36);
  --sc-move-chip-shadow: rgba(34,197,94,0.22);

  display: grid;
  grid-template-columns: 24px auto 58px minmax(0, 1fr) 68px 38px;
  grid-template-areas:
    "reorder name name name name remove"
    "reorder color image weight weight enabled";
  column-gap: 8px;
  row-gap: 6px;
  align-items: center;
}
.sc-adv-item.is-moved-up{
  --sc-move-row-start: rgba(34,197,94,0.20);
  --sc-move-row-mid: rgba(34,197,94,0.11);
  --sc-move-row-soft: rgba(34,197,94,0.05);

  --sc-move-field-fill: rgba(34,197,94,0.11);
  --sc-move-field-ring: rgba(74,222,128,0.34);
  --sc-move-field-shadow: rgba(34,197,94,0.22);

  --sc-move-chip-ring: rgba(74,222,128,0.36);
  --sc-move-chip-shadow: rgba(34,197,94,0.22);
}

.sc-adv-item.is-moved-down{
  --sc-move-row-start: rgba(239,68,68,0.20);
  --sc-move-row-mid: rgba(239,68,68,0.11);
  --sc-move-row-soft: rgba(239,68,68,0.05);

  --sc-move-field-fill: rgba(239,68,68,0.11);
  --sc-move-field-ring: rgba(248,113,113,0.34);
  --sc-move-field-shadow: rgba(239,68,68,0.22);

  --sc-move-chip-ring: rgba(248,113,113,0.36);
  --sc-move-chip-shadow: rgba(239,68,68,0.22);
}
.sc-adv-item:not(:last-child){
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sc-adv-item.is-disabled{
  opacity: 0.58;
}





.sc-adv-item.is-moved::before{
  content: "";
  position: absolute;
  left: -8px;
  right: -6px;
  top: -5px;
  bottom: 1px;
  border-radius: 12px;
  pointer-events: none;
  z-index: -1;

  background:
    linear-gradient(
      90deg,
      var(--sc-move-row-start) 0%,
      var(--sc-move-row-mid) 24%,
      var(--sc-move-row-soft) 48%,
      rgba(37,99,235,0.00) 74%
    );
  opacity: 0;
  transform: translateX(-12px) scaleX(0.985);

  animation: sc-adv-item-moved-sweep 1.45s cubic-bezier(.22,.82,.2,1);
}

.sc-adv-item.is-moved .sc-adv-item__name,
.sc-adv-item.is-moved .sc-adv-chip--weight,
.sc-adv-item.is-moved .sc-adv-item__image-btn{
  animation: sc-adv-item-moved-field 1.28s cubic-bezier(.22,.82,.2,1);
  will-change: box-shadow;
}

.sc-adv-item.is-moved .sc-adv-chip--color,
.sc-adv-item.is-moved .sc-adv-item__image-preview{
  animation: sc-adv-item-moved-chip 1.18s cubic-bezier(.22,.82,.2,1);
  will-change: box-shadow;
}

@keyframes sc-adv-item-moved-sweep{
  0%{
    opacity: 0;
    transform: translateX(-12px) scaleX(0.985);
  }
  14%{
    opacity: 1;
    transform: translateX(0) scaleX(1);
  }
  48%{
    opacity: 0.92;
    transform: translateX(2px) scaleX(1);
  }
  100%{
    opacity: 0;
    transform: translateX(10px) scaleX(1.005);
  }
}

@keyframes sc-adv-item-moved-field{
  0%{
    box-shadow: none;
  }
  16%{
    box-shadow:
      inset 0 0 0 999px var(--sc-move-field-fill),
      0 0 0 1px var(--sc-move-field-ring),
      0 10px 22px -14px var(--sc-move-field-shadow);
  }
  48%{
    box-shadow:
      inset 0 0 0 999px var(--sc-move-field-fill),
      0 0 0 1px var(--sc-move-field-ring),
      0 6px 16px -12px var(--sc-move-field-shadow);
  }
  100%{
    box-shadow: none;
  }
}

@keyframes sc-adv-item-moved-chip{
  0%{
    box-shadow: none;
  }
  18%{
    box-shadow:
      0 0 0 1px var(--sc-move-chip-ring),
      0 8px 18px -14px var(--sc-move-chip-shadow);
  }
  48%{
    box-shadow:
      0 0 0 1px var(--sc-move-chip-ring),
      0 6px 14px -12px var(--sc-move-chip-shadow);
  }
  100%{
    box-shadow: none;
  }
}
.sc-adv-item__top{
  display: contents;
}

.sc-adv-item__reorder{
  grid-area: reorder;
  width: 24px;
  min-width: 24px;
  align-self: stretch;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap:26px;
}

.sc-adv-item__move{
  width: 24px;
  height: 22px;
  padding: 0;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 7px;
  background: transparent;
 color: rgba(248,250,252,0.76);

  cursor: pointer;
  outline: none;
  box-shadow: none;
  overflow: hidden;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;

  transition:
    opacity .16s ease,
    transform .16s ease;
}

.sc-adv-item__move::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255,255,255,0.10);
  opacity: 0;
  transform: scale(0.78);
  transition:
    opacity .18s ease,
    transform .18s ease,
    background-color .18s ease;
  z-index: 0;
}

.sc-adv-item__move::before{
  content: "";
  width: 18px;
  height: 18px;
  display: block;
  position: relative;
  z-index: 1;
  opacity: 0.72;

  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  filter: var(--sc-adv-icon-filter-dark);

  transition:
    transform .18s ease,
    opacity .18s ease;
}

.sc-adv-item__move--up::before{
  background-image: url("/svgs/up.svg");
}

.sc-adv-item__move--down::before{
  background-image: url("/svgs/down.svg");
}

.sc-adv-item__move:hover::after,
.sc-adv-item__move:focus-visible::after{
  opacity: 1;
  transform: scale(1);
}

.sc-adv-item__move:hover::before,
.sc-adv-item__move:focus-visible::before{
  transform: scale(1.06);
  opacity: 0.82;
}

.sc-adv-item__move:active{
  transform: translateY(1px);
}

.sc-adv-item__move:active::after{
  background: rgba(255,255,255,0.14);
}

.sc-adv-item__move:active::before{
  transform: scale(0.98);
  opacity: 0.92;
}

.sc-adv-item__move:hover{
  opacity: 1;
}

.sc-adv-item__move[hidden]{
  display: none !important;
}

.sc-adv-item__enabled{
  position: absolute;
  right: 10px;
  bottom: 18px;
  width: 17px;
  height: 17px;
  margin: 0;
  padding: 0;
  accent-color: #2563eb;
  cursor: pointer;
  z-index: 2;
}

/* Name input */
.sc-adv-item__name-wrap{
  grid-area: name;
  position: relative;
  width: 100%;
  min-width: 0;
}

.sc-adv-item__name{
  width: 100%;
  min-width: 0;
  height: var(--sc-adv-field-height);
  padding: 0 40px 0 14px;
  box-sizing: border-box;

  border-radius: 8px 8px 0 0;
  border: 0;
  background-color: var(--sc-theme-surface, #151517);
  background-image: linear-gradient(#2563eb, #2563eb);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0 2px;
  color: #ffffff;

  font: inherit;
  font-size: 1.03rem;
  font-weight: 600;
  line-height: 1;

  outline: none;
  box-shadow: none;

  transition:
    background-color .16s ease,
    background-size .22s ease,
    box-shadow .16s ease;
}

.sc-adv-item__name-edit{
  position: absolute;
  right: 12px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%) scale(0.92);
  transform-origin: center;
  pointer-events: none;
  opacity: 0;
  color: rgba(255,255,255,0.62);

  -webkit-mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.121 2.121 0 1 1 3 3L7 19l-4 1 1-4 12.5-12.5z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.121 2.121 0 1 1 3 3L7 19l-4 1 1-4 12.5-12.5z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  background-color: currentColor;

  transition:
    opacity .16s ease,
    transform .16s ease,
    color .16s ease;
}

.sc-adv-item:hover .sc-adv-item__name-edit,
.sc-adv-item__name-wrap:hover .sc-adv-item__name-edit,
.sc-adv-item__name-wrap:focus-within .sc-adv-item__name-edit{
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.sc-adv-item__name-wrap:focus-within .sc-adv-item__name-edit{
  color: rgba(255,255,255,0.82);
}
.sc-adv-item__name::placeholder{
  color: rgba(148,163,184,0.72);
}

.sc-adv-item__name:hover{
  background-color: var(--sc-theme-surface-2, #111113);
  box-shadow: inset 0 -2px 0 #ffffff;
}
.sc-adv-item__name:focus,
.sc-adv-item__name:focus-visible{
  background-color: var(--sc-theme-contrast-surface, #141416);
  background-size: 100% 2px;
  box-shadow: none;
}

/* Remove button — simple small square */
.sc-adv-item__remove{
  grid-area: remove;
  justify-self: end;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(248,250,252,0.90);

  font: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1;

  cursor: pointer;
  box-shadow: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;

  transition:
    background-color .16s ease,
    opacity .12s ease;
}

.sc-adv-item__remove:hover{
  background: transparent;
}

.sc-adv-item__remove:active{
  opacity: 0.88;
}

/* =========================================================
   Controls row — simple inline tools like the screenshot
   ========================================================= */

.sc-adv-item__controls{
  display: contents;
}
/* Flat mini controls */
.sc-adv-chip{
  height: 32px;
  padding: 0 10px;

  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;

  border-radius: 8px;
  border: 0;
  background: var(--sc-theme-surface, #151517);
  color: rgba(248,250,252,0.92);

  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1;

  box-shadow: none;
  outline: none;
  white-space: nowrap;
}








.sc-adv-chip--color{
  grid-area: color;
  justify-self: start;

width: 45px;
height: 39px;
  padding: 0;

  display: inline-flex;
  align-items: stretch;
  justify-content: stretch;

  border-radius: 4px;
  background: transparent;
  position: relative;
  overflow: hidden;
  isolation: isolate;

  --sc-adv-color-icon-filter: brightness(0) invert(1) drop-shadow(0 1px 1px rgba(0,0,0,0.28));
  --sc-adv-burst-rgb: 96, 165, 250;
}

.sc-adv-chip--color::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transform: scale(0.12);
  transform-origin: center center;

  background: radial-gradient(
    circle at center,
    rgba(var(--sc-adv-burst-rgb), 0.34) 0%,
    rgba(var(--sc-adv-burst-rgb), 0.18) 34%,
    rgba(var(--sc-adv-burst-rgb), 0.08) 54%,
    rgba(var(--sc-adv-burst-rgb), 0.00) 72%
  );
}

.sc-adv-chip--color::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 21px;
  height: 21px;
  transform: translate(-50%, -50%) rotate(0deg);
  pointer-events: none;
  z-index: 2;
  opacity: 0.98;

  background-repeat: no-repeat;
  background-position: center;
  background-size: 21px 21px;
  background-image: url("/svgs/pallete-black.svg");
  filter: var(--sc-adv-color-icon-filter);

  transition:
    transform .26s cubic-bezier(.22,.78,.18,1),
    filter .16s ease,
    opacity .16s ease;
}

.sc-adv-chip--color.is-picker-open::before{
  animation: sc-adv-color-bang .38s cubic-bezier(.18,.82,.18,1) 1;
}

.sc-adv-chip--color.is-picker-open::after{
  transform: translate(-50%, -50%) rotate(180deg);
}

@keyframes sc-adv-color-bang{
  0%{
    opacity: 0;
    transform: scale(0.12);
  }
  18%{
    opacity: 0.52;
  }
  100%{
    opacity: 0;
    transform: scale(1);
  }
}












/* hide the word "Color" */
.sc-adv-chip--color .sc-adv-chip__label{
  display: none;
}
.sc-adv-chip__label{
  white-space: nowrap;
  opacity: 0.92;
}
.sc-adv-chip--weight{
  grid-area: weight;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  max-width: 100%;
 height: var(--sc-adv-field-height);
  padding: 0 10px 0 36px;

  position: relative;
  display: grid;
  grid-template-columns: minmax(20px, auto) minmax(0, 1fr) 30px 30px auto;
  align-items: center;
  justify-items: center;
  gap: 2px;

  border-radius: 8px 8px 0 0;
  border: 0;
  background: var(--sc-theme-surface, #151517);
  background-image: linear-gradient(#2563eb, #2563eb);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0 2px;
  color: #ffffff;

  transition:
    background-color .16s ease,
    background-size .22s ease,
    box-shadow .16s ease;
}

.sc-adv-chip--weight .sc-adv-chip__label{
  display: none;
}

.sc-adv-chip--weight::before{
  content: "";
  position: absolute;
  left: 9px;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 2;
  opacity: 0.76;

  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
  background-image: url("/svgs/scale-black.svg");
  filter: var(--sc-adv-icon-filter-dark);
}

.sc-adv-chip--weight:hover{
  background-color: var(--sc-theme-surface-2, #111113);
  box-shadow: inset 0 -2px 0 #ffffff;
}

.sc-adv-chip--weight:focus-within{
  background-color: var(--sc-theme-contrast-surface, #141416);
  background-size: 100% 2px;
  box-shadow: none;
}
/* Color input */
.sc-adv-item__color{
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
  display: block;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  box-shadow: none;
  overflow: hidden;
  position: relative;
  z-index: 0;
  transition: filter .16s ease, opacity .16s ease;
}
.sc-adv-chip--color:hover .sc-adv-item__color{
  filter: brightness(0.72);
}
.sc-adv-item__color:focus,
.sc-adv-item__color:focus-visible{
  outline: none;
  box-shadow: none;
}

.sc-adv-item__color::-webkit-color-swatch-wrapper{
  padding: 0;
  border: 0;
  border-radius: inherit;
}

.sc-adv-item__color::-webkit-color-swatch{
  border: 0;
  border-radius: inherit;
  box-shadow: none;
}

.sc-adv-item__color::-moz-color-swatch{
  border: 0;
  border-radius: inherit;
  box-shadow: none;
}

/* Image button */

.sc-adv-item__image-btn{
  grid-area: image;
  width: 40px;
  height: 37px;
  padding: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;

  border-radius: 7px;
  border: 0;
  background-color: transparent;
  background-image: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: rgba(248,250,252,0.92);

  font-size: 0;
  line-height: 0;

  cursor: pointer;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  position: relative;
  overflow: hidden;

  transition:
    background-color .16s ease,
    opacity .12s ease,
    transform .12s ease;
}

.sc-adv-item__image-btn::before{
  content: "";
  width: 24px;
  height: 24px;
  display: block;
  opacity: 0.76;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
  background-image: url("/svgs/image-black.svg");
  filter: var(--sc-adv-icon-filter-dark);
  transition: opacity .14s ease, transform .14s ease;
}

.sc-adv-item__image-btn:hover{
  background-color: transparent;
}

.sc-adv-item__image-btn--has-image::before{
  opacity: 0;
  transform: scale(0.84);
}

.sc-adv-item__image-btn--has-image,
.sc-adv-item__image-btn--has-image:hover,
.sc-adv-item__image-btn--has-image:focus-visible,
.sc-adv-item__image-btn--has-image:active{
  background-color: transparent;
  opacity: 1;
  transform: none;
  cursor: default;
}
.sc-adv-item__image-remove{
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;

  display: none;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  background: transparent;
  color: rgba(248,250,252,0.94);

  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;

  box-shadow: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.82);
  z-index: 3;

  transition:
    background-color .14s ease,
    transform .14s ease,
    opacity .14s ease;
}
.sc-adv-item__image-btn--has-image .sc-adv-item__image-remove{
  display: inline-flex;
}

.sc-adv-item__image-remove:hover{
  background: transparent;
  transform: scale(1.08);
}



/* Weight */
.sc-adv-item__weight-input{
  grid-column: 1;
  justify-self: start;
  width: 34px;
  min-width: 34px;
  padding: 0;
  margin: 0 0 0 5px;

  border: 0;
  outline: none;
  background: transparent;
  color: inherit;

  font: inherit;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1;
  text-align: left;
  font-variant-numeric: tabular-nums;
  caret-color: #ffffff;

  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
}
.sc-adv-item__weight-input{
  caret-color: #ffffff;
}
html[data-theme="light"] .sc-adv-item__weight-input,
html[data-bw-theme="light"] .sc-adv-item__weight-input,
body[data-theme="light"] .sc-adv-item__weight-input{
  caret-color: #000000;
}
.sc-adv-item__weight-input::selection{
  background: rgba(37,99,235,0.28);
  color: inherit;
}

.sc-adv-item__weight-step{
  width: 30px;
  height: 30px;
  padding: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(248,250,252,0.94);

  font: inherit;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1;
transform: translateY(-1px);
  cursor: pointer;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;

  transition:
    opacity .12s ease,
    transform .12s ease;
}
.sc-adv-item__weight-step[data-role="weight-decrease"]{
  grid-column: 3;
}

.sc-adv-item__weight-step[data-role="weight-increase"]{
  grid-column: 4;
}
.sc-adv-item__weight-step:hover{
  background: transparent;
  opacity: 0.78;
}
.sc-adv-item__weight-step:active{
  opacity: 0.88;
  transform: translateY(0);
}

.sc-adv-item__weight-percent{
  grid-column: 5;
  justify-self: end;
  min-width: 36px;
  color: inherit;
  opacity: 0.76;

  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
/* Add button */
.sc-adv-mode__add{
  flex: 0 0 auto;
  height: 38px;
  width: 100%;
  padding: 0 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;

  font: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1;

  cursor: pointer;
  box-shadow: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;

  transition: background-color .16s ease, filter .16s ease;
}

.sc-adv-mode__add:hover{
  background: #1d4ed8;
}

.sc-adv-mode__add:active{
  filter: brightness(1.04);
}

.sc-adv-mode__add-ico{
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  display: block;
}

/* =========================================================
   Mobile fallback
   ========================================================= */

@media (max-width: 560px){
  .sc-adv-item{
    grid-template-columns: 24px auto 36px minmax(0, 1fr) 38px;
    grid-template-areas:
      "reorder name name name remove"
      "reorder color image . enabled"
      "reorder weight weight weight .";
  }
}

/* =========================================================
   Light theme
   ========================================================= */

html[data-theme="light"] .sc-adv-item,
html[data-bw-theme="light"] .sc-adv-item,
body[data-theme="light"] .sc-adv-item{
  background: transparent;
}
html[data-theme="light"] .sc-adv-item,
html[data-bw-theme="light"] .sc-adv-item,
body[data-theme="light"] .sc-adv-item{
  --sc-move-row-start: rgba(34,197,94,0.13);
  --sc-move-row-mid: rgba(34,197,94,0.07);
  --sc-move-row-soft: rgba(34,197,94,0.03);

  --sc-move-field-fill: rgba(34,197,94,0.06);
  --sc-move-field-ring: rgba(34,197,94,0.22);
  --sc-move-field-shadow: rgba(34,197,94,0.10);

  --sc-move-chip-ring: rgba(34,197,94,0.24);
  --sc-move-chip-shadow: rgba(34,197,94,0.12);
}

html[data-theme="light"] .sc-adv-item.is-moved-up,
html[data-bw-theme="light"] .sc-adv-item.is-moved-up,
body[data-theme="light"] .sc-adv-item.is-moved-up{
  --sc-move-row-start: rgba(34,197,94,0.13);
  --sc-move-row-mid: rgba(34,197,94,0.07);
  --sc-move-row-soft: rgba(34,197,94,0.03);

  --sc-move-field-fill: rgba(34,197,94,0.06);
  --sc-move-field-ring: rgba(34,197,94,0.22);
  --sc-move-field-shadow: rgba(34,197,94,0.10);

  --sc-move-chip-ring: rgba(34,197,94,0.24);
  --sc-move-chip-shadow: rgba(34,197,94,0.12);
}

html[data-theme="light"] .sc-adv-item.is-moved-down,
html[data-bw-theme="light"] .sc-adv-item.is-moved-down,
body[data-theme="light"] .sc-adv-item.is-moved-down{
  --sc-move-row-start: rgba(239,68,68,0.12);
  --sc-move-row-mid: rgba(239,68,68,0.07);
  --sc-move-row-soft: rgba(239,68,68,0.03);

  --sc-move-field-fill: rgba(239,68,68,0.06);
  --sc-move-field-ring: rgba(239,68,68,0.20);
  --sc-move-field-shadow: rgba(239,68,68,0.10);

  --sc-move-chip-ring: rgba(239,68,68,0.22);
  --sc-move-chip-shadow: rgba(239,68,68,0.12);
}
html[data-theme="light"] .sc-adv-item:not(:last-child),
html[data-bw-theme="light"] .sc-adv-item:not(:last-child),
body[data-theme="light"] .sc-adv-item:not(:last-child){
  border-bottom-color: rgba(15,23,42,0.10);
}

html[data-theme="light"] .sc-adv-item__name,
html[data-bw-theme="light"] .sc-adv-item__name,
body[data-theme="light"] .sc-adv-item__name,
html[data-theme="light"] .sc-adv-item__weight,
html[data-bw-theme="light"] .sc-adv-item__weight,
body[data-theme="light"] .sc-adv-item__weight,
html[data-theme="light"] .sc-adv-chip,
html[data-bw-theme="light"] .sc-adv-chip,
body[data-theme="light"] .sc-adv-chip,
html[data-theme="light"] .sc-adv-item__image-preview,
html[data-bw-theme="light"] .sc-adv-item__image-preview,
body[data-theme="light"] .sc-adv-item__image-preview{
  background-color: var(--sc-theme-surface, #F2F2EF);
  color: #0f172a;
}
html[data-theme="light"] .sc-adv-chip--color,
html[data-bw-theme="light"] .sc-adv-chip--color,
body[data-theme="light"] .sc-adv-chip--color{
  background: transparent;
}

html[data-theme="light"] .sc-adv-chip--color:hover .sc-adv-item__color,
html[data-bw-theme="light"] .sc-adv-chip--color:hover .sc-adv-item__color,
body[data-theme="light"] .sc-adv-chip--color:hover .sc-adv-item__color{
  filter: brightness(0.72);
}
html[data-theme="light"] .sc-adv-item__name,
html[data-bw-theme="light"] .sc-adv-item__name,
body[data-theme="light"] .sc-adv-item__name,
html[data-theme="light"] .sc-adv-chip--weight,
html[data-bw-theme="light"] .sc-adv-chip--weight,
body[data-theme="light"] .sc-adv-chip--weight{
  background-color: var(--sc-theme-surface, #F2F2EF);
}
html[data-theme="light"] .sc-adv-item__weight-step,
html[data-bw-theme="light"] .sc-adv-item__weight-step,
body[data-theme="light"] .sc-adv-item__weight-step{
  background: transparent;
  color: #0f172a;
}

html[data-theme="light"] .sc-adv-item__weight-step:hover,
html[data-bw-theme="light"] .sc-adv-item__weight-step:hover,
body[data-theme="light"] .sc-adv-item__weight-step:hover{
  background: transparent;
  opacity: 0.7;
}
html[data-theme="light"] .sc-adv-item__name:hover,
html[data-bw-theme="light"] .sc-adv-item__name:hover,
body[data-theme="light"] .sc-adv-item__name:hover{
  background-color: var(--sc-theme-surface-2, #F6F6F2);
  box-shadow: inset 0 -2px 0 #000000;
}
html[data-theme="light"] .sc-adv-item__remove,
html[data-bw-theme="light"] .sc-adv-item__remove,
body[data-theme="light"] .sc-adv-item__remove{
  background-color: transparent;
  color: #0f172a;
}
html[data-theme="light"] .sc-adv-item__image-btn,
html[data-bw-theme="light"] .sc-adv-item__image-btn,
body[data-theme="light"] .sc-adv-item__image-btn{
  background-color: transparent;
  color: #0f172a;
}
html[data-theme="light"] .sc-adv-item__remove:hover,
html[data-bw-theme="light"] .sc-adv-item__remove:hover,
body[data-theme="light"] .sc-adv-item__remove:hover,
html[data-theme="light"] .sc-adv-item__image-btn:hover,
html[data-bw-theme="light"] .sc-adv-item__image-btn:hover,
body[data-theme="light"] .sc-adv-item__image-btn:hover{
  background-color: transparent;
}
html[data-theme="light"] .sc-adv-item__image-btn--has-image,
html[data-theme="light"] .sc-adv-item__image-btn--has-image:hover,
html[data-theme="light"] .sc-adv-item__image-btn--has-image:focus-visible,
html[data-theme="light"] .sc-adv-item__image-btn--has-image:active,
html[data-bw-theme="light"] .sc-adv-item__image-btn--has-image,
html[data-bw-theme="light"] .sc-adv-item__image-btn--has-image:hover,
html[data-bw-theme="light"] .sc-adv-item__image-btn--has-image:focus-visible,
html[data-bw-theme="light"] .sc-adv-item__image-btn--has-image:active,
body[data-theme="light"] .sc-adv-item__image-btn--has-image,
body[data-theme="light"] .sc-adv-item__image-btn--has-image:hover,
body[data-theme="light"] .sc-adv-item__image-btn--has-image:focus-visible,
body[data-theme="light"] .sc-adv-item__image-btn--has-image:active{
  background-color: transparent;
  cursor: default;
}
html[data-theme="light"] .sc-adv-item__image-btn--has-image:hover,
html[data-bw-theme="light"] .sc-adv-item__image-btn--has-image:hover,
body[data-theme="light"] .sc-adv-item__image-btn--has-image:hover{
  background-color: transparent;
}

html[data-theme="light"] .sc-adv-item__image-remove,
html[data-bw-theme="light"] .sc-adv-item__image-remove,
body[data-theme="light"] .sc-adv-item__image-remove{
  background: transparent;
  color: rgba(15,23,42,0.78);
  box-shadow: none;
  text-shadow: 0 1px 2px rgba(255,255,255,0.92);
}

html[data-theme="light"] .sc-adv-item__image-remove:hover,
html[data-bw-theme="light"] .sc-adv-item__image-remove:hover,
body[data-theme="light"] .sc-adv-item__image-remove:hover{
  background: transparent;
  color: rgba(15,23,42,0.92);
}

html[data-theme="light"] .sc-adv-item__name:focus,
html[data-bw-theme="light"] .sc-adv-item__name:focus,
body[data-theme="light"] .sc-adv-item__name:focus,
html[data-theme="light"] .sc-adv-item__name:focus-visible,
html[data-bw-theme="light"] .sc-adv-item__name:focus-visible,
body[data-theme="light"] .sc-adv-item__name:focus-visible{
  background-color: var(--sc-theme-contrast-surface, #FDFDFC);
  background-size: 100% 2px;
  box-shadow: none;
}

html[data-theme="light"] .sc-adv-chip--weight:hover,
html[data-bw-theme="light"] .sc-adv-chip--weight:hover,
body[data-theme="light"] .sc-adv-chip--weight:hover{
  background-color: var(--sc-theme-surface-2, #F6F6F2);
  box-shadow: inset 0 -2px 0 #000000;
}

html[data-theme="light"] .sc-adv-chip--weight:focus-within,
html[data-bw-theme="light"] .sc-adv-chip--weight:focus-within,
body[data-theme="light"] .sc-adv-chip--weight:focus-within{
  background-color: var(--sc-theme-contrast-surface, #FDFDFC);
  background-size: 100% 2px;
  box-shadow: none;
}

html[data-theme="light"] .sc-adv-item__name::placeholder,
html[data-bw-theme="light"] .sc-adv-item__name::placeholder,
body[data-theme="light"] .sc-adv-item__name::placeholder{
  color: rgba(15,23,42,0.46);
}
html[data-theme="light"] .sc-adv-item__move,
html[data-bw-theme="light"] .sc-adv-item__move,
body[data-theme="light"] .sc-adv-item__move{
  color: rgba(15,23,42,0.62);
}
html[data-theme="light"] .sc-adv-item__move::before,
html[data-bw-theme="light"] .sc-adv-item__move::before,
body[data-theme="light"] .sc-adv-item__move::before{
  filter: var(--sc-adv-icon-filter-light);
}

html[data-theme="light"] .sc-adv-chip--weight::before,
html[data-bw-theme="light"] .sc-adv-chip--weight::before,
body[data-theme="light"] .sc-adv-chip--weight::before,
html[data-theme="light"] .sc-adv-item__image-btn::before,
html[data-bw-theme="light"] .sc-adv-item__image-btn::before,
body[data-theme="light"] .sc-adv-item__image-btn::before{
  filter: var(--sc-adv-icon-filter-light);
}

html[data-theme="light"] .sc-adv-item__image-btn::before,
html[data-bw-theme="light"] .sc-adv-item__image-btn::before,
body[data-theme="light"] .sc-adv-item__image-btn::before{
  width: 22px;
  height: 22px;
  opacity: 0.76;
  background-image: none;
  background-color: rgb(93, 93, 93);
  -webkit-mask-image: url("/svgs/image-black.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 22px 22px;
  mask-image: url("/svgs/image-black.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 22px 22px;
}

html[data-theme="light"] .sc-adv-item__move::after,
html[data-bw-theme="light"] .sc-adv-item__move::after,
body[data-theme="light"] .sc-adv-item__move::after{
  background: rgba(15,23,42,0.08);
}

html[data-theme="light"] .sc-adv-item__name-edit,
html[data-bw-theme="light"] .sc-adv-item__name-edit,
body[data-theme="light"] .sc-adv-item__name-edit{
  color: rgba(15,23,42,0.46);
}

html[data-theme="light"] .sc-adv-item__name-wrap:focus-within .sc-adv-item__name-edit,
html[data-bw-theme="light"] .sc-adv-item__name-wrap:focus-within .sc-adv-item__name-edit,
body[data-theme="light"] .sc-adv-item__name-wrap:focus-within .sc-adv-item__name-edit{
  color: rgba(15,23,42,0.72);
}
