/* MoyerMade Digital | Twenty-One + Standard Cart presentation layer.
 * No form visibility, validation, pricing or WHMCS attribution overrides.
 */
body.mmd-branded-portal.primary-bg-color {
    color: #141723;
    background: #f5f7fb;
}

body.mmd-branded-portal header.header {
    background: #fff;
}

body.mmd-branded-portal header.header > .navbar.navbar-light {
    padding-top: 14px;
    padding-bottom: 14px;
}

body.mmd-branded-portal header.header .navbar-brand {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    padding-top: 0;
    padding-bottom: 0;
}

/* The official 3:1 logo gets a deliberate, readable place in the header. */
body.mmd-branded-portal header.header .navbar-brand .logo-img {
    display: block;
    width: 240px;
    height: 80px;
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

body.mmd-branded-portal header.header .main-navbar-wrapper {
    border-bottom: 2px solid #3158ed;
}

body.mmd-branded-portal header.header #nav > li > a,
body.mmd-branded-portal header.header .toolbar .nav-link {
    color: #26334b;
}

body.mmd-branded-portal header.header #nav > li > a:hover,
body.mmd-branded-portal header.header #nav > li > a:focus,
body.mmd-branded-portal header.header .toolbar .nav-link:hover,
body.mmd-branded-portal header.header .toolbar .nav-link:focus {
    color: #2544c7;
}

body.mmd-branded-portal .master-breadcrumb {
    background: #eef2f8;
}

body.mmd-branded-portal .btn-primary {
    min-height: 44px;
    border-color: #3158ed;
    border-radius: 8px;
    background-color: #3158ed;
    color: #fff;
    font-weight: 600;
}

body.mmd-branded-portal .btn-primary:hover,
body.mmd-branded-portal .btn-primary:focus {
    border-color: #2544c7;
    background-color: #2544c7;
    color: #fff;
}

body.mmd-branded-portal .btn-primary:focus-visible,
body.mmd-branded-portal header.header a:focus-visible,
body.mmd-branded-portal header.header button:focus-visible {
    outline: 3px solid #18284b;
    outline-offset: 3px;
}

body.mmd-branded-portal .mmd-brand-intro {
    max-width: 64ch;
    margin: 10px 0 0;
    color: #526078;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

/* Domain-page dimensions and navigation remain owned by domain-entry.css. */
body.mmd-brand-native-cart:not(.mmd-domain-page) #main-body {
    padding-top: 28px;
    padding-bottom: 32px;
}

body.mmd-brand-native-cart:not(.mmd-domain-page) #order-standard_cart {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    color: #141723;
}

body.mmd-brand-native-cart:not(.mmd-domain-page) #order-standard_cart > .row {
    margin-left: 0;
    margin-right: 0;
    align-items: flex-start;
}

body.mmd-brand-native-cart:not(.mmd-domain-page) #order-standard_cart > .row > .cart-sidebar {
    padding-left: 0;
    padding-right: 20px;
}

body.mmd-brand-native-cart:not(.mmd-domain-page) #order-standard_cart > .row > .cart-body {
    min-width: 0;
    padding: 26px;
    border: 1px solid #dde4ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(20, 23, 35, .04);
}

body.mmd-brand-native-cart:not(.mmd-domain-page) #order-standard_cart .cart-sidebar .panel {
    border: 1px solid #dde4ef;
    border-radius: 10px;
    box-shadow: none;
    overflow: hidden;
}

body.mmd-brand-native-cart:not(.mmd-domain-page) #order-standard_cart .cart-sidebar .card-header {
    border-bottom-color: #eef2f8;
    background: #fff;
}

body.mmd-brand-native-cart:not(.mmd-domain-page) #order-standard_cart .cart-sidebar .panel-title {
    color: #526078;
    font-size: 13px;
    font-weight: 600;
}

body.mmd-brand-native-cart:not(.mmd-domain-page) #order-standard_cart .cart-body > .header-lined {
    margin: 0 0 24px;
    padding: 0;
    border: 0;
}

body.mmd-brand-native-cart:not(.mmd-domain-page) #order-standard_cart .cart-body > .header-lined > h1 {
    margin: 0;
    padding: 0;
    border: 0;
    color: #141723;
    font-size: 30px !important;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.02em;
}

/* The native inline select expands to fit long offer labels; keep it in its form. */
body.mmd-brand-native-cart:not(.mmd-domain-page) #frmConfigureProduct #inputBillingcycle {
    width: 100%;
    max-width: 100%;
}

/* Only the summary shell changes; #producttotal remains native/AJAX managed. */
body.mmd-brand-native-cart:not(.mmd-domain-page) #orderSummary .order-summary {
    border: 1px solid #26334b;
    border-radius: 12px;
    background: #141723;
}

/* Native totals use a light interior; preserve readable price/label contrast. */
body.mmd-brand-native-cart:not(.mmd-domain-page) #orderSummary .summary-container {
    color: #141723;
}

body.mmd-brand-native-cart:not(.mmd-domain-page) #orderSummary .order-summary > h2 {
    color: #fff;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.3;
}

body.mmd-brand-native-cart:not(.mmd-domain-page) #orderSummary > .text-center > .btn-primary {
    width: 100%;
    margin-top: 12px;
    padding: 11px 16px;
}

body.mmd-brand-home #main-body .header-lined {
    margin-bottom: 24px;
}

@media (max-width: 767px) {
    body.mmd-branded-portal header.header > .navbar.navbar-light {
        padding-top: 12px;
        padding-bottom: 12px;
    }
    body.mmd-branded-portal header.header .navbar-brand {
        max-width: calc(100% - 112px);
    }
    body.mmd-branded-portal header.header .navbar-brand .logo-img {
        width: 200px;
        height: auto;
        max-height: 67px;
        aspect-ratio: 3 / 1;
    }
    body.mmd-branded-portal header.header .toolbar .nav-item.ml-3 {
        margin-left: 10px !important;
    }
    body.mmd-brand-native-cart:not(.mmd-domain-page) #main-body {
        padding-top: 20px;
        padding-bottom: 24px;
    }
    body.mmd-brand-native-cart:not(.mmd-domain-page) #order-standard_cart > .row > .cart-body {
        padding: 22px;
    }
    body.mmd-brand-native-cart:not(.mmd-domain-page) #order-standard_cart .cart-body > .header-lined > h1 {
        font-size: 26px !important;
    }
}

@media (max-width: 575px) {
    body.mmd-brand-native-cart:not(.mmd-domain-page) #order-standard_cart > .row > .cart-body {
        padding: 20px 16px;
    }
    body.mmd-brand-native-cart:not(.mmd-domain-page) #order-standard_cart .cart-body > .header-lined > h1 {
        font-size: 25px !important;
    }
    body.mmd-branded-portal .mmd-brand-intro {
        font-size: 13px;
    }
}
