.orders-main {
  padding-top: 26px;
}

.orders-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.orders-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.orders-kicker {
  margin: 0 0 10px;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.orders-head h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
}

.orders-head p {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.6;
}

.orders-status {
  padding: 14px 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5eaf2;
  color: #506075;
  font-weight: 600;
}

.orders-status.is-error {
  background: #fff1f1;
  border-color: #f1c3c3;
  color: #a52020;
}

.orders-list {
  display: grid;
  gap: 18px;
}

.order-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  box-shadow: 0 18px 38px rgba(15, 23, 40, 0.05);
  overflow: hidden;
}

.order-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 16px;
}

.order-card-head h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
}

.order-card-meta {
  margin-top: 6px;
  color: #66758a;
  font-size: 0.92rem;
}

.order-card-total {
  text-align: right;
}

.order-card-total strong {
  display: block;
  font-size: 1.08rem;
  color: #111827;
}

.order-card-total span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3844c2;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: capitalize;
}

.order-card-body {
  padding: 0 22px 22px;
}

.order-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 18px;
}

.order-items {
  display: grid;
  gap: 12px;
}

.order-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #edf1f6;
  border-radius: 16px;
  background: #fafbfd;
}

.order-item-media {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  overflow: hidden;
  background: #eef2f7;
}

.order-item-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.order-item-title {
  margin: 0;
  font-size: 0.98rem;
  color: #111827;
}

.order-item-meta {
  margin-top: 6px;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.5;
}

.order-side-card {
  padding: 16px;
  border: 1px solid #edf1f6;
  border-radius: 18px;
  background: #fafbfd;
}

.order-side-card h3 {
  margin: 0 0 10px;
  font-size: 0.98rem;
  color: #111827;
}

.order-side-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.65;
}

.order-support-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e5eaf2;
}

.order-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.order-support-btn,
.order-support-submit,
.order-support-cancel {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #dbe3ee;
  background: #ffffff;
  color: #1f2c3f;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.order-support-btn {
  background: #f8fafc;
}

.order-support-btn.is-secondary,
.order-support-cancel {
  background: #ffffff;
}

.order-support-submit {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

.order-support-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5eaf2;
}

.order-support-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-support-field span {
  color: #172033;
  font-size: 0.86rem;
  font-weight: 700;
}

.order-support-field input,
.order-support-field select,
.order-support-field textarea {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #d7dce5;
  border-radius: 12px;
  background: #ffffff;
  color: #172033;
  font: inherit;
}

.order-support-field textarea {
  min-height: 108px;
  padding: 12px;
  resize: vertical;
}

.order-support-field-full {
  grid-column: 1 / -1;
}

.order-support-form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.order-support-status {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border-radius: 14px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
}

.order-support-status.is-error {
  background: #fff1f1;
  color: #a52020;
}

.orders-empty {
  padding: 46px 20px;
  border: 1px dashed #d7dde7;
  border-radius: 22px;
  background: #ffffff;
  text-align: center;
}

.orders-empty h2 {
  margin: 0;
  font-size: 1.3rem;
}

.orders-empty p {
  margin: 10px 0 0;
  color: #66758a;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .order-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .orders-main {
    padding-top: 18px;
  }

  .order-card-head {
    flex-direction: column;
  }

  .order-card-total {
    text-align: left;
  }

  .order-support-form {
    grid-template-columns: 1fr;
  }
}
