/* Mobile reflow for the original Pay4Mobiles export.
   Desktop rendering, branding, colours, copy and source content stay untouched. */

#MOBILE_SITE_CONTAINER,
.p4m-menu-toggle,
#navbar.p4m-fallback-navbar {
  display: none;
}

@media (max-width: 979px) {
  #MOBILE_SITE_CONTAINER,
  #MOBILE_SITE_CONTAINER *,
  #navbar,
  #navbar * {
    box-sizing: border-box;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    background: #000;
  }

  body.pay4mobile-mobile-ready #SITE_CONTAINER {
    display: none !important;
  }

  body.pay4mobile-mobile-ready #MOBILE_SITE_CONTAINER {
    display: block;
  }

  #navbar {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    margin: 0 !important;
  }

  #navbar.p4m-fallback-navbar {
    display: block;
    z-index: 9999;
    background: #000;
    color: #fff;
    font-family: 'Questrial', Arial, sans-serif;
  }

  #navbar.p4m-fallback-navbar .top-bar {
    background: #65747c;
  }

  #navbar.p4m-fallback-navbar .navbar {
    background: #050505;
  }

  #navbar.p4m-fallback-navbar .nav-links {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  #navbar.p4m-fallback-navbar .nav-links a {
    color: #fff;
    text-decoration: none;
  }

  #navbar .top-bar {
    padding: 12px 0;
  }

  #navbar .top-container,
  #navbar .nav-container {
    width: 100% !important;
    padding-inline: 16px;
  }

  #navbar .top-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    justify-items: start;
  }

  #navbar .info-item,
  #navbar .info-item.center {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    font-size: 14px;
  }

  #navbar .navbar {
    padding: 12px 0;
  }

  #navbar .nav-container {
    display: block;
  }

  .p4m-menu-toggle {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #65747c;
    border-radius: 4px;
    padding: 0 14px;
    background: #0f0f0f;
    color: #fff;
    font: 600 15px/1 'Poppins', Arial, sans-serif;
    letter-spacing: .06em;
  }

  #navbar .nav-links,
  #navbar .social-icons {
    display: none;
  }

  #navbar.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 10px;
  }

  #navbar.menu-open .nav-links li,
  #navbar.menu-open .nav-links a {
    width: 100%;
  }

  #navbar.menu-open .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 8px;
    border-bottom: 1px solid #262626;
    font-size: 15px;
  }

  #navbar.menu-open .social-icons {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 16px 0 4px;
  }

  #navbar.menu-open .social-icons a {
    margin: 0;
    min-width: 44px;
    min-height: 44px;
    display: grid;
    place-items: center;
  }

  #MOBILE_SITE_CONTAINER {
    width: 100%;
    padding-bottom: 82px;
    background: #050505;
    color: #fff;
    font-family: 'proxima-n-w01-reg', Arial, Helvetica, sans-serif;
  }

  .p4m-mobile-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    padding: 44px 20px;
    background: var(--p4m-section-bg, #070707);
    color: var(--p4m-section-text, #fff);
    border-bottom: 1px solid rgba(101, 116, 124, .38);
  }

  .p4m-mobile-inner {
    position: relative;
    z-index: 2;
    width: min(100%, 680px);
    margin: 0 auto;
  }

  .p4m-mobile-hero {
    min-height: 590px;
    display: flex;
    align-items: center;
    text-align: center;
  }

  .p4m-mobile-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-position: center;
    background-size: cover;
  }

  .p4m-mobile-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, .48), rgba(0, 0, 0, .82));
  }

  .p4m-mobile-copy-block {
    width: 100%;
    margin: 0 0 22px;
  }

  .p4m-mobile-copy-block,
  .p4m-mobile-copy-block * {
    position: static !important;
    max-width: 100% !important;
    transform: none !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .p4m-mobile-copy-block h1,
  .p4m-mobile-copy-block h1 * {
    margin: 0 0 16px !important;
    color: #bee5fb !important;
    font: 700 clamp(34px, 10vw, 46px)/1.08 'Questrial', Arial, sans-serif !important;
  }

  .p4m-mobile-copy-block h2,
  .p4m-mobile-copy-block h2 * {
    margin: 0 0 14px !important;
    color: inherit !important;
    font: 700 clamp(25px, 7.5vw, 34px)/1.18 'Questrial', Arial, sans-serif !important;
  }

  .p4m-mobile-copy-block h3,
  .p4m-mobile-copy-block h3 * {
    margin: 0 0 12px !important;
    color: inherit !important;
    font: 700 22px/1.25 'Questrial', Arial, sans-serif !important;
  }

  .p4m-mobile-copy-block p,
  .p4m-mobile-copy-block p *,
  .p4m-mobile-copy-block li,
  .p4m-mobile-copy-block li * {
    color: inherit !important;
    font: 400 17px/1.58 'proxima-n-w01-reg', Arial, sans-serif !important;
  }

  .p4m-mobile-copy-block br + br {
    display: none;
  }

  .p4m-mobile-copy-block a {
    color: #bee5fb !important;
  }

  .p4m-mobile-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 26px auto 8px;
  }

  .p4m-mobile-action {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #bee5fb;
    border-radius: 999px;
    padding: 12px 18px;
    background: #bee5fb;
    color: #050505 !important;
    font: 700 14px/1.2 'Questrial', Arial, sans-serif;
    letter-spacing: .03em;
    text-align: center;
    text-decoration: none;
  }

  .p4m-mobile-action:nth-child(even) {
    background: transparent;
    color: inherit !important;
  }

  .p4m-mobile-media {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 28px 0 0;
  }

  .p4m-mobile-section:not(.p4m-mobile-hero) .p4m-mobile-media:has(> :nth-child(2)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .p4m-mobile-image {
    min-width: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #101010;
  }

  .p4m-mobile-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: contain;
  }

  .p4m-mobile-hero .p4m-mobile-media {
    width: min(100%, 480px);
    margin-inline: auto;
  }

  .p4m-mobile-hero .p4m-mobile-image {
    background: transparent;
  }

  .p4m-mobile-call {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9998;
    min-height: 50px;
    display: flex;
    align-items: center;
    border-radius: 999px;
    padding: 0 18px;
    background: #65747c;
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .42);
    font: 700 15px/1 'Questrial', Arial, sans-serif;
    text-decoration: none;
  }

  .p4m-blog-grid {
    display: grid;
    gap: 14px;
    margin-top: 28px;
  }

  .p4m-blog-card {
    display: grid;
    gap: 18px;
    min-height: 132px;
    padding: 22px;
    border: 1px solid rgba(190, 229, 251, .42);
    border-radius: 10px;
    background: #151515;
    color: #fff !important;
    text-decoration: none;
  }

  .p4m-blog-card span {
    color: inherit;
    font: 700 22px/1.25 'Questrial', Arial, sans-serif;
  }

  .p4m-blog-card strong {
    align-self: end;
    color: #bee5fb;
    font: 700 14px/1.2 'Questrial', Arial, sans-serif;
    letter-spacing: .03em;
  }
}

@media (max-width: 390px) {
  .p4m-mobile-section {
    padding-inline: 16px;
  }

  .p4m-mobile-section:not(.p4m-mobile-hero) .p4m-mobile-media:has(> :nth-child(2)) {
    grid-template-columns: 1fr;
  }
}
