/* Hostzilla runs as the public layout inside Lagom 2. Keep this file limited
   to framework-boundary fixes; component styling remains in Hostzilla CSS. */

/* The decorative canvas must never participate in document flow. Without
   positioning it, its bitmap fallback height pushes every public page down. */
.funom-hostzilla-layout .funom-public-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
}

/* Homepage search arrow: keep the control transparent and expose only a
   black arrow. This scoped rule wins over the generic Lagom button styling. */
html body .funom-hostzilla-layout #funom-home-domain-search .domain-search-form > button.btn-go,
html body .funom-hostzilla-layout #funom-home-domain-search .domain-search-form > button.btn-go:hover,
html body .funom-hostzilla-layout #funom-home-domain-search .domain-search-form > button.btn-go:focus,
html body .funom-hostzilla-layout #funom-home-domain-search .domain-search-form > button.btn-go:active {
    appearance: none !important;
    -webkit-appearance: none !important;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #111 !important;
    outline: none !important;
}

html body .funom-hostzilla-layout #funom-home-domain-search .domain-search-form > button.btn-go::before,
html body .funom-hostzilla-layout #funom-home-domain-search .domain-search-form > button.btn-go::after {
    display: none !important;
    content: none !important;
}

html body .funom-hostzilla-layout #funom-home-domain-search .domain-search-form > button.btn-go > i,
html body .funom-hostzilla-layout #funom-home-domain-search .domain-search-form > button.btn-go > i::before {
    background: transparent !important;
    color: #111 !important;
    text-shadow: none !important;
}

.funom-hostzilla-layout > :not(.funom-public-canvas) {
    position: relative;
    z-index: 1;
}

/* The embedded public layout must use the document as its single scroll
   container. Lagom can turn the body into a flex/overflow container; that
   leaves the HTML document visually long but prevents wheel and touch scroll
   from reaching it. Keep the flex layout, but let the document own scrolling. */
html:has(body.funom-hostzilla-layout) {
    overflow-x: hidden;
    overflow-y: auto;
}

body.funom-hostzilla-layout {
    height: auto;
    min-height: 100vh;
    overflow: visible;
}

/* Keep the public navigation above the page sections. Lagom places the
   content sections in their own stacking context; without an explicit layer
   here, the Hero is painted over the open Hostzilla mega menu. */
.funom-hostzilla-layout > .main-header,
.funom-hostzilla-layout header.main-header {
    position: relative;
    z-index: 2147483000;
    /* Lagom's --main-header-padding-v is 48px for its own page headers.
       The embedded Hostzilla header already owns its vertical spacing. */
    padding-top: 0;
    isolation: isolate;
}

/* Top-bar dropdowns must be painted above the isolated navigation layer. */
.funom-hostzilla-layout > .header-top {
    position: relative;
    z-index: 2147483004;
}

.funom-hostzilla-layout > .header-top .top-bar-dropdown {
    position: relative;
    z-index: 2147483005;
}

.funom-hostzilla-layout > .header-top .top-bar-dropdown .dropdown-menu-two {
    z-index: 2147483006;
}

/* The Bootstrap .row inside the mega-menu spans over its child cards.
   Let only the actual links receive pointer input. */
.funom-hostzilla-layout .main-header .menu-bar > ul > li.dropdown.megamenu > ul > .container,
.funom-hostzilla-layout .main-header .menu-bar > ul > li.dropdown.megamenu > ul > .container > .row {
    pointer-events: none;
}

.funom-hostzilla-layout .main-header .menu-bar > ul > li.dropdown.megamenu .dropdown-items {
    pointer-events: auto;
    position: relative;
    z-index: 30;
}

.funom-hostzilla-layout .main-header .menu-bar > ul > li.dropdown.megamenu > ul > .container > .row > li {
    pointer-events: auto;
    position: relative;
    z-index: 20;
}

.funom-hostzilla-layout .main-header .menu-bar > ul > li.dropdown.megamenu > ul {
    position: absolute;
    z-index: 2147483001;
    background: #fff;
    isolation: isolate;
    pointer-events: auto;
    box-shadow: 0 14px 30px rgba(23, 30, 44, .14);
}

.funom-hostzilla-layout .main-header .menu-bar > ul > li.dropdown.megamenu > ul > .container,
.funom-hostzilla-layout .main-header .menu-bar > ul > li.dropdown.megamenu > ul > .container > .row {
    position: relative;
    z-index: 1;
    background: #fff;
}

