/* ============================================================
   Cart / Warenkorb — hardware template 2026
   ============================================================ */

/* ── Content area ──────────────────────────────────────────── */
#body-content-middle4,
#body-content-middle {
  padding: 0 28px 40px;
}
#body-content-middle4 .headlinebody,
#body-content-middle .headlinebody {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-1, #0f172a);
  margin-bottom: 20px;
}

/* Cart intro line */
.cart-intro {
  font-weight: 600;
  color: var(--text-1, #0f172a);
  margin: 0 0 16px;
}

/* ── Payment / Shipping info boxes ─────────────────────────── */
.cart-info-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 20px 0 24px;
}
.cart-info-box {
  flex: 1 1 220px;
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: var(--radius, 10px);
  overflow: hidden;
  background: var(--surface, #fff);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,.08));
}
.cart-info-box-header {
  background: #111;
  color: rgba(255,255,255,.85);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 8px 14px;
}
.cart-info-box-body {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-2, #475569);
  line-height: 1.6;
}
.cart-info-box-body a {
  color: #111;
  font-weight: 500;
}
.cart-info-box-body a:hover {
  color: #333;
}

/* ── Cost summary ───────────────────────────────────────────── */
.cart-summary-wrap {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0;
  margin: 0 0 24px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  font-size: 13px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}
.cart-summary-row:last-child {
  border-bottom: none;
  background: #111;
  padding: 13px 18px;
}
.cart-summary-row .label {
  flex: 1;
  color: #0f172a;
  background: transparent;
}
.cart-summary-row:last-child .label {
  color: rgba(255,255,255,.80);
  font-weight: 600;
  font-size: 14px;
}
.cart-summary-row .value {
  font-weight: 500;
  text-align: right;
  color: #0f172a;
  background: transparent;
  min-width: 120px;
}
.cart-summary-row:last-child .value {
  font-size: 16px;
  font-weight: 800;
  color: var(--price-color);
}
.cart-summary-row .value a {
  color: var(--accent);
  font-size: 11px;
  font-weight: 400;
}
.cart-summary-row .value a:hover {
  color: #16a34a;
  text-decoration: underline;
}

/* ── Checkout button wrapper ───────────────────────────────── */
.cart-checkout-wrap {
  margin: 8px 0 16px;
  display: flex;
  justify-content: flex-end;
}
/* Style the generated <a> tag (which contains <b><font> legacy markup) */
.cart-checkout-wrap > a,
.cart-checkout-wrap a[href] {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: #111 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 13px 30px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  font-family: 'Inter', sans-serif !important;
  text-decoration: none !important;
  letter-spacing: .01em !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.15) !important;
  transition: all .25s ease !important;
  position: relative !important;
  overflow: hidden !important;
}
.cart-checkout-wrap > a::before,
.cart-checkout-wrap a[href]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.10), transparent);
  transform: translateX(-100%);
  transition: .55s;
}
.cart-checkout-wrap > a:hover,
.cart-checkout-wrap a[href]:hover {
  background: #333 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.22) !important;
  color: #fff !important;
}
.cart-checkout-wrap > a:hover::before,
.cart-checkout-wrap a[href]:hover::before {
  transform: translateX(100%);
}
/* Strip old <font> / <b> styling inside the link */
.cart-checkout-wrap a font,
.cart-checkout-wrap a b {
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
}

/* ── Remark / Bemerkung textarea ───────────────────────────── */
#body-content-middle4 h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1, #0f172a);
  margin-bottom: 6px;
}

/* ── PayPal / Amazon payment buttons area ──────────────────── */
.cart-payment-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 8px 0 16px;
}

/* ── Order items table (bestellung.html) ───────────────────── */
.order-items-wrap {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.order-items-head {
  display: flex;
  align-items: center;
  background: #111;
  padding: 10px 16px;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
}
.order-items-row {
  display: flex;
  align-items: center;
  padding: 11px 16px;
  gap: 8px;
  font-size: 13px;
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
  color: #475569;
}
.order-items-row:last-child { border-bottom: none; }
.order-items-row:hover { background: #f8fafc; }
.oi-name  { flex: 1; color: #0f172a; font-weight: 500; }
.oi-price { width: 110px; text-align: right; }
.oi-qty   { width: 60px;  text-align: center; color: #111; font-weight: 600; }
.oi-total { width: 110px; text-align: right; font-weight: 600; color: #0f172a; }

/* ── Order confirmation (sendbestell.html) ─────────────────── */
.order-confirm-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px 28px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.order-confirm-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(34,197,94,.35);
}
.order-confirm-content {
  flex: 1;
  font-size: 14px;
  color: #475569;
  line-height: 1.75;
}
.order-confirm-content b,
.order-confirm-content strong {
  color: #0f172a;
}
.order-confirm-btn {
  display: inline-flex !important;
  align-items: center !important;
  background: #111 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 12px 32px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  font-family: 'Inter', sans-serif !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.15) !important;
  transition: all .25s ease !important;
}
.order-confirm-btn:hover {
  background: #333 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.22) !important;
  color: #fff !important;
}

/* ── Bestell-Abschicken button ─────────────────────────────── */
/* ── Cart items table (.basket) ────────────────────────────── */
table.basket {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 16px;
}
table.basket .basket_head th {
  background: #111;
  color: rgba(255,255,255,.75);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 10px 14px;
  border: none;
}
table.basket .basket_item td {
  padding: 12px 14px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  color: #475569;
  background: #fff;
}
table.basket .basket_item:last-child td { border-bottom: none; }
table.basket .basket_item:hover td { background: #f8fafc; }
.basket_item_title a {
  color: #0f172a;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.basket_item_title a:hover { color: #333; text-decoration: underline; }
.basket_item_price,
.basket_item_unit-price { font-weight: 600; color: #0f172a; }

/* ── Cart action buttons (+/−/delete) ──────────────────────── */
.btn-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, border-color .2s;
  margin: 2px 1px;
}
.btn-cart:hover {
  background: #e2e8f0;
  color: #0f172a;
  text-decoration: none;
}
.btn-cart-delete {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #e11d48;
}
.btn-cart-delete:hover {
  background: #ffe4e6;
  color: #e11d48;
}

/* ── Bestell-Abschicken button ─────────────────────────────── */
.cart-checkout-wrap input[type="submit"],
.cart-checkout-wrap input[type="button"],
.cart-checkout-wrap button[type="submit"] {
  background: #111 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 13px 36px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  font-family: 'Inter', sans-serif !important;
  letter-spacing: .01em !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.15) !important;
  transition: all .25s ease !important;
  height: auto !important;
  width: auto !important;
}
