.magic-auctions-board {
  --ma-bg: #fbfaf7;
  --ma-card: #ffffff;
  --ma-text: #151515;
  --ma-muted: #6b6b6b;
  --ma-border: rgba(20, 20, 20, 0.14);
  --ma-accent: #111111;
  --ma-btn-text: #ffffff;
  --ma-btn-border: rgba(0,0,0,0.55);
  --ma-btn-radius: 12px;
  --ma-danger: #b42318;
  --ma-success: #067647;

  color: var(--ma-text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.magic-auctions-board,
.magic-auctions-board * {
  box-sizing: border-box;
}

.magic-auctions-board .ma-shell {
  background: var(--ma-bg);
  border: 1px solid var(--ma-border);
  border-radius: 16px;
  padding: 18px;
}

.magic-auctions-board .ma-header {
  margin-bottom: 14px;
}

.magic-auctions-board .ma-headerRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
}

.magic-auctions-board .ma-headerTitles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
}

.magic-auctions-board .ma-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.magic-auctions-board .ma-filterBtn {
  border: 1px solid var(--ma-border);
  background: #fff;
  color: var(--ma-text);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  line-height: 1.2;
}

.magic-auctions-board .ma-filterBtn:hover {
  border-color: rgba(20, 20, 20, 0.35);
}

.magic-auctions-board .ma-filterBtn.is-active {
  background: var(--ma-accent);
  color: var(--ma-btn-text);
  border-color: var(--ma-accent);
}

.magic-auctions-board .ma-filterBtn:focus {
  outline: none;
}

.magic-auctions-board .ma-filterBtn:focus-visible {
  box-shadow: 0 0 0 3px rgba(20, 20, 20, 0.2);
}

.magic-auctions-board .ma-boardEmpty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 22px 14px;
  text-align: center;
  color: var(--ma-muted);
  font-size: 14px;
  border: 1px dashed var(--ma-border);
  border-radius: 12px;
}

.magic-auctions-board .ma-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.magic-auctions-board .ma-subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--ma-muted);
}

.magic-auctions-board .ma-privacyNote {
  margin: 16px auto 0;
  max-width: 52rem;
  text-align: center;
}

.magic-auctions-board .ma-pass {
  display: grid;
  gap: 6px;
  align-items: start;
  justify-items: end;
  max-width: 520px;
}
.magic-auctions-board .ma-passRow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  width: 100%;
}
.magic-auctions-board .ma-passLabel {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--ma-muted);
  min-width: 0;
}
.magic-auctions-board .ma-passInput {
  border: 1px solid var(--ma-border);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--ma-text);
  background: #fff;
  outline: none;
  width: 100%;
  min-width: 220px;
}
.magic-auctions-board .ma-passInput:focus {
  border-color: var(--ma-accent);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.10);
}
.magic-auctions-board .ma-passBtn {
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--ma-border);
  background: rgba(0,0,0,0.02);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  color: var(--ma-text);
}
.magic-auctions-board .ma-passBtn:hover { background: rgba(0,0,0,0.04); }
.magic-auctions-board .ma-passStatus {
  font-size: 12px;
  color: var(--ma-muted);
  text-align: right;
  width: 100%;
}

.magic-auctions-board .ma-passLink {
  border: 0;
  background: transparent;
  color: var(--ma-muted);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-size: 12px;
  justify-self: end;
}
.magic-auctions-board .ma-passLink:hover {
  color: var(--ma-text);
}

.magic-auctions-board .ma-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.magic-auctions-board .ma-card {
  grid-column: span 12;
  border: 1px solid var(--ma-border);
  border-radius: 14px;
  background: var(--ma-card);
  padding: 10px;
  /* visible : évite les bugs de clic sur l’UI d’autofill (overflow hidden + coins arrondis) */
  overflow: visible;
}

.magic-auctions-board .ma-card.ma-card--hasMyBid {
  outline: 2px solid var(--ma-accent);
  outline-offset: 0;
}