/* Public CTA buttons use the Hostzilla blue palette and must retain readable
   contrast after Lagom's generic button rules are loaded. */
.funom-hostzilla-layout a.btn1,
.funom-hostzilla-layout button.btn1,
.funom-hostzilla-layout .domain-search-form .btn1 {
    color: #fff !important;
}

/* Homepage domain lookup: retain Hostzilla's original compact field. This
   is intentionally scoped to the homepage form, because generic overrides
   also changed the search and transfer forms on other pages. */
.funom-hostzilla-layout #funom-home-domain-search .domain-search-form {
    display: flex;
    align-items: center;
    position: relative;
    height: auto;
    min-height: 0;
}

.funom-hostzilla-layout #funom-home-domain-search .domain-search-form .form-input {
    box-sizing: border-box;
    width: 100%;
    height: 54px;
    min-height: 54px;
    padding: 15px 95px 15px 40px;
    border: 1px solid rgb(0 0 0 / 8%);
    border-radius: 28px;
    background: #fff;
    color: #434343;
    font-size: 14px;
    font-weight: 500;
    line-height: normal;
}

.funom-hostzilla-layout #funom-home-domain-search .domain-search-form > .bi-search {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 15px;
    color: #434343;
    font-size: 16px;
    line-height: 1;
    opacity: .8;
    transform: translateY(-50%);
}

.funom-hostzilla-layout #funom-home-domain-search .domain-search-form .btn-go {
    position: absolute;
    top: 50%;
    right: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #111 !important;
    line-height: 1;
    transform: translateY(-50%);
}

.funom-hostzilla-layout #funom-home-domain-search .domain-search-form .btn-go i {
    position: static !important;
    left: auto !important;
    color: #111 !important;
    font-size: 23px;
    line-height: 1;
    text-shadow: none;
    transform: translateX(1px);
}

/* Restore the original Hostzilla domain-hero field. Lagom's input defaults
   were reducing it to 44px with a squared corner and leaving the submit
   control outside the visual field. */
.funom-hostzilla-layout #funom-domain-search-cart .domain-search-form,
.funom-hostzilla-layout form.transfers .domain-search-form {
    align-items: center;
    background: #fff;
    border: 1px solid #dce3ee;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(32, 61, 113, .08);
    display: flex;
    height: 64px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.funom-hostzilla-layout #funom-domain-search-cart .domain-search-form > svg,
.funom-hostzilla-layout form.transfers .domain-search-form > svg {
    color: #4b78ff;
    flex: 0 0 auto;
    height: 18px;
    margin-left: 20px;
    pointer-events: none;
    width: 18px;
}

/* Hostzilla's base stylesheet positions this SVG absolutely. It must be a
   normal flex item in both public domain forms so it cannot cover text. */
.funom-hostzilla-layout #funom-domain-search-cart .domain-search-form > svg {
    position: static !important;
}

.funom-hostzilla-layout #funom-domain-search-cart .domain-search-form .inputs,
.funom-hostzilla-layout form.transfers .domain-search-form .inputs {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #172033;
    flex: 1 1 auto;
    font-size: 15px;
    height: 100%;
    min-width: 0;
    outline: 0;
    padding: 0 18px 0 12px;
}

.funom-hostzilla-layout #funom-domain-search-cart .domain-search-form .inputs {
    padding-left: 16px !important;
}

