#cart-container {
  display: flex;
  flex-direction: column;
}

.cart-item {
  display: flex;
  margin-bottom: 20px;
  padding: 10px;
  border: 1px solid #ddd;
}

.cart-item img {
  width: 200px;
  height: auto;
  margin-right: 20px;
}

.cart-info {
  flex-grow: 1;
}

.cart-info h3 {
  margin: 0;
}

.cart-quantity {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-right: 8px;
}

.cart-quantity button {
  padding: 5px 10px;
  border: none;
  background-color: var(--red);
  color: white;
  cursor: pointer;
  font-weight: bold;
}

.cart-quantity button:hover {
  background-color: gray;
}

.quantity-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#total-price {
  font-weight: bold;
  font-size: 1.2rem;
  padding: 1rem;
  text-align: right;
}

.price {
  color: gray;
}

#cost-details {
  margin-top: 20px;
  font-size: 18px;
  font-weight: bold;
}

#cost-details div {
  margin-bottom: 10px;
}

.gpsguardian-form h2 {
  margin-bottom: 20px;
  color: black;
}

.gpsguardian-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

/* Remove old #submit-button specific styles */
/*
#submit-button {
  color: white !important;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  background-color: var(--red) !important;
  outline: none !important;
  border: none !important;
  font-weight: bold !important;
}

#submit-button:hover {
  background: gray !important;
}

#submit-button[disabled] {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
  color: #fff !important;
  cursor: not-allowed !important;
}

#submit-button[disabled]:hover {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
  cursor: not-allowed !important;
}
*/

/* General styling for the submit button - assuming it has .btn and .btn-primary from HTML */
.gpsguardian-form button[type="submit"] {
  /* Base styles if not covered by Bootstrap or if overrides are needed */
  /* For example, if you want your --red color for the primary button: */
  /* background-color: var(--red); */
  /* color: white; */
  /* border: none; */
  /* padding: 10px 20px; */
  /* border-radius: 6px; */
  /* cursor: pointer; */
  /* font-weight: bold; */
}

.gpsguardian-form button[type="submit"]:hover:not([disabled]) {
  /* Hover styles for enabled button, e.g., darken the background */
  /* background-color: #c00; */
  /* Darker red example */
}

/* Styling for the disabled submit button */
.gpsguardian-form button[type="submit"]:disabled {
  background-color: #6c757d !important;
  /* Bootstrap's btn-secondary color */
  border-color: #6c757d !important;
  color: #fff !important;
  cursor: not-allowed !important;
  opacity: 0.65 !important;
  /* Standard opacity for disabled elements */
}

/* Styles for the submit button loader */
.gpsguardian-form button[type="submit"] .loader {
  display: none;
  width: 20px;
  /* Adjust size as needed */
  height: 20px;
  /* Adjust size as needed */
  border: 3px solid rgba(255, 255, 255, 0.3);
  /* Light border for the track */
  border-top-color: #fff;
  /* Color of the spinner */
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  /* Aligns loader nicely if text were next to it */
  margin: 0 auto;
  /* Center loader if it's the only thing visible */
}

.gpsguardian-form button[type="submit"].loading span {
  display: none;
  /* Hide "Złóż zamówienie" text when loading */
}

.gpsguardian-form button[type="submit"].loading .loader {
  display: inline-block;
  /* Show loader when loading */
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.gpsguardian-form select {
  width: 140px !important;
}

body {
  background: #f6f6f6 !important;
}

@media (max-width: 992px) {
  .cart-quantity {
    margin-top: 20px;
    flex-direction: row;
  }

  .cart-item {
    display: block !important;
    margin: 20px;
  }

  #cost-details {
    margin: 20px;
    padding: 10px;
  }
}