.magic-auctions-board .ma-card.ma-card--recentlyConfirmed {
  outline: 2px solid #0f766e;
  outline-offset: 0;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14);
  transition: box-shadow 220ms ease, outline-color 220ms ease;
}

@media (min-width: 720px) {
  .magic-auctions-board .ma-card { grid-column: span 6; }
}
@media (min-width: 1024px) {
  .magic-auctions-board .ma-card { grid-column: span 4; }
}

.magic-auctions-board .ma-cardTitleRow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 10px;
  margin: 0 0 4px 0;
}

.magic-auctions-board .ma-cardTitleRow .ma-cardTitle {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.magic-auctions-board .ma-detailBtn {
  flex: 0 0 auto;
  border: 1px solid var(--ma-border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ma-text);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  line-height: 1.25;
  margin-top: -1px;
}

.magic-auctions-board .ma-detailBtn:hover {
  border-color: rgba(20, 20, 20, 0.35);
  background: #fff;
}

.magic-auctions-board .ma-detailBtn:focus {
  outline: none;
}

.magic-auctions-board .ma-detailBtn:focus-visible {
  outline: 2px solid var(--ma-accent);
  outline-offset: 2px;
}

.magic-auctions-board .ma-cardTitle {
  margin: 0 0 4px 0;
  font-size: 14px;
  line-height: 1.2;
}

.magic-auctions-board .ma-cardNotice {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(6, 118, 71, 0.25);
  background: rgba(6, 118, 71, 0.08);
  color: #05563a;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
}

.magic-auctions-board .ma-cardLower {
  position: relative;
  /* Rogne le panneau « Détail » en translation (la carte reste overflow:visible pour l’autofill) */
  overflow: hidden;
  border-radius: 4px;
}

.magic-auctions-board .ma-detailPanel {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--ma-border);
  background: var(--ma-card);
  transform: translateX(100%);
  pointer-events: none;
  transition: transform 0.25s ease;
}

.magic-auctions-board .ma-cardLower--detailOpen .ma-detailPanel {
  transform: translateX(0);
  pointer-events: auto;
}

.magic-auctions-board .ma-detailPanel__header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--ma-border);
  background: rgba(251, 250, 247, 0.98);
}

.magic-auctions-board .ma-detailPanel__title {
  font-size: 12px;
  font-weight: 750;
  color: var(--ma-text);
  min-width: 0;
}

.magic-auctions-board .ma-detailClose {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.02);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  color: var(--ma-muted);
}

.magic-auctions-board .ma-detailClose:hover {
  color: var(--ma-text);
  background: rgba(0, 0, 0, 0.05);
}

.magic-auctions-board .ma-detailClose:focus {
  outline: none;
}

.magic-auctions-board .ma-detailClose:focus-visible {
  outline: 2px solid var(--ma-accent);
  outline-offset: 2px;
}

.magic-auctions-board .ma-detailPanel__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 10px 12px 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ma-text);
}

.magic-auctions-board .ma-detailPanel__body--rich p {
  margin: 0 0 0.65em 0;
}

.magic-auctions-board .ma-detailPanel__body--rich p:last-child {
  margin-bottom: 0;
}

.magic-auctions-board .ma-detailPanel__body--rich ul,
.magic-auctions-board .ma-detailPanel__body--rich ol {
  margin: 0.4em 0 0.65em 1.15em;
  padding: 0;
}

.magic-auctions-board .ma-detailPanel__body--rich a {
  color: inherit;
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .magic-auctions-board .ma-detailPanel {
    transition: none;
  }
}

.magic-auctions-board .ma-skel {
  position: relative;
}

.magic-auctions-board .ma-skelBlock,
.magic-auctions-board .ma-skelLine {
  background: #ededed;
  position: relative;
  overflow: hidden;
}

