.m2fs-overlay,
.m2fs-dialog,
.m2fs-open-button,
.m2fs-pack-offer,
.m2fs-preview-bar {
  --m2fs-bg: #0a0a0c;
  --m2fs-surface: #131316;
  --m2fs-raised: #19191d;
  --m2fs-border: #29292f;
  --m2fs-text: #f5f5f7;
  --m2fs-muted: #b8b8c1;
  --m2fs-blue: #0080ff;
  --m2fs-green: #15803d;
  --m2fs-green-hover: #166534;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-sizing: border-box;
}
.m2fs-overlay *, .m2fs-preview-bar * { box-sizing: border-box; }
.m2fs-overlay[hidden], .m2fs-dialog:not([open]), .m2fs-dialog [hidden], [data-m2fs-open][hidden], [data-m2fs-offer][hidden] { display: none !important; }
.m2fs-overlay { position: fixed; inset: 0; z-index: 999999; }
.m2fs-overlay.m2fs-fallback { display: grid; place-items: center; padding: 16px; overflow-y: auto; background: rgba(0, 0, 0, .74); }
.m2fs-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  width: min(680px, calc(100vw - 32px));
  max-width: 680px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--m2fs-surface);
  color: var(--m2fs-text);
  border: 1px solid var(--m2fs-border);
  border-radius: 20px;
  box-shadow: 0 28px 100px rgba(0, 0, 0, .55);
  text-align: left;
  color-scheme: dark;
}
.m2fs-dialog::backdrop { background: rgba(0, 0, 0, .74); }
.m2fs-fallback .m2fs-dialog { position: relative; inset: auto; width: min(680px, 100%); }
.m2fs-dialog[open] { animation: m2fs-appear 180ms ease-out; }
.m2fs-art { position: relative; height: clamp(170px, 29vw, 242px); overflow: hidden; background: var(--m2fs-bg); }
.m2fs-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(19, 19, 22, .16) 70%, #131316 100%); pointer-events: none; }
.m2fs-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 47%; opacity: .95; }
.m2fs-brand { position: absolute; left: 40px; bottom: 17px; z-index: 1; font-size: 13px; line-height: 1.4; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 8px #000; }
.m2fs-brand span { padding-left: 8px; color: #cccbd2; font-weight: 550; }
.m2fs-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  background: rgba(10, 10, 12, .85); color: #fff; border: 1px solid rgba(255, 255, 255, .24); border-radius: 50%;
  cursor: pointer; font: inherit;
}
.m2fs-close span { font-size: 32px; line-height: 1; font-weight: 400; transform: translateY(-1px); }
.m2fs-close:hover { background: var(--m2fs-raised); border-color: var(--m2fs-muted); }
.m2fs-content { padding: 14px 40px 28px; }
.m2fs-dialog h2 { margin: 0 0 16px; padding: 0; color: var(--m2fs-text); font-family: inherit; font-size: clamp(30px, 5.4vw, 42px); font-weight: 800; letter-spacing: -.035em; line-height: 1.06; text-transform: none; }
.m2fs-description { margin: 0 0 26px; color: var(--m2fs-muted); font-size: 18px; line-height: 1.5; font-weight: 400; }
.m2fs-form { margin: 0; }
.m2fs-email-label { display: block; margin: 0 0 9px; color: var(--m2fs-text); font-size: 15px; font-weight: 650; line-height: 1.4; }
.m2fs-form-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: stretch; }
.m2fs-dialog input[type="email"] {
  width: 100%; min-width: 0; min-height: 54px; padding: 13px 15px; margin: 0;
  background: var(--m2fs-bg); color: #fff; border: 1px solid #5e5e68; border-radius: 9px;
  font-family: inherit; font-size: 16px; line-height: 1.5; box-shadow: none;
}
.m2fs-dialog input::placeholder { color: #a6a6b1; opacity: 1; }
.m2fs-dialog input[aria-invalid="true"] { border-color: #fca5a5; }
.m2fs-dialog input:disabled { opacity: .6; }
.m2fs-submit, .m2fs-download, .m2fs-open-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 13px 20px; margin: 0;
  background: var(--m2fs-green); color: #fff; border: 1px solid transparent; border-radius: 9px;
  font-family: inherit; font-size: 16px; font-weight: 750; line-height: 1.45; text-align: center; text-decoration: none; cursor: pointer;
}
.m2fs-submit:hover:not(:disabled), .m2fs-download:hover, .m2fs-open-button:hover { background: var(--m2fs-green-hover); color: #fff; }
.m2fs-pack-offer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 20px; border: 1px solid var(--m2fs-border); border-radius: 10px; background: var(--m2fs-surface); }
.m2fs-pack-offer strong { display: block; color: var(--m2fs-text); font-size: 18px; font-weight: 700; line-height: 1.45; }
.m2fs-pack-offer p { margin: 6px 0 0; color: var(--m2fs-muted); font-size: 15px; line-height: 1.55; }
.m2fs-pack-offer .m2fs-pack-button { flex: 0 1 auto; background: transparent; border-color: #5e5e68; color: #fff; }
#ms-product .m2fs-pack-button { font-size: 16px; font-weight: 750; line-height: 1.45; }
.m2fs-pack-offer .m2fs-pack-button:hover { background: var(--m2fs-raised); border-color: var(--m2fs-blue); color: #fff; }
.m2fs-submit:disabled { cursor: wait; background: #29292f; color: #d0d0d6; }
.m2fs-dialog :is(button, a, input):focus-visible, .m2fs-open-button:focus-visible, .m2fs-preview-bar button:focus-visible { outline: 3px solid var(--m2fs-blue); outline-offset: 4px; }
.m2fs-newsletter { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 0; cursor: pointer; color: var(--m2fs-muted); font-size: 14px; line-height: 1.5; }
.m2fs-dialog .m2fs-newsletter input { width: 20px; height: 20px; min-height: 20px; flex: 0 0 20px; margin: 1px 0 0; padding: 0; accent-color: var(--m2fs-green); }
.m2fs-privacy { margin: 16px 0 0; color: var(--m2fs-muted); font-size: 13px; line-height: 1.6; }
.m2fs-privacy a { color: var(--m2fs-text); text-decoration: underline; text-underline-offset: 3px; }
.m2fs-status { min-height: 0; margin: 0; color: var(--m2fs-muted); font-size: 14px; line-height: 1.5; }
.m2fs-status:not(:empty) { margin-top: 16px; }
.m2fs-status[data-error="true"] { color: #fca5a5; }
.m2fs-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.m2fs-success { display: flex; align-items: flex-start; flex-direction: column; gap: 16px; }
.m2fs-success-note { margin: 0; color: var(--m2fs-muted); font-size: 14px; line-height: 1.5; }
.m2fs-done { padding: 8px 0; min-height: 44px; color: var(--m2fs-text); font: inherit; font-size: 15px; font-weight: 650; border: 0; background: transparent; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.m2fs-preview-label { display: inline-block; margin: 0 0 16px; padding: 7px 10px; border: 1px solid #507491; border-radius: 6px; background: #142334; color: #c7e4ff; font-size: 13px; line-height: 1.4; }
.m2fs-preview-note { margin: 0 0 20px; color: #c7e4ff; font-size: 14px; line-height: 1.5; }
.m2fs-preview-bar { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 999998; display: flex; align-items: center; gap: 18px; max-width: calc(100vw - 32px); padding: 10px 14px; border: 1px solid #507491; border-radius: 9px; background: #142334; color: #c7e4ff; box-shadow: 0 5px 25px #0008; font-size: 13px; line-height: 1.4; }
.m2fs-preview-bar button { min-height: 44px; padding: 9px 13px; border: 1px solid #507491; border-radius: 7px; background: var(--m2fs-raised); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
@keyframes m2fs-appear { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 520px) {
  .m2fs-pack-offer { padding: 18px; }
  .m2fs-pack-offer .m2fs-pack-button { width: 100%; }
  .m2fs-content { padding: 12px 24px 24px; }
  .m2fs-art { height: 180px; }
  .m2fs-brand { left: 24px; font-size: 12px; }
  .m2fs-description { margin-bottom: 22px; font-size: 16px; }
  .m2fs-form-row { grid-template-columns: 1fr; }
  .m2fs-submit, .m2fs-download { width: 100%; }
  .m2fs-preview-bar { width: calc(100vw - 32px); gap: 10px; }
  .m2fs-preview-bar > span { flex: 1; }
}
@media (max-height: 650px) and (min-width: 521px) {
  .m2fs-art { height: 145px; }
  .m2fs-description { margin-bottom: 18px; }
  .m2fs-dialog h2 { font-size: 34px; }
  .m2fs-content { padding-bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) { .m2fs-dialog[open] { animation: none; } }
