/* Responsive product rules. */
/* Responsive rules and late page-specific corrections. */

@media (max-width: 999px) {

  .mf-cloud-layout,
  .mf-editor-layout,
  .mf-form-hero-layout {
    grid-template-columns: 1fr;
  }

  .mf-form-elements,
  .mf-form-field-properties {
    grid-template-columns: repeat(2, 1fr);
  }

  .mf-form-field-properties div:nth-child(3) {
    border-top: 1px solid var(--mf-line);
    border-left: 0;
  }

  .mf-form-field-properties div:nth-child(4) {
    border-top: 1px solid var(--mf-line);
  }

  .mf-editor-detail,
  .mf-editor-detail-reverse {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .mf-editor-detail-reverse .mf-editor-detail-copy,
  .mf-editor-detail-reverse .mf-editor-shot {
    order: initial;
  }

  .mf-editor-proof {
    grid-template-columns: repeat(2, 1fr);
  }

  .mf-editor-elements {
    grid-template-columns: repeat(2, 1fr);
  }

  .mf-editor-proof article:nth-child(3) {
    border-left: 0;
  }

  .mf-editor-proof article:nth-child(n + 3) {
    border-top: 1px solid var(--mf-line);
  }

  .mf-architecture {
    grid-template-columns: 1fr;
  }

  .mf-doi-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 42px;
  }

  .mf-doi-step:nth-child(2)::after {
    display: none;
  }

  .mf-editor-workflow {
    grid-template-columns: 1fr;
  }

  .mf-editor-workflow .mf-doi-step {
    padding: 10px 10px 48px;
  }

  .mf-editor-workflow .mf-doi-step:not(:last-child)::after,
  .mf-editor-workflow .mf-doi-step:nth-child(2)::after {
    top: auto;
    right: 50%;
    bottom: 9px;
    display: block;
    content: "\2193";
    transform: translateX(50%);
  }

  .mf-editor-proof-trust {
    grid-template-columns: 1fr;
  }

  .mf-editor-proof-trust article + article,
  .mf-editor-proof-trust article:nth-child(3) {
    border-top: 1px solid var(--mf-line);
    border-left: 0;
  }

  .mf-mode-match-grid {
    grid-template-columns: 1fr;
  }

  .mf-mode-match {
    height: auto;
    min-height: 0;
  }

  .mf-solution-fit-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 22px;
  }

  .mf-solution-fit > h3 {
    padding: 24px 22px 20px;
    font-size: 24px;
  }

  .mf-solution-fit-note {
    padding: 18px 22px;
  }

  .mf-product-proof-flow {
    grid-template-columns: 1fr;
  }

  .mf-product-proof-step {
    height: auto;
    padding: 22px;
  }

  .mf-product-proof-step h3 {
    min-height: 0;
  }

  .mf-setup-grid,
  .mf-setup-footer {
    grid-template-columns: 1fr;
  }

  .mf-setup-footer .mf-actions {
    flex-wrap: wrap;
  }

  .mf-architecture-step + .mf-architecture-step {
    border-top: 1px solid var(--mf-line);
    border-left: 0;
  }

  .mf-cloud-screen,
  .mf-editor-stage {
    max-width: 760px;
  }
}