.magic-auctions-board .ma-skelLine {
  height: 12px;
  border-radius: 999px;
  margin: 10px 0;
}

.magic-auctions-board .ma-skelLine--title {
  height: 14px;
  width: 70%;
  margin-top: 12px;
}

.magic-auctions-board .ma-skelLine--short {
  width: 45%;
}

.magic-auctions-board .ma-skelBlock::after,
.magic-auctions-board .ma-skelLine::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  animation: maShimmer 1.2s ease-in-out infinite;
}

@keyframes maShimmer {
  100% { transform: translateX(100%); }
}

.magic-auctions-board .ma-media {
  border: 1px solid rgba(20, 20, 20, 0.16);
  border-radius: 12px;
  background: #f7f5ef;
  overflow: hidden;
  max-height: 220px;
  height: 220px;
  margin-bottom: 10px;
  position: relative;
  cursor: zoom-in;
}

@media (min-width: 1024px) {
  .magic-auctions-board .ma-media {
    max-height: 250px;
    height: 250px;
  }
}

.magic-auctions-board .ma-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f7f5ef;
  display: block;
}

.magic-auctions-board .ma-zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.18);
  background: rgba(255,255,255,0.75);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: zoom-in;
}
.magic-auctions-board .ma-zoom::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-weight: 800;
  color: rgba(0,0,0,0.75);
}

.magic-auctions-board .ma-galleryBadge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 30px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.2);
  background: rgba(255,255,255,0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  pointer-events: none;
}
.magic-auctions-board .ma-galleryBadge::before,
.magic-auctions-board .ma-galleryBadge::after {
  content: "";
  position: absolute;
  border: 2px solid rgba(30, 30, 30, 0.65);
  border-radius: 3px;
  background: rgba(255,255,255,0.35);
}
.magic-auctions-board .ma-galleryBadge::before {
  width: 14px;
  height: 11px;
  left: 6px;
  top: 5px;
  z-index: 2;
}
.magic-auctions-board .ma-galleryBadge::after {
  width: 14px;
  height: 11px;
  left: 10px;
  top: 8px;
  z-index: 1;
  opacity: 0.88;
}

/* Lightbox */
.ma-lightboxOpen {
  overflow: hidden;
}
.ma-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.86);
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 18px;
}
.ma-lightboxInner {
  width: min(1100px, 100%);
  max-height: calc(100vh - 36px);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.ma-lightboxStage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 44px;
}
.ma-lightboxImg {
  flex: 1 1 auto;
  min-height: 0;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: calc(100vh - 36px - 88px);
  object-fit: contain;
  background: rgba(0,0,0,0.25);
  transform-origin: center center;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}
.ma-lightboxInner.ma-lightboxInner--multi .ma-lightboxImg {
  max-height: calc(100vh - 36px - 88px - 84px);
}
.ma-lightboxNav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(20,20,20,0.45);
  color: rgba(255,255,255,0.92);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  z-index: 2;
}
.ma-lightboxNav:hover {
  background: rgba(40,40,40,0.65);
}
.ma-lightboxNav--prev { left: 6px; }
.ma-lightboxNav--next { right: 6px; }
.ma-lightboxNav--prev::before { content: "‹"; margin-bottom: 2px; }
.ma-lightboxNav--next::before { content: "›"; margin-bottom: 2px; }
.ma-lightboxFooter {
  flex: 0 0 auto;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.ma-lightboxCounter {
  padding: 6px 12px 0;
  font-size: 12px;
  text-align: center;
  color: rgba(255,255,255,0.88);
}
.ma-lightboxThumbs {
  display: none;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 8px 10px 4px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.35) rgba(0,0,0,0.2);
  justify-content: safe center;
  flex: 0 0 auto;
  max-width: 100%;
}
.ma-lightboxInner.ma-lightboxInner--multi .ma-lightboxThumbs {
  display: flex;
}
.ma-lightboxThumbs::-webkit-scrollbar {
  height: 6px;
}
.ma-lightboxThumbs::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.28);
  border-radius: 999px;
}
.ma-lightboxThumb {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  margin: 0;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.35);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}
.ma-lightboxThumb:hover {
  border-color: rgba(255,255,255,0.5);
  transform: scale(1.03);
}
.ma-lightboxThumb.is-active {
  border-color: rgba(255,255,255,0.92);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.45), 0 4px 14px rgba(0,0,0,0.35);
}
.ma-lightboxThumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.ma-lightbox.is-dragging .ma-lightboxImg {
  cursor: grabbing;
}
.ma-lightboxHint {
  padding: 8px 12px 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}

