/* Security Guard – mobile-first */

.msg-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 15, 15, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.msg-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.msg-overlay__panel {
  width: min(100%, 28rem);
  padding: 1.25rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.msg-overlay__text {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #1f1f1f;
}

.msg-overlay__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 0.75rem;
  background: #6f4e37;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.msg-overlay__btn:focus-visible {
  outline: 2px solid #2f6b4f;
  outline-offset: 2px;
}

.msg-guard-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99998;
  padding: 0.85rem 1rem;
  background: #7a1f1f;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
}

.msg-guard-disabled,
html.msg-guard-blocked .mlo-btn,
html.msg-guard-blocked .mlo-qty__btn {
  pointer-events: none !important;
  opacity: 0.45 !important;
}

html.msg-guard-blocked #mlo-submit,
html.msg-guard-blocked .mlo-qty__btn--add {
  cursor: not-allowed;
}

@media (min-width: 768px) {
  .msg-overlay__panel {
    padding: 1.5rem;
  }

  .msg-guard-banner {
    left: 50%;
    right: auto;
    bottom: 1.5rem;
    width: min(100%, 36rem);
    transform: translateX(-50%);
    border-radius: 0.75rem;
  }
}
