/* Main mobile form intentionally omits the global top navigation. */
  body.pm-mobile.pm-page-form .holder-site-top,
  body.pm-mobile.pm-page-form .pm-header {
    display: none !important;
  }

/* Responsive form — shared markup for mobile rollout */
  body.pm-mobile.pm-page-form .holder-site {
    width: calc(100% - 20px);
    max-width: 760px;
    margin: 6px auto 10px;
    display: block;
  }

  body.pm-mobile.pm-page-form .holder-content.pm-form-content {
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body.pm-mobile.pm-page-form .pm-form-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
  }

  body.pm-mobile.pm-page-form .pm-form-card,
  body.pm-mobile.pm-page-form .pm-form-aside-sticky,
  body.pm-mobile.pm-page-form .pm-full-reviews {
    background: var(--pm-card);
    border: 1px solid var(--pm-line);
    border-radius: var(--pm-radius);
    box-shadow: 0 3px 12px rgba(16, 40, 59, .035);
  }

  body.pm-mobile.pm-page-form .pm-form-card {
    padding: 20px 17px 22px;
  }

  body.pm-mobile.pm-page-form .pm-form-card-title {
    margin: 0 0 18px;
    color: var(--pm-navy-deep);
    font-size: 24px;
    line-height: 1.22;
    letter-spacing: -.25px;
    font-weight: 700;
  }

  body.pm-mobile.pm-page-form .pm-question-form {
    margin: 0;
  }

  body.pm-mobile.pm-page-form .pm-form-section {
    margin: 0;
    padding: 0 0 22px;
  }

  body.pm-mobile.pm-page-form .pm-form-section + .pm-form-section {
    padding-top: 22px;
    border-top: 1px solid var(--pm-line);
  }

  body.pm-mobile.pm-page-form .pm-form-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 15px;
  }

  body.pm-mobile.pm-page-form .pm-form-step-number {
    flex: 0 0 29px;
    width: 29px;
    height: 29px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    color: #fff;
    background: var(--pm-navy);
    border-radius: 50%;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
  }

  body.pm-mobile.pm-page-form .pm-form-section-heading h1,
body.pm-mobile.pm-page-form .pm-form-section-heading h2,
  body.pm-mobile.pm-page-form .pm-how-it-works h2,
  body.pm-mobile.pm-page-form .pm-form-reviews h2 {
    margin: 0;
    color: var(--pm-navy-deep);
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
  }

  body.pm-mobile.pm-page-form .pm-form-section-heading p {
    margin: 4px 0 0;
    color: var(--pm-muted);
    font-size: 12.5px;
    line-height: 1.5;
  }

  body.pm-mobile.pm-page-form .pm-form-textarea {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 220px;
    max-height: 620px;
    margin: 0;
    padding: 13px 14px;
    resize: vertical;
    color: var(--pm-text);
    background: #fff;
    border: 1px solid #cfd9df;
    border-radius: 6px;
    outline: none;
    font: inherit;
    font-size: 16px;
    line-height: 1.5;
  }

  body.pm-mobile.pm-page-form .pm-form-files-block {
    margin-top: 15px;
    padding: 12px 13px;
    background: #f8fafb;
    border: 1px solid var(--pm-line);
    border-radius: 6px;
  }

  body.pm-mobile.pm-page-form .pm-form-files-title {
    margin-bottom: 7px;
    color: var(--pm-text);
    font-size: 12px;
    font-weight: 700;
  }

  body.pm-mobile.pm-page-form .pm-native-file {
    width: 100%;
    max-width: 100%;
    color: var(--pm-muted);
    font-size: 12px;
  }

  body.pm-mobile.pm-page-form .pm-native-file::file-selector-button {
    margin-right: 8px;
    padding: 7px 9px;
    color: var(--pm-navy-deep);
    background: #fff;
    border: 1px solid #ccd7dd;
    border-radius: 5px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
  }

  body.pm-mobile.pm-page-form .pm-add-file {
    margin: 8px 0 0;
    padding: 0;
    color: var(--pm-navy-soft);
    background: none;
    border: 0;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
  }

  body.pm-mobile.pm-page-form .pm-form-fields-grid,
  body.pm-mobile.pm-page-form .pm-form-phone-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
  }

  body.pm-mobile.pm-page-form .pm-form-phone-row {
    margin-top: 11px;
  }

  body.pm-mobile.pm-page-form .pm-form-field label {
    display: block;
    margin: 0 0 5px;
    color: var(--pm-text);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
  }


