@import '../../../_css/common';

.orders {
  margin-bottom: var(--block-padding);
}

.id {
  word-break: break-all;
}

.itemMeta {
  display: flex;
  flex-direction: column;
  gap: calc(var(--base) / 2);

  & > * {
    margin: 0;
  }
}

.total {
  font-weight: 600;
}

.orderItems {
  margin: 0;
  margin-bottom: var(--base);
}

.row {
  display: flex;
  align-items: center;
  gap: var(--base);

  @include small-break {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
}

.rowContent {
  display: flex;
  flex-direction: column;
  gap: calc(var(--base) / 2);

  & > * {
    margin: 0;
  }
}

.mediaWrapper {
  text-decoration: none;
  display: block;
  position: relative;
  aspect-ratio: 5 / 4;
  width: 100%;
  max-width: 200px;

  @include small-break {
    max-width: unset;
    margin-bottom: calc(var(--base) / 2);
  }
}

.warning {
  margin: 0;
  color: var(--theme-warning-500);
}

:global([data-theme='light']) {
  .warning {
    color: var(--theme-error-500);
  }
}

.placeholder {
  background-color: var(--theme-elevation-50);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mediaWrapper {
  text-decoration: none;
  display: block;
  position: relative;
  aspect-ratio: 5 / 4;
  width: 100%;
  max-width: 300px;

  @include small-break {
    max-width: unset;
    margin-bottom: calc(var(--base) / 2);
  }
}

.media {
  position: relative;
  width: 100%;
  height: 100%;
}

.image {
  object-fit: cover;
}

.title {
  margin: 0;
}

.titleLink {
  text-decoration: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--base) / 2);
}
