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

.empty {
  font-weight: 600;
}

.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;
  }
}

.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;
}

.itemsTotal {
  margin-bottom: var(--base);
  font-weight: 600;
}

.quantity {
  color: var(--theme-elevation-1000);
  background-color: var(--theme-elevation-100);
  border: none;
  outline: none;
  padding: calc(var(--base) * 0.25) calc(var(--base) * 0.25);
}

:global([data-theme='dark']) {
  .quantity {
    background-color: var(--theme-elevation-150);
  }
}

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

.cartTotal {
  margin: 0;
}

.checkoutButton {
  margin-top: var(--base);
}