body.pm-mobile.pm-page-form .pm-form-contact-section .pm-contact-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

  body.pm-mobile.pm-page-form .pm-form-field input.contact-data,
  body.pm-mobile.pm-page-form .pm-form-field input.contact-data-tel {
    float: none;
    display: block;
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 0 12px;
    color: var(--pm-text);
    background: #fff;
    border: 1px solid #cfd9df;
    border-radius: 6px;
    outline: none;
    font: inherit;
    font-size: 16px;
    letter-spacing: normal;
  }

  body.pm-mobile.pm-page-form .pm-phone-help {
    min-height: 0;
    padding: 10px 11px;
    background: #f8fafb;
    border: 1px solid var(--pm-line);
    border-radius: 6px;
  }

  body.pm-mobile.pm-page-form .pm-phone-help summary {
    color: var(--pm-navy-soft);
    font-size: 12px;
    line-height: 1.45;
    font-weight: 700;
    cursor: pointer;
  }

  body.pm-mobile.pm-page-form .pm-phone-help p {
    margin: 7px 0 0;
    color: var(--pm-muted);
    font-size: 11.5px;
    line-height: 1.5;
  }

  body.pm-mobile.pm-page-form .pm-form-consents {
    margin: 0;
    padding: 17px 0 0;
    border-top: 1px solid var(--pm-line);
  }

  body.pm-mobile.pm-page-form .pm-consent {
    margin: 0 0 10px;
    color: #64727c;
    font-size: 11px;
    line-height: 1.5;
  }

  body.pm-mobile.pm-page-form .pm-consent label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
  }

  body.pm-mobile.pm-page-form .pm-consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 1px 0 0;
    accent-color: var(--pm-navy);
  }

  body.pm-mobile.pm-page-form .privacy-more-content {
    display: none;
    margin: 7px 0 0 25px;
    color: var(--pm-muted);
    font-size: 10.5px;
    line-height: 1.45;
  }

  body.pm-mobile.pm-page-form .privacy-more-content.show { display: block; }
  body.pm-mobile.pm-page-form .adreslexine { display: none; }

  body.pm-mobile.pm-page-form .pm-form-submit-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 18px;
  }

  body.pm-mobile.pm-page-form input.pm-form-submit,
  body.pm-mobile.pm-page-form #mainorder.pm-form-submit {
    float: none;
    width: 100%;
    min-width: 0;
    height: 46px;
    margin: 0;
    padding: 0 16px;
    color: #fff;
    background: var(--pm-navy);
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-size: 15px;
    line-height: 46px;
    font-weight: 700;
    text-shadow: none;
    box-shadow: none;
  }

  body.pm-mobile.pm-page-form .pm-form-submit-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 8px;
    justify-content: center;
    color: var(--pm-muted);
    font-size: 10.5px;
    line-height: 1.45;
    text-align: center;
  }

  body.pm-mobile.pm-page-form .pm-form-submit-trust strong {
    width: 100%;
    color: var(--pm-success);
    font-size: 11px;
  }

  body.pm-mobile.pm-page-form .pm-form-error {
    margin: 0 0 7px;
    color: #a33f3f;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 700;
  }

  body.pm-mobile.pm-page-form .pm-form-error-inline {
    display: block;
    width: 100%;
    margin-bottom: 5px;
  }

  body.pm-mobile.pm-page-form .pm-form-aside {
    align-self: auto;
  }

  body.pm-mobile.pm-page-form .pm-form-aside-sticky {
    position: static;
    overflow: hidden;
  }

  body.pm-mobile.pm-page-form .pm-how-it-works,
  body.pm-mobile.pm-page-form .pm-form-reviews {
    padding: 18px 17px;
  }

  body.pm-mobile.pm-page-form .pm-form-reviews {
    border-top: 1px solid var(--pm-line);
  }

  body.pm-mobile.pm-page-form .pm-process-list {
    list-style: none;
    margin: 13px 0 0;
    padding: 0;
  }

  body.pm-mobile.pm-page-form .pm-process-list li {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 9px;
    margin: 0;
    padding: 0 0 13px;
  }

  body.pm-mobile.pm-page-form .pm-process-list li > span {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--pm-navy);
    background: #edf2f5;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
  }

  body.pm-mobile.pm-page-form .pm-process-list strong {
    display: block;
    margin: 0 0 2px;
    color: var(--pm-text);
    font-size: 12.5px;
    line-height: 1.35;
  }

  body.pm-mobile.pm-page-form .pm-process-list p {
    margin: 0;
    color: var(--pm-muted);
    font-size: 11.5px;
    line-height: 1.45;
  }

  body.pm-mobile.pm-page-form .pm-review-card {
    margin: 11px 0 0;
    padding: 11px 0 0;
    border-top: 1px solid #e9edef;
  }

  body.pm-mobile.pm-page-form .pm-review-stars {
    margin-bottom: 5px;
    color: var(--pm-accent);
    font-size: 13px;
    line-height: 1;
    letter-spacing: 1px;
  }

  body.pm-mobile.pm-page-form .pm-review-text {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #4f606b;
    font-size: 11.5px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
  }

  body.pm-mobile.pm-page-form .pm-review-author {
    margin: 6px 0 0;
    color: var(--pm-muted);
    font-size: 10.5px;
    line-height: 1.3;
    font-style: italic;
    font-weight: 700;
    text-align: right;
  }

  body.pm-mobile.pm-page-form .pm-reviews-link {
    display: inline-block;
    margin-top: 13px;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
  }

  body.pm-mobile.pm-page-form .pm-form-aside-trust {
    margin-top: 13px;
    padding-top: 11px;
    color: var(--pm-muted);
    border-top: 1px solid #e9edef;
    font-size: 10.5px;
    line-height: 1.5;
  }

  body.pm-mobile.pm-page-form .pm-full-reviews {
    width: 100%;
    margin: 10px 0 0;
    padding: 20px 17px 18px;
  }

  body.pm-mobile.pm-page-form .pm-full-reviews > h2 {
    margin: 0 0 13px;
    color: var(--pm-navy-deep);
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
  }

  body.pm-mobile.pm-page-form .pm-full-reviews-list {
    border-top: 1px solid var(--pm-line);
  }

  body.pm-mobile.pm-page-form .pm-full-review {
    margin: 0;
    padding: 15px 1px 14px;
    border-bottom: 1px solid #e7ecef;
  }

  body.pm-mobile.pm-page-form .pm-full-review-text,
  body.pm-mobile.pm-page-form .pm-full-review-note {
    margin: 0;
    color: #465862;
    font-size: 13px;
    line-height: 1.58;
  }

  body.pm-mobile.pm-page-form .pm-full-review-author {
    margin: 7px 0 0;
    color: var(--pm-navy-deep);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
  }

  body.pm-mobile.pm-page-form .pm-full-reviews-pagination {
    margin: 0 0 11px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.pm-mobile.pm-page-form .pm-full-reviews-pagination-bottom {
    margin: 12px 0 0;
  }

  body.pm-mobile.pm-page-form .pm-full-reviews .new_pagenav {
    display: table !important;
    width: 100% !important;
    min-width: 0;
    table-layout: auto;
    border-collapse: collapse;
  }

  body.pm-mobile.pm-page-form .pm-full-reviews .new_pagenav td {
    display: table-cell;
    width: auto !important;
    padding: 0 2px;
    vertical-align: middle;
    white-space: nowrap;
    text-align: center;
  }

  body.pm-mobile.pm-page-form .pm-full-reviews .new_pagenav .tdnavl {
    text-align: left;
  }

  body.pm-mobile.pm-page-form .pm-full-reviews .new_pagenav .tdnavr {
    text-align: right;
  }

  body.pm-mobile.pm-page-form .pm-full-reviews .new_pagenav a,
  body.pm-mobile.pm-page-form .pm-full-reviews .new_pagenav .next_previous_unactive {
    display: inline-block;
    padding: 6px 3px;
    color: var(--pm-navy-soft);
    font-size: 10.5px;
    line-height: 1.3;
    text-decoration: none;
  }

  body.pm-mobile.pm-page-form .pm-full-reviews .new_pagenav .numer-w-paginacji {
    font-size: 11px;
    font-weight: 700;
  }

  body.pm-mobile.pm-page-form .pm-full-reviews .new_pagenav .podzial {
    padding: 0 2px;
    color: #c6cdd1;
    font-size: 9px;
  }

  body.pm-mobile.pm-page-form .pm-rodo-wrap {
    max-width: none;
    margin: 12px auto 0;
  }

  body.pm-mobile.pm-page-form #rodoinfo {
    display: none;
    width: 100%;
    margin: 0;
    padding: 17px;
    column-count: 1;
    color: #5e6c75;
    background: #fff;
    border: 1px solid var(--pm-line);
    border-radius: var(--pm-radius);
    font-size: 10px;
    line-height: 1.5;
  }

  body.pm-mobile.pm-page-form #rodoinfo > p:first-child {
    margin-top: 0;
    color: var(--pm-navy-deep);
    font-size: 13px;
  }

  body.pm-mobile.pm-page-form #rodoinfo p { margin: 0 0 7px; }
  body.pm-mobile.pm-page-form #rodoinfo ol,
  body.pm-mobile.pm-page-form #rodoinfo ul {
    margin-top: 0;
    margin-bottom: 8px;
    padding-left: 1.4em !important;
  }

  @media screen and (min-width: 700px) {
    body.pm-mobile.pm-page-form .pm-form-card {
      padding: 25px 27px 27px;
    }

    body.pm-mobile.pm-page-form .pm-form-fields-grid {
      grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
    }

    body.pm-mobile.pm-page-form .pm-form-phone-row {
      grid-template-columns: minmax(230px, .6fr) minmax(0, 1fr);
    }

    body.pm-mobile.pm-page-form .pm-form-submit-row {
      grid-template-columns: auto minmax(0, 1fr);
      align-items: center;
    }

    body.pm-mobile.pm-page-form input.pm-form-submit,
    body.pm-mobile.pm-page-form #mainorder.pm-form-submit {
      width: auto;
      min-width: 230px;
    }

    body.pm-mobile.pm-page-form .pm-form-submit-trust {
      justify-content: flex-start;
      text-align: left;
    }
  }

