/* ==========================================================================
   xsmart.cz — Guest Tracking, Registration, Order Confirmation, Order Detail
   Font: Satoshi | Colors: Blue #2563eb, Orange #f97316, Green #16a34a, Dark #0f172a
   ========================================================================== */

/* ---------- Shared card layout ---------- */
.xs-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(15,23,42,.06), 0 4px 24px rgba(15,23,42,.06);
  padding: 40px 36px;
  margin: 40px auto;
  width: 100%;
}
.xs-card--sm { max-width: 500px; }
.xs-card--md { max-width: 520px; }
.xs-card--lg { max-width: 780px; }
.xs-card--xl { max-width: 900px; }

.xs-card__header {
  text-align: center;
  margin-bottom: 32px;
}
.xs-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  margin-bottom: 16px;
}
.xs-card__icon--blue { background: #eff6ff; color: #2563eb; }
.xs-card__icon--green { background: #f0fdf4; color: #16a34a; }
.xs-card__icon--orange { background: #fff7ed; color: #f97316; }

.xs-card__icon svg { width: 28px; height: 28px; }

.xs-card__title {
  font-family: 'Satoshi', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}
.xs-card__subtitle {
  font-family: 'Satoshi', sans-serif;
  font-size: 15px;
  color: #64748b;
  margin: 0;
}

/* ---------- Form inputs ---------- */
.xs-form-group { margin-bottom: 20px; }
.xs-form-group label {
  display: block;
  font-family: 'Satoshi', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}
.xs-form-group label .required-mark {
  color: #ef4444;
  margin-left: 2px;
}
.xs-form-group input[type="text"],
.xs-form-group input[type="email"],
.xs-form-group input[type="password"],
.xs-form-group select {
  width: 100%;
  padding: 12px 14px;
  font-family: 'Satoshi', sans-serif;
  font-size: 15px;
  color: #0f172a;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.xs-form-group input:focus,
.xs-form-group select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
  background: #fff;
}
.xs-form-group .form-hint {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 4px;
}

/* ---------- Buttons ---------- */
.xs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Satoshi', sans-serif;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  padding: 14px 28px;
  transition: background .2s, transform .1s, box-shadow .2s;
  text-decoration: none;
}
.xs-btn:active { transform: scale(.98); }
.xs-btn--orange {
  background: #f97316;
  color: #fff;
  box-shadow: 0 2px 8px rgba(249,115,22,.25);
}
.xs-btn--orange:hover { background: #ea580c; }
.xs-btn--blue {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,.25);
}
.xs-btn--blue:hover { background: #1d4ed8; }
.xs-btn--outline {
  background: transparent;
  color: #2563eb;
  border: 1.5px solid #2563eb;
  box-shadow: none;
}
.xs-btn--outline:hover { background: #eff6ff; }
.xs-btn--full { width: 100%; }

/* ---------- Trust badge ---------- */
.xs-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  font-family: 'Satoshi', sans-serif;
  font-size: 13px;
  color: #94a3b8;
}
.xs-trust svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- Help text ---------- */
.xs-help {
  text-align: center;
  font-family: 'Satoshi', sans-serif;
  font-size: 13px;
  color: #94a3b8;
  margin-top: 16px;
}
.xs-help svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

/* ---------- Guest Tracking page ---------- */
.xs-guest-tracking .xs-notifications {
  margin-bottom: 20px;
}

/* ---------- Registration page ---------- */
.xs-register-wrap {
  max-width: 520px;
  margin: 0 auto;
}
.xs-benefits {
  background: #f8fafc;
  border-radius: 12px;
  padding: 24px;
  margin-top: 32px;
}
.xs-benefits__title {
  font-family: 'Satoshi', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 16px;
}
.xs-benefits__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.xs-benefits__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Satoshi', sans-serif;
  font-size: 14px;
  color: #334155;
}
.xs-benefits__list li svg {
  width: 20px; height: 20px;
  color: #16a34a;
  flex-shrink: 0;
}
.xs-register-login-link {
  text-align: center;
  font-family: 'Satoshi', sans-serif;
  font-size: 14px;
  color: #64748b;
  margin-top: 20px;
}
.xs-register-login-link a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}
.xs-register-login-link a:hover { text-decoration: underline; }

/* Override PS customer-form inside our card */
.xs-register-card #customer-form .form-group {
  margin-bottom: 18px;
}
.xs-register-card #customer-form label {
  font-family: 'Satoshi', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}
