.safe-mobile-hub {
    max-width: 760px;
    margin: 0 auto;
    background: #f6f8fb;
    color: #182231;
    font-family: inherit;
    overflow: hidden;
}

.safe-mobile-only {
    display: block;
}

@media (min-width: 768px) {
    .safe-mobile-only {
        display: none !important;
    }
}

.safe-mobile-hub * {
    box-sizing: border-box;
}

.safe-mobile-hero {
    position: relative;
    padding: 34px 18px 28px;
    text-align: center;
    background: radial-gradient(circle at top, #d9ecff 0%, #f6f8fb 58%);
    background-size: cover;
    background-position: center;
}

.safe-mobile-hero-inner {
    position: relative;
    z-index: 1;
}

.safe-mobile-hub-has-bg .safe-mobile-hero {
    color: #ffffff;
}

.safe-mobile-logo {
    display: block;
    width: min(170px, 52vw);
    height: auto;
    margin: 0 auto 14px;
}

.safe-mobile-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 108px;
    height: 108px;
    margin: 0 auto 16px;
    border-radius: 999px;
    background: #ffffff;
    color: #19365c;
    font-weight: 900;
    letter-spacing: 0.08em;
    box-shadow: 0 12px 32px rgba(20, 38, 67, 0.18);
}

.safe-mobile-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(28px, 9vw, 42px);
    line-height: 1.05;
    font-weight: 900;
    color: inherit;
}

.safe-mobile-hero p {
    max-width: 36rem;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.55;
    color: inherit;
}

.safe-mobile-link-section {
    padding: 18px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.safe-mobile-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0;
}

.safe-mobile-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 18px;
    border-radius: 18px;
    background: #ffffff;
    color: #172235;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(20, 38, 67, 0.11);
    border: 1px solid rgba(20, 38, 67, 0.08);
}

.safe-mobile-actions a:focus,
.safe-mobile-actions a:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(20, 38, 67, 0.15);
}

.safe-mobile-panel {
    margin: 0 18px 18px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 10px 24px rgba(20, 38, 67, 0.10);
    border: 1px solid rgba(20, 38, 67, 0.08);
}

.safe-mobile-panel h2 {
    margin: 0 0 14px;
    font-size: 23px;
    line-height: 1.2;
    color: #172235;
    font-weight: 900;
}

.safe-mobile-shortcode-output {
    color: #1f2c3d;
}

.safe-mobile-shortcode-output img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

.safe-mobile-shortcode-output a {
    color: #123d73;
}

.safe-mobile-shortcode-output article,
.safe-mobile-shortcode-output .post,
.safe-mobile-shortcode-output .event,
.safe-mobile-shortcode-output .em_event,
.safe-mobile-shortcode-output .em-event {
    max-width: 100%;
}

.safe-mobile-footer {
    padding: 20px 18px 32px;
    text-align: center;
    color: #34445a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.safe-mobile-footer p {
    margin: 0 0 12px;
    font-size: 14px;
}

.safe-mobile-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.safe-mobile-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 999px;
    background: #ffffff;
    color: #172235;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(20, 38, 67, 0.10);
}

@media (max-width: 420px) {
    .safe-mobile-link-section {
        padding: 16px;
    }

    .safe-mobile-panel {
        margin-left: 16px;
        margin-right: 16px;
        padding: 16px;
    }
}

.safe-mobile-menu-actions {
    display: block;
}

.safe-mobile-menu-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.safe-mobile-menu-list li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.safe-mobile-menu-list a {
    width: 100%;
}

.safe-mobile-socials a {
    gap: 7px;
}

.safe-mobile-socials svg {
    width: 18px;
    height: 18px;
    display: inline-block;
    flex: 0 0 18px;
    fill: currentColor;
}

.safe-mobile-social-label {
    display: inline-block;
}