/* Mobile form v4 — układ inspirowany zwartym formularzem PrawoZolnierzy.pl */
body.pm-mobile.pm-page-form .holder-site {
  width: calc(100% - 16px);
  max-width: 760px;
  margin: 0 auto 12px;
}

body.pm-mobile.pm-page-form .holder-content.pm-form-content {
  display: flex;
  flex-direction: column;
  width: 100%;
}

body.pm-mobile.pm-page-form .pm-mobile-form-intro {
  order: 0;
  display: block;
  padding: 17px 16px 14px;
  background: #fff;
  border: 1px solid var(--pm-line);
  border-radius: 7px 7px 0 0;
  border-bottom: 0;
}

body.pm-mobile.pm-page-form .pm-mobile-form-title {
  margin: 13px 0 0;
  color: var(--pm-navy-deep);
  font-size: 25px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.25px;
}

body.pm-mobile.pm-page-form .pm-mobile-form-brand {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: -17px -16px 0;
  padding: 10px 16px;
  background: #f6f8f9;
  border-bottom: 1px solid var(--pm-line);
}

body.pm-mobile.pm-page-form .pm-mobile-form-brand strong {
  color: var(--pm-navy-deep);
  font-size: 13px;
  line-height: 1.3;
}

body.pm-mobile.pm-page-form .pm-mobile-form-brand span {
  color: var(--pm-muted);
  font-size: 10.5px;
  line-height: 1.3;
  white-space: nowrap;
}