@media (max-width: 689px) {

  .mf-cloud-layout,
  .mf-editor-layout,
  .mf-form-hero-layout {
    gap: 38px;
    padding: 48px 0 58px;
  }

  .mf-cloud-copy h1,
  .mf-editor-copy h1,
  .mf-form-hero-copy h1 {
    font-size: 38px;
  }

  .mf-form-preview-body {
    grid-template-columns: 1fr;
  }

  .mf-form-preview-aside {
    padding: 26px;
  }

  .mf-form-preview-fields {
    padding: 28px;
  }

  .mf-cloud-proof {
    grid-template-columns: 1fr;
  }

  .mf-cloud-proof div {
    padding: 26px 0;
  }

  .mf-cloud-proof div + div {
    border-top: 1px solid var(--mf-line);
    border-left: 0;
  }

  .mf-cloud-choice {
    display: block;
    padding: 28px;
  }

  .mf-cloud-choice .mf-button {
    margin-top: 22px;
  }

  .mf-feature-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 28px 0;
  }

  .mf-feature-row .mf-feature-label {
    flex-direction: row;
    gap: 12px;
    align-items: center;
    margin-bottom: 6px;
  }

  .mf-process-title i {
    width: 32px;
    height: 32px;
  }

  .mf-context-heading {
    align-items: flex-start;
  }

  .mf-context-heading + p {
    margin-left: 0;
  }

  .mf-editor-proof,
  .mf-editor-elements,
  .mf-editor-tools,
  .mf-editor-routes,
  .mf-form-elements,
  .mf-form-field-properties {
    grid-template-columns: 1fr;
  }

  .mf-editor-proof article + article,
  .mf-editor-proof article:nth-child(3),
  .mf-editor-tool + .mf-editor-tool,
  .mf-editor-tools-six .mf-editor-tool:nth-child(4),
  .mf-editor-tools-four .mf-editor-tool:nth-child(3),
  .mf-editor-route + .mf-editor-route {
    border-top: 1px solid var(--mf-line);
    border-left: 0;
  }

  .mf-editor-element {
    min-height: 0;
  }

  .mf-doi-flow {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }

  .mf-doi-step {
    padding: 10px 10px 48px;
  }

  .mf-doi-step:not(:last-child)::after,
  .mf-doi-step:nth-child(2)::after {
    top: auto;
    right: 50%;
    bottom: 9px;
    display: block;
    content: "\2193";
    transform: translateX(50%);
  }

  .mf-editor-tools-visual .mf-editor-tool {
    min-height: 0;
  }

  .mf-form-field-properties div + div,
  .mf-form-field-properties div:nth-child(3),
  .mf-form-field-properties div:nth-child(4) {
    border-top: 1px solid var(--mf-line);
    border-left: 0;
  }

  .mf-mode-match {
    padding: 26px;
  }

  .mf-mode-note {
    padding: 22px;
  }

  .mf-setup-panel-copy {
    padding: 28px 24px 24px;
  }

  .mf-setup-panel h3 {
    font-size: 24px;
  }

  .mf-setup-shot {
    padding: 14px;
  }

  .mf-setup-footer {
    padding: 26px 24px;
  }

  .mf-compare {
    display: block;
    overflow-x: auto;
  }
}

/* Product-specific responsive variants shared by the commerce pages. */
body.mf-page--jtl-shop .mf-jtl-proof-columns {
  margin-top: 36px;
}

body.mf-page--jtl-shop .mf-jtl-proof-columns > .wp-block-column {
  display: flex;
}

body.mf-page--jtl-shop .mf-jtl-proof-columns .mf-editor-shot {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  flex-direction: column;
  padding: 14px;
  border: 1px solid #bfd6e7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(24, 90, 130, 0.08);
}

body.mf-page--jtl-shop .mf-jtl-proof-columns .mf-editor-shot img {
  margin: auto 0;
}

body.mf-page--jtl-shop .mf-jtl-proof-columns figcaption {
  padding: 12px 4px 2px;
}

@media (max-width: 999px) {
  .mf-shopware-hero .mf-page-hero-inner {
    width: min(52%, 520px);
  }
}

@media (max-width: 689px) {
  body.mf-page--jtl-shop .mf-jtl-proof-columns .mf-editor-shot {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  body.mf-page--jtl-shop .mf-jtl-proof-columns .mf-editor-shot img {
    width: 720px !important;
    max-width: none !important;
    height: auto;
  }

  body.mf-page--jtl-shop .mf-jtl-proof-columns .mf-editor-shot figcaption {
    position: sticky;
    left: 0;
    box-sizing: border-box;
    width: calc(100vw - 64px);
    max-width: 360px;
  }

  .mf-shopware-hero,
  .mf-shopware-hero-layout {
    min-height: 0;
  }

  .mf-shopware-hero {
    align-items: flex-start;
  }

  .mf-shopware-hero::before {
    position: absolute;
    z-index: 1;
    display: block;
    background: rgba(247, 249, 251, 0.84);
    content: "";
    inset: 0;
  }

  .mf-shopware-hero-art {
    top: 0;
    height: 100%;
    opacity: 0.28;
    object-position: 70% center;
  }

  .mf-shopware-hero-layout {
    align-items: flex-start;
  }

  .mf-shopware-hero .mf-page-hero-inner {
    width: 100%;
    padding: 28px 0;
  }

  .mf-shopware-hero h1 {
    font-size: 34px;
  }

  .mf-shopware-hero-meta {
    display: none;
  }
}

@media (max-width: 999px) {
  .mf-form-hero {
    min-height: 760px;
    background-image: url("https://new.mailfino.com/wp-content/uploads/2026/07/mailfino-forms-hero-transparent-v3.png");
    background-position: right bottom;
    background-size: auto 40%;
  }

  .mf-form-hero-layout {
    padding: 48px 0 330px;
  }
}

@media (max-width: 689px) {

  body.page .mf-form-hero {
    min-height: 680px;
    background-image: url("https://new.mailfino.com/wp-content/uploads/2026/07/mailfino-forms-hero-transparent-v3.png");
    background-position: center bottom;
    background-size: auto 34%;
  }

  body.page .mf-form-hero-layout {
    padding: 44px 0 260px;
  }

  body.page .mf-form-hero .mf-actions {
    align-items: stretch;
    flex-direction: column;
  }

  body.page .mf-form-hero .mf-button {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}
