* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header actualizado con colores de Bullbenny y logo */
.header {
  background-color: #ffffff;
  color: #000000;
  padding: 2rem 0;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: 60px;
}

.back-button {
  color: #666666;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.back-button:hover {
  color: #000000;
}

.logo-container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.logo {
  height: 50px;
  width: auto;
 /* max-width: 200px;*/
}

.header-text {
  margin-left: auto;
  text-align: right;
  max-width: 300px;
}

.header-text h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #000000;
}

.header-text p {
  color: #666666;
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Progress Steps */
.progress-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.progress-steps {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.step {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  background-color: #f5f5f5;
  color: #999999;
  transition: all 0.3s ease;
}

.step.active {
  background-color: #000000;
  color: white;
}

.progress-line {
  width: 4rem;
  height: 2px;
  background-color: #f5f5f5;
  transition: all 0.3s ease;
}

.progress-line.active {
  background-color: #000000;
}

/* Cards */
.card {
  background: white;
  border-radius: 0.5rem;
  border: 1px solid #e5e5e5;
  margin-bottom: 2rem;
}

.centered-card {
  max-width: 28rem;
  margin: 0 auto 2rem;
}

.medium-card {
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.wide-card {
  max-width: 64rem;
  margin: 0 auto 2rem;
}

.card-header {
  padding: 1.5rem 1.5rem 0;
  text-align: center;
}

.card-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #000000;
}

.card-header p {
  color: #666666;
  font-size: 0.875rem;
}

.card-content {
  padding: 1.5rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #000000;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #cccccc;
  border-radius: 0.25rem;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #000000;
}

.form-group textarea {
  min-height: 6rem;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Radio Groups */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.75rem;
  border: 1px solid #e5e5e5;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
}

.radio-option:hover {
  background-color: #f9f9f9;
  border-color: #cccccc;
}

.radio-option input[type="radio"] {
  width: auto;
  margin: 0;
}

.radio-option input[type="radio"]:checked + span {
  font-weight: 500;
  color: #000000;
}

/* Address Display */
.address-display {
  background-color: #f9f9f9;
  padding: 1rem;
  border-radius: 0.25rem;
  margin-top: 1rem;
}

.new-address-form {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #e5e5e5;
  border-radius: 0.25rem;
  background-color: #fafafa;
}

/* Product List */
.product-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #e5e5e5;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
}

.product-item:hover {
  border-color: #cccccc;
}

.product-item.selected {
  border-color: #0b1220;
  background-color: #fff7ed; /* tono claro para destacar */
}

/* Contenedor de acciones dentro de la tarjeta del producto */
.product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-left: 1rem;
  min-width: 140px;
}

.product-actions .action-btn {
  width: 100%;
  padding: 0.5rem 0.75rem;
  text-align: center;
  /* Mantener tipografía del sitio */
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  /* Color por defecto: NEGRO */
  background: #000000;
  color: #ffffff;
  border-radius: 0.25rem;
  border: 1px solid rgba(255,255,255,0.06);
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.product-actions .action-btn:hover {
  filter: brightness(0.95);
}

.product-actions .action-btn.active-action {
  /* Seleccionado: mayor énfasis */
  background: #000000;
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(2,6,23,0.32);
  outline: 2px solid #ffd54f;
}

/* Ocultar botón contrario cuando se selecciona uno */
.hidden-action { display: none !important; }

/* Selected products list in return step */
.selected-products-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid #efefef;
  padding: 0.75rem;
  border-radius: 0.25rem;
}