/* Molette / trackpad : inutile sur tactile ou très petit écran. */
@media (max-width: 720px), (pointer: coarse) {
  .ma-lightboxHint {
    display: none !important;
  }
}

.magic-auctions-board .ma-media--empty {
  display: grid;
  place-items: center;
}

.magic-auctions-board .ma-mediaHint {
  font-size: 12px;
  color: var(--ma-muted);
}

.magic-auctions-board .ma-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  margin: 4px 0 6px 0;
}

.magic-auctions-board .ma-form .ma-shipping {
  margin: -4px 0 0;
  padding: 0 4px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--ma-muted);
  text-align: center;
}

.magic-auctions-board .ma-kv {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--ma-muted);
}
.magic-auctions-board .ma-kv strong {
  color: var(--ma-text);
  font-weight: 650;
}

.magic-auctions-board .ma-kv--currentBid {
  align-items: baseline;
}
.magic-auctions-board .ma-kv--currentBid .ma-currentBidAmount {
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.magic-auctions-board .ma-kv--countdown[title] {
  cursor: help;
}

.magic-auctions-board .ma-amountLabelRow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 10px;
  width: 100%;
}

.magic-auctions-board .ma-amountLabelMain {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px;
  font-size: 11px;
  color: var(--ma-muted);
  font-weight: 500;
}

.magic-auctions-board .ma-amountMeta {
  font-size: 11px;
  line-height: 1.3;
  color: var(--ma-muted);
  text-align: right;
  flex: 1 1 auto;
  min-width: min(100%, 12rem);
}

.magic-auctions-board .ma-label--amount {
  display: grid;
  gap: 4px;
  font-size: 11px;
  color: var(--ma-muted);
  min-width: 0;
}

.magic-auctions-board .ma-modalBody--rich {
  font-size: 14px;
  line-height: 1.55;
}
.magic-auctions-board .ma-modalBody--rich p {
  margin: 0 0 0.75em 0;
}
.magic-auctions-board .ma-modalBody--rich p:last-child {
  margin-bottom: 0;
}
.magic-auctions-board .ma-modalBody--rich ul,
.magic-auctions-board .ma-modalBody--rich ol {
  margin: 0.5em 0 0.75em 1.25em;
  padding: 0;
}

.magic-auctions-board .ma-countdownLive {
  font-variant-numeric: tabular-nums;
}

.magic-auctions-board .ma-countdownDone {
  font-variant-numeric: tabular-nums;
  color: var(--ma-danger);
}

.magic-auctions-board .ma-countdownPaused {
  font-variant-numeric: tabular-nums;
  color: #8a6b00;
}

.magic-auctions-board .ma-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 650;
  border-radius: 999px;
  padding: 4px 8px;
  border: 1px solid var(--ma-border);
  background: rgba(255, 255, 255, 0.65);
  margin: 0 0 6px 0;
}
.magic-auctions-board .ma-badge--paused {
  border-color: rgba(138, 107, 0, 0.35);
  background: rgba(138, 107, 0, 0.08);
  color: #6b5200;
}
.magic-auctions-board .ma-badge--not-started {
  border-color: rgba(30, 58, 95, 0.35);
  background: rgba(30, 58, 95, 0.08);
  color: #1e3a5f;
}
.magic-auctions-board .ma-badge--pass {
  border-color: rgba(6, 118, 71, 0.35);
  background: rgba(6, 118, 71, 0.08);
  color: #05563a;
}

