/* Flexlux Checkout Overlay */
.fl-checkout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.fl-checkout-overlay.open {
  opacity: 1;
}

.fl-checkout-modal {
  background: #fff;
  max-width: 520px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 8px;
  padding: 32px;
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}

.fl-checkout-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  line-height: 1;
  padding: 4px 8px;
}
.fl-checkout-close:hover { color: #000; }

.fl-checkout-modal h2 {
  margin: 0 0 20px;
  font-size: 1.3rem;
  font-weight: 600;
  color: #222;
}

/* Summary items */
.fl-checkout-summary {
  margin-bottom: 20px;
}
.fl-checkout-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  align-items: flex-start;
}
.fl-checkout-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  background: #f5f5f5;
  flex-shrink: 0;
}
.fl-checkout-item-info {
  flex: 1;
  min-width: 0;
}
.fl-checkout-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 3px;
  color: #222;
}
.fl-checkout-item-details {
  color: #666;
  font-size: 0.8rem;
  line-height: 1.4;
}
.fl-checkout-item-price {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  color: #222;
}

/* Shipping section */
.fl-checkout-shipping {
  margin-bottom: 16px;
}
.fl-checkout-shipping h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: #222;
}
.fl-country-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
  background: #fff;
  margin-bottom: 16px;
  color: #333;
}
.fl-shipping-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.fl-method-card {
  border: 2px solid #ddd;
  border-radius: 6px;
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.2s, background 0.2s;
}
.fl-method-card:hover {
  border-color: #999;
}
.fl-method-card.active {
  border-color: #333;
  background: #f9f9f9;
}
.fl-method-card-name {
  font-weight: 500;
  font-size: 0.9rem;
}
.fl-method-card-price {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Email / PLZ */
.fl-checkout-email-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.fl-checkout-email-row input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #333;
}
.fl-checkout-email-row input:focus {
  outline: none;
  border-color: #999;
}

/* Totals */
.fl-checkout-total {
  background: #f8f8f8;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 20px;
}
.fl-checkout-total-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 0.9rem;
  color: #444;
}
.fl-checkout-total-row.total {
  border-top: 1px solid #ddd;
  margin-top: 8px;
  padding-top: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #222;
}

/* Order button */
.fl-btn-order {
  width: 100%;
  padding: 14px;
  background: #0d8756;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}
.fl-btn-order:hover { background: #0a6e46; }
.fl-btn-order:disabled { background: #999; cursor: not-allowed; }
.fl-btn-order.is-email { background: #555; }
.fl-btn-order.is-email:hover { background: #333; }

/* Loading */
.fl-checkout-loading {
  text-align: center;
  padding: 30px;
}
.fl-checkout-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #eee;
  border-top: 3px solid #333;
  border-radius: 50%;
  animation: fl-spin 0.8s linear infinite;
  margin: 0 auto 12px;
}
@keyframes fl-spin { to { transform: rotate(360deg); } }
.fl-checkout-loading p {
  color: #666;
  font-size: 0.9rem;
}

/* Error */
.fl-checkout-error {
  background: #fff3f3;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  padding: 12px;
  margin-top: 12px;
  font-size: 0.85rem;
}

/* Cart drawer order button */
.cart-order-btn {
  width: 100%;
  padding: 12px;
  background: #0d8756;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  transition: background 0.2s;
}
.cart-order-btn:hover { background: #0a6e46; }

/* Responsive */
@media (max-width: 600px) {
  .fl-checkout-modal { padding: 24px 20px; }
  .fl-checkout-email-row { flex-direction: column; }
  .fl-checkout-item img { width: 56px; height: 56px; }
}
