.withdrawal-form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 0 2rem;
}

.withdrawal-header {
  margin-bottom: 2rem;
}

.withdrawal-intro {
  color: #555;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* Sekcje */
.withdrawal-section {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  background: #fff;
}

.withdrawal-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  padding: 0 0.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.withdrawal-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #007bff;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Produkty */
.withdrawal-products-list {
  margin: 0.75rem 0;
}

.withdrawal-product-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.withdrawal-product-item:last-child {
  border-bottom: none;
}

.withdrawal-product-item label {
  font-weight: normal;
  cursor: pointer;
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.withdrawal-product-item .product-info {
  font-size: 0.9rem;
  color: #333;
}

.withdrawal-product-item .product-sku {
  font-size: 0.8rem;
  color: #888;
}

.withdrawal-hygiene-note {
  font-size: 0.85rem;
  margin-top: 1rem;
}

.withdrawal-product-qty-wrap {
  margin-top: 0.4rem;
  margin-left: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
}

.withdrawal-qty-label {
  font-weight: normal;
  margin: 0;
  white-space: nowrap;
}

.withdrawal-product-qty {
  width: 70px !important;
  padding: 0.2rem 0.4rem;
  height: auto;
}

.withdrawal-qty-max {
  font-size: 0.8rem;
}

/* Oświadczenie */
.withdrawal-declaration-text {
  font-style: italic;
  color: #444;
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  border-left: 4px solid #007bff;
  border-radius: 0 4px 4px 0;
  margin: 0;
}

.withdrawal-payment-info {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Submit */
.withdrawal-submit-row {
  margin-top: 1.5rem;
  text-align: center;
}

#withdrawal-submit-btn {
  min-width: 240px;
}

/* Alerty */
#withdrawal-alerts .alert {
  margin-bottom: 1rem;
}

.withdrawal-success {
  margin-top: 1rem;
}

.withdrawal-success .alert {
  font-size: 1rem;
}

.withdrawal-success .alert p {
  margin: 0.5rem 0 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Stany ładowania */
.order-lookup-msg {
  display: block;
  min-height: 1.2em;
  margin-top: 0.25rem;
}

.order-lookup-msg.success {
  color: #28a745;
}

.order-lookup-msg.error {
  color: #dc3545;
}

/* Wymagane */
.required {
  color: #dc3545;
  margin-left: 2px;
}

/* Custom radio/checkbox styling (PS compatible) */
.withdrawal-scope-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ===== Podgląd przed wysłaniem ===== */
#withdrawal-preview {
  margin-top: 1rem;
}

.withdrawal-preview-header {
  margin-bottom: 1.5rem;
}

.withdrawal-preview-header h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.withdrawal-preview-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.withdrawal-preview-table th,
.withdrawal-preview-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: top;
  text-align: left;
}

.withdrawal-preview-table th {
  color: #666;
  background: #f8f9fa;
}

.withdrawal-preview-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

@media (max-width: 576px) {
  .withdrawal-section {
    padding: 1rem;
  }

  .withdrawal-scope-group {
    flex-direction: column;
    gap: 0.5rem;
  }

  .withdrawal-preview-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