.magic-auctions-board .ma-badge--mine {
  border-color: rgba(30, 58, 95, 0.42);
  background: rgba(30, 58, 95, 0.1);
  color: var(--ma-accent, #1e3a5f);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.magic-auctions-board .ma-card.is-not-started {
  opacity: 0.95;
}

.magic-auctions-board .ma-card.is-not-started .ma-form {
  display: none !important;
}
.magic-auctions-board .ma-card.is-paused {
  opacity: 0.92;
}
.magic-auctions-board .ma-card.is-ended {
  opacity: 0.92;
}

/* Formulaire masqué sur carte terminée ; la ligne frais de port reste visible si présente (.ma-form--shipping). */
.magic-auctions-board .ma-card.is-ended .ma-form {
  display: none !important;
}

.magic-auctions-board .ma-card.is-ended .ma-form.ma-form--shipping {
  display: grid !important;
}

.magic-auctions-board .ma-card.is-ended .ma-form.ma-form--shipping > :not(.ma-shipping) {
  display: none !important;
}

.magic-auctions-board .ma-card.is-ended .ma-badge--pass {
  display: none !important;
}

.magic-auctions-board .ma-endedNotice {
  display: none;
  margin-top: 2px;
}

.magic-auctions-board .ma-card.is-ended .ma-endedNotice {
  display: block;
}

.magic-auctions-board .ma-endedNotice__inner {
  padding: 16px 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(20, 20, 20, 0.1);
  background: rgba(20, 20, 20, 0.04);
  border-left: 4px solid var(--ma-accent, #1e3a5f);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
}

.magic-auctions-board .ma-endedNotice__title {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ma-text, #1a1a1a);
}

.magic-auctions-board .ma-endedNotice__hint {
  margin: 0 0 8px 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(20, 20, 20, 0.72);
}

.magic-auctions-board .ma-endedNotice__followup {
  margin: 0 0 12px 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(20, 20, 20, 0.62);
}

.magic-auctions-board .ma-endedNotice__hint + .ma-endedNotice__cta {
  margin-top: 4px;
}

.magic-auctions-board .ma-endedNotice__cta {
  margin: 0;
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  border: 1px solid var(--ma-accent, #1e3a5f);
  background: #fff;
  color: var(--ma-accent, #1e3a5f);
  border-radius: var(--ma-btn-radius, 10px);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  line-height: 1.25;
}

.magic-auctions-board .ma-endedNotice__cta:hover {
  background: rgba(30, 58, 95, 0.07);
}

.magic-auctions-board .ma-endedNotice__cta:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.25);
}

.magic-auctions-board .ma-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.magic-auctions-board .ma-checkboxRow {
  margin: 0 0 2px;
}

.magic-auctions-board .ma-checkboxLabel {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--ma-text);
  cursor: pointer;
}

.magic-auctions-board .ma-checkboxLabel .ma-notifyOutbid {
  width: auto;
  min-width: 0;
  margin-top: 2px;
  flex-shrink: 0;
}

.magic-auctions-board .ma-consentRow {
  margin: 2px 0 4px;
}

.magic-auctions-board label.ma-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ma-text);
  cursor: pointer;
  min-width: 0;
}

.magic-auctions-board .ma-consent .ma-consentInput {
  width: auto;
  min-width: 0;
  margin-top: 2px;
  flex-shrink: 0;
}

.magic-auctions-board .ma-consentLabel a {
  text-decoration: underline;
  color: inherit;
}

.magic-auctions-board abbr.ma-required {
  color: #b00020;
  font-weight: 700;
  text-decoration: none;
  cursor: help;
  margin-left: 1px;
}