.xs-register-card #customer-form .form-control {
  padding: 12px 14px;
  font-family: 'Satoshi', sans-serif;
  font-size: 15px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.xs-register-card #customer-form .form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
  background: #fff;
}
.xs-register-card #customer-form .form-footer {
  margin-top: 8px;
}
.xs-register-card #customer-form .form-control-submit,
.xs-register-card #customer-form button[type="submit"] {
  width: 100%;
  padding: 14px 28px;
  font-family: 'Satoshi', sans-serif;
  font-size: 16px;
  font-weight: 600;
  background: #f97316;
  color: #fff;
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(249,115,22,.25);
  cursor: pointer;
  transition: background .2s;
  float: none !important;
}
.xs-register-card #customer-form .form-control-submit:hover,
.xs-register-card #customer-form button[type="submit"]:hover {
  background: #ea580c;
}
/* GDPR checkbox styling */
.xs-register-card .custom-checkbox {
  margin-top: 8px;
}
.xs-register-card .custom-checkbox label {
  font-weight: 400;
  font-size: 13px;
  color: #64748b;
}
/* Password strength */
.xs-register-card .field-password-policy .password-strength-feedback {
  margin-top: 6px;
}
.xs-register-card .field-password-policy .progress {
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
}

/* ---------- Order confirmation page ---------- */
.xs-confirmation { text-align: center; }

.xs-confirmation__ref {
  display: inline-block;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 20px;
  font-family: 'Satoshi', monospace;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 1px;
  margin: 8px 0 24px;
}

.xs-steps {
  display: flex;
  gap: 0;
  margin: 32px 0 28px;
  padding: 0;
  list-style: none;
  justify-content: center;
}
.xs-steps__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 200px;
  position: relative;
  padding: 0 12px;
}
.xs-steps__item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(50% + 24px);
  width: calc(100% - 48px);
  height: 2px;
  background: #e2e8f0;
}
.xs-steps__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  font-family: 'Satoshi', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.xs-steps__label {
  font-family: 'Satoshi', sans-serif;
  font-size: 13px;
  color: #64748b;
  text-align: center;
  line-height: 1.3;
}

.xs-confirmation__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* Order summary inside confirmation */
.xs-order-summary {
  text-align: left;
  margin-top: 28px;
  border-top: 1px solid #e2e8f0;
  padding-top: 24px;
}
.xs-order-summary h3 {
  font-family: 'Satoshi', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px;
}

/* Keep PS table styled */
.xs-confirmation .table,
.xs-order-detail .table {
  font-family: 'Satoshi', sans-serif;
  font-size: 14px;
  border-radius: 10px;
  overflow: hidden;
}

/* ---------- Order Detail page ---------- */
.xs-order-detail .xs-card {
  padding: 32px;
}

/* Status badge */
.xs-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: 'Satoshi', sans-serif;
  font-size: 13px;
  font-weight: 600;
}
.xs-status-badge--processing { background: #fef3c7; color: #92400e; }
.xs-status-badge--shipped { background: #dbeafe; color: #1e40af; }
.xs-status-badge--delivered { background: #dcfce7; color: #166534; }

/* Order header */
.xs-order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}
.xs-order-header__ref {
  font-family: 'Satoshi', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}
.xs-order-header__date {
  font-family: 'Satoshi', sans-serif;
  font-size: 14px;
  color: #64748b;
}

/* Timeline / progress bar */
.xs-timeline {
  display: flex;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 24px 0;
  position: relative;
}
.xs-timeline::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 3px;
  background: #e2e8f0;
  border-radius: 2px;
}
.xs-timeline__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.xs-timeline__dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #e2e8f0;
  border: 3px solid #fff;
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
}
.xs-timeline__item--done .xs-timeline__dot {
  background: #16a34a;
}
.xs-timeline__item--current .xs-timeline__dot {
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37,99,235,.2);
}
.xs-timeline__text {
  font-family: 'Satoshi', sans-serif;
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
}
.xs-timeline__item--done .xs-timeline__text,
.xs-timeline__item--current .xs-timeline__text {
  color: #334155;
  font-weight: 600;
}

