/* cart.css - Slutgiltig version med konsekventa textstorlekar */

body {
  font-family: sans-serif;
  max-width: 800px;
  margin: 40px auto;
  padding: 10px;
  line-height: 1.4;
  color: #333;
  font-size: 16px;
}

input, select {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-size: 16px;
}

.form-section {
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 20px;
}

.form-section-header {
  background: #f7f7f7;
  padding: 12px;
  font-size: 18px;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
  border-radius: 8px;
}

.form-section-content {
  padding: 12px;
}

.form-group {
  margin-bottom: 10px;
}

.cost-summary {
  background-color: #ffffff;
  padding: 10px;
  border-radius: 5px;
  margin-top: 10px;
  font-size: 14px;
}

.cost-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.cost-line.total {
  font-weight: bold;
  border-top: 1px solid #ccc;
  padding-top: 5px;
}

.button-link {
  display: block;
  background: #333;
  color: #fff;
  text-decoration: none;
  padding: 12px;
  border-radius: 5px;
  text-align: center;
  margin-bottom: 10px;
  font-size: 16px;
}

.button-link:hover {
  background: #555;
}

/* Varukorgens specifika stilar */
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px; /* Samma som cost-summary */
}

.cart-info {
  flex: 1;
}

.cart-info strong {
  font-size: 14px;
  display: block;
  margin-bottom: 2px;
}

.cart-info small {
  font-size: 12px;
  color: #666;
  line-height: 1.3;
  display: block;
  margin: 2px 0;
}

.cart-info div {
  margin-bottom: 3px;
  font-size: 13px;
}

.remove-btn {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  margin-left: 8px;
  color: #999;
  padding: 2px 5px;
}

.shipping-summary {
  background: #ffffff;
  font-size: 13px; /* Mindre än cost-summary men större än detaljtext */
}

.shipping-summary p {
  margin: 5px 0;
  line-height: 1.3;
}

.shipping-summary strong {
  font-size: 13px;
}

/* Mobilanpassning - Konsekventa textstorlekar */
@media (max-width: 600px) {
  body {
    margin: 8px;
    padding: 4px;
    font-size: 14px;
  }

  .form-section-header {
    font-size: 15px;
    padding: 8px;
  }

  .form-section-content {
    padding: 8px;
  }

  .cost-summary {
    font-size: 13px;
    padding: 8px;
  }

  .cart-item {
    padding: 6px 0;
    font-size: 13px !important; /* Samma som cost-summary */
  }

  .cart-info strong {
    font-size: 13px !important;
    margin-bottom: 1px;
  }

  .cart-info small {
    font-size: 11px !important;
    line-height: 1.2;
  }

  .cart-info div {
    margin-bottom: 2px;
    font-size: 12px;
  }

  .shipping-summary {
    font-size: 12px !important;
    padding: 8px;
  }

  .shipping-summary strong {
    font-size: 12px !important;
  }

  .button-link {
    padding: 8px;
    font-size: 14px;
  }

  input, select {
    padding: 8px;
    font-size: 14px;
  }
}