/* MercadilloGeek 3.9.3 · tarjetas del mercadillo más visuales y legibles */

.mg-card-readable {
  border: 2px solid #dce2f0;
  border-radius: 21px;
  box-shadow: 0 10px 28px rgba(19, 29, 65, .08);
}

.mg-card-readable:hover {
  border-color: #a9b7e7;
  box-shadow: 0 20px 46px rgba(19, 29, 65, .15);
}

.mg-card-readable .mg-visual {
  height: 235px;
}

.mg-card-info-readable {
  padding: 18px;
}

.mg-card-category-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.mg-card-category-row .mg-product-category {
  display: inline-flex !important;
  gap: 8px;
  align-items: center;
  max-width: calc(100% - 76px);
  padding: 6px 11px 6px 6px;
  border-radius: 13px;
  font-size: 13px !important;
  line-height: 1.2;
}

.mg-card-category-row .mg-product-category i {
  display: grid;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 4px 10px rgba(22, 32, 68, .1);
  color: currentColor;
  font-size: 19px;
  font-style: normal;
  font-weight: 950;
}

.mg-card-category-row .mg-product-category b {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mg-card-category-row time {
  flex: 0 0 auto;
  color: #69748b;
  font-size: 11px;
  font-weight: 750;
}

.mg-card-readable .mg-card-product-link {
  display: block;
}

.mg-card-readable .mg-card-product-link h3 {
  margin: 14px 0 6px;
  color: #10162a;
  font-size: 20px;
  line-height: 1.27;
  letter-spacing: -.025em;
}

.mg-card-readable .mg-card-price {
  display: block;
  color: #11182d;
  font-size: 27px;
  line-height: 1.15;
}

.mg-card-seller-panel {
  display: grid;
  gap: 11px;
  margin-top: 17px;
  padding: 14px;
  border: 1px solid #cdd8ef;
  border-radius: 17px;
  background:
    radial-gradient(circle at 100% 0, rgba(112, 73, 224, .12), transparent 40%),
    linear-gradient(145deg, #f8faff, #f1f5ff);
  box-shadow: inset 0 1px 0 #fff, 0 8px 18px rgba(35, 47, 93, .07);
}

.mg-card-seller-panel > header {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
}

.mg-card-seller-panel .mg-avatar-card-seller {
  width: 50px !important;
  height: 50px !important;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #6d73e8, 0 8px 18px rgba(44, 51, 129, .18);
  font-size: 14px !important;
}

.mg-card-seller-panel > header > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.mg-card-seller-panel > header small {
  color: #6c58bc;
  font: 900 10px/1.1 monospace;
  letter-spacing: .1em;
}

.mg-card-seller-panel > header a {
  min-width: 0;
}

.mg-card-seller-panel > header b {
  display: block;
  overflow: hidden;
  color: #131a31;
  font-size: 17px;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mg-card-seller-panel > header b span {
  display: inline-grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: #18a667;
  color: #fff;
  font-size: 10px;
  vertical-align: 1px;
}

.mg-card-seller-panel > header em {
  overflow: hidden;
  color: #5d6981;
  font-family: inherit;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mg-card-reputation > a {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 9px;
  border: 1px solid #e1d7f8;
  border-radius: 12px;
  background: #fff;
}

.mg-card-reputation > a > i {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #7046db, #bc3cc3);
  color: #fff06a;
  font-size: 21px;
  font-style: normal;
}

.mg-card-reputation > a > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.mg-card-reputation b {
  color: #171d35;
  font-size: 14px;
}

.mg-card-reputation small {
  color: #626d84;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.mg-card-seller-panel > .mg-card-trust-badges {
  display: flex;
  gap: 7px;
  align-items: stretch;
  margin: 0;
}

.mg-card-seller-panel .mg-cpu-compact,
.mg-card-seller-panel .mg-power-compact {
  min-height: 43px;
  padding: 7px 9px;
}

.mg-card-seller-panel .mg-cpu-compact b,
.mg-card-seller-panel .mg-power-compact b {
  font-size: 12px;
}

.mg-card-seller-panel > .mg-sponsor-count {
  display: flex;
  width: 100%;
  min-height: 42px;
  justify-content: center;
  margin: 0;
  padding: 9px 11px;
  border: 2px solid #82d494;
  border-radius: 12px;
  background: linear-gradient(135deg, #eaffee, #f7fff8);
  color: #205b30;
  font-size: 13px;
}

.mg-card-seller-panel > .mg-sponsor-count i {
  font-size: 21px;
}

.mg-card-seller-panel .mg-sponsor-copy {
  display: grid;
  gap: 1px;
  text-align: left;
}

.mg-card-seller-panel .mg-sponsor-copy small {
  color: #2e7a40;
  font: 900 9px/1.2 monospace;
  letter-spacing: .08em;
}

.mg-card-seller-panel > .mg-sponsor-count b {
  color: #174b25;
  font-size: 17px;
  line-height: 1.15;
}

/* Las búsquedas utilizan la misma información completa y legible. */
.mg-search-grid .mg-card-readable {
  width: 100%;
}

.mg-search-grid .mg-card-info-readable {
  padding: 14px;
}

.mg-search-grid .mg-card-category-row .mg-product-category {
  display: inline-flex !important;
  max-width: calc(100% - 66px);
  font-size: 12px !important;
}

.mg-search-grid .mg-card-seller-panel {
  display: grid !important;
}

@media (max-width: 900px) {
  .mg-card-readable .mg-visual {
    height: 225px;
  }
}

@media (max-width: 620px) {
  .mg-card-info-readable {
    padding: 15px;
  }

  .mg-card-readable .mg-visual {
    height: 210px;
  }

  .mg-card-readable .mg-card-product-link h3 {
    font-size: 19px;
  }

  .mg-card-readable .mg-card-price {
    font-size: 25px;
  }

  .mg-card-seller-panel {
    padding: 12px;
  }

  .mg-search-grid {
    grid-template-columns: 1fr !important;
  }

  .mg-search-grid .mg-card {
    display: block;
  }

  .mg-search-grid .mg-visual {
    height: 210px;
  }

  .mg-search-grid .mg-card-info-readable {
    padding: 15px;
  }

  .mg-search-grid .mg-card-category-row time,
  .mg-search-grid .mg-card-seller-panel {
    display: grid !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mg-card-readable {
    transition: none;
  }
}
