.abandoned-auto-config {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  margin-bottom: 18px;
  border: 1px solid #dfe3ef;
  border-radius: 12px;
  background: #fff;
}
.abandoned-auto-config strong {
  font-size: 14px;
  color: #202c45;
}
.abandoned-auto-config p {
  font-size: 12px;
  line-height: 1.6;
  margin: 6px 0;
  color: #596780;
  max-width: 760px;
}
.abandoned-auto-config small {
  font-size: 11px;
  line-height: 1.5;
  color: #7d879d;
  display: block;
  max-width: 760px;
}
.abandoned-auto-control {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: 12px;
  color: #596780;
}
.abandoned-auto-switch {
  position: relative !important;
  width: 42px;
  min-width: 42px;
  height: 24px !important;
  min-height: 24px !important;
  padding: 3px !important;
  border: 0 !important;
  border-radius: 20px !important;
  background: #d5dae7 !important;
  display: block !important;
}
.abandoned-auto-switch > span {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px #202c4526;
  transition: transform 0.15s;
}
.abandoned-auto-switch[aria-checked="true"] {
  background: #7360ee !important;
}
.abandoned-auto-switch[aria-checked="true"] > span {
  transform: translateX(18px);
}
.abandoned-auto-switch:focus-visible {
  outline: 3px solid #c4bafa;
  outline-offset: 3px;
}
.abandoned-auto-switch:disabled {
  opacity: 0.6;
  cursor: wait;
}
@media (max-width: 640px) {
  .abandoned-auto-config {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
  .abandoned-auto-control {
    align-self: flex-end;
  }
}
.abandoned-heading {
  margin-bottom: 0;
  gap: 16px;
}
.abandoned-heading > div:first-child {
  min-width: 0;
  flex: 1;
}
.abandoned-heading h1 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.abandoned-heading p {
  max-width: 480px;
}
.dashboard-toolbar.abandoned-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 8px;
  flex-shrink: 0;
}
.abandoned-toolbar label.search {
  width: 200px;
  max-width: 100%;
  margin: 0;
}
.shell .abandoned-toolbar label.search input {
  width: 100%;
  min-height: 42px;
  border-radius: var(--radius);
  padding: 9px 12px 9px 36px;
}
.abandoned-toolbar .search .ico {
  top: 50%;
  transform: translateY(-50%);
}
.abandoned-hidden-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.abandoned-hidden-toggle.is-active {
  border-color: var(--accent-mid);
  color: var(--purple);
  background: var(--purplelight);
}
.abandoned-hidden-toggle b {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  color: #5a6175;
  background: #eceef4;
  font-size: 10px;
  text-align: center;
}
.abandoned-success {
  margin: 0;
  padding: 11px 13px;
  border: 1px solid #a9dbc3;
  border-radius: 10px;
  color: #156b49;
  background: #effaf4;
  font-size: 13px;
  font-weight: 650;
}
.abandoned-list {
  display: grid;
  gap: 12px;
}
.abandoned-card {
  display: grid;
  grid-template-columns:
    minmax(260px, 1.35fr) minmax(220px, 1fr) minmax(190px, 0.8fr)
    auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: 0 5px 18px rgba(36, 40, 70, 0.04);
}
.abandoned-card.is-hidden {
  border-style: dashed;
  background: #fafbfc;
}
.abandoned-product {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.abandoned-photo {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  overflow: hidden;
  border-radius: 11px;
  background: #f3f4f8;
  color: var(--muted);
}
.abandoned-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.abandoned-product h2,
.abandoned-customer h3 {
  margin: 5px 0;
  color: var(--ink);
}
.abandoned-product h2 {
  font-size: 15px;
}
.abandoned-product p,
.abandoned-product small,
.abandoned-customer p,
.abandoned-meta span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.abandoned-product p {
  margin: 0;
}
.abandoned-kicker,
.abandoned-offer,
.abandoned-age {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 650;
}
.abandoned-kicker {
  color: #8b6410;
}
.abandoned-hidden-badge {
  display: inline-flex;
  margin-left: 7px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #667085;
  background: #eceef2;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.abandoned-offer {
  margin-bottom: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f0edff;
  color: var(--purple);
}
.abandoned-customer {
  min-width: 0;
}
.abandoned-customer h3 {
  font-size: 14px;
}
.abandoned-customer a,
.abandoned-customer p {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 7px 0 0;
}
.abandoned-customer a {
  width: fit-content;
  color: #18875f;
  font-size: 13px;
  font-weight: 650;
}
.abandoned-customer svg {
  flex: 0 0 auto;
  margin-top: 1px;
}
.abandoned-customer .is-empty {
  color: #9b9eac;
  font-style: italic;
}
.abandoned-meta {
  display: grid;
  gap: 4px;
}
.abandoned-meta strong {
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.abandoned-actions {
  display: grid;
  justify-items: end;
  gap: 12px;
}
.abandoned-actions .primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 13px;
  border-radius: 8px;
  white-space: nowrap;
}
.abandoned-copy,
.abandoned-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  box-sizing: border-box;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 650;
}
.abandoned-copy {
  width: 100%;
  border-color: #cacdde;
  color: var(--accent-ink);
  background: #fff;
}
.abandoned-whatsapp {
  border: 1px solid #20bd5a;
  color: #fff;
  background: #25d366;
  text-decoration: none;
  white-space: nowrap;
}
.abandoned-whatsapp:hover {
  border-color: #199e49;
  color: #fff;
  background: #20bd5a;
}
.abandoned-whatsapp svg {
  flex: 0 0 auto;
}
.abandoned-create {
  border-color: #94cbb2;
  color: #14724e;
  background: #f2fbf6;
}
.abandoned-management {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(300px, 1.45fr) auto;
  grid-column: 1 / -1;
  align-items: end;
  gap: 12px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.abandoned-management label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.abandoned-management label > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.abandoned-management select,
.abandoned-management textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}
.abandoned-management select {
  min-height: 42px;
  padding: 8px 10px;
}
.abandoned-management textarea {
  min-height: 42px;
  padding: 9px 10px;
  resize: vertical;
}
.abandoned-save {
  min-height: 42px;
  padding: 9px 13px;
  border-color: var(--purple);
  color: #fff;
  background: var(--purple);
  white-space: nowrap;
}
.abandoned-management-actions {
  display: grid;
  gap: 7px;
  min-width: 205px;
}
.abandoned-visibility {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 11px;
  border-color: #d7b4b4;
  border-radius: 8px;
  color: #923e3e;
  background: #fff8f8;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.abandoned-save:disabled {
  border-color: #d7d8e1;
  color: #898d9d;
  background: #eff0f4;
}
.abandoned-age {
  color: #40715f;
}
.abandoned-age i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #26a778;
  box-shadow: 0 0 0 3px rgba(38, 167, 120, 0.12);
}
.abandoned-empty {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 35px;
  border: 1px dashed #d7dae3;
  border-radius: 14px;
  background: white;
  color: var(--muted);
  text-align: center;
}
.abandoned-empty h2 {
  margin: 12px 0 4px;
  color: var(--ink);
  font-size: 17px;
}
.abandoned-empty p {
  margin: 0;
}
.abandoned-more {
  justify-self: center;
}
.abandoned-order-modal {
  width: min(760px, calc(100vw - 30px));
}
.abandoned-order-modal .modalbody {
  display: grid;
  gap: 16px;
}
.abandoned-order-modal .modalbody > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.abandoned-order-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafe;
}
.abandoned-order-summary > div:nth-child(2) {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.abandoned-order-summary strong {
  color: var(--ink);
  font-size: 14px;
}
.abandoned-order-summary span {
  width: fit-content;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--purple);
  background: #efecff;
  font-size: 10px;
  font-weight: 700;
}
.abandoned-order-summary small {
  color: var(--muted);
  font-size: 11px;
}
.abandoned-order-price {
  display: grid;
  justify-items: end;
  gap: 2px;
  white-space: nowrap;
}
.abandoned-order-price del {
  color: var(--muted);
  font-size: 11px;
}
.abandoned-order-price b {
  font-size: 17px;
}
.abandoned-order-form {
  display: grid;
  gap: 14px;
}
.abandoned-order-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.abandoned-order-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.abandoned-order-grid label.is-wide {
  grid-column: 1 / -1;
}
.abandoned-order-grid label > span {
  color: #555a6d;
  font-size: 12px;
  font-weight: 650;
}
.abandoned-order-grid :is(input, select) {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}
.abandoned-order-grid .is-discount {
  padding: 12px;
  border: 1px solid #e6d49e;
  border-radius: 10px;
  background: #fffbef;
}
.abandoned-order-grid .is-discount > span {
  color: #715719;
}
.abandoned-order-grid .is-discount input {
  border-color: #d8bf76;
  font-size: 16px;
  font-weight: 700;
}
.abandoned-order-grid .is-discount small {
  color: #7c704e;
  font-size: 10px;
  line-height: 1.45;
}
.abandoned-order-warning {
  padding: 9px 11px;
  border-radius: 8px;
  color: #69551f !important;
  background: #fff8df;
  font-size: 11px;
}
.abandoned-order-form .modalfoot {
  margin: 0 -22px -22px;
}
.abandoned-order-form .primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
@media (max-width: 1180px) {
  .abandoned-card {
    grid-template-columns: minmax(260px, 1.25fr) minmax(220px, 1fr);
  }
  .abandoned-actions {
    align-items: center;
    grid-template-columns: 1fr auto;
    grid-column: 1 / -1;
  }
  .abandoned-management {
    grid-template-columns: minmax(180px, 0.65fr) minmax(260px, 1.35fr);
  }
  .abandoned-management-actions {
    grid-column: 1 / -1;
    justify-self: end;
  }
}
@media (max-width: 1200px) {
  .shell .abandoned-heading {
    flex-direction: column;
    align-items: stretch;
  }
  .dashboard-toolbar.abandoned-toolbar {
    flex-wrap: wrap;
  }
}
@media (max-width: 650px) {
  .dashboard-toolbar.abandoned-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
  }
  .abandoned-toolbar label.search {
    grid-column: 1 / -1;
    width: 100%;
  }
}
@media (max-width: 700px) {
  .abandoned-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 15px;
  }
  .abandoned-photo {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
  }
  .abandoned-actions {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
  }
  .abandoned-age {
    justify-self: start;
  }
  .abandoned-actions .primary {
    width: 100%;
  }
  .abandoned-management {
    grid-template-columns: minmax(0, 1fr);
  }
  .abandoned-management-actions {
    grid-column: auto;
    justify-self: stretch;
    width: 100%;
  }
  .abandoned-order-summary {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .abandoned-order-price {
    grid-column: 2;
  }
  .abandoned-order-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .abandoned-order-grid label.is-wide {
    grid-column: auto;
  }
  .abandoned-order-form .modalfoot {
    margin-inline: -16px;
    margin-bottom: -16px;
  }
}