/* Order detail info blocks */
.xs-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
.xs-detail-block {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
}
.xs-detail-block h4 {
  font-family: 'Satoshi', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px;
}
.xs-detail-block address,
.xs-detail-block p,
.xs-detail-block ul {
  font-family: 'Satoshi', sans-serif;
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  font-style: normal;
  margin: 0;
}
.xs-detail-block ul {
  list-style: none;
  padding: 0;
}

/* Order history table */
.xs-order-detail .xs-history-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Satoshi', sans-serif;
  font-size: 14px;
  margin-top: 20px;
}
.xs-order-detail .xs-history-table th {
  text-align: left;
  padding: 10px 14px;
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid #e2e8f0;
}
.xs-order-detail .xs-history-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

/* Product table in order detail */
.xs-order-detail #order-products {
  font-family: 'Satoshi', sans-serif;
  font-size: 14px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.xs-order-detail #order-products thead th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
}
.xs-order-detail #order-products td {
  padding: 14px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
}
.xs-order-detail #order-products a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}
.xs-order-detail #order-products a:hover { text-decoration: underline; }
.xs-order-detail #order-products tfoot td {
  font-weight: 600;
}

/* Reorder button */
.xs-btn--reorder {
  background: #2563eb;
  color: #fff;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 8px;
}
.xs-btn--reorder:hover { background: #1d4ed8; }

/* Shipping info */
.xs-order-detail .xs-shipping-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Satoshi', sans-serif;
  font-size: 14px;
  margin-top: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}
.xs-order-detail .xs-shipping-table th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}
.xs-order-detail .xs-shipping-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
}

/* Follow up link */
.xs-follow-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 20px;
  font-family: 'Satoshi', sans-serif;
  font-size: 14px;
}
.xs-follow-link a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}
.xs-follow-link a:hover { text-decoration: underline; }

/* Messages section */
.xs-order-detail .xs-messages-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

/* ---------- Confirmation hooks ---------- */
.xs-confirmation-hooks {
  margin-top: 24px;
  text-align: left;
}
.xs-confirmation-hooks .card {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: none;
}

/* Payment return */
.xs-payment-return {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  text-align: left;
  font-family: 'Satoshi', sans-serif;
  font-size: 14px;
  color: #334155;
}

/* Account transform block */
.xs-account-transform {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .xs-card {
    padding: 24px 20px;
    margin: 20px auto;
    border-radius: 12px;
  }
  .xs-card__title { font-size: 22px; }

  .xs-steps { flex-direction: column; align-items: flex-start; gap: 16px; }
  .xs-steps__item { flex-direction: row; gap: 12px; max-width: none; padding: 0; }
  .xs-steps__item:not(:last-child)::after { display: none; }
  .xs-steps__num { margin-bottom: 0; min-width: 40px; }
  .xs-steps__label { text-align: left; }

  .xs-detail-grid { grid-template-columns: 1fr; }

  .xs-confirmation__actions { flex-direction: column; }
  .xs-confirmation__actions .xs-btn { width: 100%; }

  .xs-order-header { flex-direction: column; align-items: flex-start; }

  .xs-timeline { flex-direction: column; align-items: flex-start; gap: 12px; }
  .xs-timeline::before { display: none; }
  .xs-timeline__item { flex-direction: row; gap: 10px; }
  .xs-timeline__dot { margin-bottom: 0; }
}