.magic-auctions-board input.ma-fieldError,
.magic-auctions-board input.ma-fieldError:focus {
  border-color: #b00020;
  box-shadow: 0 0 0 1px #b00020;
}

.magic-auctions-board .ma-consentRow--error {
  padding: 8px 10px;
  margin: 0 0 4px;
  border-radius: 10px;
  border: 1px solid #b00020;
  background: rgba(176, 0, 32, 0.07);
}

.magic-auctions-board .ma-consentRow--error .ma-consentLabel,
.magic-auctions-board .ma-consentRow--error .ma-consentLabel a {
  color: #1a1a1a;
}

.magic-auctions-board .ma-labelLine {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px;
}

.magic-auctions-board .ma-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

@media (min-width: 720px) {
  .magic-auctions-board .ma-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.magic-auctions-board label {
  display: grid;
  gap: 4px;
  font-size: 11px;
  color: var(--ma-muted);
  min-width: 0;
}

.magic-auctions-board input {
  border: 1px solid var(--ma-border);
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 13px;
  color: var(--ma-text);
  background: #fff;
  outline: none;
  width: 100%;
  min-width: 0;
}

.magic-auctions-board input:focus {
  border-color: var(--ma-accent);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.10);
}

.magic-auctions-board .ma-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ma-btn-border);
  background: var(--ma-accent);
  color: var(--ma-btn-text);
  border-radius: var(--ma-btn-radius);
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  width: 100%;
}

.magic-auctions-board .ma-cta.ma-cta--syncing[disabled] {
  opacity: 1;
  cursor: wait;
}

.magic-auctions-board .ma-btnSpinner {
  display: block;
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--ma-btn-text);
  border-radius: 50%;
  animation: ma-boardSpin 0.65s linear infinite;
}

@keyframes ma-boardSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .magic-auctions-board .ma-btnSpinner {
    animation: none;
    border-top-color: rgba(255, 255, 255, 0.85);
    opacity: 0.9;
  }
}

.magic-auctions-board .ma-resendConfirm {
  margin-top: 2px;
  width: 100%;
  text-align: left;
  font-size: 12px;
}

