/* TELEXPRESS 2.11.9 · BUSCADOR, PWA, CHECKOUT SIN SEDE Y RESUMEN */

body.marketplace-general .marketplace-main-search {
  width: 100%;
  margin: 14px auto 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
body.marketplace-general .marketplace-main-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: min(100%, 860px);
  margin: 0 auto;
  border: 1px solid #cbdbe4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(3,4,94,.08);
  overflow: hidden;
}
body.marketplace-general .marketplace-main-search-box > i {
  flex: 0 0 auto;
  margin-left: 16px;
  color: var(--brand-secondary);
  font-size: 1rem;
}
body.marketplace-general #marketplaceMainSearch {
  min-width: 0;
  width: 100%;
  height: 52px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 46px 0 12px;
  color: #111827;
  font: inherit;
  font-weight: 700;
}
body.marketplace-general #marketplaceMainSearch::placeholder { color: #7b8b98; font-weight: 600; }
body.marketplace-general #marketplaceSearchClear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #eef6fa;
  color: var(--brand-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
}
body.marketplace-general #marketplaceSearchClear.hidden { display: none !important; }
body.marketplace-general .marketplace-search-empty {
  width: 100%;
  margin: 12px 0 18px;
  padding: 22px 16px;
  border: 1px dashed #b9ccd7;
  border-radius: 16px;
  background: #fff;
  color: #526777;
  text-align: center;
  font-weight: 700;
}

/* El botón se mantiene arriba, al lado de la cuenta. Solo se oculta si la PWA está instalada. */
body.marketplace-general .customer-header-actions { display: flex !important; align-items: center !important; gap: 9px !important; }
body.marketplace-general #installBtn:not(.hidden) { display: inline-flex !important; align-items: center; justify-content: center; gap: 7px; }
body.marketplace-general #installBtn { white-space: nowrap; }

/* Los datos de sede continúan en inputs internos, pero la card no vuelve a mostrarse. */
body.marketplace-general .marketplace-checkout-store-support,
body.marketplace-general #storeHelp,
body.marketplace-general #storeGrid { display: none !important; }

/* Separación leve entre filas y Total Factura al final. */
body.marketplace-general #checkoutModal #checkoutSummary {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  overflow: visible !important;
}
body.marketplace-general #checkoutModal #checkoutSummary > .checkout-summary-row {
  order: 0;
  min-height: 50px !important;
  padding: 10px 14px !important;
  gap: 12px !important;
  align-items: center !important;
  border-bottom: 1px solid #edf1f4 !important;
}
body.marketplace-general #checkoutModal #checkoutSummary > .checkout-summary-row.invoice-total {
  order: 999 !important;
  min-height: 54px !important;
  padding: 11px 14px !important;
  margin: 0 !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
}
body.marketplace-general #checkoutModal .checkout-summary-label { line-height: 1.28 !important; }
body.marketplace-general #checkoutModal .checkout-summary-value { gap: 1px !important; line-height: 1.24 !important; }
body.marketplace-general #checkoutModal .checkout-summary-value strong { line-height: 1.2 !important; }
body.marketplace-general #checkoutModal .checkout-summary-value small { margin-top: 3px !important; line-height: 1.28 !important; }

body.marketplace-general .pwa-help-list { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
body.marketplace-general .pwa-help-list li { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border-radius: 12px; background: #f4f8fb; }
body.marketplace-general .pwa-help-list i { color: var(--brand-secondary); margin-top: 2px; }

@media (max-width: 620px) {
  body.marketplace-general #installBtn span { display: none; }
  body.marketplace-general #installBtn { width: 42px; height: 42px; padding: 0 !important; border-radius: 50% !important; }
  body.marketplace-general .marketplace-main-search-box { border-radius: 14px; }
  body.marketplace-general #marketplaceMainSearch { height: 49px; font-size: .88rem; }
  body.marketplace-general #checkoutModal #checkoutSummary > .checkout-summary-row { min-height: 48px !important; padding: 9px 11px !important; }
  body.marketplace-general #checkoutModal #checkoutSummary > .checkout-summary-row.invoice-total { min-height: 52px !important; padding: 10px 11px !important; }
}
