* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
}

/* CENTRERA HELT */
body {
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px;
}

/* KORT */
.checkout-card {
  width: 100%;
  max-width: 760px;
  background: #fff;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

/* HEADER */
.checkout-header {
  background: linear-gradient(135deg, #7fd34e, #4dbb63);
  color: #fff;
  text-align: center;
  padding: 50px 30px;
}

.checkout-header h1 {
  margin: 0 0 25px;
  font-size: 30px;
}

/* RAD MED 2 BOXAR */
.header-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 35px;
  margin-bottom: 25px;
}

/* RÖDLJUS BOX */
.traffic-box {
  width: 150px;
  height: 150px;
  background: #fff;
  border-radius: 28px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* RÖDLJUS BLOCK */
.traffic-status-wrapper {
  text-align: center;
  font-size: 13px;
}

.traffic-light {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 6px;
}

.light {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d0d0d0;
}

.light.red.active { background: #e53935; }
.light.yellow.active { background: #fbc02d; }
.light.green.active { background: #43a047; }

.message-text {
  font-size: 11px;
  line-height: 1.2;
}

/* LOGOBOX */
.logo-box {
  width: 150px;
  height: 150px;
  border-radius: 28px;
  background: #fff;
  position: relative;
}

/* TRAKTORLOGGAN */
.logo-box::after {
  content: "";
  position: absolute;
  inset: 20px;
  background-image: url(vackbo-logo.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 1;
}

/* TEXT */
.swish-number {
  font-size: 24px;
  font-weight: bold;
  margin-top: 10px;
}

.subtitle {
  font-size: 15px;
  opacity: 0.95;
}

/* BODY */
.checkout-body {
  padding: 35px 30px;
  font-size: 16px;
}

.checkout-body h3 {
  margin-top: 25px;
  margin-bottom: 12px;
}

/* PRODUKTER */
.product {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 15px;
  margin-bottom: 14px;
}

.product input {
  padding: 12px;
  font-size: 16px;
}

/* INPUT */
.checkout-body select,
.checkout-body input[type="text"] {
  width: 100%;
  padding: 14px;
  margin-bottom: 18px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

/* SUMMARY */
.summary {
  text-align: center;
  margin-top: 30px;
}

/* FOOTER */
.checkout-footer {
  padding: 30px;
  text-align: center;
}

.pay-btn {
  width: 100%;
     background-color: #000;
  color: #fff;
  border: none;
  padding: 20px;
  font-size: 18px;
  border-radius: 40px;
  cursor: pointer;
}

/* SWISH */
.swish-logo {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.swish-logo img {
  width: 120px;
}

.secure {
  font-size: 13px;
  color: #555;
  margin-top: 6px;
}

/* MOBIL */
@media (max-width: 600px) {
  .header-row {
    flex-direction: column;
  }

  .checkout-card {
    border-radius: 0;
  }
}

/* ================= Swish-liknande form – uppgraderad ================= */

/* Lite större grundtext i kortet */
.checkout-card {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

/* Rubriker i formuläret */
.checkout-body h3 {
  font-weight: 600;
  font-size: 1.5rem;      /* större */
  color: #3a4a5f;
  margin: 28px 0 8px;
}

/* Formlayout */
.checkout-body {
  padding: 24px 32px 32px;
}

/* Produkt-rader */
.product {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

/* Produktnamn/text */
.product span {
  flex: 1;
  font-size: 1.05rem;     /* lite större text */
  color: #2f3b4a;
}

/* Header-rad över antal-kolumnen */
.product-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
  margin-bottom: 4px;
  font-size: 0.95rem;
  color: #6b7585;
  font-weight: 500;
}
.product-header span:first-child {
  flex: 1;
}
.product-header span:last-child {
  width: 90px;            /* matchar antal-inputbredd */
  text-align: right;
}

/* Inputs/selects */
.checkout-body input[type="text"],
.checkout-body input[type="number"],
.checkout-body select {
  border: none;
  border-bottom: 2px solid #d0d7e2;
  border-radius: 0;
  padding: 6px 0;
  font-size: 1rem;
  width: 100%;
  background: transparent;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Smalare nummerfält (antal) */
.product input[type="number"] {
  max-width: 90px;
  text-align: right;
}

/* Focus-stil */
.checkout-body input[type="text"]:focus,
.checkout-body input[type="number"]:focus,
.checkout-body select:focus {
  border-bottom-color: #0070d9;
  box-shadow: 0 2px 0 rgba(0, 112, 217, 0.3);
}

.checkout-body input::placeholder {
  color: #a0a8b5;
}

/* Sammanfattning */
.summary {
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: 8px;
  background: #f4f7fb;
  font-size: 0.95rem;
  color: #3a4a5f;
}
.summary strong {
  display: block;
  margin-bottom: 6px;
}

/* Footer + loggor */
.checkout-footer {
  padding: 18px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;

}

/* Swish + BankID + Pixie i rad */
.swish-logo {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Större loggor (Swish dubbelt mot tidigare) */
.swish-logo img {
  max-height: 64px;   /* var ~32px, nu dubbelt */
}

/* “Betala”-knapp */
.pay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 10px rgba(0, 112, 217, 0.35);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}
.pay-btn:hover {
  background: #005fb5;
  box-shadow: 0 5px 14px rgba(0, 112, 217, 0.45);
  transform: translateY(-1px);
}
.pay-btn:active {
  background: #00519a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transform: translateY(0);
}

.secure {
  font-size: 0.9rem;
  color: #80889a;
}

/* Mobiljustering */
@media (max-width: 600px) {
  .checkout-body {
    padding: 16px 18px 24px;
  }
  .checkout-footer {
    padding: 16px 18px 24px;
    align-items: stretch;
  }
  .pay-btn {
    width: 100%;
  }
}
.history-section {
  margin-top: 18px;
  width: 100%;
}

.history-section-inner h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: #3a4a5f;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 6px;
}

.history-table th,
.history-table td {
  border: 1px solid #dde1ea;
  padding: 4px 6px;
  text-align: left;
}

.history-table th {
  background: #f4f7fb;
  font-weight: 600;
}

.history-table tbody tr:nth-child(even) {
  background: #fafbfe;
}

/* --- 3-kolumners produktlayout --- */
.product-header,
.product {
  display: grid;
  grid-template-columns: 1fr 100px 90px;
  align-items: center;
  margin-bottom: 8px;
  gap: 12px;
}

/* Produktlistans gridlayout */
.product-header,
.product {
  display: grid;
  grid-template-columns: 1fr 110px 90px; /* ← justerad */
  align-items: center;
  margin-bottom: 8px;
  gap: 10px;
}

/* Högerjustera rubriken Pris */
.product-header .ph-price {
  text-align: right;
  padding-right: 4px;
}

/* Högerjustera prisvärden */
.col-price {
  text-align: right;
  padding-right: 4px;
  font-weight: 600; /* redan fet, säkerställ */
}

.summary p strong,
.summary strong.value {
  font-weight: 700;
  color: #000;
}

/* === Produktgrid: Produkt | Pris | Antal ====================== */

.product-header,
.product {
  display: grid;
  grid-template-columns: 1fr 110px 120px; /* namn | pris | antal */
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.product-header {
  font-weight: 600;
  font-size: 0.95rem;
  color: #5d6a7c;
  margin-top: 4px;
  margin-bottom: 6px;
}

.product-header .ph-price,
.product-header .ph-qty {
  text-align: right;
}

.col-price {
  text-align: right;
  padding-right: 4px;
}

/* === Blå + / − badges ======================================== */

.qty-box {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.qty-btn {
  background: #0070d9;
  color: #fff;
  border: none;
  padding: 4px 10px;
  font-size: 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transition: transform 0.05s ease, box-shadow 0.1s ease;
}

.qty-btn:hover {
  box-shadow: 0 3px 6px rgba(0,0,0,0.25);
}

.qty-btn:active {
  transform: scale(0.95);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.qty-val {
  min-width: 26px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
}

/* === Sammanfattning: fetare belopp ============================ */

.summary {
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: 8px;
  background: #f4f7fb;
  font-size: 0.95rem;
  color: #3a4a5f;
}

.summary strong.value,
.summary p strong {
  font-weight: 700;
  color: #000;
}

/* Historiktabell (om inte redan stylad) */
.history-section {
  margin-top: 18px;
  width: 100%;
}

.history-section-inner h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: #3a4a5f;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 6px;
}

.history-table th,
.history-table td {
  border: 1px solid #dde1ea;
  padding: 4px 6px;
  text-align: left;
}

.history-table th {
  background: #f4f7fb;
  font-weight: 600;
}

.history-table tbody tr:nth-child(even) {
  background: #fafbfe;
}
.qty-box {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.qty-val {
  min-width: 24px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
}

.qty-controls {
  display: flex;
  gap: 4px;
}

.qty-btn {
     background: #000000;
    color: #fff;
    border: none;
    padding: 4px 10px;
    font-size: 26px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    line-height: 1;
}

.qty-btn:active {
  transform: scale(0.95);
}
/* ===================== MOBIL LAYOUT ===================== */
@media (max-width: 600px) {

  .status-badge {
    left: 22px;
   
}

.message-text {
margin-top: -14px;
}

.checkout-wrapper {

    padding: 0px;
}

.status-box.traffic

 {
    background: #252525;
    display: flex;
    flex-direction: column;
    padding-top: 28px;
    max-height: 200px;

    margin-left: auto;
    padding-bottom: 24px;
    margin-right: auto;
}

.status-box.logo {
    background: #fff;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-right: auto;
padding-bottom:10px;
}

.logo-label {
  
    top: -40px;
}

}

/* ===== Order confirmation modal ===== */
.order-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  display:none;              /* <-- viktigt */
  z-index:10000;
  align-items:center;
  justify-content:center;
}

.order-modal.is-open{
  display:flex;              /* <-- visas bara när open */
}

.order-modal-box{
  background:#fff;
  border-radius:16px;
  padding:32px 24px 24px;
  max-width:420px;
  width:calc(100% - 32px);
  text-align:center;
  box-shadow:0 20px 50px rgba(0,0,0,.25);
}

.order-modal-box h2{ margin:0 0 12px; font-size:20px; font-weight:700; }
.order-modal-box p{ margin:0; font-size:15px; line-height:1.5; opacity:.9; }
.order-modal-footer{ margin-top:24px; display:flex; justify-content:center; }



/* FOOTER */
footer {
  background: #000;
  color: #fff;
  padding: 24px 16px;
  text-align: center;
  font-size: 14px;
}

/* Länkar i footern */
footer a {
  color: #fff;
  text-decoration: underline;
}

footer a:hover {
  opacity: 0.8;
}

/* Lite luft mellan rader */
footer p {
  margin: 6px 0;
}

/* Mindre, diskret företagsinfo */
.footer-details {
  margin-top: 12px;
  font-size: 13px;
  opacity: 0.85;
}

/* FOOTER */
footer {
  background: #000;
  color: #fff;
  padding: 24px 16px;
  text-align: center;
  font-size: 14px;
}

/* Länkar i footern */
footer a {
  color: #fff;
  text-decoration: underline;
}

footer a:hover {
  opacity: 0.8;
}



