/* MercadilloGeek 3.9 · compra directa, ofertas limitadas y Quiénes somos legible */

.mg-detail-copy {
  display: flex;
  flex-direction: column;
}

.mg-detail-copy > .mg-order-box {
  order: 90;
}

.mg-detail-copy > .mg-offer-box {
  order: 91;
}

.mg-detail-copy > .mg-delete {
  order: 92;
}

.mg-buy-now-box {
  margin: 22px 0 10px;
  padding: 18px;
  border: 2px solid #10a86f;
  border-radius: 20px;
  background: linear-gradient(145deg, #f1fff8, #ffffff);
  box-shadow: 0 12px 32px rgba(8, 122, 79, .13);
}

.mg-buy-now-box form {
  gap: 15px;
}

.mg-buy-now-head,
.mg-buy-now-guest {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mg-buy-now-head > div,
.mg-buy-now-guest > div {
  min-width: 0;
  flex: 1;
}

.mg-buy-now-head small,
.mg-buy-now-guest small {
  display: block;
  margin-bottom: 2px;
  color: #08794f;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .11em;
}

.mg-buy-now-head h3,
.mg-buy-now-guest h3 {
  margin: 0;
  color: #10241d;
  font-size: 25px;
  line-height: 1.1;
}

.mg-buy-now-head p,
.mg-buy-now-guest p {
  margin: 5px 0 0 !important;
  color: #405d51 !important;
  font-size: 14px !important;
  line-height: 1.5;
}

.mg-buy-now-head p strong {
  color: #08794f;
  font-size: 16px;
}

.mg-buy-now-icon {
  display: grid;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: linear-gradient(135deg, #16c77f, #087b57);
  color: #fff;
  font-size: 27px;
  box-shadow: 0 0 0 5px rgba(22, 199, 127, .16), 0 10px 24px rgba(5, 117, 76, .25);
  animation: mg-buy-pulse 1.8s ease-in-out infinite;
}

.mg-buy-now-box fieldset {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 9px;
}

.mg-buy-now-box legend,
.mg-buy-now-box form > label:not(.mg-order-consent) {
  color: #1f352d;
  font-size: 13px;
}

.mg-buy-now-box fieldset label {
  background: #fff;
  color: #233b33;
  font-size: 13px;
  font-weight: 800;
}

.mg-buy-now-box textarea {
  min-height: 76px;
  background: #fff;
  color: #14251f;
  font-size: 14px;
}

.mg-buy-now-box .mg-order-consent {
  color: #3f574e;
  font-size: 12px;
}

.mg-buy-now-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 10px 18px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, #0da86d, #066747);
  color: #fff;
  box-shadow: 0 12px 26px rgba(4, 108, 70, .26);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.mg-buy-now-submit:hover,
.mg-buy-now-submit:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(4, 108, 70, .33);
}

.mg-buy-now-submit > span:first-child {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  font-size: 22px;
}

.mg-buy-now-submit > span:last-child {
  display: grid;
  text-align: left;
}

.mg-buy-now-submit b {
  font-size: 19px;
  letter-spacing: .035em;
}

.mg-buy-now-submit small {
  color: #d8ffec;
  font-size: 12px;
}

.mg-buy-now-note {
  margin: -4px 0 0 !important;
  color: #587168 !important;
  font-size: 11px !important;
  line-height: 1.45;
  text-align: center;
}

.mg-buy-now-login {
  flex: 0 0 auto;
  padding: 11px 14px;
  border-radius: 11px;
  background: #08794f;
  color: #fff !important;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.mg-offer-box {
  margin: 10px 0 18px;
}

.mg-offer-limit {
  display: block;
  margin-top: 7px;
  color: #4d5873 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

.mg-offer-limit b {
  color: #5730b8;
}

.mg-offer-inline-error {
  display: block;
  margin-top: 8px;
  padding: 9px 11px;
  border: 1px solid #f1a1ad;
  border-radius: 9px;
  background: #fff0f2;
  color: #a91f39;
  font-size: 13px;
  font-weight: 900;
}

.mg-offer-inline-error[hidden] {
  display: none;
}

.mg-offer-amount input.is-too-low {
  border-color: #d93450 !important;
  box-shadow: 0 0 0 3px rgba(217, 52, 80, .12);
}

.mg-about-page,
.mg-about-page > .mg-back,
.mg-about-body h2,
.mg-about-body p,
.mg-about-body p strong {
  color: #111827;
}

.mg-about-body p {
  font-weight: 500;
}

.mg-about-number {
  border-color: #5b21b6;
  background: #eee7ff;
  color: #4c1d95;
}

.mg-about-wide-image {
  background: #fff;
  border-color: #cbd5e1;
  box-shadow: 0 14px 35px rgba(15, 23, 42, .12);
}

.mg-about-wide-image figcaption {
  background: #fff;
  color: #111827;
  font-weight: 700;
}

@keyframes mg-buy-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 5px rgba(22, 199, 127, .16), 0 10px 24px rgba(5, 117, 76, .25); }
  50% { transform: scale(1.07); box-shadow: 0 0 0 10px rgba(22, 199, 127, .08), 0 12px 28px rgba(5, 117, 76, .3); }
}

@media (max-width: 620px) {
  .mg-buy-now-box { padding: 15px; border-radius: 16px; }
  .mg-buy-now-guest { align-items: flex-start; flex-wrap: wrap; }
  .mg-buy-now-guest > div { min-width: calc(100% - 76px); }
  .mg-buy-now-login { width: 100%; text-align: center; }
  .mg-buy-now-icon { flex-basis: 52px; width: 52px; height: 52px; font-size: 24px; }
  .mg-buy-now-head h3, .mg-buy-now-guest h3 { font-size: 22px; }
  .mg-buy-now-box fieldset { grid-template-columns: 1fr; }
  .mg-buy-now-submit { min-height: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  .mg-buy-now-icon { animation: none; }
  .mg-buy-now-submit { transition: none; }
}
