.mec-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000;
  background: #fff; border-top: 1px solid var(--border-strong, rgba(26, 22, 19, .14));
  box-shadow: 0 -8px 28px rgba(0, 0, 0, .10);
  font-family: 'Inter', -apple-system, sans-serif; color: var(--text, #0a0a0a);
}
.mec-banner[hidden] { display: none; }

.mec-inner {
  max-width: 1100px; margin: 0 auto; padding: 18px 56px 18px 20px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.mec-copy { flex: 1 1 420px; min-width: 260px; }

.mec-title { font-size: 15px; font-weight: 700; line-height: 1.3; margin: 0 0 4px; }
.mec-text { font-size: 13px; line-height: 1.55; color: var(--muted, #6b7280); margin: 0; }
.mec-link { color: inherit; text-decoration: underline; }
.mec-link:hover { color: var(--accent-hover, #d97e00); }

.mec-status {
  font-size: 12px; line-height: 1.5; font-weight: 600;
  color: var(--text, #0a0a0a); margin: 8px 0 0;
}
.mec-status[hidden] { display: none; }

.mec-actions { display: flex; gap: 10px; flex: 0 0 auto; }

.mec-btn {
  font: inherit; font-size: 13px; font-weight: 600; line-height: 1;
  min-width: 156px; padding: 12px 18px; cursor: pointer;
  background: #fff; color: var(--text, #0a0a0a);
  border: 1px solid var(--border-strong, rgba(26, 22, 19, .14)); border-radius: 8px;
  transition: border-color .15s, background .15s;
}
.mec-btn:hover { border-color: var(--accent, #f69400); background: var(--bg, #f7f4ee); }

.mec-close {
  position: absolute; top: 10px; right: 12px;
  font: inherit; font-size: 20px; line-height: 1; cursor: pointer;
  width: 32px; height: 32px; padding: 0;
  background: transparent; color: var(--muted, #6b7280);
  border: 0; border-radius: 8px;
}
.mec-close:hover { color: var(--text, #0a0a0a); background: var(--bg, #f7f4ee); }
.mec-close[hidden] { display: none; }

.mec-reopen {
  position: fixed; left: 16px; bottom: 16px; z-index: 1990;
  font-family: 'Inter', -apple-system, sans-serif; font-size: 12px; font-weight: 600; line-height: 1;
  padding: 9px 14px; cursor: pointer;
  background: #fff; color: var(--muted, #6b7280);
  border: 1px solid var(--border, rgba(26, 22, 19, .10)); border-radius: 999px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .08);
  transition: color .15s, border-color .15s;
}
.mec-reopen:hover { color: var(--text, #0a0a0a); border-color: var(--accent, #f69400); }
.mec-reopen[hidden] { display: none; }

.mec-btn:focus-visible,
.mec-close:focus-visible,
.mec-reopen:focus-visible,
.mec-link:focus-visible {
  outline: 2px solid var(--accent, #f69400); outline-offset: 2px;
}

@media (max-width: 720px) {
  .mec-inner { padding: 16px 16px 18px; gap: 14px; }
  .mec-actions { width: 100%; }
  .mec-btn { flex: 1 1 0; min-width: 0; padding: 13px 10px; }
  .mec-close { top: 6px; right: 6px; }
  .mec-reopen { left: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .mec-btn, .mec-close, .mec-reopen { transition: none; }
}