body.pm-mobile.pm-page-form .pm-form-layout {
  display: contents;
}

body.pm-mobile.pm-page-form .pm-form-card {
  order: 1;
  width: 100%;
  padding: 18px 16px 20px;
  background: #fff;
  border: 1px solid var(--pm-line);
  border-top: 0;
  border-radius: 0 0 7px 7px;
  box-shadow: none;
}

body.pm-mobile.pm-page-form .pm-form-aside {
  order: 3;
  width: 100%;
  margin-top: 10px;
}

body.pm-mobile.pm-page-form .pm-full-reviews {
  order: 4;
}

body.pm-mobile.pm-page-form .pm-rodo-wrap {
  order: 2;
  width: 100%;
  margin: 10px 0 0;
}

body.pm-mobile.pm-page-form .pm-form-title-desktop {
  display: none;
}

body.pm-mobile.pm-page-form .pm-form-title-mobile {
  display: inline;
}

body.pm-mobile.pm-page-form .pm-form-section {
  padding-bottom: 18px;
}

body.pm-mobile.pm-page-form .pm-form-section + .pm-form-section {
  padding-top: 18px;
}

body.pm-mobile.pm-page-form .pm-form-section-heading {
  align-items: baseline;
  gap: 5px;
  margin-bottom: 11px;
}

