* {
  box-sizing: border-box;
  font-family: "Jost", sans-serif;
}

body {
  background: #faf9f6;
  padding: 40px 15px;
}

.back-btn {
  position: fixed;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  color: #000;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  z-index: 1000;
  transition: all 0.25s ease;
}

/* Arrow */
.back-btn::before {
  content: "←";
  font-size: 16px;
  transition: transform 0.25s ease;
}

/* Hover / tap feedback */
.back-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.back-btn:hover::before {
  transform: translateX(-3px);
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .back-btn {
    top: 12px;
    left: 12px;
    padding: 9px 14px;
    font-size: 13px;
  }
}


/* Default input style */
#checkout-form input {
  border: 2px solid #ddd;
  padding: 12px;
  border-radius: 8px;
  transition: border-color 0.3s ease;
}

/* Red border ONLY after user has touched the field and it's invalid */
#checkout-form input:invalid:not(:focus):not(:placeholder-shown) {
  border-color: #ff4444;
}

/* Red border when focused and invalid (after typing) */
#checkout-form input:invalid:focus {
  border-color: #ff0000;
  outline: none;
  box-shadow: 0 0 5px rgba(255, 68, 68, 0.5);
}

/* Green border when valid and has content */
#checkout-form input:valid:not(:placeholder-shown) {
  border-color: #4CAF50;
}



.checkout {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
/* SHIPPING OPTIONS – isolated styling */

.card {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}



.shipping-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 2px solid #eee;
  cursor: pointer;
  margin-top: 14px;
  transition: all 0.2s ease;
}

.shipping-option img {
  width: 60px;
  height: auto;
  object-fit: contain;
}

.shipping-option input {
  display: none;
}

.shipping-text strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.shipping-text p {
  font-size: 14px;
  margin: 0;
  color: #555;
}

.shipping-text span {
  font-size: 13px;
  color: #777;
}

/* Selected state */
.shipping-option:has(input:checked) {
  border-color: #c9b37e;
  background: rgba(201, 179, 126, 0.08);
}

/* Shipping price */
.shipping-option {
  display: flex;
  align-items: center;
}

/* Push price to the far right */
.shipping-price {
  margin-left: auto;
  font-weight: 600;
  font-size: 15px;
  color: #000;
  white-space: nowrap;
}


.product-row {
  display: flex;
  gap: 20px;
  align-items: center;
}

.product-row img {
  width: 100px;
  border-radius: 12px;
}

.product-name {
  font-weight: 600;
  margin-bottom: 10px;
}

.quantity-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #c9b37e;
  color: #000;
  font-size: 18px;
  cursor: pointer;
}
/*PRICE TOP */
.price {
  margin-top: 6px;
  font-size: 13px;
  color: #777;
  letter-spacing: 0.2px;
}

.price strong {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #000;
  font-variant-numeric: tabular-nums;
}

/* TOTAL */
.price.total {
  margin-top: 14px;
  font-size: 14px;
  color: #555;
}

.price.total strong {
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #000;
  letter-spacing: -0.2px;
}


input {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
  margin-bottom: 12px;
}

.checkbox,
.radio {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.confirm-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f7f6f3;
  font-size: 14px;
}

/* Gör checkboxen lite större & klickvänlig */
.confirm-details input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #c9b37e; /* matchar din champagne-färg */
  cursor: pointer;
}


.swish-qr {
  width: 220px;
  margin: 20px auto;
  display: block;
}

/* TOTAL PRICING */
.total-price {
  margin: 10px auto 25px;
  text-align: center;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(201, 179, 126, 0.12);
  border: 1px solid rgba(201, 179, 126, 0.35);
  max-width: 260px;
}

.total-price span {
  display: block;
  font-size: 13px;
  color: #555;
  margin-bottom: 4px;
}

.total-price strong {
  font-size: 22px;
  font-weight: 700;
  color: #000;
}


.swish-btn {
  display: block;
  text-align: center;
  padding: 14px;
  background: #00c853;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 15px;
}

.confirm-btn {
  width: 100%;
  padding: 16px;
  border-radius: 30px;
  border: none;
  background: linear-gradient(135deg, #c9b37e, #d4af37);
  font-weight: 600;
  cursor: pointer;
}

.hidden {
  display: none;
}