.funom-hostzilla-layout #funom-domain-search-cart .domain-search-form .inputs::placeholder,
.funom-hostzilla-layout form.transfers .domain-search-form .inputs::placeholder { color: #8a94a6; }

.funom-hostzilla-layout #funom-domain-search-cart .domain-search-form .btn-theme,
.funom-hostzilla-layout form.transfers .domain-search-form .btn-theme {
    align-items: center;
    background: #3b73ef;
    border: 0;
    border-radius: 9px;
    box-shadow: none;
    color: #fff !important;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 15px;
    font-weight: 600;
    height: 48px;
    justify-content: center;
    margin-right: 8px;
    min-width: 136px;
    padding: 0 22px;
    position: static;
    transform: none;
}

.funom-hostzilla-layout #funom-domain-search-cart .domain-search-form .btn-theme:hover,
.funom-hostzilla-layout form.transfers .domain-search-form .btn-theme:hover { background: #285fd7; }

.funom-hostzilla-layout form.transfers .domain-search-form .btngrp {
    align-items: center;
    border-left: 1px solid #e4e8ef;
    display: flex;
    flex: 0 0 auto;
    height: 38px;
    margin-right: 8px;
}

.funom-hostzilla-layout form.transfers .domain-search-form .selects {
    appearance: none;
    background: transparent;
    border: 0;
    color: #27344b;
    font-size: 14px;
    font-weight: 600;
    height: 100%;
    min-width: 78px;
    outline: 0;
    padding: 0 12px;
}

.funom-hostzilla-layout form.transfers .domain-search-form .btn-theme { margin-right: 0; }

.funom-hostzilla-layout form.transfers .domain-search-form > svg {
    margin-left: 18px;
    position: static;
}

.funom-hostzilla-layout form.transfers .domain-search-form .inputs {
    padding-left: 16px;
}

@media (max-width: 575.98px) {
    .funom-hostzilla-layout #funom-domain-search-cart .domain-search-form,
    .funom-hostzilla-layout form.transfers .domain-search-form {
        height: auto;
        min-height: 58px;
    }

    .funom-hostzilla-layout #funom-domain-search-cart .domain-search-form .btn-theme,
    .funom-hostzilla-layout form.transfers .domain-search-form .btn-theme {
        min-width: 96px;
        padding: 0 14px;
    }

    .funom-hostzilla-layout form.transfers .domain-search-form .selects { min-width: 60px; padding: 0 8px; }
}

/* Final homepage search control reset. Keep only the black arrow visible;
   remove the inherited blue circular button in every interaction state. */
html body.funom-hostzilla-layout #funom-home-domain-search .domain-search-form > button.btn-go,
html body.funom-hostzilla-layout #funom-home-domain-search .domain-search-form > button.btn-go:hover,
html body.funom-hostzilla-layout #funom-home-domain-search .domain-search-form > button.btn-go:focus,
html body.funom-hostzilla-layout #funom-home-domain-search .domain-search-form > button.btn-go:active,
html body.funom-hostzilla-layout #funom-home-domain-search .domain-search-form > button.btn-go:visited {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    right: 12px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #111 !important;
    transform: translateY(-50%) !important;
}

html body.funom-hostzilla-layout #funom-home-domain-search .domain-search-form > button.btn-go::before,
html body.funom-hostzilla-layout #funom-home-domain-search .domain-search-form > button.btn-go::after,
html body.funom-hostzilla-layout #funom-home-domain-search .domain-search-form > button.btn-go > i::after {
    display: none !important;
    content: none !important;
    background: transparent !important;
}

html body.funom-hostzilla-layout #funom-home-domain-search .domain-search-form > button.btn-go > i {
    display: inline-block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    color: #111 !important;
    background: transparent !important;
    font-size: 24px !important;
    line-height: 1 !important;
    text-shadow: none !important;
    transform: none !important;
}

html body.funom-hostzilla-layout #funom-home-domain-search .domain-search-form > button.btn-go > i::before {
    display: inline-block !important;
    color: #111 !important;
    background: transparent !important;
    text-shadow: none !important;
}

/* Public Hostzilla header only: preserve the uploaded Lagom logo ratio while
   giving it a more deliberate visual weight in the desktop navigation. */
.funom-hostzilla-layout .main-header .logo-box .hostzilla-logo .logo-img,
.funom-hostzilla-layout .main-header .menu-bar .logo-bar .hostzilla-logo .logo-img {
    display: block;
    width: auto;
    max-width: 220px;
    height: 40px !important;
    max-height: 40px !important;
    object-fit: contain;
}

@media (max-width: 767px) {
    .funom-hostzilla-layout .main-header .logo-box .hostzilla-logo .logo-img,
    .funom-hostzilla-layout .main-header .menu-bar .logo-bar .hostzilla-logo .logo-img {
        height: 34px !important;
        max-height: 34px !important;
        max-width: 185px;
    }
}

/* Give the public desktop navigation the intended visual weight. */
@media (min-width: 1200px) {
    .funom-hostzilla-layout .main-header > .container {
        min-height: 78px;
    }

    .funom-hostzilla-layout .main-header .menu-bar > ul > li > a {
        padding-top: 25px;
        padding-bottom: 25px;
    }

    .funom-hostzilla-layout .main-header .header-right-btns .headerbtn {
        padding: 11px 22px;
    }
}

.funom-hostzilla-layout #funom-domain-search-form-native .domain-search-form .inputs {
    height: 66px;
    padding: 8px 168px 8px 48px;
    border-radius: 12px;
}

