/* ==========================================================================
   Checkout, pre-order and information dialogs.
   ========================================================================== */

.checkout-question {
  font-weight: 700;
  text-align: center;
  color: var(--dark);
  margin-bottom: 1rem;
}

.preorder-chip {
  margin-bottom: 1rem;
}

.saved-data {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: #f8fbf3;
  border: 1px solid #dcebc6;
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  color: #555;
  margin: 1rem 0;
}

.pickup-info {
  background: var(--light);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  margin-bottom: 1rem;
}

.locate-btn {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 0.4rem;
  border: 2px dashed var(--primary);
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.88rem;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: #f8fbf3;
  border: 1px solid #dcebc6;
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  font-size: 0.85rem;
  color: #555;
  margin: 1rem 0;
  cursor: pointer;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--primary);
}

.order-summary {
  background: var(--light);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.order-summary-title {
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.order-summary-zone {
  font-size: 0.85rem;
  color: #555;
  padding-bottom: 0.5rem;
}

.order-summary .summary-row.is-item {
  color: var(--text);
}

.order-summary .summary-divider {
  border-top: 1px solid #ddd;
  margin: 0.5rem 0;
}

.checkout-legal {
  font-size: 0.75rem;
  color: #888;
  text-align: center;
  margin-top: 0.6rem;
}

/* Success view */
.checkout-success {
  text-align: center;
  padding: 1rem 0;
}

.checkout-success-icon {
  font-size: 3rem;
}

.checkout-success h4 {
  font-size: 1.3rem;
  margin: 0.5rem 0 1rem;
}

.checkout-success dl {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  gap: 0.3rem 1rem;
  text-align: left;
  margin-bottom: 1.2rem;
}

.checkout-success dt {
  color: var(--muted);
}

.checkout-success dd {
  font-weight: 700;
}

/* Pre-order dialog */
.preorder-select {
  margin-top: 0.4rem;
}

/* My orders */
.history-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem;
  margin-bottom: 0.8rem;
}

.history-head {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
}

.history-meta {
  font-size: 0.78rem;
  color: #999;
  margin: 0.2rem 0 0.4rem;
}

.history-items {
  font-size: 0.85rem;
  color: #555;
}

.contact-dialog-body {
  text-align: center;
}

.contact-dialog-body p {
  margin-bottom: 0.6rem;
}

@media (max-width: 640px) {
  .checkout-submit {
    position: sticky;
    bottom: 0;
    padding: 1.1rem;
    font-size: 1.05rem;
    box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.15);
  }
}
