/* StarBy — card e modal de modalidades de venda. */
.starby-settings-sales-channels .starby-settings-card-icon {
  color: #fff;
  background: linear-gradient(145deg, #9a62ff, #5f24c9);
  box-shadow: 0 12px 26px rgba(100, 43, 202, .23);
}

.starby-sales-channels-modal {
  width: min(720px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(127, 73, 222, .2);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 34px 90px rgba(29, 14, 51, .28);
}

.starby-sales-channels-scroll {
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  padding: 26px;
  background:
    radial-gradient(circle at top left, rgba(145, 91, 255, .13), transparent 28%),
    linear-gradient(180deg, #fff, #fbf9ff);
}

.starby-sales-channels-head {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-right: 42px;
}

.starby-sales-channels-icon {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  place-items: center;
  border-radius: 17px;
  color: #fff;
  font-size: 25px;
  background: linear-gradient(145deg, #9a62ff, #5f24c9);
  box-shadow: 0 14px 26px rgba(100, 43, 202, .22);
}

.starby-sales-channels-head h2 {
  margin: 3px 0 4px;
  color: #28173b;
  font-size: 27px;
  letter-spacing: -.035em;
}

.starby-sales-channels-head .hint {
  margin: 0;
  color: #776d84;
  line-height: 1.5;
}

.starby-sales-channels-list {
  display: grid;
  gap: 11px;
  margin-top: 22px;
}

.starby-sales-channel-row {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 13px;
  min-height: 78px;
  padding: 12px 14px;
  border: 1px solid #e8def3;
  border-radius: 17px;
  background: rgba(255,255,255,.9);
  cursor: pointer;
  transition: .18s ease;
}

.starby-sales-channel-row:hover {
  border-color: #cbb4ed;
  box-shadow: 0 10px 24px rgba(65, 32, 110, .08);
}

.starby-sales-channel-symbol {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: #6f33d3;
  font-size: 20px;
  font-weight: 900;
  background: #f1e8ff;
}

.starby-sales-channel-copy strong,
.starby-sales-channel-copy small {
  display: block;
}

.starby-sales-channel-copy strong {
  color: #2b1c3b;
  font-size: 14px;
}

.starby-sales-channel-copy small {
  margin-top: 4px;
  color: #7d7488;
  font-size: 11px;
  line-height: 1.4;
}

.starby-sales-channel-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.starby-sales-channel-row > i {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #e4dce9;
  transition: .2s ease;
}

.starby-sales-channel-row > i::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(33, 18, 48, .2);
  transition: .2s ease;
}

.starby-sales-channel-row input:checked + i {
  background: linear-gradient(135deg, #8e58ef, #6428ca);
}

.starby-sales-channel-row input:checked + i::after {
  transform: translateX(20px);
}

.starby-sales-channels-rule {
  margin-top: 17px;
  padding: 15px 17px;
  border: 1px solid #e7d9f6;
  border-radius: 16px;
  background: linear-gradient(135deg, #f7f0ff, #fff);
}

.starby-sales-channels-rule strong {
  color: #6c32c9;
}

.starby-sales-channels-rule p {
  margin: 5px 0 0;
  color: #746b80;
  font-size: 12px;
  line-height: 1.55;
}

.starby-sales-channels-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.starby-sales-channels-actions button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #8e58ef, #6428ca);
  box-shadow: 0 10px 20px rgba(100, 40, 202, .2);
}

.starby-sales-channels-actions button.secondary {
  color: #5f536d;
  border: 1px solid #ded4e8;
  background: #fff;
  box-shadow: none;
}

@media (max-width: 620px) {
  .starby-sales-channels-scroll { padding: 20px 15px; }
  .starby-sales-channel-row { grid-template-columns: 40px minmax(0,1fr) 46px; padding-inline: 11px; }
  .starby-sales-channels-actions { flex-direction: column-reverse; }
  .starby-sales-channels-actions button { width: 100%; }
}

/* 2026-08-06 — central de configurações da operação */
.starby-operation-settings-modal {
  width: min(980px, calc(100vw - 28px));
}

.starby-operation-settings-modal .starby-sales-channels-scroll {
  padding: 24px;
}

.starby-operation-settings-category {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #eadff5;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(141, 87, 239, .09), transparent 30%),
    linear-gradient(180deg, #fcf9ff, #fff);
}

.starby-operation-settings-category-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee6f5;
}

.starby-operation-settings-category-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(145deg, #9a62ff, #5f24c9);
  box-shadow: 0 12px 24px rgba(100, 43, 202, .2);
}

.starby-operation-settings-category-head span,
.starby-operation-settings-group > header > span {
  color: #7438d5;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
}

.starby-operation-settings-category-head h3 {
  margin: 3px 0 3px;
  color: #29183c;
  font-size: 22px;
  letter-spacing: -.03em;
}

.starby-operation-settings-category-head p,
.starby-operation-settings-group > header p {
  margin: 0;
  color: #7c7287;
  font-size: 12px;
  line-height: 1.5;
}

.starby-operation-settings-sections {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.starby-operation-settings-group {
  padding: 16px;
  border: 1px solid #eee5f5;
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 24px rgba(55, 28, 88, .045);
}

.starby-operation-settings-group > header h4 {
  margin: 4px 0 4px;
  color: #2b1b3d;
  font-size: 18px;
  letter-spacing: -.02em;
}

.starby-operation-settings-group .starby-sales-channels-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.starby-operation-settings-group .starby-sales-channel-row {
  min-height: 84px;
}

.starby-operation-settings-group .starby-sales-channels-rule {
  margin-top: 13px;
}

.starby-reviews-rule {
  border-color: #eee0b7;
  background: linear-gradient(135deg, #fff9e9, #fff);
}

@media (max-width: 760px) {
  .starby-operation-settings-modal .starby-sales-channels-scroll {
    padding: 20px 14px;
  }

  .starby-operation-settings-category {
    padding: 14px;
    border-radius: 18px;
  }

  .starby-operation-settings-group {
    padding: 13px;
  }

  .starby-operation-settings-group .starby-sales-channels-list {
    grid-template-columns: 1fr;
  }
}


/* 2026-08-06 — pausa temporária de novos pedidos */
.starby-order-autoaccept-row,
.starby-order-pause-card { grid-column: 1 / -1; }
.starby-order-pause-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 11px;
  align-items: stretch;
}
.starby-order-pause-card .starby-sales-channel-row { min-height: 94px; }
.starby-order-pause-duration {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  min-height: 94px;
  padding: 12px 14px;
  border: 1px solid #e8def3;
  border-radius: 17px;
  background: rgba(255,255,255,.9);
}
.starby-order-pause-duration > span { color: #2b1c3b; font-size: 12px; font-weight: 800; }
.starby-order-pause-duration select {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #d8c8e8;
  border-radius: 11px;
  color: #3a2451;
  background: #fff;
  font: inherit;
  font-weight: 700;
  outline: none;
}
.starby-order-pause-duration select:focus { border-color: #8d57ef; box-shadow: 0 0 0 3px rgba(141,87,239,.12); }
.starby-order-pause-duration select:disabled { opacity: .55; cursor: not-allowed; background: #f5f1f8; }
.starby-order-pause-duration small { color: #7d7488; font-size: 10px; line-height: 1.35; }
@media (max-width: 760px) {
  .starby-order-pause-card { grid-template-columns: 1fr; }
}