body.pm-mobile.pm-page-form .pm-form-step-number {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  margin: 0;
  color: var(--pm-navy-deep);
  background: transparent;
  border-radius: 0;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
}

body.pm-mobile.pm-page-form .pm-form-step-number::after {
  content: ".";
}

body.pm-mobile.pm-page-form .pm-form-section-heading h1,
body.pm-mobile.pm-page-form .pm-form-section-heading h2 {
  font-size: 18px;
  line-height: 1.3;
}

body.pm-mobile.pm-page-form .pm-form-section-heading p {
  display: none;
}

body.pm-mobile.pm-page-form .pm-form-textarea {
  min-height: 205px;
  padding: 12px 13px;
  border-color: #cdd7dd;
  border-radius: 5px;
  font-size: 16px;
  line-height: 1.5;
}

body.pm-mobile.pm-page-form .pm-mobile-question-hint {
  display: block;
  margin: 8px 1px 0;
  color: #6a7881;
  font-size: 11.5px;
  line-height: 1.45;
}

body.pm-mobile.pm-page-form .pm-form-files-block {
  margin-top: 12px;
  padding: 10px 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid #edf0f2;
  border-radius: 0;
}

body.pm-mobile.pm-page-form .pm-form-files-title {
  margin-bottom: 6px;
  font-size: 11.5px;
}

body.pm-mobile.pm-page-form .pm-native-file::file-selector-button {
  color: #fff;
  background: var(--pm-navy);
  border-color: var(--pm-navy);
}

body.pm-mobile.pm-page-form .pm-add-file {
  display: inline-block;
  margin-top: 7px;
  color: var(--pm-navy-soft);
  font-size: 11.5px;
}

body.pm-mobile.pm-page-form .pm-form-fields-grid,
body.pm-mobile.pm-page-form .pm-form-phone-row {
  gap: 9px;
}

body.pm-mobile.pm-page-form .pm-form-field label {
  margin-bottom: 4px;
  font-size: 11.5px;
}

body.pm-mobile.pm-page-form .pm-form-field input.contact-data,
body.pm-mobile.pm-page-form .pm-form-field input.contact-data-tel {
  height: 44px;
  border-radius: 5px;
}

body.pm-mobile.pm-page-form .pm-phone-help {
  padding: 8px 10px;
  background: #f7f9fa;
  border-radius: 5px;
}

body.pm-mobile.pm-page-form .pm-form-consents {
  padding-top: 14px;
}

body.pm-mobile.pm-page-form .pm-consent {
  margin-bottom: 8px;
  font-size: 10.5px;
  line-height: 1.45;
}

body.pm-mobile.pm-page-form .pm-form-submit-row {
  gap: 7px;
  margin-top: 15px;
}

body.pm-mobile.pm-page-form input.pm-form-submit,
body.pm-mobile.pm-page-form #mainorder.pm-form-submit {
  height: 45px;
  border-radius: 5px;
  font-size: 15px;
  line-height: 45px;
}

body.pm-mobile.pm-page-form .pm-form-submit-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 0;
  color: #687780;
  font-size: 10px;
  line-height: 1.4;
}

