:root {
  --mmx-offer-navy: #061d38;
  --mmx-offer-blue: #0c3157;
  --mmx-offer-gold: #e8a400;
  --mmx-offer-cream: #fff8e6;
  --mmx-offer-green: #15824b;
  --mmx-offer-red: #b4232d;
}

.mmx-market-offer-card {
  direction: rtl;
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid #dce5ef;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(6, 29, 56, .08);
  color: var(--mmx-offer-navy);
}

.mmx-market-offer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 3px solid var(--mmx-offer-gold);
  background: linear-gradient(135deg, var(--mmx-offer-navy), var(--mmx-offer-blue));
  color: #fff;
}

.mmx-market-offer-title {
  margin: 0;
  color: inherit;
  font-size: 1.1rem;
  font-weight: 800;
}

.mmx-market-offer-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--mmx-offer-gold);
  color: var(--mmx-offer-navy);
  font-size: 22px;
}

.mmx-market-offer-body { padding: 18px; }
.mmx-market-offer-copy { margin: 0 0 14px; color: #52677f; line-height: 1.75; }
.mmx-market-offer-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mmx-market-offer-form { display: grid; grid-template-columns: minmax(150px, 1fr) auto; gap: 10px; }
.mmx-market-offer-form input {
  min-width: 0;
  min-height: 48px;
  border: 1px solid #cad7e5;
  border-radius: 12px;
  padding: 10px 14px;
  background: #f8fbff;
  color: var(--mmx-offer-navy);
  font: inherit;
}

.mmx-market-offer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--mmx-offer-gold);
  border-radius: 12px;
  background: var(--mmx-offer-gold);
  color: var(--mmx-offer-navy) !important;
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
}

.mmx-market-offer-btn.is-secondary { background: #fff; }
.mmx-market-offer-btn.is-success { border-color: var(--mmx-offer-green); background: var(--mmx-offer-green); color: #fff !important; }
.mmx-market-offer-btn.is-danger { border-color: var(--mmx-offer-red); background: #fff; color: var(--mmx-offer-red) !important; }
.mmx-market-offer-btn[disabled] { cursor: wait; opacity: .65; }
.mmx-market-offer-status { margin-top: 12px; padding: 11px 13px; border-radius: 10px; background: #edf7f1; color: #12673d; font-weight: 700; }
.mmx-market-offer-status.is-error { background: #fff0f1; color: var(--mmx-offer-red); }
.mmx-market-offer-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #e8eef4; }
.mmx-market-offer-row:last-child { border-bottom: 0; }
.mmx-market-offer-price { color: #bd7f00; font-size: 1.08rem; font-weight: 900; }
.mmx-market-offer-note { color: #6c7f94; font-size: .9rem; }
.mmx-market-reserved-badge { padding: 12px 14px; border: 1px solid #badfca; border-radius: 12px; background: #edf9f2; color: #12673d; font-weight: 800; }

body.mmx-product-reserved .hikaauction_product_form,
body.mmx-product-reserved .hikashop_product_quantity_main,
body.mmx-product-reserved .hikashop_product_quantity_field_change_plus,
body.mmx-product-reserved .hikashop_product_quantity_field_change_minus { display: none !important; }

@media (max-width: 640px) {
  .mmx-market-offer-form { grid-template-columns: 1fr; }
  .mmx-market-offer-btn { width: 100%; }
  .mmx-market-offer-row { grid-template-columns: 1fr; }
}
