#standard-background .cart {
    display: grid;
    grid-template-columns: 80% 20%;
    gap: 20px;
    width: 100%;
}

#standard-background .line-items {
    display: flex;
    flex-direction: column;
}

#standard-background .line-item-cell {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

#standard-background .line-item-image {
    flex: 1;
}

#standard-background .line-item-image img {
    width: 150px;
    margin: 10px;
    padding: 10px;
    height: auto;
    display: block;
}

#standard-background .line-item-image img:hover {
    box-shadow: 0 0 2px 1px rgba(0, 140, 186, 0.5);
}

#standard-background .line-item-text {
    flex: 7;
    padding: 5px 10px;
}

#standard-background .line-item-actions {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 5px;
    padding: 5px 10px;
}

#standard-background .quantity-form {
    display: flex;
    align-items: center;
    gap: 5px;
}

#standard-background .quantity-form button {
  width: 30px;
  height: 30px;
  padding: 0;
  cursor: pointer;
  color: #222;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  border: none;
  font-family: inherit;
  font-size: inherit;
}

#standard-background .quantity-form button:disabled {
  visibility: hidden;
  pointer-events: none;
}

#standard-background .quantity-form button:not(:disabled):hover {
  background-color: rgba(0, 0, 0, 0.2);
}

#standard-background .quantity-form input[type="number"] {
  width: 50px;
  padding: 5px;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

#standard-background .quantity-form input[type="number"]::-webkit-inner-spin-button,
#standard-background .quantity-form input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#standard-background .remove-form {
  display: flex;
  justify-content: center;
}

#standard-background .remove-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  border: none;
  font-size: inherit;
}

#standard-background .remove-btn:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

#standard-background .line-item-total-cost {
    flex: 1;
    display: flex;
    align-items: top;
    justify-content: center;
    padding: 5px 10px;
    font-weight: bold;
}

#standard-background .checkout {
    padding: 20px;
    text-align: center;
}

#standard-background .order-summary {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    text-align: left;
}

#standard-background .order-summary h3 {
    margin: 0 0 10px;
    font-size: 1.1em;
}

#standard-background .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

#standard-background .summary-row.total {
    border-top: 1px solid #ddd;
    margin-top: 5px;
    padding-top: 10px;
    font-weight: bold;
}

#standard-background .free-shipping-note {
    font-size: 0.85em;
    color: #666;
    margin-top: 10px;
    text-align: center;
}

#standard-background .checkout-button button,
#standard-background .checkout-button a {
  padding: 10px 30px;
  cursor: pointer;
  color: #222;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  border: none;
  font-family: inherit;
  font-size: inherit;
}

#standard-background .checkout-button button:hover,
#standard-background .checkout-button a:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    #standard-background {
        width: 100%;
        box-sizing: border-box;
    }
    #standard-background .cart {
        grid-template-columns: 1fr;
    }
    #standard-background .line-item-cell {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    #standard-background .line-item-image img {
        width: 120px;
    }
    #standard-background .quantity-form button,
    #standard-background .remove-btn {
        width: 45px;
        height: 45px;
    }
}
