.subtitle {
  margin: 24px 0 16px 0;

  h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e1e1e;
  }
}

.dimensionsGrid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;

  @media (min-width: 768px) {
    grid-template-columns: repeat(3, 1fr);
  }
}

.customBoxesContainer {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.customBoxRow {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;

  @media (max-width: 768px) {
    flex-direction: column;
    align-items: stretch;
  }

  &>div {
    flex: 1;
    min-width: 100px;
  }
}

.boxLabel {
  display: flex;
  align-items: center;
  height: 40px;
  min-width: 60px !important;
  flex: 0 !important;
  font-weight: 500;
  color: #1e1e1e;
}

.deleteButtonContainer {
  width: 40px;
  min-width: 40px !important;
  height: 40px;
  flex: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deleteButton {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px !important;
  flex: 0 !important;
  border: 1px solid #757575;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  color: #757575;
  transition: all 0.2s ease;

  &:hover {
    color: #d63638;
    border-color: #d63638;
  }

  svg {
    fill: currentColor;
  }
}

.footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;

  @media (max-width: 600px) {
    flex-direction: column;
    align-items: flex-start;
  }
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 4px;

  p {
    margin: 0;
  }
}

.addBoxButton {
  flex-shrink: 0;
}

.limitMessage {
  font-size: 12px;
  font-style: italic;
  color: #757575;
}

.errorMessage {
  color: #d63638;
  font-size: 12px;
}

.errorMessageBox {
  width: 100%;
  color: #d63638;
  font-size: 12px;
  padding-left: 85px;

  @media (max-width: 1250px) {
    padding-left: 0;
  }
}