body.pm-mobile.pm-page-form .pm-form-submit-trust > * {
  width: auto;
  color: #687780;
  font-size: 10px;
  font-weight: 600;
}

body.pm-mobile.pm-page-form .pm-form-submit-trust > * + *::before {
  content: "·";
  margin: 0 6px;
  color: #a3adb3;
}

body.pm-mobile.pm-page-form .pm-mobile-trust-anon {
  display: inline;
}

body.pm-mobile.pm-page-form .pm-form-aside-sticky,
body.pm-mobile.pm-page-form .pm-full-reviews {
  border-radius: 7px;
  box-shadow: none;
}

body.pm-mobile.pm-page-form .pm-how-it-works,
body.pm-mobile.pm-page-form .pm-form-reviews {
  padding: 17px 16px;
}

body.pm-mobile.pm-page-form .pm-how-it-works h2,
body.pm-mobile.pm-page-form .pm-form-reviews h2 {
  font-size: 18px;
}

body.pm-mobile.pm-page-form .pm-process-list li {
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  padding-bottom: 11px;
}

body.pm-mobile.pm-page-form .pm-process-list li > span {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

body.pm-mobile.pm-page-form .pm-form-aside-trust {
  font-size: 10px;
}

@media screen and (max-width: 359px) {
  body.pm-mobile.pm-page-form .holder-site {
    width: 100%;
    margin-top: 0;
  }

  body.pm-mobile.pm-page-form .pm-mobile-form-intro,
  body.pm-mobile.pm-page-form .pm-form-card {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  body.pm-mobile.pm-page-form .pm-mobile-form-brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}

/* Hotfix 21 — mobile form header + attachments */
body.pm-mobile.pm-page-form .pm-form-topbar {
  display: none !important;
}

body.pm-mobile.pm-page-form .pm-form-files-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 10px;
  align-items: start;
}

body.pm-mobile.pm-page-form #pm-form-files {
  min-width: 0;
  display: grid;
  gap: 7px;
}

body.pm-mobile.pm-page-form .pm-file-row {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}

body.pm-mobile.pm-page-form .pm-native-file {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
}

body.pm-mobile.pm-page-form .pm-file-trigger[hidden] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 11px;
  color: #fff;
  background: var(--pm-navy);
  border: 1px solid var(--pm-navy);
  border-radius: 5px;
  cursor: pointer;
  font-size: 11.5px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

body.pm-mobile.pm-page-form .pm-file-name[hidden] {
  display: inline-block !important;
  min-width: 0;
  overflow: hidden;
  color: var(--pm-muted);
  font-size: 10.5px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.pm-mobile.pm-page-form .pm-add-file {
  align-self: start;
  margin: 0;
  padding: 0;
  color: var(--pm-navy-soft);
  background: none;
  border: 0;
  font-size: 11.5px;
  line-height: 34px;
  font-weight: 700;
  white-space: nowrap;
}

@media screen and (max-width: 359px) {
  body.pm-mobile.pm-page-form .pm-form-files-actions {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
  }

  body.pm-mobile.pm-page-form .pm-file-trigger[hidden] {
    padding: 0 9px;
    font-size: 11px;
  }

  body.pm-mobile.pm-page-form .pm-add-file {
    font-size: 10.5px;
  }
}

/* Hotfix 22 — mobile form: remove desktop header and keep attachment actions in one row */
.pm-form-topbar {
  display: none !important;
}

body.pm-mobile.pm-page-form .pm-form-files-actions {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
}

body.pm-mobile.pm-page-form #pm-form-files {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
}

body.pm-mobile.pm-page-form .pm-file-row {
  width: 100% !important;
  min-width: 0 !important;
}

body.pm-mobile.pm-page-form .pm-add-file {
  flex: 0 0 auto !important;
  align-self: flex-start !important;
  display: inline-flex !important;
  align-items: center !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 34px !important;
  white-space: nowrap !important;
}

@media screen and (max-width: 359px) {
  body.pm-mobile.pm-page-form .pm-form-files-actions {
    gap: 6px !important;
  }

  body.pm-mobile.pm-page-form .pm-add-file {
    font-size: 10px !important;
  }
}