.funom-hostzilla-layout #funom-domain-search-form-native .domain-search-form .btn-theme {
    top: 50%;
    right: 12px;
    height: 50px;
    min-height: 0;
    padding: 0 40px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1199.98px) {
    .funom-hostzilla-layout > .main-header,
    .funom-hostzilla-layout header.main-header {
        /* The public mobile header has its own vertical rhythm. Keeping
           Lagom's fallback padding here creates a blank strip above it. */
        padding: 0;
    }

    .funom-hostzilla-layout .main-header .menu-bar {
        justify-content: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
    }

    .funom-hostzilla-layout .main-header .menu-right-mob {
        flex: 0 0 auto;
        width: 100%;
        margin-top: 24px;
    }

    .funom-hostzilla-layout .main-header .menu-right-mob .headerbtn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 44px;
    }
}

@media (max-width: 767.98px) {
    /* Preserve document scrolling when the mobile drawer is closed. The
       drawer itself owns vertical scrolling only while it is active. */
    html,
    body.funom-hostzilla-layout {
        min-height: 100%;
        height: auto;
        /* Lagom adds --mob-app-nav-header-height padding to every body on
           small screens for its own fixed app header. Hostzilla renders a
           different header in this layout, so that reserved space is empty
           and must be removed at the source. */
        padding-top: 0 !important;
        margin-top: 0;
        overflow: visible;
        touch-action: pan-y;
    }

    body.funom-hostzilla-layout .main-header {
        margin: 0;
        /* Give the mobile toolbar a usable touch target while keeping the
           public header compact. The original 10px framework padding was
           being reset to zero by the bridge. */
        padding: 8px 0;
    }

    .funom-hostzilla-layout .main-header > .container {
        min-height: 48px;
    }

    .funom-hostzilla-layout .main-header .header-right-btns {
        gap: 12px;
    }

    .funom-hostzilla-layout .main-header .header-right-btns .headerbtn {
        min-height: 44px;
        padding: 11px 18px;
    }

    .funom-hostzilla-layout .main-header .header-right-btns .hamburger {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        padding: 12px 10px;
        border-radius: 8px;
    }

    /* On phones the public hero should begin directly below the navigation.
       The desktop section padding was leaving a large blank band above the
       offer badge. */
    .funom-hostzilla-layout .hero-banner {
        padding-top: 24px;
        padding-bottom: 36px;
    }

    /* Lagom's Bootstrap gutter makes the original announcement row stack into
       a tall block. The compact navigation already exposes account controls. */
    .funom-hostzilla-layout .header-top {
        padding: 6px 0;
    }

    .funom-hostzilla-layout .header-top .row {
        --bs-gutter-y: 0;
    }

    .funom-hostzilla-layout .header-top .col-lg-6:first-child {
        width: 100%;
    }

    .funom-hostzilla-layout .header-top .col-lg-6:last-child {
        display: none;
    }

    .funom-hostzilla-layout .right-top-bar {
        text-align: center;
    }

    .funom-hostzilla-layout .right-top-bar span {
        display: block;
        overflow: hidden;
        font-size: 13px;
        line-height: 20px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Final homepage search control reset (last in cascade). */
html body.funom-hostzilla-layout #funom-home-domain-search .domain-search-form > button.btn-go,
html body.funom-hostzilla-layout #funom-home-domain-search .domain-search-form > button.btn-go:hover,
html body.funom-hostzilla-layout #funom-home-domain-search .domain-search-form > button.btn-go:focus,
html body.funom-hostzilla-layout #funom-home-domain-search .domain-search-form > button.btn-go:active {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    right: 12px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #111 !important;
    transform: translateY(-50%) !important;
}

html body.funom-hostzilla-layout #funom-home-domain-search .domain-search-form > button.btn-go::before,
html body.funom-hostzilla-layout #funom-home-domain-search .domain-search-form > button.btn-go::after,
html body.funom-hostzilla-layout #funom-home-domain-search .domain-search-form > button.btn-go > i::after {
    display: none !important;
    content: none !important;
    background: transparent !important;
}

html body.funom-hostzilla-layout #funom-home-domain-search .domain-search-form > button.btn-go > i {
    display: inline-block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    color: #111 !important;
    background: transparent !important;
    font-size: 24px !important;
    line-height: 1 !important;
    text-shadow: none !important;
    transform: none !important;
}

html body.funom-hostzilla-layout #funom-home-domain-search .domain-search-form > button.btn-go > i::before {
    display: inline-block !important;
    color: #111 !important;
    background: transparent !important;
    text-shadow: none !important;
}
