:root {
    --mm-teal: #18c8d0;
    --mm-primary: #18c8d0;
    --mm-orange: #f86028;
    --mm-yellow: #ffb23f;
    --mm-ink: #171b1f;
    --mm-muted: #65717f;
    --mm-line: #edf0f3;
    --mm-soft: #eefcfd;
}

body {
    background: linear-gradient(180deg, #f6feff 0, #fff 280px);
    color: var(--mm-ink);
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
    padding-top: 78px;
}

body a {
    color: var(--mm-teal);
}

body a:hover,
body a:focus {
    color: #c72b20;
    text-decoration: none;
}

.container {
    max-width: 1180px;
    width: 100%;
}

.navbar-default {
    background: rgba(255,255,255,.96);
    border: 0;
    box-shadow: 0 8px 30px rgba(31,41,51,.08);
    min-height: 70px;
}

.navbar-brand {
    height: 70px;
    padding: 17px 15px;
}

.navbar-brand img {
    height: 36px;
    width: auto;
}

.navbar-default .navbar-nav > li > a {
    color: var(--mm-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    padding-bottom: 24px;
    padding-top: 25px;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--mm-teal) !important;
}

.mm-account-nav {
    align-items: center;
    display: flex;
}

.mm-account-nav .mm-account-flag {
    align-items: center;
    display: flex;
    min-height: 70px;
    padding: 0 8px;
}

.mm-account-nav > li > img {
    margin: 0;
}

.mm-account-nav .nav-icon-50 {
    align-items: center;
    display: flex;
    min-height: 70px;
}

.mm-account-avatar {
    align-items: center;
    display: inline-flex !important;
    height: 50px;
    justify-content: center;
    padding: 0 !important;
    width: 50px;
}

.mm-account-avatar img,
.nav-icon-50 img {
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(23,27,31,.14);
    height: 42px !important;
    object-fit: cover;
    width: 42px !important;
}

#nav_account_li:not(.open) > .dropdown-menu {
    display: none !important;
}

#nav_account_li.open > .dropdown-menu {
    display: block !important;
}

.navbar-search {
    padding-top: 12px;
}

.navbar-search .form-control,
#small_search_bar .form-control {
    border: 1px solid var(--mm-line) !important;
    border-radius: 999px !important;
    box-shadow: 0 6px 18px rgba(31,41,51,.06) !important;
    height: 42px;
}

#small_search_bar {
    padding: 10px 0 4px;
}

#small_search_bar .btn-primary {
    background: var(--mm-orange);
    border-color: var(--mm-orange);
    color: #fff;
    font-weight: 800;
}

#breadcrumbs {
    padding-top: 12px;
}

#breadcrumbs .breadcrumb {
    background: #fff;
    border: 1px solid var(--mm-line);
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(31,41,51,.05);
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding: 10px 14px;
}

#breadcrumbs .breadcrumb > li {
    color: var(--mm-muted);
    font-weight: 600;
}

#breadcrumbs .breadcrumb > li > a {
    color: var(--mm-teal);
    font-weight: 700;
}

#breadcrumbs .breadcrumb > li > a:hover,
#breadcrumbs .breadcrumb > li > a:focus {
    color: #c72b20;
}

#breadcrumbs .breadcrumb > .active {
    color: var(--mm-ink);
    font-weight: 800;
}

#breadcrumbs .breadcrumb > li + li:before {
    color: var(--mm-teal);
    content: "/\00a0";
    padding: 0 6px;
}

.mm-viewpost-shell {
    background: linear-gradient(180deg, var(--mm-soft) 0%, #fff 210px);
    border: 1px solid var(--mm-line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(31,41,51,.04);
    margin-bottom: 16px;
    padding: 14px 16px 18px;
}

h1 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.18;
    margin: 12px 0 8px;
}

h2 {
    color: var(--mm-muted);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 12px;
}

.panel {
    border: 1px solid var(--mm-line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(31,41,51,.06);
    overflow: hidden;
}

.panel-heading {
    background: #fff !important;
    border-bottom: 1px solid var(--mm-line);
    color: var(--mm-ink) !important;
    font-weight: 800;
    padding: 12px 15px;
}

.panel-body {
    padding: 16px;
}

#section_alerts,
#section_billboard,
#pictures,
#description,
#section_other,
#section_comments {
    margin-bottom: 14px;
}

.listing_section_sep,
hr {
    border-top: 1px solid var(--mm-line);
    margin: 12px 0;
}

.alert {
    border: 1px solid var(--mm-line);
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(31,41,51,.04);
    padding: 8px 12px;
}

.alert-warning {
    background: #fff8ec;
    border-color: rgba(255,178,63,.45);
    color: var(--mm-ink);
}

.alert-white {
    background: #fff;
    border-color: var(--mm-line);
}

.mm-listing-hero {
    background: linear-gradient(180deg, #fff 0%, var(--mm-soft) 100%);
    border: 1px solid var(--mm-line);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(31,41,51,.06);
    min-height: 320px;
    padding: 22px;
    position: relative;
}

.mm-device-image {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 268px;
}

.mm-device-image img,
#deviceImage,
.deviceImage {
    height: auto !important;
    max-height: 268px;
    max-width: 72%;
    width: auto !important;
}

.mm-listing-badges {
    left: 16px !important;
    position: absolute !important;
    top: 16px !important;
}

.mm-listing-badges .btn,
.mm-sell-badge .btn {
    background: #fff;
    border: 1px solid var(--mm-line);
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(31,41,51,.06);
    color: var(--mm-ink);
    margin-bottom: 7px;
    opacity: 1 !important;
    padding: 6px 10px;
}

#buy_now_panel .panel-body {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
}

.mm-crypto-price {
    align-items: center;
    background: var(--mm-soft);
    border: 1px solid rgba(24,200,208,.28);
    border-radius: 999px;
    color: var(--mm-ink);
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    max-width: 100%;
    min-height: 34px;
    padding: 8px 11px;
    white-space: nowrap;
}

.mm-listing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-left: auto;
}

