.user-details-container {
  padding: 1rem 0;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.5rem;

  > [class*="col-"] {
    padding: 0 0.5rem;
  }
}

.col-md-6 {
  width: 100%;

  @media (min-width: 768px) {
    width: 50%;
  }
}

.col-md-4 {
  width: 100%;

  @media (min-width: 768px) {
    width: 33.333%;
  }
}

.col-md-8 {
  width: 100%;

  @media (min-width: 768px) {
    width: 66.666%;
  }
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

.legal-consent {
  margin-top: 1rem;

  label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--color-text-main);
    line-height: 1.4;
  }

  input[type="checkbox"] {
    margin-top: 0.2rem;
  }

  a {
    color: var(--color-brand);
    text-decoration: underline;
  }
}

.consent-error {
  margin-top: 0.4rem;
  color: var(--color-error);
  font-size: 0.85rem;
}

// Summary Styles
.summary-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);

  &:last-child {
    border-bottom: none;
  }
}

.item-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.item-name {
  font-weight: 500;
}

.item-meta {
  font-size: 0.85rem;
  opacity: 0.7;
}

.item-qty {
  margin: 0 1rem;
  opacity: 0.8;
}

.item-price {
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.item-unit-price {
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.2;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid rgba(255, 255, 255, 0.2);

  .total-price {
    color: var(--primary-color, #00c853); // Fallback color
  }
}
