/*
Owned-Networks own813 custom CSS.

Branding/layout overrides for the WHMCS Twenty-One child theme.
Core WHMCS CSS and JS remain inherited from Twenty-One.
*/

:root {
    --on-blue: #087bad;
    --on-blue-dark: #016fa6;
    --on-black: #111111;
    --on-dark: #171717;
    --on-footer: #181818;
    --on-border: #2c2c2c;
}

body.on-template-own813 {
    background: #f3f4f6;
}

.on-client-header {
    position: relative;
    z-index: 100;
    background: #080808;
    overflow: visible;
}

.on-account-topbar {
    background: #111111;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.on-account-topbar .btn,
.on-account-topbar .input-group-text {
    color: #ffffff;
}

/* Top marketing masthead */
.on-masthead {
    position: relative;
    z-index: 200;
    overflow: visible;
    background-color: #080808;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.36)),
        url("../img/worldmap.png"),
        url("../img/siteFooterPattern.png");
    background-repeat: no-repeat, no-repeat, repeat;
    background-position: center bottom, center bottom, left top;
    background-size: auto, auto, auto;
    color: #ffffff;
}

.on-masthead-inner {
    min-height: 128px;
    display: flex;
    align-items: center;
    gap: 38px;
    padding: 24px 0;
    overflow: visible;
}

.on-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.on-brand img {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
}

.on-service-nav-wrap {
    flex: 1 1 auto;
    overflow: visible;
}

.on-service-nav {
    align-items: stretch;
    justify-content: flex-end;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: visible;
}

.on-service-item {
    position: relative;
    list-style: none;
}

.on-service-link {
    display: block;
    padding: 16px 14px 14px;
    min-width: 128px;
    color: #c9c9c9;
    text-decoration: none;
    line-height: 1.15;
    white-space: nowrap;
    border-radius: 4px 4px 0 0;
}

.on-service-link strong {
    display: block;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.on-service-link span {
    display: block;
    color: #a8a8a8;
    margin-top: 4px;
    font-size: 12px;
}

.on-service-item:hover > .on-service-link,
.on-service-item:focus-within > .on-service-link {
    background: #202020;
    color: #ffffff;
    text-decoration: none;
}

.on-service-item:hover > .on-service-link strong,
.on-service-item:focus-within > .on-service-link strong {
    color: #0b93cf;
}

.on-service-item:hover > .on-service-link span,
.on-service-item:focus-within > .on-service-link span {
    color: #cfcfcf;
}

.on-service-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 268px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #222222;
    border: 1px solid #303030;
    border-radius: 0 4px 4px 4px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
    z-index: 5000;
}

.on-service-item:hover > .on-service-dropdown,
.on-service-item:focus-within > .on-service-dropdown {
    display: block;
}

.on-service-dropdown li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.on-service-dropdown a {
    display: block;
    padding: 12px 16px;
    color: #e7e7e7;
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
    border-bottom: 1px solid #111111;
}

.on-service-dropdown li:last-child a {
    border-bottom: 0;
}

.on-service-dropdown a strong {
    color: #ffffff;
    font-weight: 700;
}

.on-service-dropdown a:hover,
.on-service-dropdown a:focus {
    background: #111111;
    color: #ffffff;
    text-decoration: none;
}

.on-site-menu-toggle {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    margin-left: auto;
}

/* Blue WHMCS client-area navbar */
.on-main-navbar {
    position: relative;
    z-index: 150;
    background: var(--on-blue);
    padding-top: 0;
    padding-bottom: 0;
    min-height: 42px;
    box-shadow: none;
}

.on-main-navbar .container {
    min-height: 42px;
}

.on-main-navbar .navbar-toggler,
.on-client-menu-toggle {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
    padding: 5px 9px;
}

.on-mobile-client-label {
    color: #ffffff;
    font-weight: 600;
    margin-left: 12px;
    text-decoration: none;
}

.on-mobile-client-label:hover,
.on-mobile-client-label:focus {
    color: #ffffff;
    text-decoration: none;
}

.on-main-navbar .navbar-nav > li > a,
.on-main-navbar .navbar-nav .nav-link {
    color: #ffffff;
    padding: 11px 14px;
    line-height: 20px;
    text-decoration: none;
}

.on-main-navbar .navbar-nav > li > a:hover,
.on-main-navbar .navbar-nav > li > a:focus,
.on-main-navbar .navbar-nav > li.show > a,
.on-main-navbar .navbar-nav > li.active > a {
    color: #ffffff;
    background: #111111;
    text-decoration: none;
}

.on-main-navbar .dropdown-menu {
    border-radius: 0 0 3px 3px;
    border-color: rgba(0, 0, 0, 0.12);
    margin-top: 0;
}

.on-main-navbar .dropdown-item a,
.on-main-navbar .dropdown-menu a {
    color: #333333;
}

.on-main-navbar .dropdown-item:hover,
.on-main-navbar .dropdown-item:focus,
.on-main-navbar .dropdown-menu a:hover,
.on-main-navbar .dropdown-menu a:focus {
    background: #111111;
    color: #ffffff;
    text-decoration: none;
}

.on-cart-nav {
    margin-left: 10px;
}

.on-cart-link .badge,
.on-mobile-cart .badge {
    margin-left: 4px;
}

.on-mobile-cart {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.on-mobile-cart:hover,
.on-mobile-cart:focus {
    color: #ffffff;
    background: #111111;
}

/* Breadcrumb and body */
.master-breadcrumb {
    background: #ffffff;
    border-bottom: 1px solid #e6e6e6;
}

.master-breadcrumb .breadcrumb {
    margin-bottom: 0;
}

#main-body {
    position: relative;
    z-index: 1;
}

/* Panels and sidebars */
.card-sidebar .card-header,
.panel-sidebar .panel-heading {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

.card-sidebar .card-title,
.panel-sidebar .panel-title {
    color: #ffffff;
}

.card-sidebar .list-group-item.active,
.card-sidebar .list-group-item.active:hover,
.card-sidebar .list-group-item.active:focus,
.list-group-item.active,
.list-group-item.active:hover,
.list-group-item.active:focus {
    background-color: var(--on-blue);
    border-color: var(--on-blue);
}

/* Buttons */
.btn-primary,
.btn-info {
    background-color: var(--on-blue);
    border-color: var(--on-blue);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-info:hover,
.btn-info:focus {
    background-color: var(--on-blue-dark);
    border-color: var(--on-blue-dark);
}

/* Footer */
.on-footer {
    background-color: #181818;
    background-image: url("../img/siteFooterPattern.png");
    background-repeat: repeat;
    color: #bfbfbf;
    padding: 42px 0 34px;
    border-top: 1px solid #0b0b0b;
}

.on-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px;
}

.on-footer h5 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
}

.on-footer h5 span {
    color: #9f9f9f;
    font-weight: 400;
}

.on-footer-nav {
    margin: 0;
    padding: 0;
    list-style: none;
}

.on-footer-nav li {
    margin: 0;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.on-footer-nav li:last-child {
    border-bottom: 0;
}

.on-footer a {
    color: #d9d9d9;
    text-decoration: none;
}

.on-footer a strong {
    color: #ffffff;
}

.on-footer a:hover,
.on-footer a:focus {
    color: #ffffff;
    text-decoration: underline;
}

.on-footer-about p {
    color: #bfbfbf;
    line-height: 1.55;
    margin-bottom: 10px;
}

.on-footer-bar {
    background: #0f0f0f;
    color: #a9a9a9;
    padding: 16px 0;
    border-top: 1px solid #000000;
}

.on-footer-bar .container {
    position: relative;
    min-height: 36px;
}

.on-footer-bar p {
    margin: 0;
    padding-right: 160px;
    line-height: 1.45;
}

.on-footer-bar a {
    color: #ffffff;
    text-decoration: none;
}

.on-footer-bar a:hover,
.on-footer-bar a:focus {
    text-decoration: underline;
}

.on-footer-bar span {
    color: #888888;
}

.on-back-to-top {
    float: right;
    color: #ffffff;
    font-weight: 700;
}

.on-footer-lang {
    margin-top: 10px;
    padding: 4px 10px;
    color: #ffffff;
    border: 1px solid #333333;
    background: #171717;
}

.on-footer-lang:hover,
.on-footer-lang:focus {
    color: #ffffff;
    background: #222222;
}

/* Responsive */
@media (max-width: 1199.98px) {
    .on-masthead-inner {
        gap: 24px;
    }

    .on-service-link {
        min-width: auto;
        padding-left: 10px;
        padding-right: 10px;
    }

    .on-main-navbar {
        padding: 8px 0;
    }

    .on-main-navbar .navbar-collapse {
        padding-top: 10px;
    }

    .on-main-navbar .navbar-nav > li > a,
    .on-main-navbar .navbar-nav .nav-link {
        padding: 9px 10px;
    }
}

@media (max-width: 991.98px) {
    .on-masthead-inner {
        min-height: 88px;
        padding: 18px 0;
        flex-wrap: wrap;
    }

    .on-brand img {
        width: 170px;
    }

    .on-service-nav-wrap {
        flex-basis: 100%;
        width: 100%;
    }

    .on-service-nav {
        display: none;
        width: 100%;
        padding-top: 12px;
    }

    .on-service-nav.show {
        display: block;
    }

    .on-service-item {
        display: block;
    }

    .on-service-link {
        display: block;
        padding: 10px 0;
        border-radius: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        white-space: normal;
    }

    .on-service-dropdown {
        position: static;
        display: block;
        min-width: 0;
        box-shadow: none;
        border-radius: 0;
        border: 0;
        background: rgba(0, 0, 0, 0.25);
        margin-bottom: 8px;
    }

    .on-service-dropdown a {
        padding: 9px 14px;
        font-size: 13px;
    }

    .on-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .on-footer-bar p {
        padding-right: 0;
    }

    .on-back-to-top {
        float: none;
        display: inline-block;
        margin-bottom: 8px;
    }
}

@media (max-width: 575.98px) {
    .on-brand img {
        width: 150px;
    }

    .on-masthead-inner {
        min-height: 76px;
    }

    .on-footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}
