/* ME Black Friday sale overlay — charcoal + ME red, mobile-first.
   z-index stays well below Maggie (#maggie-root is 2147483000) and Tawk. */
.me-bf-root {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem 7.5rem; /* keep the bottom-right chat launcher clear */
  box-sizing: border-box;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.me-bf-root[hidden] { display: none !important; }

.me-bf-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.me-bf-card {
  position: relative;
  z-index: 1;
  width: min(28rem, 100%);
  background: #1a1a1a;
  color: #f4f4f4;
  border: 1px solid #333;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.me-bf-card::before {
  content: "";
  display: block;
  height: 4px;
  background: #c41212;
}

.me-bf-root button.me-bf-close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0 !important;
  border-radius: 10px;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #bbbbbb !important;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  text-transform: none !important;
  letter-spacing: 0 !important;
  appearance: none;
  -webkit-appearance: none;
}
.me-bf-root button.me-bf-close:hover,
.me-bf-root button.me-bf-close:focus {
  color: #fff !important;
  background: #2a2a2a !important;
  outline: none;
}
.me-bf-root button.me-bf-close:focus-visible {
  outline: 2px solid #c41212;
  outline-offset: 2px;
}

.me-bf-inner {
  padding: 1.35rem 1.35rem 1.2rem;
}

.me-bf-kicker {
  margin: 0 0 0.35rem;
  color: #c41212;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.me-bf-title {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.me-bf-lead {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
  font-weight: 650;
  color: #fff;
}

.me-bf-body {
  margin: 0 0 1rem;
  color: #dddddd;
  font-size: 0.98rem;
  line-height: 1.45;
}

.me-bf-code {
  display: inline-block;
  margin: 0 0.15em;
  padding: 0.12em 0.45em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: #2a1212;
  border: 1px solid #9a0e0e;
  border-radius: 6px;
}

.me-bf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.me-bf-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  background: #c41212;
  color: #fff !important;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none !important;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
.me-bf-cta:hover,
.me-bf-cta:focus {
  background: #9a0e0e;
  color: #fff !important;
}
.me-bf-cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.me-bf-root button.me-bf-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #bbbbbb !important;
  font-size: 0.95rem;
  font-weight: 600;
  border: 0 !important;
  border-radius: 10px;
  cursor: pointer;
  text-transform: none !important;
  letter-spacing: 0 !important;
  appearance: none;
  -webkit-appearance: none;
}
.me-bf-root button.me-bf-dismiss:hover,
.me-bf-root button.me-bf-dismiss:focus {
  color: #fff !important;
  background: #2a2a2a !important;
}
.me-bf-root button.me-bf-dismiss:focus-visible {
  outline: 2px solid #c41212;
  outline-offset: 2px;
}

@media (max-width: 479px) {
  .me-bf-root { padding: 0.75rem 0.75rem 7.25rem; align-items: flex-end; }
  .me-bf-title { font-size: 1.4rem; }
  .me-bf-cta { flex: 1 1 auto; }
}