.safe-mobile-social-section {
    padding: 4px 18px 18px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.safe-mobile-social-section .safe-mobile-socials {
    padding: 10px 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(20, 38, 67, 0.08);
    box-shadow: 0 10px 24px rgba(20, 38, 67, 0.08);
}

.safe-mobile-socials:empty {
    display: none;
}

/* Blank mobile page template */
body.safe-mobile-hub-blank-template {
  margin: 0;
  padding: 0;
  background: #f5f7fb;
  overflow-x: hidden;
}

.safe-mobile-blank-main {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100%;
}

.safe-mobile-blank-content {
  margin: 0;
  padding: 0;
}

.safe-mobile-blank-content > *:first-child {
  margin-top: 0;
}

.safe-mobile-blank-content .entry-title,
.safe-mobile-hub-blank-template .entry-title,
.safe-mobile-hub-blank-template .page-title {
  display: none !important;
}

/* Version 1.4.1: full-screen reset for the reusable blank mobile template. */
body.safe-mobile-hub-blank-template {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 100vh !important;
    overflow-x: hidden !important;
    background: #f6f8fb;
}

body.safe-mobile-hub-blank-template .safe-mobile-blank-main,
body.safe-mobile-hub-blank-template .safe-mobile-blank-content,
body.safe-mobile-hub-blank-template .entry-content,
body.safe-mobile-hub-blank-template .wp-block-post-content,
body.safe-mobile-hub-blank-template .elementor,
body.safe-mobile-hub-blank-template .elementor-section-wrap,
body.safe-mobile-hub-blank-template .elementor-section,
body.safe-mobile-hub-blank-template .elementor-container,
body.safe-mobile-hub-blank-template .elementor-widget-wrap,
body.safe-mobile-hub-blank-template .elementor-widget,
body.safe-mobile-hub-blank-template .elementor-widget-container {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.safe-mobile-hub-blank-template .safe-mobile-blank-content > *,
body.safe-mobile-hub-blank-template .entry-content > *,
body.safe-mobile-hub-blank-template .wp-block-post-content > * {
    max-width: none !important;
}

body.safe-mobile-hub-blank-template .safe-mobile-hub {
    width: 100% !important;
    max-width: none !important;
    min-height: 100vh;
    margin: 0 !important;
    border-radius: 0 !important;
}

body.safe-mobile-hub-blank-template .safe-mobile-only {
    display: block !important;
}

@media (max-width: 767px) {
    .safe-mobile-hub {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Version 1.4.3: stronger closing footer for the mobile landing page. */
.safe-mobile-closing-footer {
    position: relative;
    padding: 34px 18px calc(38px + env(safe-area-inset-bottom));
    text-align: center;
    background: linear-gradient(180deg, #eef5ff 0%, #ffffff 100%);
    border-top: 1px solid rgba(20, 38, 67, 0.08);
}

.safe-mobile-footer-inner {
    max-width: 520px;
    margin: 0 auto;
}

.safe-mobile-footer-logo {
    display: block;
    width: min(112px, 34vw);
    height: auto;
    margin: 0 auto 14px;
}

.safe-mobile-footer-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: #ffffff;
    color: #19365c;
    font-weight: 900;
    letter-spacing: 0.08em;
    box-shadow: 0 10px 26px rgba(20, 38, 67, 0.14);
}

.safe-mobile-closing-footer h2 {
    margin: 0 0 8px;
    font-size: clamp(21px, 6vw, 28px);
    line-height: 1.15;
    color: #172235;
    font-weight: 900;
}

.safe-mobile-closing-footer .safe-mobile-footer-note {
    max-width: 34rem;
    margin: 0 auto 16px;
    font-size: 15px;
    line-height: 1.5;
    color: #34445a;
}

.safe-mobile-footer-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 16px 0;
}

.safe-mobile-footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #ffffff;
    color: #172235;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(20, 38, 67, 0.12);
    border: 1px solid rgba(20, 38, 67, 0.08);
}

.safe-mobile-footer-socials svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.safe-mobile-back-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 4px auto 16px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #172235;
    color: #ffffff !important;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(20, 38, 67, 0.16);
}

.safe-mobile-footer-copy {
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.4;
    color: #617083;
}


/* Version 1.4.3: force the plugin footer section to remain visible even when theme/footer hiding CSS exists. */
.safe-mobile-hub .safe-mobile-closing-footer,
body.safe-mobile-hub-blank-template .safe-mobile-closing-footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: none !important;
    clear: both !important;
}

.safe-mobile-hub .safe-mobile-footer-inner {
    display: block !important;
}

/* Version 1.5.0: extra mobile content sections. */
.safe-mobile-extra-section {
    position: relative;
}
