/* Public card ordering works through injected order rules from link-order-safe.js. */

.embedded-order-editor {
  margin: 22px 0 18px;
  padding: 18px;
  border: 2px solid rgba(45, 226, 132, 0.78);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(45, 226, 132, 0.13), transparent 44%),
    #0d1511;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: #f4f7f5;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.embedded-order-editor__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.embedded-order-editor__heading > div {
  display: grid;
  gap: 5px;
}

.embedded-order-editor__heading strong {
  color: #42ec99;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.embedded-order-editor__heading small,
.embedded-order-editor__heading > span {
  color: #84918a;
  font-size: 11px;
  line-height: 1.45;
}

.embedded-order-editor__heading > span {
  flex: 0 0 auto;
  color: #42ec99;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.embedded-order-editor__list {
  display: grid;
  gap: 9px;
}

.embedded-order-editor__row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
}

.embedded-order-editor__position {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: rgba(45, 226, 132, 0.12);
  color: #42ec99;
  font-size: 13px;
  font-weight: 850;
}

.embedded-order-editor__name {
  display: grid;
  gap: 3px;
}

.embedded-order-editor__name strong {
  font-size: 14px;
}

.embedded-order-editor__name small {
  color: #7f8983;
  font-size: 10px;
}

.embedded-order-editor__actions {
  display: flex;
  gap: 7px;
}

.embedded-order-editor__actions button {
  display: grid;
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}

.embedded-order-editor__actions button:disabled {
  opacity: 0.25;
  cursor: default;
}

.embedded-order-editor__footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.embedded-order-editor__status {
  margin: 0;
  color: #8c9690;
  font-size: 11px;
  line-height: 1.45;
}

.embedded-order-editor__status[data-type="success"] { color: #42ec99; }
.embedded-order-editor__status[data-type="error"] { color: #ff9292; }
.embedded-order-editor__status[data-type="working"] { color: #e7c87b; }

.embedded-order-editor__save {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 13px;
  appearance: none;
  -webkit-appearance: none;
  background: #35df82;
  color: #06140c;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.embedded-order-editor__save:disabled {
  opacity: 0.42;
  cursor: default;
}

@media (max-width: 620px) {
  .embedded-order-editor__heading,
  .embedded-order-editor__footer {
    grid-template-columns: 1fr;
  }

  .embedded-order-editor__heading {
    display: grid;
  }

  .embedded-order-editor__heading > span {
    justify-self: start;
  }

  .embedded-order-editor__save {
    width: 100%;
  }
}