/* Simple animation for step transitions */
.step-content {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.step-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Modal styles for confirmation */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal {
  background: #fff;
  padding: 1.25rem;
  border-radius: 0.5rem;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 10px 30px rgba(2,6,23,0.2);
  position: relative; /* allow absolute close button placement */
}

.modal h3 {
  margin-bottom: 0.5rem;
}

.modal .modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

/* modal close button */
.modal .modal-close {
  position: absolute;
  right: 12px;
  top: 8px;
  background: transparent;
  border: none;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: #222;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background-color 120ms ease;
  z-index: 3;
}

.modal .modal-close:hover {
  background: #f3f3f3;
}

/* per-product talles spinner & indicator */
/* per-product talles spinner & indicator removed */

/* small input for 'otro' motive */
.other-reason-small input, .product-reason-inline input[type="text"] {
  padding: 0.45rem;
  border-radius: 0.25rem;
  border: 1px solid #ddd;
  width: 100%;
}

.product-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
}

.product-image {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: cover;
  border-radius: 0.25rem;
}

/* Thumbnail used in details list (smaller) */
.product-thumb {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: cover;
  border-radius: 0.25rem;
}

/* Larger product image in list when needed - cap the max size */
.product-item .product-image-large {
  max-width: 6.5rem;
  max-height: 6.5rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.product-info {
  flex: 1;
}

.product-name {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.product-variant {
  font-size: 0.875rem;
  color: #666666;
  margin-bottom: 0.25rem;
}

.product-quantity {
  font-size: 0.875rem;
  color: #666666;
}

.product-price {
  font-weight: 600;
  color: #000000;
}

/* Botones actualizados con colores de Bullbenny */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.25rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background-color: #000000;
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background-color: #333333;
}

.btn-outline {
  background-color: transparent;
  color: #000000;
  border: 1px solid #cccccc;
}

.btn-outline:hover {
  background-color: #f9f9f9;
  border-color: #999999;
}

.btn-full {
  width: 100%;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.button-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
}

/* Step Content */
.step-content {
  display: none;
}

.step-content.active {
  display: block;
}

/* Confirmation */
.confirmation-content {
  text-align: center;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.confirmation-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #000000;
}

.confirmation-content p {
  color: #666666;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.confirmation-details {
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 0.25rem;
  margin-bottom: 2rem;
  text-align: left;
}

.confirmation-details p {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.confirmation-details strong {
  color: #000000;
}

/* Loading States */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Global loader overlay */
.loader-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  z-index: 99998;
}

.loader-panel {
  background: #ffffff;
  padding: 1.25rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 12px 40px rgba(2,6,23,0.25);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  min-width: 260px;
}

/* Circular spinner */
.loader-spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 6px solid #f1f1f1;
  border-top-color: #000000;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Progress bar */
.loader-progress {
  width: 100%;
  height: 10px;
  background: #f1f1f1;
  border-radius: 999px;
  overflow: hidden;
}

.loader-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #000000, #333333);
  border-radius: 999px;
  transition: width 300ms ease;
}

.loader-text {
  font-size: 0.95rem;
  color: #111;
}

/* Responsive */
/* Report link style */
.report-link {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-size: 14px;
  color: #666666;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
}

.report-link:hover {
  color: #000000;
}

/* Mini Footer */
.mini-footer {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  margin-top: 3rem;
  border-top: 1px solid #e5e5e5;
}

.mini-footer p {
  font-size: 0.813rem;
  color: #999999;
  margin: 0;
}

.mini-footer a {
  color: #666666;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.mini-footer a:hover {
  color: #000000;
}

@media (max-width: 768px) {
  .container {
    padding: 0 0.5rem;
  }

  .header {
    padding: 1.5rem 0;
  }

  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    position: relative;
    min-height: auto;
  }

  .back-button {
    position: static;
    align-self: flex-start;
    transform: none;
  }

  .logo-container {
    position: static;
    transform: none;
    order: 1;
  }

  .logo {
    height: 40px;
  }

  .header-text {
    margin-left: 0;
    text-align: center;
    max-width: none;
    order: 2;
  }

  .progress-steps {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .progress-line {
    width: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .button-group {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100%;
  }

  .product-item {
    flex-direction: column;
   /* align-items: flex-start; */
    gap: 0.75rem;
  }

  /*.product-item .product-checkbox {
    align-self: flex-start;
  }*/
}