.magic-auctions-board .ma-actionsSub {
  margin-top: 4px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.magic-auctions-board .ma-rulesBtn {
  border: 0;
  background: transparent;
  color: var(--ma-muted);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-size: 12px;
}
.magic-auctions-board .ma-rulesBtn:hover {
  color: var(--ma-text);
}

.magic-auctions-board .ma-linkBtn {
  border: 0;
  background: transparent;
  color: var(--ma-muted);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-size: 12px;
}
.magic-auctions-board .ma-linkBtn:hover {
  color: var(--ma-text);
}
.magic-auctions-board .ma-linkBtn--danger:hover {
  color: var(--ma-danger);
}

.magic-auctions-board .ma-modalP {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 13px;
  line-height: 1.45;
}

/* Modal (rules/help) */
.ma-modalOpen { overflow: hidden; }
.ma-modal {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.72);
  z-index: 999998;
  display: grid;
  place-items: center;
  padding: 18px;
}
.ma-modalBox {
  width: 100%;
  max-width: min(720px, calc(100vw - 36px));
  min-width: 0;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
  overflow: hidden;
}
.ma-modalHeader {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  min-width: 0;
}
.ma-modalTitle {
  font-size: 14px;
  font-weight: 750;
  color: #111;
  min-width: 0;
  overflow-wrap: anywhere;
}
.ma-modalClose {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.02);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.ma-modalBody {
  padding: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #222;
  max-height: min(70vh, 620px);
  overflow-x: hidden;
  overflow-y: auto;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.ma-modalBody .ma-myBids,
.ma-modalBody .ma-withdraw,
.ma-modalBody .ma-modalForm {
  min-width: 0;
  max-width: 100%;
}

.ma-modalBody .ma-modalForm {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.ma-modalBody .ma-modalP {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 13px;
  line-height: 1.45;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.ma-modalBody .ma-alert {
  max-width: 100%;
  overflow-wrap: anywhere;
  box-sizing: border-box;
}

/* Withdraw modal form */
.ma-modalBody .ma-modalLabel {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: #555;
  margin-top: 10px;
  min-width: 0;
  max-width: 100%;
}
.ma-modalBody .ma-modalInput {
  border: 1px solid rgba(20, 20, 20, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  color: #111;
  background: #fff;
  outline: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.ma-modalBody .ma-modalInput:focus {
  border-color: rgba(0,0,0,0.55);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.08);
}
.ma-modalBody .ma-modalActions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 12px;
  align-items: center;
}
.ma-modalBody .ma-modalBtn,
.ma-modalBody .ma-modalCta {
  min-width: 0;
  height: 42px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.ma-modalBody .ma-modalBtn {
  border: 1px solid rgba(0,0,0,0.14);
  background: rgba(0,0,0,0.02);
  color: #111;
}
.ma-modalBody .ma-modalCta {
  border: 1px solid rgba(0,0,0,0.55);
  background: #111;
  color: #fff;
}
.ma-modalBody .ma-modalCta[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}
.magic-auctions-board .ma-cta:hover {
  filter: brightness(0.96);
}
.magic-auctions-board .ma-cta:active {
  transform: translateY(1px);
}
.magic-auctions-board .ma-cta[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

.magic-auctions-board .ma-note {
  font-size: 12px;
  color: var(--ma-muted);
  margin: 6px 0 0 0;
}

.magic-auctions-board .ma-alert {
  margin-top: 10px;
  font-size: 13px;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid var(--ma-border);
  background: #f6f6f6;
}
.magic-auctions-board .ma-alert--success {
  border-color: rgba(6, 118, 71, 0.35);
  background: rgba(6, 118, 71, 0.08);
}
.magic-auctions-board .ma-alert--error {
  border-color: rgba(180, 35, 24, 0.35);
  background: rgba(180, 35, 24, 0.08);
}

.magic-auctions-board .ma-shell > .ma-alert {
  margin-bottom: 12px;
}

/* Toasts : retours d’enchère (portail body = fixed par rapport à la fenêtre, pas aux blocs transformés) */
.magic-auctions-board .ma-toastHost,
#ma-auction-board-toast-host.ma-toastHost {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  z-index: 2147483000;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
}

.magic-auctions-board .ma-toast,
#ma-auction-board-toast-host .ma-toast {
  pointer-events: auto;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  max-width: min(540px, 100%);
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--ma-border);
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.magic-auctions-board .ma-toastHost.ma-toastHost--visible .ma-toast,
#ma-auction-board-toast-host.ma-toastHost.ma-toastHost--visible .ma-toast {
  opacity: 1;
  transform: translateY(0);
}

.magic-auctions-board .ma-toast--success,
#ma-auction-board-toast-host .ma-toast--success {
  border-color: rgba(6, 118, 71, 0.4);
  background: #ecfdf5;
}

.magic-auctions-board .ma-toast--error,
#ma-auction-board-toast-host .ma-toast--error {
  border-color: rgba(180, 35, 24, 0.38);
  background: #fef2f2;
}

.magic-auctions-board .ma-toast__inner,
#ma-auction-board-toast-host .ma-toast__inner {
  flex: 1 1 auto;
  min-width: 0;
}

.magic-auctions-board .ma-toast__text,
#ma-auction-board-toast-host .ma-toast__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ma-text);
  max-height: min(40vh, 280px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.magic-auctions-board .ma-toast__close,
#ma-auction-board-toast-host .ma-toast__close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  margin: -4px -6px 0 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ma-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.magic-auctions-board .ma-toast__close:hover,
#ma-auction-board-toast-host .ma-toast__close:hover {
  color: var(--ma-text);
  background: rgba(0, 0, 0, 0.06);
}