.mm-whatsapp-cta,
.mm-buy-cta,
.mm-edit-cta,
.mm-sold-cta,
.mm-comment-whatsapp {
    align-items: center;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(31,41,51,.12);
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    text-decoration: none !important;
}

.mm-whatsapp-cta,
.mm-comment-whatsapp {
    background: #25d366;
    color: #fff !important;
    font-size: 0;
}

.mm-whatsapp-cta:before,
.mm-comment-whatsapp:before {
    content: "\f232";
    font-family: "Font Awesome 5 Brands";
    font-size: 19px;
    font-weight: 400;
    margin-right: 8px;
}

.mm-whatsapp-cta:after {
    content: "WhatsApp seller";
    font-size: 15px;
}

.mm-comment-whatsapp:after {
    content: "WhatsApp";
    font-size: 14px;
}

.mm-buy-cta {
    background: var(--mm-orange);
    color: #fff !important;
    font-size: 16px;
    min-width: 116px;
}

.mm-edit-cta {
    background: var(--mm-teal);
    color: #fff !important;
}

.mm-sold-cta {
    background: var(--mm-muted);
    color: #fff !important;
}

.table-centered {
    background: #fff;
    border: 1px solid var(--mm-line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(31,41,51,.05);
    overflow: hidden;
}

.table-centered th {
    background: var(--mm-soft);
    border-color: var(--mm-line) !important;
    color: var(--mm-ink) !important;
    font-size: 12px;
    text-transform: uppercase;
}

.table-centered td {
    border-color: var(--mm-line) !important;
    vertical-align: middle !important;
}

.panel-body.listing_images {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.listing_image {
    background: #fff;
    border: 1px solid var(--mm-line);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(31,41,51,.06);
    overflow: hidden;
    padding: 6px;
}

.listing_image img {
    border-radius: 6px;
    height: 125px;
    object-fit: cover;
    width: 125px;
}

.description {
    color: var(--mm-muted);
    line-height: 1.65;
}

.btn-primary,
#submit_button {
    background: var(--mm-teal);
    border-color: var(--mm-teal);
    border-radius: 999px;
    font-weight: 800;
}

.btn-warning,
#login_button {
    background: var(--mm-orange);
    border-color: var(--mm-orange);
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
}

#formComment textarea {
    border: 1px solid var(--mm-line);
    border-radius: 8px;
    box-shadow: none;
    height: 104px;
    resize: vertical;
}

@media (min-width: 768px) and (max-width: 991px) {
    .navbar-default .navbar-collapse {
        overflow: visible !important;
    }

    #nav_account_li .dropdown-menu {
        left: auto;
        position: absolute;
        right: 0;
    }
}

@media (max-width: 767px) {
    body {
        padding-top: 70px;
    }

    .navbar-brand img {
        height: 30px;
    }

    .navbar-default .navbar-collapse {
        max-height: calc(100vh - 70px);
        overflow-y: auto !important;
        padding-bottom: 16px;
    }

    .navbar-default .navbar-nav > li > a {
        padding-bottom: 12px;
        padding-top: 12px;
    }

    .navbar-default .dropdown-menu {
        background: #fff;
        border: 1px solid var(--mm-line);
        border-radius: 8px;
        box-shadow: none;
        margin: 4px 15px 12px;
        position: static;
        width: auto;
    }

    .mm-account-nav {
        border-bottom: 1px solid var(--mm-line);
        display: block;
        margin: 0 -15px 8px;
        padding-bottom: 8px;
    }

    .mm-account-flag {
        padding: 12px 15px !important;
    }

    #breadcrumbs .breadcrumb {
        border-radius: 8px;
        margin-bottom: 10px;
        width: 100%;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 16px;
    }

    .mm-viewpost-shell {
        padding: 10px;
    }

    .mm-listing-hero {
        min-height: 224px;
        padding: 14px;
    }

    .mm-device-image {
        min-height: 196px;
    }

    .mm-device-image img,
    #deviceImage {
        max-height: 190px;
        max-width: 82%;
    }

    .mm-listing-actions {
        justify-content: flex-start;
        width: 100%;
    }
}
