/* Kuulaportti Marketplace
   Page-specific marketplace styles. Keep generic Bootstrap/Kuulaportti classes in markup and only keep marketplace-only rules here. */

.marketplace-card {
    transition: transform .12s ease, box-shadow .12s ease;
    overflow: hidden;
}
.marketplace-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .35rem 1rem rgba(0,0,0,.12) !important;
}
.marketplace-card .card-img-top {
    height: 300px;
    object-fit: cover;
    background: rgba(0,0,0,.04);
}
.kp-price {
    font-size: 1.15rem;
    font-weight: 700;
}
.kp-filter-card {
    position: sticky;
    top: 78px;
}
.kp-line-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kp-market-grid {
    min-height: 280px;
}
.kp-market-grid .grid-item {
    float: left;
}
.kp-media-badge {
    position: absolute;
    top: .55rem;
    right: .55rem;
    z-index: 7;
}
.kp-view-badge {
    position: absolute;
    left: .55rem;
    bottom: .55rem;
    z-index: 7;
}
.kp-fav-btn {
    position: absolute;
    right: .55rem;
    bottom: .55rem;
    z-index: 9;
    box-shadow: 0 .2rem .5rem rgba(0,0,0,.18);
}
.kp-overlay-pill {
    height: 28px;
    min-width: 42px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 999px !important;
    padding: .25rem .55rem !important;
    font-size: .75rem !important;
    line-height: 1 !important;
    color: #fff !important;
    border: 0 !important;
    background: rgba(49,58,70,.78) !important;
    backdrop-filter: blur(2px);
}
.kp-fav-btn.kp-overlay-pill {
    height: 28px;
}
.kp-fav-btn .text-danger {
    color: #ff6b81 !important;
}
.kp-fav-btn .small {
    font-size: .75rem;
}
.kp-card-badges {
    position: absolute;
    top: .55rem;
    left: .55rem;
    z-index: 5;
}
.kp-card-badges .badge {
    height: 28px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
}
.badge-info.kp-overlay-pill {
    background: rgba(57,175,209,.92) !important;
}
.badge-success.kp-overlay-pill {
    background: rgba(10,207,151,.92) !important;
}
.kp-card-status {
    font-weight: 500;
}
.kp-category-chip {
    border-radius: 999px;
}
.kp-category-chip.active {
    border-color: #727cf5 !important;
}
.kp-market-seller {
    background: rgba(152,166,173,.08);
    border-radius: .35rem;
    padding: .3rem .4rem;
    overflow: hidden;
}
.kp-seller-popover .badge,
.kp-seller-badges .badge {
    display: inline-block;
}
.kp-seller-popover .badge {
    margin: 0 .25rem .25rem 0;
}
.kp-card-carousel .carousel-control-prev,
.kp-card-carousel .carousel-control-next {
    width: 16%;
    z-index: 4;
}
.kp-empty-market {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.kp-seller-avatar {
    width: 24px;
    height: 24px;
    object-fit: cover;
}

/* Listing detail */
.kp-product-main {
    min-height: 420px;
    object-fit: contain;
    background: rgba(0,0,0,.04);
}
.kp-thumb {
    height: 82px;
    object-fit: cover;
    cursor: pointer;
}
.kp-chat-box {
    max-height: 420px;
    overflow-y: auto;
    min-height: 180px;
}
.kp-msg {
    max-width: 78%;
    border-radius: .75rem;
    padding: .65rem .8rem;
    box-shadow: 0 .05rem .25rem rgba(0,0,0,.05);
}
.kp-msg-me {
    margin-left: auto;
}
.kp-seller-panel .avatar-lg {
    width: 72px;
    height: 72px;
}
.kp-sticky {
    position: sticky;
    top: 80px;
}
.kp-description img {
    max-width: 100%;
    height: auto;
}
.kp-title-fav {
    border-radius: 999px;
}
.kp-seller-panel .kp-seller-badge .badge {
    background: rgba(114,124,245,.12) !important;
    color: #727cf5 !important;
    border: 1px solid rgba(114,124,245,.22);
}
.kp-report-link,
.kp-offer-link {
    font-size: .85rem;
}
.kp-seller-badges > div {
    display: inline-block;
    margin: 0 .25rem .25rem 0;
}
.kp-seller-tools .btn {
    white-space: normal;
}
.js-star,
.js-star-half {
    cursor: pointer;
}
.kp-no-image-placeholder {
    min-height: 420px;
    border: 1px dashed rgba(152,166,173,.55);
    border-radius: .25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #98a6ad;
    background: rgba(152,166,173,.08);
}
.kp-no-image-placeholder i {
    font-size: 4rem;
}
.kp-no-image-placeholder span {
    font-size: .85rem;
}

/* Listing editor */
.kp-media-item {
    position: relative;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: .25rem;
    overflow: hidden;
    background: rgba(0,0,0,.03);
    min-height: 190px;
}
.kp-media-item img,
.kp-media-item video {
    width: 100%;
    height: 190px;
    object-fit: contain;
    display: block;
    background: rgba(0,0,0,.04);
}
.kp-media-actions {
    position: absolute;
    right: .4rem;
    bottom: .4rem;
    top: auto;
    box-shadow: 0 .15rem .45rem rgba(0,0,0,.12);
}
.kp-sort-handle {
    cursor: move;
}
.kp-ai-suggestion {
    border-left: 3px solid #39afd1;
}
.kp-required small {
    font-size: 11px;
}
.kp-help-box {
    border-left: 3px solid #727cf5;
}
.dz-message {
    padding: 2rem 1rem;
}
.kp-dropzone {
    border: 2px dashed rgba(152,166,173,.45);
    border-radius: .35rem;
    background: rgba(152,166,173,.08);
    min-height: 150px;
    cursor: pointer;
}
.dz-preview {
    display: none !important;
}
.kp-form-section .header-title {
    letter-spacing: .01em;
}
.kp-guide-list li {
    margin-bottom: .25rem;
}
.kp-location-suggestions {
    position: absolute;
    z-index: 1040;
    width: 100%;
    max-height: 220px;
    overflow: auto;
}
.kp-location-suggestions .list-group-item {
    cursor: pointer;
}
.kp-extra-field.d-none {
    display: none !important;
}
.kp-mp-progress {
    height: 6px;
}
.mp-active-lang-label .img-flag {
    width: 18px;
    margin-top: -2px;
}
.mp-other-lang {
    cursor: pointer;
    opacity: .55;
    margin-left: .25rem;
}
.mp-other-lang:hover {
    opacity: 1;
}
.kp-media-sort-placeholder {
    border: 2px dashed #727cf5;
    border-radius: .25rem;
    min-height: 190px;
    background: rgba(114,124,245,.08);
}
.ui-sortable-helper {
    z-index: 2000 !important;
}

/* Marketplace tables/admin */
.dataTables_scrollTop {
    overflow-x: auto;
    overflow-y: hidden;
    height: 20px;
}
.dataTables_scrollTop > div {
    height: 20px;
}
.dataTables_filter {
    display: none;
}
#mp-my-listings-wrapper,
#mp-deals-wrapper {
    min-height: 300px !important;
}
#mp-my-listing-entries,
#mp-deals-entries {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: .5rem 0;
    width: 100%;
}
#mp-my-listing-entries .dataTables_length label,
#mp-deals-entries .dataTables_length label {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .25rem;
    font-weight: 500;
}
#mp-my-listing-info,
#mp-deals-info {
    font-size: .85rem;
    color: #6c757d;
}
.dataTables_paginate ul {
    margin: .5rem 0 0 !important;
}
#mp-admin-listings .table-responsive,
#mp-admin-reports .table-responsive,
#mp-admin-products .table-responsive,
#mp-admin-promotions .table-responsive,
#mp-admin-moderators .table-responsive,
#mp-admin-categories .table-responsive,
#event-paid-table,
#event-promos-table {
    min-height: 260px;
}
.mp-admin-saved {
    color: #0acf97;
}
.mp-admin-deleted {
    background: rgba(250,92,124,.08);
}
.mp-risk-badge {
    cursor: help;
}
.mp-admin-tall {
    min-height: 440px;
}
.mp-promo-remaining {
    font-size: 11px;
}

@media (max-width: 991.98px) {
    .kp-filter-card {
        position: static;
        top: auto;
    }
    .marketplace-card .card-img-top {
        height: 260px;
    }
}

@media (max-width: 767.98px) {
    .dataTables_paginate ul {
        justify-content: center !important;
    }
    .mp-my-table-actions .btn {
        margin-bottom: .25rem;
    }
}

@media (max-width: 575.98px) {
    #mp-media > [data-id] {
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    .kp-media-item {
        min-height: 250px;
    }
    .kp-media-item img,
    .kp-media-item video {
        height: 250px;
    }
    .kp-media-actions {
        position: static;
        display: flex;
        width: 100%;
        border-top: 1px solid rgba(0,0,0,.08);
        box-shadow: none;
    }
    .kp-media-actions .btn {
        flex: 1;
        border-radius: 0;
    }
    .kp-sort-handle {
        touch-action: none;
    }
}

/* Marketplace browse layout refinements */
.kp-market-topbar .kp-market-search,
.kp-market-toolbar {
    max-width: 100%;
}
.kp-market-actions .btn,
.kp-market-actions .btn-group {
    vertical-align: middle;
}
.kp-market-actions .dropdown-item {
    cursor: pointer;
}
.kp-market-filter-toggle {
    white-space: nowrap;
}
.kp-market-toolbar .card-body {
    min-height: 46px;
}
.kp-market-chip-row {
    min-width: 0;
}
.kp-market-layout.filters-collapsed #market-content-col {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
}
.kp-market-grid-item {
    min-width: 0;
}
.kp-market-layout.filters-collapsed .kp-market-grid-item {
    -ms-flex: 0 0 25%;
    flex: 0 0 25%;
    max-width: 25%;
}
.min-width-0 {
    min-width: 0;
}
.kp-seller-name {
    display: inline-block;
}
.kp-seller-rating {
    flex: 0 0 auto;
    white-space: nowrap;
    line-height: 1;
    margin-left: .25rem;
}
.kp-seller-rating i {
    line-height: 1;
}
.kp-market-seller .btn-link:hover,
.kp-market-seller .btn-link:focus {
    text-decoration: none;
}

@media (max-width: 1199.98px) {
    .kp-market-layout.filters-collapsed .kp-market-grid-item {
        -ms-flex: 0 0 33.333333%;
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (max-width: 991.98px) {
    #market-content-col {
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    .kp-market-toolbar .d-flex.align-items-center.flex-wrap {
        align-items: flex-start !important;
    }
    .kp-market-chip-row {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: .15rem;
    }
    .kp-market-chip-row strong,
    .kp-category-chip {
        flex: 0 0 auto;
    }
    .kp-market-grid-item,
    .kp-market-layout.filters-collapsed .kp-market-grid-item {
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 575.98px) {
    .kp-market-actions {
        text-align: left !important;
        display: flex;
        flex-wrap: wrap;
    }
    .kp-market-actions .btn-success {
        flex: 1 1 100%;
    }
    .kp-market-actions .btn:not(.dropdown-toggle),
    .kp-market-actions .btn-group {
        margin-bottom: .25rem !important;
    }
    .kp-market-actions .btn-group .btn {
        width: auto;
    }
    .kp-market-toolbar .kp-market-filter-toggle {
        flex: 0 0 auto;
    }
    .kp-market-chip-row {
        flex-basis: 100%;
        margin-top: .25rem;
    }
    .kp-market-grid-item,
    .kp-market-layout.filters-collapsed .kp-market-grid-item {
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    .marketplace-card .card-img-top {
        height: 280px;
    }
}

/* Marketplace QoL 2026-07-03 */
.kp-market-layout {
    position: relative;
}
.kp-filter-toggle-tab {
    position: absolute;
    top: 235px;
    left: calc(25% - 13px);
    z-index: 22;
    width: 28px;
    min-width: 28px;
    height: 68px;
    padding: 0;
    border-radius: 999px;
    box-shadow: 0 .25rem .8rem rgba(0,0,0,.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.kp-filter-toggle-tab .kp-filter-toggle-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}
.kp-market-layout.filters-collapsed .kp-filter-toggle-tab {
    left: 0;
}
.kp-market-toolbar .card-body {
    min-height: 42px;
}
.kp-market-actions {
    white-space: nowrap;
}

.mp-my-nav .nav-link {
    white-space: nowrap;
}
.mp-table-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
}
.mp-table-thumb-sm {
    width: 44px;
    height: 44px;
    object-fit: cover;
}
.mp-message-center {
    border: 1px solid rgba(152,166,173,.25);
    border-radius: .25rem;
    overflow: hidden;
}
.mp-message-row {
    padding: .75rem;
    border-bottom: 1px solid rgba(152,166,173,.18);
    color: inherit;
    transition: background .12s ease;
}
.mp-message-row:last-child {
    border-bottom: 0;
}
.mp-message-row:hover,
.mp-message-row:focus {
    background: rgba(152,166,173,.10);
    color: inherit;
}
.mp-message-thumb {
    width: 54px;
    height: 54px;
    object-fit: cover;
    flex: 0 0 54px;
}

@media (max-width: 1199.98px) and (min-width: 992px) {
    .kp-filter-toggle-tab {
        left: calc(33.333333% - 13px);
    }
    .kp-market-layout.filters-collapsed .kp-filter-toggle-tab {
        left: 0;
    }
}

@media (max-width: 991.98px) {
    .kp-filter-toggle-tab {
        position: static;
        width: 100%;
        min-width: 0;
        height: auto;
        margin: 0 12px .75rem 12px;
        padding: .45rem .75rem;
        border-radius: .25rem;
        justify-content: center;
        box-shadow: none;
        order: -1;
    }
    .kp-filter-toggle-tab .kp-filter-toggle-text {
        position: static;
        width: auto;
        height: auto;
        clip: auto;
        overflow: visible;
        margin-left: .35rem;
    }
    .kp-filter-toggle-tab i {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .kp-market-actions {
        text-align: left !important;
        display: flex;
        flex-wrap: nowrap;
        gap: .35rem;
    }
    .kp-market-actions .kp-market-action-sell,
    .kp-market-actions .kp-market-action-my {
        flex: 1 1 0;
        margin-right: 0 !important;
    }
    .mp-my-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .mp-my-nav .nav-item {
        flex: 0 0 auto;
        min-width: 118px;
    }
    .mp-message-filter {
        display: flex;
        width: 100%;
    }
    .mp-message-filter .btn {
        flex: 1 1 auto;
    }
    .mp-message-thumb {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }
}

/* Marketplace refinements 2026-07-03b */
#market-results-anchor {
    position: relative;
    top: -72px;
}
.kp-filter-card {
    overflow: visible;
}
.kp-filter-toggle-tab {
    top: 50%;
    transform: translateY(-50%);
    left: calc(25% - 14px);
    border-radius: 999px;
}
.kp-market-layout.filters-collapsed .kp-filter-toggle-tab {
    top: 48px;
    transform: none;
    left: 0;
}
.mp-chat-shell {
    overflow: hidden;
}
.mp-chat-sidebar {
    border-right: 1px solid rgba(152,166,173,.22);
}
.mp-chat-thread-list {
    height: 560px;
    overflow-y: auto;
}
.mp-chat-thread {
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(152,166,173,.18);
    background: transparent;
    padding: .75rem;
    color: inherit;
    cursor: pointer;
}
.mp-chat-thread:hover,
.mp-chat-thread:focus,
.mp-chat-thread.active {
    background: rgba(114,124,245,.10);
    outline: none;
}
.mp-chat-thread.is-unread strong {
    font-weight: 700;
}
.mp-thread-avatar-wrap {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,.88);
    padding: 2px;
    box-shadow: 0 .1rem .35rem rgba(0,0,0,.18);
}
.mp-thread-avatar {
    width: 20px;
    height: 20px;
    object-fit: cover;
}
.mp-chat-main {
    min-height: 560px;
}
.mp-chat-placeholder {
    height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mp-chat-panel {
    min-height: 560px;
}
.mp-chat-item-image {
    width: 46px;
    height: 46px;
    object-fit: cover;
}
.mp-chat-messages {
    flex: 1 1 auto;
    height: 420px;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(152,166,173,.06);
}
.mp-chat-message {
    display: flex;
    align-items: flex-end;
    margin-bottom: .75rem;
}
.mp-chat-message.mine {
    justify-content: flex-end;
}
.mp-chat-avatar {
    width: 32px;
    height: 32px;
    object-fit: cover;
    margin-right: .5rem;
}
.mp-chat-bubble {
    max-width: 78%;
    padding: .65rem .85rem;
    border-radius: .75rem;
    background: rgba(152,166,173,.12);
    box-shadow: 0 .05rem .35rem rgba(0,0,0,.06);
    overflow-wrap: anywhere;
}
.mp-chat-message.mine .mp-chat-bubble {
    background: rgba(114,124,245,.16);
}
.mp-review-listing-img {
    width: 58px;
    height: 58px;
    object-fit: cover;
}
.mp-review-avatar {
    width: 32px;
    height: 32px;
    object-fit: cover;
}

@media (max-width: 1199.98px) and (min-width: 992px) {
    .kp-filter-toggle-tab {
        left: calc(33.333333% - 14px);
    }
}

@media (max-width: 991.98px) {
    .kp-filter-toggle-tab,
    .kp-market-layout.filters-collapsed .kp-filter-toggle-tab {
        position: static;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        height: auto;
        margin: 0 12px .75rem 12px;
        padding: .5rem .75rem;
        border-radius: .25rem;
        box-shadow: none;
        order: -1;
    }
    .kp-filter-toggle-tab .kp-filter-toggle-text {
        position: static;
        width: auto;
        height: auto;
        clip: auto;
        overflow: visible;
        margin-left: .35rem;
    }
    .mp-chat-shell .mp-chat-sidebar,
    .mp-chat-shell .mp-chat-main {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .mp-chat-shell.mp-chat-open .mp-chat-sidebar {
        display: none;
    }
    .mp-chat-shell:not(.mp-chat-open) .mp-chat-main {
        display: none;
    }
    .mp-chat-thread-list,
    .mp-chat-placeholder,
    .mp-chat-main,
    .mp-chat-panel {
        height: auto;
        min-height: 420px;
    }
    .mp-chat-messages {
        height: 360px;
    }
}

@media (max-width: 575.98px) {
    .kp-market-chip-row strong {
        display: none !important;
    }
    .mp-chat-bubble {
        max-width: 86%;
    }
    .mp-review-listing-img {
        width: 48px;
        height: 48px;
    }
}
.kp-filter-toggle-tab {
    top: 50% !important;
    left: calc(25% - 12px) !important;
    transform: translateY(-50%) !important;
    width: 30px !important;
    min-width: 30px !important;
    height: 86px !important;
    border-radius: 0 999px 999px 0 !important;
    box-shadow: 0 .2rem .75rem rgba(0,0,0,.18) !important;
}
.kp-filter-toggle-tab i {
    font-size: 1.35rem;
}
.kp-market-layout.filters-collapsed .kp-filter-toggle-tab {
    top: 12px !important;
    left: 12px !important;
    transform: none !important;
    width: auto !important;
    min-width: 0 !important;
    height: 34px !important;
    padding: 0 .75rem !important;
    border-radius: 999px !important;
}
.kp-market-layout.filters-collapsed .kp-filter-toggle-tab .kp-filter-toggle-text {
    position: static;
    width: auto;
    height: auto;
    clip: auto;
    overflow: visible;
    margin-left: .25rem;
    white-space: nowrap;
}
.kp-filter-card {
    position: relative;
}
#mp-language-switch .btn {
    min-width: 112px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.mp-field-lang-switch .btn {
    width: 34px;
    min-width: 34px;
    padding-left: .25rem;
    padding-right: .25rem;
}
.mp-field-lang-switch .img-flag {
    width: 18px !important;
    margin: 0 !important;
}
.kp-listing-status-box {
    background-color: rgba(152,166,173,.08) !important;
}
.mp-chat-attachment-preview {
    border: 1px dashed rgba(152,166,173,.45);
    border-radius: .35rem;
    padding: .5rem;
}
.mp-chat-attachment-preview img {
    width: 64px;
    height: 64px;
    object-fit: cover;
}
.mp-chat-attachment-img {
    max-width: 220px;
    max-height: 220px;
    object-fit: cover;
}

@media (max-width: 1199.98px) and (min-width: 992px) {
    .kp-filter-toggle-tab {
        left: calc(33.333333% - 12px) !important;
    }
}
@media (max-width: 991.98px) {
    .kp-filter-toggle-tab,
    .kp-market-layout.filters-collapsed .kp-filter-toggle-tab {
        position: static !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 12px .75rem 12px !important;
        padding: .55rem .75rem !important;
        border-radius: .25rem !important;
        justify-content: center !important;
    }
    .kp-filter-toggle-tab .kp-filter-toggle-text,
    .kp-market-layout.filters-collapsed .kp-filter-toggle-tab .kp-filter-toggle-text {
        position: static;
        width: auto;
        height: auto;
        clip: auto;
        overflow: visible;
        margin-left: .35rem;
    }
    #mp-language-switch {
        width: 100%;
    }
    #mp-language-switch .btn {
        min-width: 0;
        flex: 1 1 auto;
    }
}
#market-filter-col {
    position: relative;
}
#market-filter-col .kp-filter-card {
    position: sticky;
    top: 76px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    overflow-x: visible;
    z-index: 8;
}
#market-filter-col .kp-filter-card .card-body {
    padding: 1rem;
}
.kp-market-filter-button {
    border-radius: 999px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
}
.kp-market-filter-button.active {
    border-color: transparent !important;
}
.kp-market-toolbar {
    position: relative;
    z-index: 7;
}
.kp-market-chip-row {
    gap: .15rem;
}
.kp-category-chip .kp-category-count {
    background: rgba(114,124,245,.14);
    color: #727cf5;
    border: 1px solid rgba(114,124,245,.22);
    font-weight: 600;
}
body[data-layout-color="dark"] .kp-category-chip .kp-category-count,
body[data-theme="dark"] .kp-category-chip .kp-category-count,
html[data-theme="dark"] .kp-category-chip .kp-category-count {
    background: rgba(114,124,245,.28);
    color: #c7cbff;
    border-color: rgba(199,203,255,.26);
}
.kp-market-layout.filters-collapsed #market-content-col {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

@media (max-width: 991.98px) {
    #market-filter-col .kp-filter-card {
        position: static;
        max-height: none;
        overflow: visible;
    }
    .kp-market-filter-button {
        width: 100%;
        justify-content: center;
        display: inline-flex;
        align-items: center;
        border-radius: .25rem;
        padding: .55rem .75rem;
        margin-right: 0 !important;
    }
    .kp-market-toolbar .card-body > .d-flex {
        align-items: stretch !important;
    }
    .kp-market-chip-row {
        flex-basis: 100%;
        margin-top: .35rem;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: .2rem;
    }
    .kp-market-chip-row strong {
        display: none !important;
    }
}

/* Marketplace polish 2026-07-03e: profile seller showcase, edit language controls and dark-safe actions */
.mp-field-lang-switch {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}
.mp-field-lang-switch .btn {
    width: 28px;
    min-width: 28px;
    height: 24px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px !important;
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: .62;
}
.mp-field-lang-switch .btn:hover,
.mp-field-lang-switch .btn:focus {
    opacity: 1;
    background: var(--ct-light, rgba(108,117,125,.12)) !important;
}
.mp-field-lang-switch .btn.btn-primary,
.mp-field-lang-switch .btn.active {
    opacity: 1;
    background: rgba(57, 175, 209, .15) !important;
    border-color: rgba(57, 175, 209, .35) !important;
}
.mp-field-lang-switch .img-flag,
.mp-field-lang-switch img {
    width: 16px !important;
    height: auto !important;
    margin: 0 !important;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,.25));
}
.kp-back-marketplace {
    border: 1px solid var(--ct-border-color, rgba(152,166,173,.25)) !important;
}
[data-layout-color="dark"] .kp-back-marketplace,
body[data-layout-color="dark"] .kp-back-marketplace {
    background: rgba(255,255,255,.08) !important;
    color: var(--ct-body-color, #dee2e6) !important;
    border-color: rgba(255,255,255,.18) !important;
}
.kp-listing-status-card .kp-listing-status-box .badge,
.mp-status-badge {
    font-size: .78rem;
    padding: .38em .55em;
}

/* Marketplace UX cleanup 2026-07-03e */
.kp-filter-card-body {
    padding: .85rem !important;
}
.kp-filter-card-body .form-group label {
    font-size: .75rem;
    margin-bottom: .2rem;
    color: #98a6ad;
}
#market-filter-col .kp-filter-card {
    max-height: none !important;
    overflow: visible !important;
}
.kp-market-filter-button {
    display: inline-flex;
    align-items: center;
}
.kp-market-filter-button .badge {
    line-height: 1;
}
#market-advanced-filters .form-group {
    margin-bottom: .5rem;
}
.kp-category-chip .kp-category-count {
    min-width: 1.45rem;
    padding: .2rem .42rem;
    border-radius: 999px;
    background: rgba(57, 175, 209, .16) !important;
    color: #256f86 !important;
    border: 1px solid rgba(57, 175, 209, .35) !important;
}
.kp-category-chip.active .kp-category-count,
.kp-category-chip:hover .kp-category-count {
    background: rgba(255,255,255,.22) !important;
    color: inherit !important;
    border-color: rgba(255,255,255,.35) !important;
}

.kp-listing-published {
    opacity: .78;
    font-size: .78rem !important;
}
.mp-my-summary-row .card-body {
    padding: .75rem .85rem !important;
}
.mp-my-summary-row h3 {
    font-size: 1.35rem;
    margin: .55rem 0 .1rem 0 !important;
}
.mp-my-summary-row h5 {
    font-size: .78rem;
}
.mp-my-summary-row .widget-icon {
    width: 2.1rem;
    height: 2.1rem;
    line-height: 2.1rem;
    font-size: 1rem;
}
.mp-my-table-actions .dropdown-toggle::after {
    display: none;
}

.kp-media-actions {
    left: .35rem !important;
    right: .35rem !important;
    bottom: .35rem !important;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .15rem;
    box-shadow: none !important;
    pointer-events: none;
}
.kp-media-actions .btn {
    pointer-events: auto;
    box-shadow: 0 .15rem .45rem rgba(0,0,0,.16);
}
.kp-sort-handle {
    cursor: grab;
    touch-action: none;
}
.kp-sort-handle:active {
    cursor: grabbing;
}
.kp-media-sort-placeholder {
    min-height: 190px;
    border: 2px dashed rgba(114,124,245,.45);
    border-radius: .25rem;
}
.kp-crop-stage {
    position: relative;
    max-height: 70vh;
    overflow: hidden;
    background: rgba(0,0,0,.78);
    border-radius: .35rem;
}
.kp-crop-stage img {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    margin: 0 auto;
}
.kp-crop-stage .cropper-container {
    max-width: 100% !important;
}
.kp-crop-stage .cropper-modal {
    background-color: #000 !important;
    opacity: .45 !important;
}

@media (max-width: 991.98px) {
    #market-filter-col .kp-filter-card {
        margin-bottom: .75rem;
    }
    .kp-filter-card-body {
        padding: .75rem !important;
    }
    .kp-market-filter-button {
        width: 100%;
    }
    .kp-market-chip-row {
        margin-top: .4rem;
    }
}

/* Final marketplace QA pass 2026-07-03f */
#market-filter-col .kp-filter-card {
    max-height: none !important;
    overflow: visible !important;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.04);
}
#market-filter-col .kp-filter-card .card-body,
.kp-filter-card-body {
    padding: .72rem !important;
}
.kp-filter-card-body .form-group {
    margin-bottom: .46rem !important;
}
.kp-filter-card-body .form-group label {
    font-size: .72rem !important;
    line-height: 1.15;
    margin-bottom: .18rem !important;
    letter-spacing: .01em;
}
.kp-filter-card-body .form-control {
    height: calc(1.5em + .55rem + 2px) !important;
    padding: .275rem .55rem !important;
    font-size: .8125rem !important;
}
.kp-filter-card-body .custom-control,
.kp-filter-card-body .custom-control-label {
    font-size: .8125rem !important;
    line-height: 1.35;
}
.kp-filter-card-body .custom-control {
    margin-bottom: .18rem;
}
.kp-category-chip .kp-category-count {
    background: #39afd1 !important;
    color: #fff !important;
    border-color: rgba(57,175,209,.85) !important;
    box-shadow: 0 .08rem .18rem rgba(0,0,0,.12);
}
body[data-layout-color="dark"] .kp-category-chip .kp-category-count,
body[data-theme="dark"] .kp-category-chip .kp-category-count,
html[data-theme="dark"] .kp-category-chip .kp-category-count {
    background: #727cf5 !important;
    color: #fff !important;
    border-color: #8d94ff !important;
    box-shadow: 0 .1rem .35rem rgba(0,0,0,.34);
}

.mp-report-message {
    max-width: 420px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mp-receipt th {
    width: 170px;
}
.mp-chat-context-actions a {
    font-weight: 600;
}

@media (max-width: 991.98px) {
    #market-filter-col .kp-filter-card {
        box-shadow: none;
    }
    #market-filter-col .kp-filter-card .card-body,
    .kp-filter-card-body {
        padding: .85rem !important;
    }
}

.kp-media-action-menu {
    position: absolute;
    top: .4rem;
    right: .4rem;
    z-index: 5;
}
.kp-media-action-menu .dropdown-menu {
    min-width: 10rem;
}
@media (min-width: 768px) {
    .kp-media-actions .js-up,
    .kp-media-actions .js-down {
        display: none !important;
    }
}

/* Marketplace QA pass 2026-07-04: simplified browse filters, empty state and listing detail interactions */
.kp-market-grid:empty,
.kp-market-grid.is-empty {
    min-height: 0 !important;
}
#market-empty {
    margin-top: 0 !important;
}
#market-filter-col .kp-filter-card {
    max-height: none !important;
    overflow: visible !important;
}
.kp-filter-card-body .form-row .form-group {
    margin-bottom: .46rem !important;
}
.kp-description-card .kp-description {
    font-size: .95rem;
    line-height: 1.6;
    white-space: normal;
}
.kp-listing-gallery a[data-toggle="lightbox"] {
    display: block;
    cursor: zoom-in;
}
.ekko-lightbox .modal-content {
    background: var(--ct-card-bg, #fff);
    color: inherit;
}
body[data-layout-color="dark"] .ekko-lightbox .modal-content,
html[data-theme="dark"] .ekko-lightbox .modal-content {
    background: #37404a;
    color: #e3eaef;
}
body[data-layout-color="dark"] .ekko-lightbox .modal-header,
html[data-theme="dark"] .ekko-lightbox .modal-header {
    border-color: rgba(255,255,255,.12);
}
.kp-seller-stats {
    align-items: stretch;
}
.kp-seller-stat {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
}
.kp-seller-stat-value {
    min-height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}
.kp-seller-stat p {
    font-size: .78rem;
    line-height: 1.15;
}
.kp-marketplace-support-card .dropdown-menu {
    min-width: 100%;
}
.kp-marketplace-support-card .btn-light,
#messagesModal .btn-light {
    border-color: rgba(152,166,173,.22);
}
#messagesModal .modal-content {
    overflow: hidden;
}
#messagesModal .modal-body {
    background: transparent;
}
#messagesModal .mp-chat-shell {
    border: 0;
    box-shadow: none;
    border-radius: 0;
}
#messagesModal .mp-chat-sidebar,
#messagesModal .mp-chat-main,
#messagesModal .mp-chat-placeholder,
#messagesModal .mp-chat-panel {
    min-height: 620px;
}
#messagesModal .mp-chat-thread-list {
    height: 562px;
}
#messagesModal .mp-chat-messages {
    height: 462px;
}
#messagesModal .mp-chat-composer textarea.form-control {
    resize: none;
}
#messagesModal .mp-chat-context-actions:empty {
    display: none;
}
@media (max-width: 991.98px) {
    #messagesModal .modal-dialog {
        margin: .5rem;
    }
    #messagesModal .mp-chat-sidebar,
    #messagesModal .mp-chat-main,
    #messagesModal .mp-chat-placeholder,
    #messagesModal .mp-chat-panel {
        min-height: 520px;
    }
    #messagesModal .mp-chat-thread-list,
    #messagesModal .mp-chat-messages {
        height: 390px;
    }
}
@media (max-width: 575.98px) {
    #messagesModal .mp-chat-sidebar,
    #messagesModal .mp-chat-main,
    #messagesModal .mp-chat-placeholder,
    #messagesModal .mp-chat-panel {
        min-height: 440px;
    }
    #messagesModal .mp-chat-messages {
        height: 315px;
    }
}

/* Hotfix 2026-07-04: listing/chat/admin polish */
.kp-listing-inline-links .btn-link{font-size:.82rem;text-decoration:none;}
.kp-listing-inline-links .btn-link:hover{text-decoration:underline;}
.kp-description-card{margin-top:1.5rem;}
.kp-description-card .kp-description{font-size:1rem;line-height:1.65;max-width:1180px;}
.mp-image-modal-close{position:absolute;right:1rem;top:-2.5rem;z-index:2;text-shadow:0 1px 3px rgba(0,0,0,.6);opacity:.9;}
#mpImageModal .modal-content{align-items:center;}
#mpImageModalImg{max-height:82vh;object-fit:contain;background:#000;}
.kp-listing-gallery .js-mp-lightbox{display:block;width:100%;cursor:zoom-in;}
.kp-listing-gallery .js-mp-lightbox:focus{outline:2px solid rgba(90,140,255,.6);outline-offset:2px;}
.mp-chat-context-actions .btn{white-space:nowrap;}
#mp-chat-messages .mp-chat-bubble{max-width:min(720px,84%);}
.mp-category-node{border:1px solid rgba(152,166,173,.22);border-radius:.5rem;margin-bottom:.5rem;background:rgba(152,166,173,.04);}
.mp-category-node-main{display:flex;align-items:center;gap:.5rem;padding:.55rem .65rem;}
.mp-category-handle{color:#98a6ad;font-size:1.25rem;line-height:1;}
.mp-category-title{flex:1 1 auto;}
.mp-category-fields{display:flex;align-items:center;gap:.35rem;flex:0 0 auto;}
.mp-category-fields .cat-parent{width:64px;}
.mp-category-fields .cat-sort{width:72px;}
.mp-category-translations{display:flex;gap:1rem;flex-wrap:wrap;padding:0 .65rem .55rem 2.15rem;font-size:.82rem;color:#98a6ad;}
.mp-admin-table.dataTable tbody tr,
.mp-event-monetization-table.dataTable tbody tr{height:auto!important;min-height:0!important;}
.mp-admin-table.table-sm td,
.mp-admin-table.table-sm th,
.mp-event-monetization-table.table-sm td,
.mp-event-monetization-table.table-sm th{padding:.45rem .6rem;vertical-align:middle;}
.mp-admin-table .form-control-sm,
.mp-event-monetization-table .form-control-sm{height:calc(1.5em + .5rem + 2px);min-height:0;}
a.widget-flat{text-decoration:none;display:block;}
a.widget-flat:hover{transform:translateY(-1px);box-shadow:0 .15rem .55rem rgba(0,0,0,.08);}
html[data-layout-color="dark"] .mp-category-node,
body[data-layout-color="dark"] .mp-category-node{background:rgba(255,255,255,.025);border-color:rgba(255,255,255,.08);}
@media (max-width: 767.98px){
  .mp-category-node{margin-left:0!important;}
  .mp-category-node-main{align-items:flex-start;}
  .mp-category-fields{flex-wrap:wrap;justify-content:flex-end;}
  .mp-category-title{min-width:140px;}
  #mp-chat-messages .mp-chat-bubble{max-width:90%;}
}

/* Marketplace polish 2026-07-04b: consistent cards, listing modal chat and inline trade actions */
.kp-market-grid-item {
    display: flex;
}
.kp-market-grid-item > .marketplace-card {
    width: 100%;
}
.marketplace-card {
    display: flex;
    flex-direction: column;
    min-height: 560px;
}
.marketplace-card .card-body {
    flex: 1 1 auto;
}
.marketplace-card .kp-line-clamp {
    min-height: 3.75rem;
}
.marketplace-card .kp-market-seller {
    min-height: 42px;
}
.marketplace-card .kp-price {
    min-height: 1.65rem;
}
@media (max-width: 575.98px) {
    .marketplace-card {
        min-height: 0;
    }
    .marketplace-card .kp-line-clamp {
        min-height: 0;
    }
}
.kp-listing-inline-links {
    gap: .25rem .75rem;
}
.kp-listing-inline-links .btn-link {
    line-height: 1.4;
}
.kp-description-row {
    clear: both;
}
.kp-description-card {
    width: 100%;
}
.kp-description-card .kp-description {
    max-width: none;
}
.mp-listing-message-modal {
    max-width: 1120px;
}
#messagesModal .modal-content {
    height: calc(100vh - 3.5rem);
    display: flex;
    flex-direction: column;
}
#messagesModal .modal-header {
    flex: 0 0 auto;
}
#messagesModal .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}
#messagesModal .mp-chat-shell,
#messagesModal .mp-chat-shell > .card-body,
#messagesModal .mp-chat-shell > .card-body > .row,
#messagesModal .mp-chat-main,
#messagesModal .mp-chat-panel {
    height: 100%;
    min-height: 0 !important;
}
#messagesModal .mp-chat-sidebar {
    height: 100%;
    min-height: 0 !important;
}
#messagesModal .mp-chat-thread-list {
    height: calc(100% - 49px);
    min-height: 0;
    overflow-y: auto;
}
#messagesModal .mp-chat-placeholder {
    height: 100%;
    min-height: 0 !important;
}
#messagesModal .mp-chat-messages {
    flex: 1 1 auto;
    height: auto !important;
    min-height: 0;
    overflow-y: auto;
}
#messagesModal .mp-chat-composer {
    flex: 0 0 auto;
    background: inherit;
}
.mp-chat-offer-inline {
    border: 1px solid rgba(10,207,151,.25);
    background: rgba(10,207,151,.08);
    border-radius: .35rem;
    padding: .65rem;
}
.mp-chat-context-actions a {
    display: inline-flex;
    align-items: center;
    margin-top: .25rem;
}
@media (max-width: 991.98px) {
    #messagesModal .modal-content {
        height: calc(100vh - 1rem);
    }
    #messagesModal .mp-chat-shell > .card-body > .row {
        flex-wrap: nowrap;
        overflow: hidden;
    }
    #messagesModal .mp-chat-sidebar,
    #messagesModal .mp-chat-main {
        height: 100%;
    }
    #messagesModal .mp-chat-thread-list {
        height: calc(100% - 49px);
    }
}
@media (max-width: 575.98px) {
    .mp-listing-message-modal {
        margin: .25rem;
    }
    #messagesModal .modal-content {
        height: calc(100vh - .5rem);
    }
    #messagesModal .modal-header {
        padding: .55rem .75rem;
    }
    #messagesModal .mp-chat-header {
        padding: .5rem !important;
    }
    .mp-chat-offer-inline .input-group-append .btn {
        padding-left: .55rem;
        padding-right: .55rem;
    }
}

/* Marketplace QA polish 2026-07-04c */
.kp-market-grid-item > .marketplace-card {
    min-height: 0;
    height: 600px;
    overflow: hidden;
}
.marketplace-card .card-img-top,
.marketplace-card .kp-card-carousel .carousel-item,
.marketplace-card .kp-card-carousel .carousel-inner {
    height: 255px;
}
.marketplace-card .kp-card-carousel img,
.marketplace-card .card-img-top {
    object-fit: cover;
}
.marketplace-card .card-body {
    min-height: 0;
}
.marketplace-card .kp-card-badge {
    margin-bottom: 0;
}
.marketplace-card h5 {
    margin-top: .15rem;
}
.marketplace-card .kp-line-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.65rem;
    max-height: 2.65rem;
}
.marketplace-card .kp-market-seller {
    min-height: 34px;
    padding: .25rem .45rem !important;
    margin-bottom: .25rem !important;
}
.marketplace-card .kp-seller-rating {
    margin-left: .25rem;
    line-height: 1;
}
@media (max-width: 575.98px) {
    .kp-market-grid-item > .marketplace-card { height: auto; }
    .marketplace-card .card-img-top,
    .marketplace-card .kp-card-carousel .carousel-item,
    .marketplace-card .kp-card-carousel .carousel-inner { height: 230px; }
}
.kp-seller-panel .kp-listing-inline-links .btn-link {
    font-weight: 600;
}
.mp-image-modal-close {
    top: .75rem;
    right: .75rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(0,0,0,.55) !important;
    color: #fff !important;
    opacity: 1;
}
.mp-image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    opacity: .9;
}
.mp-image-prev { left: .75rem; }
.mp-image-next { right: .75rem; }
.mp-image-nav .mdi { font-size: 1.5rem; }
#messagesModal .mp-chat-header-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .35rem .75rem;
}
#messagesModal .mp-chat-header-actions a {
    white-space: nowrap;
    font-weight: 600;
}
#messagesModal .mp-chat-composer {
    position: sticky;
    bottom: 0;
    z-index: 4;
}
#messagesModal .mp-chat-attachment-preview {
    max-height: 96px;
    overflow: hidden;
}
#messagesModal .mp-chat-messages {
    overscroll-behavior: contain;
}
.mp-chat-offer-draft {
    border: 1px dashed rgba(250, 185, 44, .45);
    border-radius: .35rem;
    padding: .35rem .5rem;
    background: rgba(250, 185, 44, .08);
}
.kp-media-action-menu {
    top: .35rem;
    right: .35rem;
}
.kp-media-actions .kp-sort-handle {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
}
.kp-crop-stage .btn,
#mpCropModal .btn-group .btn {
    opacity: 1 !important;
    visibility: visible !important;
}
.mp-category-node {
    border-radius: .75rem;
    margin-bottom: .6rem;
}
.mp-category-node-main {
    padding: .7rem;
}
.mp-category-fields {
    display: grid;
    grid-template-columns: 70px 70px 120px minmax(120px,1fr) minmax(120px,1fr) auto auto;
    gap: .35rem;
    align-items: center;
    min-width: 560px;
}
.mp-category-fields .form-control-sm { min-width: 0; }
.mp-category-fields .cat-parent,
.mp-category-fields .cat-sort { width: auto; }
.mp-category-translations { display: none; }
@media (max-width: 991.98px) {
    .mp-category-node-main { align-items: flex-start; }
    .mp-category-fields { grid-template-columns: repeat(2,minmax(0,1fr)); min-width: 0; width: 100%; }
}
.mp-admin-actions .dropdown-menu,
.mp-admin-deleted .dropdown-menu {
    opacity: 1 !important;
    z-index: 1060 !important;
}
.mp-admin-user-cell .badge { white-space: normal; text-align: left; }
.mp-report-message { max-width: 360px; max-height: 3.1rem; overflow: hidden; }
.mp-report-message-full { white-space: pre-wrap; max-height: 50vh; overflow:auto; }
body[data-layout-color="dark"] .mp-chat-offer-draft,
html[data-theme="dark"] .mp-chat-offer-draft {
    background: rgba(250, 185, 44, .12);
    border-color: rgba(250, 185, 44, .35);
}

/* Kuulaportti marketplace audit polish 2026-07-05
   Keep page markup on Bootstrap/theme components and isolate marketplace-only overrides here. */
#event-paid-table,
#event-promos-table {
    min-height: 0 !important;
}
#event-monetization-products .table-responsive,
#event-monetization-history .table-responsive {
    min-height: 0 !important;
    overflow: visible;
}
.mp-event-monetization-table.dataTable {
    width: 100% !important;
    margin-bottom: 0 !important;
}
.kp-listing-status-card {
    position: sticky;
    top: 76px;
    z-index: 12;
}
.kp-media-actions .kp-sort-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
}
.kp-media-actions .kp-sort-handle:active {
    cursor: grabbing;
}
.mp-category-help .badge {
    font-weight: 600;
}
.mp-admin-report-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .5rem;
}
.mp-admin-report-actions .btn {
    margin: 0 !important;
}
.mp-report-primary-action {
    font-weight: 600;
}
#adminReportViewModal .modal-footer,
#adminReportActionModal .modal-footer {
    gap: .5rem;
}
.kp-market-grid-item > .marketplace-card {
    height: 630px;
    min-height: 0;
}
.marketplace-card .card-img-top,
.marketplace-card .kp-card-carousel .carousel-item,
.marketplace-card .kp-card-carousel .carousel-inner {
    height: 248px;
}
.marketplace-card .kp-line-clamp {
    -webkit-line-clamp: 3;
    min-height: 3.75rem;
    max-height: 3.75rem;
}
.marketplace-card .kp-market-seller {
    overflow: visible;
}
.marketplace-card .kp-market-seller .d-flex,
.marketplace-card .kp-market-seller .min-width-0 {
    min-width: 0;
}
.marketplace-card .kp-seller-rating {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    white-space: nowrap;
    border-radius: 999px;
    padding: .05rem .28rem !important;
    background: rgba(250,185,44,.12);
}
@media (max-width: 1199.98px) {
    .kp-listing-status-card {
        position: static;
    }
}
@media (max-width: 575.98px) {
    .kp-market-grid-item > .marketplace-card {
        height: auto;
    }
    .marketplace-card .kp-line-clamp {
        min-height: 0;
        max-height: none;
    }
    .mp-admin-report-actions {
        width: 100%;
        justify-content: stretch;
    }
    .mp-admin-report-actions .btn,
    #adminReportViewModal .modal-footer > .btn {
        flex: 1 1 100%;
    }
}
/* Kuulaportti marketplace final polish 2026-07-05d */
/* Event monetization: remove old table min-height from the early marketplace admin rules. */
#event-monetization-products,
#event-monetization-history,
#event-monetization-products .card,
#event-monetization-history .card,
#event-monetization-products .card-body,
#event-monetization-history .card-body,
#event-monetization-products .table-responsive,
#event-monetization-history .table-responsive,
#event-monetization-products .dataTables_wrapper,
#event-monetization-history .dataTables_wrapper,
#event-paid-table,
#event-promos-table,
#event-paid-table.dataTable,
#event-promos-table.dataTable {
    min-height: 0 !important;
}
#event-monetization-products .table-responsive,
#event-monetization-history .table-responsive {
    overflow-x: auto;
    overflow-y: visible;
}

/* Marketplace cards: equal height, tighter media-to-meta spacing and no text overlap with price/actions. */
#market-grid.kp-market-grid {
    min-height: 0;
}
.kp-market-grid-item {
    display: flex !important;
}
.kp-market-grid-item > .marketplace-card,
.marketplace-card {
    width: 100%;
    height: 560px !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden;
}
.marketplace-card .kp-market-card-media,
.marketplace-card .card-img-top,
.marketplace-card .kp-card-carousel,
.marketplace-card .kp-card-carousel .carousel-inner,
.marketplace-card .kp-card-carousel .carousel-item {
    height: 235px !important;
    min-height: 235px !important;
    max-height: 235px !important;
}
.marketplace-card .kp-card-carousel img,
.marketplace-card .card-img-top {
    width: 100%;
    object-fit: cover;
}
.marketplace-card .kp-market-card-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding-top: .55rem !important;
}
.marketplace-card .kp-card-meta-row {
    margin-bottom: .25rem !important;
    min-height: 1.35rem;
}
.marketplace-card .kp-card-meta-row .kp-card-badge {
    max-width: 145px;
    display: inline-block;
    vertical-align: top;
}
.marketplace-card .kp-card-title {
    margin-top: 0 !important;
}
.marketplace-card .kp-card-model {
    min-height: 1.1rem;
}
.marketplace-card .kp-line-clamp {
    -webkit-line-clamp: 3;
    min-height: 3.55rem !important;
    max-height: 3.55rem !important;
    margin-bottom: .35rem !important;
}
.marketplace-card .kp-market-card-bottom {
    flex: 0 0 auto;
    min-height: 0;
}
.marketplace-card .kp-price {
    min-height: 1.55rem;
    line-height: 1.25;
}
.marketplace-card .kp-market-seller {
    min-height: 32px !important;
    padding: .24rem .42rem !important;
    margin-bottom: .25rem !important;
}
.marketplace-card .kp-seller-rating {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    white-space: nowrap;
    max-width: 3.4rem;
    border-radius: 999px;
    padding: .04rem .25rem !important;
    background: rgba(250,185,44,.12);
}
@media (min-width: 1367px) {
    .kp-market-grid-item > .marketplace-card,
    .marketplace-card { height: 545px !important; }
    .marketplace-card .kp-market-card-media,
    .marketplace-card .card-img-top,
    .marketplace-card .kp-card-carousel,
    .marketplace-card .kp-card-carousel .carousel-inner,
    .marketplace-card .kp-card-carousel .carousel-item {
        height: 225px !important;
        min-height: 225px !important;
        max-height: 225px !important;
    }
}
@media (max-width: 575.98px) {
    .kp-market-grid-item > .marketplace-card,
    .marketplace-card { height: auto !important; }
    .marketplace-card .kp-market-card-media,
    .marketplace-card .card-img-top,
    .marketplace-card .kp-card-carousel,
    .marketplace-card .kp-card-carousel .carousel-inner,
    .marketplace-card .kp-card-carousel .carousel-item {
        height: 230px !important;
        min-height: 230px !important;
        max-height: 230px !important;
    }
    .marketplace-card .kp-line-clamp {
        min-height: 0 !important;
        max-height: none !important;
    }
}

/* Listing editor status/actions. */
.kp-listing-status-card {
    position: sticky;
    top: 76px;
    z-index: 20;
}
.kp-media-actions .kp-sort-handle {
    cursor: grab;
}
.kp-media-actions .kp-sort-handle:active {
    cursor: grabbing;
}
.mp-ai-suggestion .badge {
    white-space: normal;
}
@media (max-width: 991.98px) {
    #marketplace-form {
        padding-bottom: 98px;
    }
    .kp-listing-status-card {
        position: static;
    }
}
/* Report modal: actions live in the body; footer only closes the modal. */
.mp-report-modal .modal-body {
    padding-bottom: 1rem;
}
.mp-report-summary .avatar-sm {
    width: 2.25rem;
    height: 2.25rem;
}
.mp-report-action-panel {
    background: rgba(152,166,173,.06);
}
.mp-admin-report-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .5rem;
}
.mp-admin-report-actions .btn {
    margin: 0 !important;
}
#adminReportViewModal .modal-footer {
    justify-content: flex-end;
}
#adminReportActionModal .modal-footer {
    gap: .5rem;
}
@media (max-width: 575.98px) {
    .mp-admin-report-actions {
        width: 100%;
        justify-content: stretch;
    }
    .mp-admin-report-actions .btn {
        flex: 1 1 100%;
    }
}

/* Listing editor fixed action bar. */
#marketplace-form {
    padding-bottom: 96px;
}
.kp-listing-status-card #mp-delete-listing {
    margin-top: .75rem !important;
}
@media (max-width: 575.98px) {
    #marketplace-form { padding-bottom: 132px; }
}

/* Media editor: compact upload area and desktop-only drag handle at image top-left. */
.kp-dropzone {
    min-height: 92px !important;
}
.kp-dropzone .dz-message {
    padding: 1rem .75rem !important;
    margin: 0 !important;
}
.kp-dropzone .dz-message .h1 {
    font-size: 1.45rem !important;
    line-height: 1;
    margin-bottom: .25rem !important;
}
.kp-dropzone .dz-message h3 {
    font-size: 1rem !important;
    margin-bottom: .15rem !important;
}
.kp-dropzone .dz-message .font-13 {
    font-size: .78rem !important;
}
.kp-media-item {
    position: relative;
}
.kp-media-item > .kp-sort-handle {
    position: absolute;
    top: .35rem;
    left: .35rem;
    z-index: 4;
    width: 2.05rem;
    height: 2.05rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 .15rem .45rem rgba(0,0,0,.18);
    cursor: grab;
}
.kp-media-item > .kp-sort-handle:active {
    cursor: grabbing;
}
.kp-media-actions {
    left: .35rem !important;
    right: .35rem !important;
    bottom: .35rem !important;
    top: auto !important;
    justify-content: center !important;
    gap: .25rem;
    box-shadow: none !important;
    pointer-events: none;
}
.kp-media-actions .btn {
    pointer-events: auto;
}
@media (max-width: 767.98px) {
    .kp-media-item > .kp-sort-handle {
        display: none !important;
    }
}

/* Crop modal controls must remain visible; output-size selector is removed from markup. */
#mpCropModal .btn-group,
#mpCropModal .btn-group .btn {
    opacity: 1 !important;
    visibility: visible !important;
}
#mpCropModal .modal-body > .d-flex {
    gap: .35rem;
}
.mp-chat-composer textarea.form-control {
    min-height: calc((1.5em + .9rem + 2px) * 2) !important;
    resize: vertical;
}
#messagesModal .mp-chat-composer textarea.form-control {
    min-height: calc((1.5em + .9rem + 2px) * 2) !important;
}
.mp-chat-offer-message,
.mp-chat-review-message {
    border: 1px solid rgba(250, 201, 88, .28);
    background: rgba(250, 201, 88, .10);
    border-radius: .45rem;
    padding: .55rem .65rem;
}
.mp-chat-review-message {
    border-color: rgba(255, 188, 0, .28);
    background: rgba(255, 188, 0, .09);
}
.mp-chat-thread-list .simplebar-content,
.mp-chat-messages .simplebar-content {
    min-height: 100%;
}
.mp-chat-thread-list[data-simplebar],
.mp-chat-messages[data-simplebar] {
    scrollbar-width: thin;
}
.kp-product-main {
    max-height: 340px;
    min-height: 0 !important;
    object-fit: contain;
}
.kp-listing-gallery a[data-toggle="lightbox"] {
    display: block;
    cursor: zoom-in;
}
.ekko-lightbox .modal-content {
    background: var(--ct-card-bg, #fff);
    color: inherit;
}
body[data-layout-color="dark"] .ekko-lightbox .modal-content,
html[data-theme="dark"] .ekko-lightbox .modal-content,
html.kp-theme-dark-html .ekko-lightbox .modal-content,
body.kp-theme-dark-body .ekko-lightbox .modal-content {
    background: #37404a;
}
.kp-listing-promotion-note {
    border: 1px solid rgba(250, 188, 44, .25);
    background: rgba(250, 188, 44, .10);
    border-radius: .5rem;
    padding: .65rem .75rem;
}
.kp-promotion-card-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.mp-promotion-receipt-table th {
    width: 34%;
    color: #98a6ad;
    font-weight: 600;
}
.mp-promotion-active-line {
    line-height: 1.35;
}
.mp-my-promotion-badge {
    margin-left: .35rem;
    vertical-align: middle;
}
.mp-promotion-alert {
    border-style: dashed;
}
.mp-chat-thread-list .simplebar-content,
.mp-chat-messages .simplebar-content {
    min-height: 100%;
}
.mp-chat-thread-list[data-simplebar],
.mp-chat-messages[data-simplebar] {
    scrollbar-width: thin;
}
.mp-chat-inline-action {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.2;
}
.mp-chat-inline-action:hover,
.mp-chat-inline-action:focus {
    text-decoration: underline;
}
.mp-chat-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .45rem .75rem;
}
.mp-chat-header-actions .mp-chat-inline-action {
    white-space: nowrap;
}
.mp-chat-offer-action-row {
    margin-top: .35rem;
}
.mp-chat-review-inline {
    border: 1px solid rgba(152,166,173,.22);
    background: rgba(152,166,173,.06);
    border-radius: .45rem;
    padding: .6rem .7rem;
}
.mp-my-summary-row .card,
.mp-my-filter-card,
a.card.widget-flat,
#mp-my-listings-table tbody tr {
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background-color .12s ease;
}
.mp-my-summary-row .card:hover,
.mp-my-filter-card:hover,
a.card.widget-flat:hover {
    transform: translateY(-1px);
    box-shadow: 0 .25rem .9rem rgba(0,0,0,.08);
    text-decoration: none;
}
#mp-my-listings-table tbody tr:hover {
    background-color: rgba(114,124,245,.07);
}
.mp-review-pending-card {
    border: 1px solid rgba(152,166,173,.22);
    border-radius: .45rem;
    padding: .75rem;
    margin-bottom: .6rem;
    transition: background-color .12s ease, box-shadow .12s ease;
}
.mp-review-pending-card:hover {
    background: rgba(152,166,173,.06);
    box-shadow: 0 .2rem .8rem rgba(0,0,0,.05);
}
.mp-badge-guide-card.is-earned {
    border-color: rgba(10,207,151,.45) !important;
    background: rgba(10,207,151,.08);
}
.mp-badge-guide-card .progress {
    height: .35rem;
}
.mp-admin-risk-icon {
    font-size: 1rem;
    line-height: 1;
    opacity: .9;
}
.mp-admin-risk-icon:hover {
    opacity: 1;
    text-decoration: none;
}
.mp-admin-user-risk-wrap {
    display: flex;
    align-items: center;
    min-width: 0;
}
.mp-admin-user-risk-wrap .mp-admin-user-cell {
    min-width: 0;
    flex: 1 1 auto;
}
.mp-admin-category-table input.form-control-sm {
    min-width: 84px;
}
.mp-admin-category-table .cat-slug {
    min-width: 150px;
}
.mp-admin-category-table .cat-name-en,
.mp-admin-category-table .cat-name-fi {
    min-width: 160px;
}
.mp-admin-category-table th {
    white-space: nowrap;
}
.mp-admin-promo-age {
    line-height: 1.35;
}
/* Guard against image regressions in My marketplace tabs. */
#mp-tab-listings .mp-table-thumb,
#mp-tab-deals .mp-table-thumb,
#mp-tab-reviews .mp-table-thumb,
#mp-tab-listings .mp-table-thumb-sm,
#mp-tab-deals .mp-table-thumb-sm,
#mp-tab-reviews .mp-table-thumb-sm {
    width: 52px;
    height: 52px;
    max-width: 52px;
    max-height: 52px;
    object-fit: cover;
    flex: 0 0 52px;
}
#mp-tab-deals .mp-table-thumb-sm,
#mp-tab-reviews .mp-table-thumb-sm {
    width: 44px;
    height: 44px;
    max-width: 44px;
    max-height: 44px;
    flex-basis: 44px;
}
#mp-tab-reviews .mp-review-listing-img {
    width: 58px;
    height: 58px;
    max-width: 58px;
    max-height: 58px;
    object-fit: cover;
    flex: 0 0 58px;
}
#mp-tab-reviews .mp-review-avatar {
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
    object-fit: cover;
    flex: 0 0 32px;
}
@media (max-width: 575.98px) {
    #mp-tab-reviews .mp-review-listing-img {
        width: 48px;
        height: 48px;
        max-width: 48px;
        max-height: 48px;
        flex-basis: 48px;
    }
}

/* Kuulaportti marketplace continuity QA 2026-07-05i */
.mp-my-summary-row > [class*="col-"] {
    display: flex;
}
.mp-my-summary-row .mp-my-stat-card,
.mp-my-summary-row .card.widget-flat {
    width: 100%;
    min-height: 112px;
    display: block;
}
.mp-my-summary-row .mp-my-stat-card .card-body,
.mp-my-summary-row .card.widget-flat .card-body {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.mp-my-summary-row .mp-my-stat-card h3,
.mp-my-summary-row .card.widget-flat h3 {
    line-height: 1.15;
}
.mp-badge-header-progress {
    height: 2px !important;
    background: rgba(152,166,173,.20);
}
.mp-badge-guide-card.is-earned .mp-badge-header-progress .progress-bar {
    background-color: #0acf97;
}

/* Admin tables: keep category/moderator rows table-like and put actions in dropdowns. */
.mp-admin-category-table tr.mp-category-node {
    border: 0 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}
.mp-admin-category-table td,
.mp-admin-category-table th {
    vertical-align: middle !important;
}
.mp-admin-category-table .dropdown-menu,
#mp-admin-moderators .dropdown-menu,
#mp-admin-listings .dropdown-menu {
    z-index: 1080 !important;
}
.mp-admin-user-risk-wrap {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
}
.mp-admin-user-risk-wrap .mp-admin-risk-icon {
    flex: 0 0 auto;
}
.mp-report-action-panel {
    border-color: rgba(114,124,245,.30) !important;
    background: rgba(114,124,245,.06) !important;
}
body[data-layout-color="dark"] .mp-report-action-panel,
html[data-theme="dark"] .mp-report-action-panel {
    background: rgba(114,124,245,.10) !important;
    border-color: rgba(255,255,255,.12) !important;
}

/* Listing editor: only the main save actions are fixed; side actions stay in the status card. */
#marketplace-form {
    padding-bottom: 96px;
}
.kp-listing-side-actions .btn {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 575.98px) {
    #marketplace-form { padding-bottom: 132px; }
}

/* Listing editor media controls. */
.kp-media-item > .kp-sort-handle {
    top: .35rem !important;
    left: .35rem !important;
    right: auto !important;
    bottom: auto !important;
}
.kp-media-action-menu {
    top: .35rem !important;
    right: .35rem !important;
    left: auto !important;
}
.kp-media-actions {
    bottom: .35rem !important;
    top: auto !important;
}
.kp-dropzone {
    min-height: 84px !important;
    border-width: 1px !important;
}
.kp-dropzone .dz-message {
    padding: .85rem .75rem !important;
}

/* Chat review composer uses the normal send button. */
.mp-chat-review-inline .js-chat-review-star {
    cursor: pointer;
}
.mp-chat-header-actions .mp-chat-inline-action + .mp-chat-inline-action {
    margin-left: .75rem;
}
.mp-chat-offer-action-row .mp-chat-inline-action {
    font-size: .8rem;
}

/* Marketplace consistency pass 2026-07-05g */
.mp-admin-deleted {
    opacity: 1 !important;
    background: rgba(250, 92, 124, .06);
}
.mp-admin-deleted td:not(:last-child),
.mp-admin-deleted td:not(:last-child) a:not(.btn):not(.dropdown-item),
.mp-admin-deleted td:not(:last-child) small,
.mp-admin-deleted td:not(:last-child) span:not(.badge) {
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}
.mp-admin-deleted img {
    filter: grayscale(.45);
}
.mp-admin-risk-icon i {
    font-size: 1rem;
    vertical-align: -1px;
}
.mp-my-stat-card {
    height: calc(100% - 1.5rem);
    min-height: 126px;
    transition: box-shadow .15s ease, transform .15s ease;
}
.mp-my-stat-card .card-body {
    min-height: 126px;
}
.mp-my-stat-card:hover,
.mp-my-stat-card:focus {
    transform: translateY(-1px);
    box-shadow: 0 .35rem 1rem rgba(0,0,0,.08);
    text-decoration: none;
}
.kp-media-item > .kp-sort-handle {
    border-radius: .25rem !important;
    min-width: 2rem;
    width: auto !important;
    height: 2rem !important;
    padding: .25rem .45rem !important;
}
@media (max-width: 767.98px) {
    .kp-media-item > .kp-sort-handle { display: none !important; }
}
.kp-dropzone {
    min-height: 72px !important;
}
.kp-dropzone .dz-message {
    padding: .65rem .75rem !important;
}
.kp-dropzone .dz-message h3 {
    font-size: 1rem !important;
    margin-bottom: .15rem !important;
}
.kp-dropzone .dz-message .h1 {
    font-size: 1.45rem !important;
    margin-bottom: .15rem !important;
}
#mpCropModal .btn-group .btn {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Marketplace editor final layout cleanup 2026-07-06 */
#marketplace-form {
    padding-bottom: 88px;
}
.kp-media-item > .kp-sort-handle {
    position: absolute;
    top: .35rem !important;
    left: .35rem !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 4;
    width: auto !important;
    min-width: 2rem;
    height: 2rem !important;
    padding: .25rem .45rem !important;
    border-radius: .25rem !important;
    align-items: center;
    justify-content: center;
    cursor: grab;
}
.kp-media-action-menu {
    top: .35rem !important;
    right: .35rem !important;
    left: auto !important;
}
@media (max-width: 767.98px) {
    #marketplace-form { padding-bottom: 132px; }
    .kp-media-item > .kp-sort-handle { display: none !important; }
}
.kp-dropzone {
    min-height: 72px !important;
    border-width: 1px !important;
}
.kp-dropzone .dz-message {
    padding: .65rem .75rem !important;
    margin: 0 !important;
}
.kp-dropzone .dz-message .h1 {
    font-size: 1.45rem !important;
    line-height: 1;
    margin-bottom: .15rem !important;
}
.kp-dropzone .dz-message h3 {
    font-size: 1rem !important;
    margin-bottom: .15rem !important;
}
#mpCropModal .modal-footer .btn-group .btn {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Marketplace follow-up 2026-07-06: listing detail spacing, seller scroll and gallery controls */
.kp-listing-notes-row,
.kp-description-row {
    margin-top: 0;
}
.kp-listing-notes-card,
.kp-description-card {
    margin-bottom: .75rem;
}
.kp-listing-notes-card .card-body,
.kp-description-card .card-body {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}
.kp-description-card {
    margin-top: 0 !important;
}
.kp-seller-panel .kp-seller-scroll {
    max-height: min(560px, calc(100vh - 145px));
    overflow: auto;
}
.kp-seller-panel .simplebar-content {
    min-height: 100%;
}
.kp-listing-gallery .carousel-control-prev-icon,
.kp-listing-gallery .carousel-control-next-icon,
.ekko-lightbox .carousel-control-prev-icon,
.ekko-lightbox .carousel-control-next-icon,
.ekko-lightbox-nav-overlay a span {
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.72));
    text-shadow: 0 2px 8px rgba(0,0,0,.8);
}

.mp-chat-thread-list[data-simplebar],
.mp-chat-messages[data-simplebar] {
    overflow: hidden !important;
}
.mp-chat-thread-list .simplebar-content-wrapper,
.mp-chat-messages .simplebar-content-wrapper {
    overflow-x: hidden !important;
}
.mp-chat-thread-list .simplebar-content,
.mp-chat-messages .simplebar-content {
    min-height: 100%;
    padding-bottom: .1px;
}
.mp-chat-header-actions .btn,
.mp-chat-offer-action-row .btn {
    white-space: nowrap;
    font-size: .78rem;
    padding: .16rem .45rem;
}
.kp-listing-tabs-row {
    margin-top: .75rem;
}
.kp-listing-tabs-card .card-body {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}
.kp-listing-tabs-card .tab-pane {
    white-space: normal;
    word-break: break-word;
}
@media (min-width: 1200px) {
    .kp-seller-panel .kp-seller-scroll {
        overflow: hidden !important;
    }
}
#mp-admin-logs-table {
    width: 100% !important;
    table-layout: fixed;
}
#mp-admin-logs-table th:nth-child(1) { width: 9.5rem; }
#mp-admin-logs-table th:nth-child(2) { width: 12rem; }
#mp-admin-logs-table th:nth-child(3) { width: 10rem; }
#mp-admin-logs-table th:nth-child(4) { width: 12rem; }
#mp-admin-logs-table th:nth-child(6) { width: 8rem; }
#mp-admin-logs-table td {
    white-space: normal !important;
    word-break: break-word;
    vertical-align: top;
}
.mp-admin-category-table .dropdown-menu,
#mp-admin-moderators .dropdown-menu,
#mp-admin-listings-table .dropdown-menu {
    z-index: 1065 !important;
}

/* Marketplace consistency patch 2026-07-06b */
.kp-seller-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .25rem;
    margin-top: .35rem !important;
    margin-bottom: .55rem !important;
}
.kp-seller-badges .badge {
    margin: 0 !important;
    padding: .28rem .45rem;
    font-size: .72rem;
    line-height: 1.15;
}
.kp-seller-badges .badge .mdi {
    margin-right: .2rem !important;
}
.marketplace-card .kp-card-carousel .carousel-control-prev-icon,
.marketplace-card .kp-card-carousel .carousel-control-next-icon,
.kp-listing-gallery .carousel-control-prev-icon,
.kp-listing-gallery .carousel-control-next-icon,
.ekko-lightbox .modal-header .close,
.ekko-lightbox .carousel-control-prev-icon,
.ekko-lightbox .carousel-control-next-icon {
    filter: drop-shadow(0 .12rem .22rem rgba(0,0,0,.65));
}
.mp-chat-thread-list[data-simplebar],
.mp-chat-messages[data-simplebar] {
    overflow: hidden !important;
}
.mp-chat-thread-list .simplebar-scrollbar::before,
.mp-chat-messages .simplebar-scrollbar::before,
#marketplace-layout .select2-results__options .simplebar-scrollbar::before {
    background: rgba(152,166,173,.72);
}
.mp-chat-thread-list .simplebar-track.simplebar-vertical,
.mp-chat-messages .simplebar-track.simplebar-vertical {
    width: 9px;
}
.mp-chat-thread-list .simplebar-content-wrapper,
.mp-chat-messages .simplebar-content-wrapper {
    outline: 0;
}
.mp-chat-deal-sold { background-color: rgba(10,207,151,.18) !important; color: #0acf97 !important; }
.mp-chat-deal-bought { background-color: rgba(57,175,209,.18) !important; color: #39afd1 !important; }

.kp-seller-panel .kp-seller-scroll[data-simplebar] {
    overflow: hidden !important;
}
.kp-seller-panel .kp-seller-scroll .simplebar-content {
    padding: 1.5rem !important;
}

/* Marketplace mobile UX stabilization 2026-07-06 */
@media (max-width: 991.98px) {
    .mp-chat-shell,
    .mp-chat-shell .card-body,
    .mp-chat-shell .row.no-gutters,
    .mp-chat-sidebar,
    .mp-chat-main,
    #mp-chat-panel {
        min-width: 0 !important;
        max-width: 100% !important;
    }
    .mp-chat-shell .row.no-gutters {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .mp-chat-thread-list {
        min-height: 280px !important;
        max-height: 430px !important;
    }
    .mp-chat-shell.mp-chat-open .mp-chat-main,
    .mp-listing-chat-shell.mp-chat-open .mp-chat-main {
        display: flex !important;
        flex-direction: column !important;
        min-height: 0 !important;
    }
    .mp-chat-shell.mp-chat-open #mp-chat-panel,
    .mp-listing-chat-shell.mp-chat-open #mp-chat-panel {
        display: flex !important;
        min-height: 0 !important;
    }
    .mp-chat-messages {
        min-height: 0 !important;
        height: 420px !important;
        max-height: 52vh !important;
    }
    .mp-chat-messages .simplebar-track.simplebar-vertical,
    .mp-chat-thread-list .simplebar-track.simplebar-vertical {
        opacity: 1 !important;
        visibility: visible !important;
        right: 2px !important;
    }
}

@media (max-width: 767.98px) {
    .page-title-box .page-title-right {
        display: none !important;
    }
    .page-title-box .page-title {
        font-size: 1.15rem;
        line-height: 1.25;
        white-space: normal;
    }

    .mp-my-summary-row > [class*="col-"] {
        display: flex;
    }
    .mp-my-stat-card {
        width: 100%;
        min-height: 116px;
    }
    .mp-my-stat-card .card-body {
        min-height: 116px;
        padding: .85rem !important;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .mp-my-stat-card h5 {
        padding-right: 2.35rem;
        margin-bottom: .35rem !important;
        font-size: .76rem;
        line-height: 1.15;
    }
    .mp-my-stat-card h3 {
        margin-top: .35rem !important;
        margin-bottom: 0 !important;
        font-size: 1.45rem;
        line-height: 1.1;
    }
    .mp-my-stat-card .widget-icon {
        width: 38px !important;
        height: 38px !important;
        line-height: 38px !important;
        font-size: 1.05rem !important;
    }

    .mp-my-nav,
    .kp-listing-tabs-card .nav-tabs,
    #mp-admin-listings.closest,
    .nav.nav-tabs.nav-bordered {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        justify-content: flex-start !important;
    }
    .mp-my-nav .nav-item,
    .kp-listing-tabs-card .nav-tabs .nav-item,
    .nav.nav-tabs.nav-bordered .nav-item {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: max-content;
    }
    .mp-my-nav .nav-link,
    .kp-listing-tabs-card .nav-tabs .nav-link,
    .nav.nav-tabs.nav-bordered .nav-link {
        white-space: nowrap !important;
        padding: .55rem .8rem !important;
    }
    .kp-listing-tabs-card .card-body {
        padding: 1rem !important;
    }
    .kp-listing-tabs-card .nav-tabs {
        margin-bottom: .9rem !important;
    }
    .kp-listing-tabs-card .tab-content {
        border-top: 1px solid rgba(152,166,173,.22);
        padding-top: .9rem;
    }

    #mp-my-listings-wrapper,
    #mp-deals-wrapper,
    #mp-admin-listings-table_wrapper .table-responsive,
    #mp-admin-reports-table_wrapper .table-responsive,
    #mp-admin-paid-table_wrapper .table-responsive,
    #mp-admin-promos-table_wrapper .table-responsive,
    #mp-admin-logs-table_wrapper .table-responsive,
    #mp-admin-listings .table-responsive,
    #mp-admin-reports .table-responsive,
    #mp-admin-paid .table-responsive,
    #mp-admin-promos .table-responsive,
    #mp-admin-logs .table-responsive,
    #mp-admin-categories .table-responsive,
    #mp-admin-moderators .table-responsive {
        overflow-x: visible !important;
    }

    #mp-my-listings-table,
    #mp-deals-table,
    #mp-admin-listings-table,
    #mp-admin-reports-table,
    #mp-admin-paid-table,
    #mp-admin-promos-table,
    #mp-admin-logs-table {
        display: block !important;
        width: 100% !important;
        table-layout: auto !important;
        border-collapse: separate !important;
    }
    #mp-my-listings-table thead,
    #mp-deals-table thead,
    #mp-admin-listings-table thead,
    #mp-admin-reports-table thead,
    #mp-admin-paid-table thead,
    #mp-admin-promos-table thead,
    #mp-admin-logs-table thead {
        display: none !important;
    }
    #mp-my-listings-table tbody,
    #mp-deals-table tbody,
    #mp-admin-listings-table tbody,
    #mp-admin-reports-table tbody,
    #mp-admin-paid-table tbody,
    #mp-admin-promos-table tbody,
    #mp-admin-logs-table tbody {
        display: block !important;
        width: 100% !important;
    }
    #mp-my-listings-table tr,
    #mp-deals-table tr,
    #mp-admin-listings-table tr,
    #mp-admin-reports-table tr,
    #mp-admin-paid-table tr,
    #mp-admin-promos-table tr,
    #mp-admin-logs-table tr {
        display: block !important;
        width: 100% !important;
        margin-bottom: .85rem !important;
        padding: .75rem !important;
        border: 1px solid rgba(152,166,173,.24) !important;
        border-radius: .35rem !important;
        background: rgba(152,166,173,.06);
    }
    #mp-my-listings-table td,
    #mp-deals-table td,
    #mp-admin-listings-table td,
    #mp-admin-reports-table td,
    #mp-admin-paid-table td,
    #mp-admin-promos-table td,
    #mp-admin-logs-table td {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        align-items: flex-start;
        justify-content: space-between;
        gap: .75rem;
        padding: .34rem 0 !important;
        border: 0 !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: anywhere !important;
        text-align: left !important;
    }
    #mp-my-listings-table td::before,
    #mp-deals-table td::before,
    #mp-admin-listings-table td::before,
    #mp-admin-reports-table td::before,
    #mp-admin-paid-table td::before,
    #mp-admin-promos-table td::before,
    #mp-admin-logs-table td::before {
        flex: 0 0 34%;
        max-width: 34%;
        content: '';
        color: #98a6ad;
        font-size: .72rem;
        font-weight: 700;
        letter-spacing: .02em;
        text-transform: uppercase;
    }
    #mp-my-listings-table td > *,
    #mp-deals-table td > *,
    #mp-admin-listings-table td > *,
    #mp-admin-reports-table td > *,
    #mp-admin-paid-table td > *,
    #mp-admin-promos-table td > *,
    #mp-admin-logs-table td > * {
        min-width: 0;
    }

    #mp-my-listings-table td:nth-child(1),
    #mp-deals-table td:nth-child(1),
    #mp-admin-listings-table td:nth-child(2),
    #mp-admin-reports-table td:nth-child(1),
    #mp-admin-paid-table td:nth-child(2),
    #mp-admin-promos-table td:nth-child(1),
    #mp-admin-logs-table td:nth-child(5) {
        display: block !important;
    }
    #mp-my-listings-table td:nth-child(1)::before,
    #mp-deals-table td:nth-child(1)::before,
    #mp-admin-listings-table td:nth-child(2)::before,
    #mp-admin-reports-table td:nth-child(1)::before,
    #mp-admin-paid-table td:nth-child(2)::before,
    #mp-admin-promos-table td:nth-child(1)::before,
    #mp-admin-logs-table td:nth-child(5)::before {
        display: block;
        max-width: 100%;
        margin-bottom: .35rem;
    }

    #mp-my-listings-table td:nth-child(1)::before { content: 'Item'; }
    #mp-my-listings-table td:nth-child(2)::before { content: 'Status'; }
    #mp-my-listings-table td:nth-child(3)::before { content: 'Price'; }
    #mp-my-listings-table td:nth-child(4)::before { content: 'Views'; }
    #mp-my-listings-table td:nth-child(5)::before { content: 'Favourites'; }
    #mp-my-listings-table td:nth-child(6)::before { content: 'Messages'; }
    #mp-my-listings-table td:nth-child(7)::before { content: 'Actions'; }

    #mp-deals-table td:nth-child(1)::before { content: 'Listing'; }
    #mp-deals-table td:nth-child(2)::before { content: 'Role'; }
    #mp-deals-table td:nth-child(3)::before { content: 'Status'; }
    #mp-deals-table td:nth-child(4)::before { content: 'Review'; }

    #mp-admin-listings-table td:nth-child(1)::before { content: 'ID'; }
    #mp-admin-listings-table td:nth-child(2)::before { content: 'Title'; }
    #mp-admin-listings-table td:nth-child(3)::before { content: 'Seller'; }
    #mp-admin-listings-table td:nth-child(4)::before { content: 'Buyer'; }
    #mp-admin-listings-table td:nth-child(5)::before { content: 'Status'; }
    #mp-admin-listings-table td:nth-child(6)::before { content: 'Updated'; }
    #mp-admin-listings-table td:nth-child(7)::before { content: 'Actions'; }

    #mp-admin-reports-table td:nth-child(1)::before { content: 'Listing'; }
    #mp-admin-reports-table td:nth-child(2)::before { content: 'Reporter'; }
    #mp-admin-reports-table td:nth-child(3)::before { content: 'Reason'; }
    #mp-admin-reports-table td:nth-child(4)::before { content: 'Message'; }
    #mp-admin-reports-table td:nth-child(5)::before { content: 'Status'; }
    #mp-admin-reports-table td:nth-child(6)::before { content: 'Actions'; }

    #mp-admin-paid-table td:nth-child(1)::before { content: 'Enabled'; }
    #mp-admin-paid-table td:nth-child(2)::before { content: 'Title'; }
    #mp-admin-paid-table td:nth-child(3)::before { content: 'Key'; }
    #mp-admin-paid-table td:nth-child(4)::before { content: 'Price'; }
    #mp-admin-paid-table td:nth-child(5)::before { content: 'VAT'; }
    #mp-admin-paid-table td:nth-child(6)::before { content: 'Total'; }
    #mp-admin-paid-table td:nth-child(7)::before { content: 'Duration'; }
    #mp-admin-paid-table td:nth-child(8)::before { content: 'Save'; }

    #mp-admin-promos-table td:nth-child(1)::before { content: 'Target'; }
    #mp-admin-promos-table td:nth-child(2)::before { content: 'Product'; }
    #mp-admin-promos-table td:nth-child(3)::before { content: 'Buyer'; }
    #mp-admin-promos-table td:nth-child(4)::before { content: 'Status'; }
    #mp-admin-promos-table td:nth-child(5)::before { content: 'Requested'; }
    #mp-admin-promos-table td:nth-child(6)::before { content: 'Age'; }
    #mp-admin-promos-table td:nth-child(7)::before { content: 'Ends'; }
    #mp-admin-promos-table td:nth-child(8)::before { content: 'Actions'; }

    #mp-admin-logs-table td:nth-child(1)::before { content: 'Time'; }
    #mp-admin-logs-table td:nth-child(2)::before { content: 'Actor'; }
    #mp-admin-logs-table td:nth-child(3)::before { content: 'Type'; }
    #mp-admin-logs-table td:nth-child(4)::before { content: 'Target'; }
    #mp-admin-logs-table td:nth-child(5)::before { content: 'Text'; }
    #mp-admin-logs-table td:nth-child(6)::before { content: 'IP'; }

    #mp-admin-paid-table .input-group,
    #mp-admin-promos-table .input-group {
        width: min(100%, 11rem);
        margin-left: auto;
    }
    #mp-admin-paid-table input.form-control,
    #mp-admin-paid-table select.form-control,
    #mp-admin-promos-table input.form-control,
    #mp-admin-promos-table select.form-control,
    #mp-admin-listings-table select.form-control {
        min-width: 0 !important;
        width: 100% !important;
    }
    #mp-admin-paid-table .custom-switch,
    #mp-admin-paid-table .btn,
    #mp-admin-listings-table .btn,
    #mp-my-listings-table .btn,
    #mp-deals-table .btn {
        flex-shrink: 0;
    }
    #mp-admin-logs-table td:nth-child(5),
    #mp-admin-logs-table td:nth-child(6) {
        overflow-wrap: anywhere !important;
    }

    .mp-status-badge,
    .mp-my-promotion-badge,
    #mp-my-listings-table .badge,
    #mp-deals-table .badge {
        white-space: normal !important;
        max-width: 100%;
        line-height: 1.25;
        text-align: left;
    }
    #mp-my-listings-table .media,
    #mp-deals-table .media,
    #mp-admin-listings-table .media,
    #mp-admin-reports-table .media {
        align-items: flex-start !important;
        min-width: 0;
    }
    #mp-my-listings-table .media-body,
    #mp-deals-table .media-body,
    #mp-admin-listings-table .media-body,
    #mp-admin-reports-table .media-body {
        min-width: 0;
    }
    #mp-my-listings-table .mp-table-thumb,
    #mp-my-listings-table .mp-table-thumb-sm,
    #mp-deals-table .mp-table-thumb-sm {
        width: 54px !important;
        height: 54px !important;
        flex: 0 0 54px;
    }
    .mp-my-table-actions .dropdown,
    #mp-admin-listings-table .dropdown,
    #mp-admin-paid-table .dropdown,
    #mp-admin-reports-table .dropdown {
        display: inline-block;
    }

    body.kp-marketplace-scope .dataTables_wrapper .row,
    body.kp-marketplace-scope .dataTables_wrapper .dataTables_info,
    body.kp-marketplace-scope .dataTables_wrapper .dataTables_paginate {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100%;
    }
    body.kp-marketplace-scope .dataTables_wrapper .dataTables_info {
        text-align: left;
        white-space: normal;
        font-size: .82rem;
        margin-top: .5rem;
    }
    body.kp-marketplace-scope .dataTables_wrapper .dataTables_paginate .pagination {
        justify-content: flex-start !important;
        flex-wrap: wrap;
    }

    .mp-review-pending-card {
        padding: .85rem !important;
        overflow: hidden;
    }
    .mp-review-pending-card .media {
        align-items: flex-start !important;
    }
    .mp-review-pending-card .media-body {
        min-width: 0;
    }
    .mp-review-pending-card .js-review {
        margin-left: 0 !important;
        margin-top: .6rem;
        width: 100%;
    }
    .mp-review-pending-card .media {
        flex-wrap: wrap;
    }
    .mp-review-listing-img,
    #mp-tab-reviews .mp-review-listing-img {
        width: 52px !important;
        height: 52px !important;
        flex: 0 0 52px;
    }
    .mp-review-avatar,
    #mp-tab-reviews .mp-review-avatar {
        width: 30px !important;
        height: 30px !important;
        flex: 0 0 30px;
    }

    .marketplace-card .carousel-control-prev-icon,
    .marketplace-card .carousel-control-next-icon,
    .kp-card-carousel .carousel-control-prev-icon,
    .kp-card-carousel .carousel-control-next-icon {
        filter: drop-shadow(0 .12rem .24rem rgba(0,0,0,.7));
    }
}

@media (max-width: 575.98px) {
    .mp-listing-message-modal {
        max-width: 100% !important;
        margin: 0 !important;
        min-height: 100%;
    }
    .mp-listing-message-modal .modal-content {
        min-height: 100vh;
        height: 100vh;
        border-radius: 0 !important;
    }
    .mp-listing-message-modal .modal-header {
        min-height: 54px;
        padding: .75rem 1rem !important;
    }
    .mp-listing-message-modal .modal-body,
    .mp-listing-message-modal #messages-card,
    .mp-listing-message-modal .mp-listing-chat-shell,
    .mp-listing-message-modal .mp-listing-chat-shell > .card-body,
    .mp-listing-message-modal .mp-listing-chat-shell .row.no-gutters {
        height: calc(100vh - 54px) !important;
        max-height: calc(100vh - 54px) !important;
        min-height: 0 !important;
    }
    .mp-listing-message-modal .mp-chat-sidebar,
    .mp-listing-message-modal .mp-chat-main {
        height: 100% !important;
        min-height: 0 !important;
    }
    .mp-listing-message-modal .mp-chat-thread-list {
        height: calc(100vh - 170px) !important;
        max-height: none !important;
        min-height: 0 !important;
    }
    .mp-listing-message-modal .mp-chat-main {
        display: none !important;
    }
    .mp-listing-message-modal .mp-listing-chat-shell.mp-chat-open .mp-chat-main {
        display: flex !important;
    }
    .mp-listing-message-modal .mp-chat-header {
        flex-wrap: nowrap;
        min-height: 70px;
    }
    .mp-listing-message-modal .mp-chat-item-image {
        width: 52px !important;
        height: 52px !important;
        object-fit: cover;
    }
    .mp-listing-message-modal .mp-chat-header-actions {
        max-width: 42%;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: .25rem;
    }
    .mp-listing-message-modal .mp-chat-header-actions .btn,
    .mp-listing-message-modal .mp-chat-header-actions a {
        margin: 0 !important;
        font-size: .76rem;
        padding: .18rem .45rem;
    }
    .mp-listing-message-modal .mp-chat-messages {
        flex: 1 1 auto !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
    }
    .mp-listing-message-modal .mp-chat-composer {
        flex: 0 0 auto !important;
        background: inherit;
    }
    .mp-chat-bubble {
        max-width: 92% !important;
        overflow-wrap: anywhere;
    }
    .mp-chat-message.system .mp-chat-bubble {
        max-width: 94% !important;
    }
    .mp-chat-composer .input-group > .form-control {
        min-width: 0;
    }
    .mp-chat-composer textarea.form-control {
        min-height: 48px;
        max-height: 96px;
    }

    .mp-my-nav .nav-link {
        padding: .55rem .75rem !important;
    }
    .mp-my-nav .badge {
        margin-left: .25rem !important;
    }
    #mp-tab-messages .mp-chat-shell {
        margin-left: -.25rem;
        margin-right: -.25rem;
    }
    #mp-tab-messages .mp-chat-sidebar,
    #mp-tab-messages .mp-chat-main {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    #mp-tab-messages .mp-chat-thread {
        padding: .75rem !important;
    }
    #mp-tab-messages .mp-chat-thread-title,
    .mp-chat-thread-title {
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #mp-my-listing-entries,
    #mp-deals-entries {
        display: none !important;
    }
    #mp-my-listing-pagination,
    #mp-deals-pagination {
        float: none !important;
        margin-top: .5rem;
    }
    #mp-my-listing-pagination .pagination,
    #mp-deals-pagination .pagination {
        justify-content: center !important;
    }

    #mp-admin-paid-table td,
    #mp-admin-listings-table td,
    #mp-admin-logs-table td {
        gap: .55rem;
    }
    #mp-admin-paid-table td::before,
    #mp-admin-listings-table td::before,
    #mp-admin-logs-table td::before {
        flex-basis: 32%;
        max-width: 32%;
    }
    #mp-admin-paid-table td:nth-child(2)::before,
    #mp-admin-logs-table td:nth-child(5)::before,
    #mp-admin-listings-table td:nth-child(2)::before {
        max-width: 100%;
    }

    .kp-listing-tabs-card .nav-tabs .nav-link {
        font-size: .9rem;
    }
    .kp-listing-tabs-card .tab-pane {
        font-size: .95rem;
        line-height: 1.5;
    }
}

body[data-layout-color="dark"] #mp-my-listings-table tr,
html[data-layout-color="dark"] #mp-my-listings-table tr,
html[data-theme="dark"] #mp-my-listings-table tr,
body[data-layout-color="dark"] #mp-deals-table tr,
html[data-layout-color="dark"] #mp-deals-table tr,
html[data-theme="dark"] #mp-deals-table tr,
body[data-layout-color="dark"] #mp-admin-listings-table tr,
html[data-layout-color="dark"] #mp-admin-listings-table tr,
html[data-theme="dark"] #mp-admin-listings-table tr,
body[data-layout-color="dark"] #mp-admin-reports-table tr,
html[data-layout-color="dark"] #mp-admin-reports-table tr,
html[data-theme="dark"] #mp-admin-reports-table tr,
body[data-layout-color="dark"] #mp-admin-paid-table tr,
html[data-layout-color="dark"] #mp-admin-paid-table tr,
html[data-theme="dark"] #mp-admin-paid-table tr,
body[data-layout-color="dark"] #mp-admin-promos-table tr,
html[data-layout-color="dark"] #mp-admin-promos-table tr,
html[data-theme="dark"] #mp-admin-promos-table tr,
body[data-layout-color="dark"] #mp-admin-logs-table tr,
html[data-layout-color="dark"] #mp-admin-logs-table tr,
html[data-theme="dark"] #mp-admin-logs-table tr {
    background: rgba(255,255,255,.025);
    border-color: rgba(255,255,255,.08) !important;
}

/* Chat action chips: keep offer/review actions next to the current trade badge without custom theme assets. */
.mp-chat-context-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .25rem;
    min-width: 0;
}
.mp-chat-context-actions .badge,
.mp-chat-header-actions .badge.mp-chat-action-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
}
.mp-chat-header-actions .badge.mp-chat-action-chip {
    padding: .34rem .55rem;
}
.mp-chat-context-actions .btn,
.mp-chat-header-actions .btn {
    white-space: nowrap;
}
.mp-chat-safe-hint {
    display: inline-flex;
    align-items: flex-start;
    min-width: 0;
    max-width: 100%;
    line-height: 1.35;
    white-space: normal;
}
.mp-chat-safe-hint .mdi {
    line-height: 1.35;
}
@media (max-width: 575.98px) {
    .mp-chat-header-actions {
        max-width: 44%;
        gap: .2rem;
        justify-content: flex-end;
    }
    .mp-chat-header-actions .btn,
    .mp-chat-header-actions .badge.mp-chat-action-chip {
        font-size: .72rem;
        padding: .18rem .38rem;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .mp-chat-context-actions {
        font-size: .78rem;
        gap: .2rem;
    }
    .mp-chat-context-actions .badge,
    .mp-chat-context-actions .btn {
        max-width: 100%;
        white-space: normal;
        text-align: left;
    }
    .mp-chat-safe-hint {
        font-size: .76rem;
    }
}

/* Marketplace mobile readability pass 2026-07-06 */
@media (max-width: 767.98px) {
    /* Kuulaportti pages load this stylesheet only where marketplace UI is present. Keep desktop untouched. */
    body.kp-marketplace-scope .content-page .content .container-fluid,
    body.kp-marketplace-scope .container-fluid {
        padding-left: .5rem !important;
        padding-right: .5rem !important;
    }
    body.kp-marketplace-scope .row {
        margin-left: -.35rem;
        margin-right: -.35rem;
    }
    body.kp-marketplace-scope .row > [class*="col-"] {
        padding-left: .35rem;
        padding-right: .35rem;
    }

    .mp-my-main-card > .card-body,
    #mp-admin-tabs + .tab-content > .tab-pane > .card > .card-body,
    #mp-admin-tabs + .tab-content .card-body {
        padding: .9rem !important;
    }

    .mp-admin-stats-row > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .mp-admin-stats-row .card-body {
        padding: .85rem !important;
        min-height: 96px;
    }
    .mp-admin-stats-row h5 {
        font-size: .72rem;
        line-height: 1.15;
        margin-bottom: .35rem !important;
    }
    .mp-admin-stats-row h3 {
        font-size: 1.55rem;
        margin-bottom: 0;
    }

    /* Scrollable tabbars should bring the selected item into view through JS and have less dead margin. */
    .mp-my-nav,
    .mp-admin-nav,
    .kp-listing-tabs-card .nav-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start !important;
        gap: 0;
        margin-left: -.05rem !important;
        margin-right: -.05rem !important;
        padding-bottom: .12rem;
        scrollbar-width: thin;
        scroll-behavior: smooth;
    }
    .mp-my-nav.nav-justified .nav-item,
    .mp-admin-nav .nav-item,
    .kp-listing-tabs-card .nav-tabs .nav-item {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: max-content;
    }
    .mp-my-nav .nav-link,
    .mp-admin-nav .nav-link,
    .kp-listing-tabs-card .nav-tabs .nav-link {
        white-space: nowrap !important;
        min-width: max-content;
        padding: .55rem .75rem !important;
    }
    .mp-my-nav .nav-link .badge,
    .mp-admin-nav .nav-link .badge {
        vertical-align: middle;
    }

    /* More compact mobile cards generated from DataTables. */
    #mp-my-listings-table tr,
    #mp-deals-table tr,
    #mp-admin-listings-table tr,
    #mp-admin-reports-table tr,
    #mp-admin-paid-table tr,
    #mp-admin-promos-table tr,
    #mp-admin-logs-table tr,
    .mp-admin-category-table tr,
    #mp-admin-moderators table tr {
        padding: .72rem !important;
        margin-bottom: .72rem !important;
        border-radius: .42rem !important;
    }
    #mp-my-listings-table td,
    #mp-deals-table td,
    #mp-admin-listings-table td,
    #mp-admin-reports-table td,
    #mp-admin-paid-table td,
    #mp-admin-promos-table td,
    #mp-admin-logs-table td,
    .mp-admin-category-table td,
    #mp-admin-moderators table td {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        align-items: flex-start;
        justify-content: space-between;
        gap: .55rem !important;
        padding: .28rem 0 !important;
        border: 0 !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: anywhere !important;
        text-align: left !important;
    }
    #mp-my-listings-table td::before,
    #mp-deals-table td::before,
    #mp-admin-listings-table td::before,
    #mp-admin-reports-table td::before,
    #mp-admin-paid-table td::before,
    #mp-admin-promos-table td::before,
    #mp-admin-logs-table td::before,
    .mp-admin-category-table td::before,
    #mp-admin-moderators table td::before {
        flex: 0 0 30% !important;
        max-width: 30% !important;
        color: #98a6ad;
        font-size: .68rem;
        font-weight: 700;
        line-height: 1.25;
        letter-spacing: .03em;
        text-transform: uppercase;
    }

    /* Use nth-of-type because some admin rows contain a hidden input as a direct child before td elements. */
    #mp-admin-paid-table td:nth-of-type(1)::before { content: 'Enabled' !important; }
    #mp-admin-paid-table td:nth-of-type(2)::before { content: 'Title' !important; }
    #mp-admin-paid-table td:nth-of-type(3)::before { content: 'Key' !important; }
    #mp-admin-paid-table td:nth-of-type(4)::before { content: 'Price' !important; }
    #mp-admin-paid-table td:nth-of-type(5)::before { content: 'VAT' !important; }
    #mp-admin-paid-table td:nth-of-type(6)::before { content: 'Total' !important; }
    #mp-admin-paid-table td:nth-of-type(7)::before { content: 'Duration' !important; }
    #mp-admin-paid-table td:nth-of-type(8)::before { content: 'Save' !important; }

    #mp-admin-promos-table td:nth-of-type(1)::before { content: 'Target' !important; }
    #mp-admin-promos-table td:nth-of-type(2)::before { content: 'Product' !important; }
    #mp-admin-promos-table td:nth-of-type(3)::before { content: 'Buyer' !important; }
    #mp-admin-promos-table td:nth-of-type(4)::before { content: 'Status' !important; }
    #mp-admin-promos-table td:nth-of-type(5)::before { content: 'Requested' !important; }
    #mp-admin-promos-table td:nth-of-type(6)::before { content: 'Age' !important; }
    #mp-admin-promos-table td:nth-of-type(7)::before { content: 'Ends' !important; }
    #mp-admin-promos-table td:nth-of-type(8)::before { content: 'Actions' !important; }

    .mp-admin-category-table,
    #mp-admin-moderators table {
        display: block !important;
        width: 100% !important;
    }
    .mp-admin-category-table thead,
    #mp-admin-moderators table thead {
        display: none !important;
    }
    .mp-admin-category-table tbody,
    #mp-admin-moderators table tbody {
        display: block !important;
        width: 100% !important;
    }
    .mp-admin-category-table tr,
    #mp-admin-moderators table tr {
        display: block !important;
        width: 100% !important;
        border: 1px solid rgba(152,166,173,.24) !important;
        background: rgba(152,166,173,.06);
    }
    .mp-admin-category-table td:nth-of-type(1)::before { content: 'ID'; }
    .mp-admin-category-table td:nth-of-type(2)::before { content: 'Parent'; }
    .mp-admin-category-table td:nth-of-type(3)::before { content: 'Sort'; }
    .mp-admin-category-table td:nth-of-type(4)::before { content: 'Slug'; }
    .mp-admin-category-table td:nth-of-type(5)::before { content: 'EN'; }
    .mp-admin-category-table td:nth-of-type(6)::before { content: 'FI'; }
    .mp-admin-category-table td:nth-of-type(7)::before { content: 'State'; }
    .mp-admin-category-table td:nth-of-type(8)::before { content: 'Actions'; }
    #mp-admin-moderators table td:nth-of-type(1)::before { content: 'User'; }
    #mp-admin-moderators table td:nth-of-type(2)::before { content: 'Notifications'; }
    #mp-admin-moderators table td:nth-of-type(3)::before { content: 'Enabled'; }
    #mp-admin-moderators table td:nth-of-type(4)::before { content: 'Actions'; }

    /* Primary content cells should not waste label width. */
    #mp-my-listings-table td:nth-of-type(1),
    #mp-deals-table td:nth-of-type(1),
    #mp-admin-listings-table td:nth-of-type(2),
    #mp-admin-reports-table td:nth-of-type(1),
    #mp-admin-logs-table td:nth-of-type(5) {
        display: block !important;
    }
    #mp-my-listings-table td:nth-of-type(1)::before,
    #mp-deals-table td:nth-of-type(1)::before,
    #mp-admin-listings-table td:nth-of-type(2)::before,
    #mp-admin-reports-table td:nth-of-type(1)::before,
    #mp-admin-logs-table td:nth-of-type(5)::before {
        display: block !important;
        max-width: 100% !important;
        margin-bottom: .28rem;
    }

    #mp-admin-paid-table .input-group,
    #mp-admin-promos-table .input-group,
    .mp-admin-category-table input.form-control {
        width: min(100%, 13rem) !important;
        margin-left: auto;
    }
    #mp-admin-paid-table .input-group .form-control,
    #mp-admin-paid-table .input-group-text,
    #mp-admin-promos-table .input-group .form-control,
    #mp-admin-promos-table .input-group-text {
        min-height: 34px;
    }
    #mp-admin-paid-table .prod-total-gross {
        white-space: nowrap;
        margin-left: auto;
    }
    #mp-admin-paid-table .js-product-save,
    #mp-admin-moderators .mp-admin-actions,
    .mp-admin-category-table .mp-admin-actions,
    #mp-admin-listings-table .mp-admin-actions {
        margin-left: auto;
    }

    .mp-status-badge,
    #mp-my-listings-table .badge,
    #mp-admin-listings-table .badge,
    #mp-admin-reports-table .badge,
    #mp-admin-promos-table .badge,
    #mp-deals-table .badge {
        display: inline-flex;
        align-items: center;
        width: auto;
        max-width: 100%;
        white-space: nowrap !important;
        line-height: 1.25;
        text-align: left;
    }
    #mp-my-listings-table td:nth-of-type(2),
    #mp-admin-listings-table td:nth-of-type(5),
    #mp-deals-table td:nth-of-type(3) {
        align-items: center;
    }

    .mp-review-list .media {
        align-items: flex-start !important;
        gap: .45rem;
    }
    .mp-review-list .media-body {
        min-width: 0;
    }
    .mp-review-listing-img,
    #mp-tab-reviews .mp-review-listing-img {
        width: 48px !important;
        height: 48px !important;
        flex: 0 0 48px !important;
        object-fit: cover;
    }
    .mp-review-avatar,
    #mp-tab-reviews .mp-review-avatar {
        width: 28px !important;
        height: 28px !important;
        flex: 0 0 28px !important;
    }
    .mp-review-list .text-muted,
    #mp-tab-reviews .text-muted {
        overflow-wrap: normal !important;
        word-break: normal !important;
    }
    #mp-tab-reviews .mdi-calendar-outline + span,
    #mp-tab-reviews .small.text-muted {
        white-space: normal;
    }
    .mp-review-pending-card .media {
        display: grid !important;
        grid-template-columns: 54px minmax(0, 1fr);
        gap: .65rem;
        align-items: start !important;
    }
    .mp-review-pending-card .media > img {
        grid-column: 1;
    }
    .mp-review-pending-card .media-body {
        grid-column: 2;
    }
    .mp-review-pending-card .js-review {
        grid-column: 1 / -1;
        width: 100%;
        margin: .25rem 0 0 !important;
    }

    #mp-tab-messages .mp-chat-shell,
    #mp-tab-messages .mp-chat-sidebar,
    #mp-tab-messages .mp-chat-main,
    .mp-listing-message-modal .mp-chat-shell {
        max-width: 100% !important;
        overflow: hidden;
    }
    #mp-tab-messages .mp-chat-thread {
        display: grid !important;
        grid-template-columns: 56px minmax(0, 1fr);
        gap: .6rem;
    }
    #mp-tab-messages .mp-chat-thread-title,
    .mp-chat-thread-title {
        max-width: 100%;
        min-width: 0;
    }
}

@media (max-width: 575.98px) {
    body.kp-marketplace-scope .content-page .content .container-fluid,
    body.kp-marketplace-scope .container-fluid {
        padding-left: .35rem !important;
        padding-right: .35rem !important;
    }
    .mp-my-main-card > .card-body,
    #mp-admin-tabs + .tab-content > .tab-pane > .card > .card-body,
    #mp-admin-tabs + .tab-content .card-body {
        padding: .75rem !important;
    }
    .mp-my-summary-row > [class*="col-"] {
        padding-left: .3rem;
        padding-right: .3rem;
    }
    .mp-my-stat-card {
        min-height: 104px !important;
    }
    .mp-my-stat-card .card-body {
        min-height: 104px !important;
    }
    .mp-my-stat-card h5 {
        font-size: .72rem !important;
    }
    .mp-my-stat-card h3 {
        font-size: 1.35rem !important;
    }
    #mp-my-listings-table td::before,
    #mp-deals-table td::before,
    #mp-admin-listings-table td::before,
    #mp-admin-reports-table td::before,
    #mp-admin-paid-table td::before,
    #mp-admin-promos-table td::before,
    #mp-admin-logs-table td::before,
    .mp-admin-category-table td::before,
    #mp-admin-moderators table td::before {
        flex-basis: 28% !important;
        max-width: 28% !important;
    }
}

/* Marketplace mobile polish pass 2026-07-06 v4.5
   Mobile-only refinements. Desktop rules are intentionally untouched. */
@media (max-width: 767.98px) {
    body.kp-marketplace-scope {
        overflow-x: hidden;
    }

    /* Use the same calm page title rhythm as normal Kuulaportti pages. */
    body.kp-marketplace-scope .page-title-box {
        padding: .65rem 0 .85rem !important;
        margin-bottom: .15rem !important;
    }
    body.kp-marketplace-scope .page-title-box .breadcrumb {
        display: none !important;
    }
    body.kp-marketplace-scope .page-title {
        font-size: 1.2rem !important;
        line-height: 1.25 !important;
        margin: 0 !important;
    }

    /* Wider mobile cards without touching desktop. */
    body.kp-marketplace-scope .content-page .content .container-fluid,
    body.kp-marketplace-scope .container-fluid {
        padding-left: .38rem !important;
        padding-right: .38rem !important;
    }
    body.kp-marketplace-scope .card {
        border-radius: .42rem;
    }
    body.kp-marketplace-scope .card > .card-body,
    .mp-my-main-card > .card-body,
    #mp-admin-tabs + .tab-content > .tab-pane > .card > .card-body,
    #mp-admin-tabs + .tab-content .card-body {
        padding: .85rem !important;
    }
    body.kp-marketplace-scope .header-title {
        line-height: 1.2;
        margin-bottom: .75rem !important;
    }

    /* Top marketplace browse page spacing. */
    .kp-market-topbar {
        margin-bottom: .75rem !important;
    }
    .kp-market-topbar .kp-market-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .5rem;
    }
    .kp-market-topbar .kp-market-actions .btn {
        margin: 0 !important;
        width: 100%;
    }
    #marketplace-layout .kp-filter-toolbar-card,
    #marketplace-layout .kp-filter-card {
        margin-bottom: .75rem !important;
    }
    .kp-market-card .card-body {
        padding: .75rem !important;
    }

    /* Scrollable tabbars. Active tab is centered by page JS; these rules keep them readable. */
    .mp-my-nav,
    .mp-admin-nav,
    .kp-listing-tabs-card .nav-tabs,
    #event-monetization-tabs {
        width: 100%;
        max-width: 100%;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        scrollbar-width: thin;
        scroll-behavior: smooth;
        padding-bottom: .12rem;
    }
    .mp-my-nav .nav-item,
    .mp-admin-nav .nav-item,
    .kp-listing-tabs-card .nav-tabs .nav-item,
    #event-monetization-tabs .nav-item {
        flex: 0 0 auto !important;
        min-width: max-content;
    }
    .mp-my-nav .nav-link,
    .mp-admin-nav .nav-link,
    .kp-listing-tabs-card .nav-tabs .nav-link,
    #event-monetization-tabs .nav-link {
        white-space: nowrap !important;
        padding: .52rem .72rem !important;
        min-width: max-content;
        line-height: 1.25;
    }
    .kp-listing-tabs-card .nav-tabs .nav-link {
        display: inline-flex;
        align-items: center;
        gap: .25rem;
    }

    /* My marketplace summary: useful but less dominant. */
    .mp-my-summary-row {
        margin-bottom: .8rem !important;
    }
    .mp-my-summary-row > [class*="col-"] {
        margin-bottom: .55rem !important;
    }
    .mp-my-stat-card,
    .mp-my-stat-card .card-body {
        min-height: 82px !important;
    }
    .mp-my-stat-card .card-body {
        padding: .72rem !important;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .mp-my-stat-card .avatar-sm,
    .mp-my-stat-card .avatar-title {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
    }
    .mp-my-stat-card h5 {
        font-size: .72rem !important;
        line-height: 1.12 !important;
        margin: .2rem 0 .15rem !important;
    }
    .mp-my-stat-card h3 {
        font-size: 1.35rem !important;
        line-height: 1 !important;
    }

    /* DataTables mobile card language: same look everywhere in marketplace. */
    #mp-my-listings-table tr,
    #mp-deals-table tr,
    #mp-admin-listings-table tr,
    #mp-admin-reports-table tr,
    #mp-admin-paid-table tr,
    #mp-admin-promos-table tr,
    #mp-admin-logs-table tr,
    .mp-admin-category-table tr,
    #mp-admin-moderators table tr,
    .mp-event-monetization-table tr {
        border: 1px solid rgba(152,166,173,.26) !important;
        border-radius: .5rem !important;
        background: rgba(152,166,173,.045) !important;
        box-shadow: none !important;
        padding: .9rem !important;
        margin: 0 0 .85rem !important;
    }
    #mp-my-listings-table td,
    #mp-deals-table td,
    #mp-admin-listings-table td,
    #mp-admin-reports-table td,
    #mp-admin-paid-table td,
    #mp-admin-promos-table td,
    #mp-admin-logs-table td,
    .mp-admin-category-table td,
    #mp-admin-moderators table td,
    .mp-event-monetization-table td {
        display: grid !important;
        grid-template-columns: minmax(88px, 31%) minmax(0, 1fr) !important;
        gap: .55rem !important;
        align-items: start !important;
        justify-content: stretch !important;
        padding: .36rem 0 !important;
        border: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        text-align: left !important;
    }
    #mp-my-listings-table td::before,
    #mp-deals-table td::before,
    #mp-admin-listings-table td::before,
    #mp-admin-reports-table td::before,
    #mp-admin-paid-table td::before,
    #mp-admin-promos-table td::before,
    #mp-admin-logs-table td::before,
    .mp-admin-category-table td::before,
    #mp-admin-moderators table td::before,
    .mp-event-monetization-table td::before {
        display: block !important;
        max-width: none !important;
        flex: none !important;
        color: #98a6ad;
        font-size: .68rem;
        line-height: 1.22;
        font-weight: 700;
        letter-spacing: .035em;
        text-transform: uppercase;
        word-break: normal;
    }
    #mp-my-listings-table td > *,
    #mp-deals-table td > *,
    #mp-admin-listings-table td > *,
    #mp-admin-reports-table td > *,
    #mp-admin-paid-table td > *,
    #mp-admin-promos-table td > *,
    #mp-admin-logs-table td > *,
    .mp-admin-category-table td > *,
    #mp-admin-moderators table td > *,
    .mp-event-monetization-table td > * {
        min-width: 0;
        max-width: 100%;
    }

    /* Main content cells get a little more visual room. */
    #mp-my-listings-table td:first-child,
    #mp-deals-table td:first-child,
    #mp-admin-listings-table td:nth-of-type(2),
    #mp-admin-reports-table td:first-child,
    #mp-admin-logs-table td:nth-of-type(5) {
        grid-template-columns: 1fr !important;
    }
    #mp-my-listings-table td:first-child::before,
    #mp-deals-table td:first-child::before,
    #mp-admin-listings-table td:nth-of-type(2)::before,
    #mp-admin-reports-table td:first-child::before,
    #mp-admin-logs-table td:nth-of-type(5)::before {
        margin-bottom: .25rem;
    }
    .mp-table-thumb-sm,
    #mp-my-listings-table img.rounded,
    #mp-admin-listings-table img.rounded,
    #mp-admin-reports-table img.rounded {
        width: 50px !important;
        height: 50px !important;
        object-fit: cover;
    }
    #mp-my-listings-table .media,
    #mp-deals-table .media,
    #mp-admin-listings-table .media,
    #mp-admin-reports-table .media {
        align-items: center !important;
        gap: .55rem;
    }
    #mp-my-listings-table .media-body,
    #mp-deals-table .media-body,
    #mp-admin-listings-table .media-body,
    #mp-admin-reports-table .media-body {
        min-width: 0;
    }

    /* Actions should be tappable and understandable on mobile. */
    .mp-action-dropdown-btn,
    .mp-admin-actions > .dropdown-toggle,
    #mp-my-listings-table .dropdown-toggle {
        min-width: 96px !important;
        justify-content: center;
        display: inline-flex;
        align-items: center;
        gap: .2rem;
    }
    .mp-admin-actions,
    .mp-my-table-actions .dropdown,
    #mp-admin-paid-table .js-product-save,
    .mp-event-monetization-table .js-product-save {
        margin-left: auto !important;
    }
    #mp-admin-paid-table .js-product-save,
    .mp-event-monetization-table .js-product-save {
        min-width: 96px;
    }

    /* Admin paid products and event monetization: append units stay attached. */
    #mp-admin-paid-table .input-group,
    .mp-event-monetization-table .input-group {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        flex-wrap: nowrap !important;
    }
    #mp-admin-paid-table .input-group .form-control,
    .mp-event-monetization-table .input-group .form-control {
        min-width: 0 !important;
        width: 1% !important;
        flex: 1 1 auto !important;
    }
    #mp-admin-paid-table .input-group-append,
    .mp-event-monetization-table .input-group-append {
        flex: 0 0 auto !important;
    }
    #mp-admin-paid-table .input-group-text,
    .mp-event-monetization-table .input-group-text {
        min-width: 38px;
        justify-content: center;
    }
    #mp-admin-paid-table .prod-total-gross,
    .mp-event-monetization-table .prod-total-gross {
        justify-self: end;
        align-self: center;
    }

    /* Admin listing status needs room for the colored dropdown. */
    #mp-admin-listings-table .js-listing-status {
        min-width: 150px !important;
        width: 150px !important;
    }
    #mp-admin-listings-table td:nth-of-type(5) {
        align-items: center !important;
    }

    /* More compact reports/reviews. */
    #mp-tab-reviews .mp-review-avatar,
    .mp-review-list .mp-review-avatar {
        display: none !important;
    }
    .mp-review-list .media {
        display: grid !important;
        grid-template-columns: 56px minmax(0, 1fr) auto;
        gap: .6rem;
        align-items: start !important;
    }
    .mp-review-list .media > img.mp-review-listing-img {
        grid-column: 1;
        width: 52px !important;
        height: 52px !important;
    }
    .mp-review-list .media-body {
        grid-column: 2 / span 2;
        min-width: 0;
    }
    .mp-review-list .mp-rating,
    .mp-review-list .rating {
        white-space: nowrap;
    }

    /* Seller / buyer role badges. */
    .mp-role-badge {
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
        line-height: 1.2;
    }

    /* Listing detail tabs and description card spacing. */
    .kp-listing-tabs-card .card-body {
        padding: .85rem !important;
    }
    .kp-listing-tabs-card .tab-content {
        padding-top: .7rem;
    }

    /* Chat mobile: keep composer inside view, prevent phantom scrollbar and keep content visible. */
    .mp-listing-message-modal .modal-dialog {
        margin: 0 !important;
        max-width: none !important;
        height: 100dvh;
    }
    .mp-listing-message-modal .modal-content {
        min-height: 100dvh;
        border-radius: 0 !important;
    }
    .mp-listing-message-modal .modal-body {
        padding: 0 !important;
        overflow: hidden !important;
    }
    .mp-chat-main,
    .mp-chat-shell {
        max-width: 100% !important;
        overflow: hidden !important;
    }
    .mp-chat-messages[data-simplebar] {
        max-height: calc(100dvh - 270px) !important;
        min-height: 300px !important;
        overflow: hidden !important;
    }
    .mp-chat-composer {
        padding: .65rem !important;
    }
    .mp-chat-context-actions {
        padding: .4rem .65rem .65rem !important;
        gap: .28rem !important;
    }

    /* Listing editor: less dead space and a sane mobile savebar. */
    #marketplace-form .card {
        margin-bottom: .85rem !important;
    }
    #marketplace-form #mp-media {
        margin-top: .75rem !important;
    }
    .kp-listing-status-card {
        margin-top: .85rem !important;
    }
#mp-media > [data-id] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .kp-media-item {
        min-height: 0 !important;
    }
    .kp-media-item img,
    .kp-media-item video {
        height: auto !important;
        max-height: 320px !important;
        object-fit: contain;
    }
    .kp-media-actions {
        position: static !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        width: 100% !important;
        border-top: 1px solid rgba(152,166,173,.18);
        box-shadow: none !important;
    }
    .kp-media-actions .btn {
        border-radius: 0 !important;
        min-height: 42px;
    }
    .kp-media-action-menu .mp-action-dropdown-btn {
        min-width: 46px !important;
    }
}

@media (max-width: 575.98px) {
    body.kp-marketplace-scope .content-page .content .container-fluid,
    body.kp-marketplace-scope .container-fluid {
        padding-left: .3rem !important;
        padding-right: .3rem !important;
    }
    body.kp-marketplace-scope .card > .card-body,
    .mp-my-main-card > .card-body,
    #mp-admin-tabs + .tab-content > .tab-pane > .card > .card-body,
    #mp-admin-tabs + .tab-content .card-body {
        padding: .72rem !important;
    }
    .mp-my-stat-card,
    .mp-my-stat-card .card-body {
        min-height: 76px !important;
    }
    .mp-my-stat-card .avatar-sm,
    .mp-my-stat-card .avatar-title {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
    }
    .mp-my-stat-card h3 {
        font-size: 1.25rem !important;
    }
    #mp-my-listings-table td,
    #mp-deals-table td,
    #mp-admin-listings-table td,
    #mp-admin-reports-table td,
    #mp-admin-paid-table td,
    #mp-admin-promos-table td,
    #mp-admin-logs-table td,
    .mp-admin-category-table td,
    #mp-admin-moderators table td,
    .mp-event-monetization-table td {
        grid-template-columns: minmax(78px, 29%) minmax(0, 1fr) !important;
        gap: .48rem !important;
    }
    .mp-action-dropdown-btn,
    .mp-admin-actions > .dropdown-toggle,
    #mp-my-listings-table .dropdown-toggle,
    #mp-admin-paid-table .js-product-save,
    .mp-event-monetization-table .js-product-save {
        min-width: 88px !important;
    }
    .mp-chat-messages[data-simplebar] {
        max-height: calc(100dvh - 255px) !important;
        min-height: 280px !important;
    }
}
@media (max-width: 767.98px) {
    .mp-event-monetization-table td:nth-of-type(1)::before { content: 'Enabled' !important; }
    .mp-event-monetization-table td:nth-of-type(2)::before { content: 'Title' !important; }
    .mp-event-monetization-table td:nth-of-type(3)::before { content: 'Key' !important; }
    .mp-event-monetization-table td:nth-of-type(4)::before { content: 'Price' !important; }
    .mp-event-monetization-table td:nth-of-type(5)::before { content: 'VAT' !important; }
    .mp-event-monetization-table td:nth-of-type(6)::before { content: 'Total' !important; }
    .mp-event-monetization-table td:nth-of-type(7)::before { content: 'Duration' !important; }
    .mp-event-monetization-table td:nth-of-type(8)::before { content: 'Save' !important; }
}

/* removed obsolete marketplace mobile override block: Marketplace mobile layout pass 2026-07-06 v4.6 */
@media (max-width: 767.98px) {
    /* Dashboard statistic boxes: centered, equal gutters and stable geometry. */
    .mp-my-summary-row,
    .mp-admin-stats-row {
        display: flex !important;
        flex-wrap: wrap !important;
        margin-left: -.38rem !important;
        margin-right: -.38rem !important;
        margin-bottom: .85rem !important;
    }
    .mp-my-summary-row > [class*="col-"],
    .mp-admin-stats-row > [class*="col-"] {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding-left: .38rem !important;
        padding-right: .38rem !important;
        margin-bottom: .76rem !important;
        display: flex !important;
    }
    .mp-my-summary-row .mp-my-stat-card,
    .mp-admin-stats-row .widget-flat {
        width: 100% !important;
        min-height: 112px !important;
        margin-bottom: 0 !important;
        display: flex !important;
        align-items: stretch !important;
    }
    .mp-my-summary-row .mp-my-stat-card .card-body,
    .mp-admin-stats-row .widget-flat .card-body {
        width: 100% !important;
        min-height: 112px !important;
        padding: .72rem .55rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    .mp-my-summary-row .mp-my-stat-card .float-right,
    .mp-my-summary-row .mp-my-stat-card .widget-icon,
    .mp-admin-stats-row .widget-flat .float-right,
    .mp-admin-stats-row .widget-flat .widget-icon {
        float: none !important;
        margin: 0 0 .4rem 0 !important;
    }
    .mp-my-summary-row .mp-my-stat-card .widget-icon {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .mp-my-summary-row .mp-my-stat-card h5,
    .mp-admin-stats-row .widget-flat h5 {
        margin: 0 !important;
        line-height: 1.2 !important;
        max-width: 100% !important;
    }
    .mp-my-summary-row .mp-my-stat-card h3,
    .mp-admin-stats-row .widget-flat h3 {
        margin: .45rem 0 0 !important;
        line-height: 1 !important;
    }

    /* Mobile table cards: badges should not stretch wider than their text. */
    #mp-my-listings-table .mp-status-badge,
    #mp-admin-listings-table .mp-status-badge,
    #mp-admin-listings-table .select2-selection__rendered .badge,
    #mp-deals-table .badge,
    #mp-admin-promos-table .badge {
        display: inline-flex !important;
        width: auto !important;
        max-width: 100% !important;
        white-space: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

@media (max-width: 380px) {
    .mp-my-summary-row,
    .mp-admin-stats-row {
        margin-left: -.28rem !important;
        margin-right: -.28rem !important;
    }
    .mp-my-summary-row > [class*="col-"],
    .mp-admin-stats-row > [class*="col-"] {
        padding-left: .28rem !important;
        padding-right: .28rem !important;
        margin-bottom: .56rem !important;
    }
    .mp-my-summary-row .mp-my-stat-card,
    .mp-admin-stats-row .widget-flat,
    .mp-my-summary-row .mp-my-stat-card .card-body,
    .mp-admin-stats-row .widget-flat .card-body {
        min-height: 104px !important;
    }
}


/* Kuulaportti marketplace stabilization pass 2026-07-06 v4.7
   Keep whole-page spacing tweaks opt-in so marketplace.css can be safely loaded by profile widgets. */
@media (max-width: 991.98px) {
    body.kp-marketplace-scope.kp-market-filter-modal-open #market-filter-col {
        display: block !important;
    }
    body.kp-marketplace-scope.kp-market-filter-modal-open #market-filter-collapse {
        width: 100% !important;
    }
    body.kp-marketplace-scope #market-filter-collapse .select2-container,
    body.kp-marketplace-scope #market-filter-collapse .select2-container--bootstrap4,
    body.kp-marketplace-scope #market-filter-collapse .select2-container--default {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 767.98px) {
    body.kp-marketplace-scope .kp-market-topbar,
    body.kp-marketplace-scope .mp-my-summary-row,
    body.kp-marketplace-scope .mp-admin-stats-row {
        max-width: 100%;
    }
    body.kp-marketplace-scope .mp-my-summary-row,
    body.kp-marketplace-scope .mp-admin-stats-row {
        align-items: stretch !important;
    }
    body.kp-marketplace-scope .mp-my-summary-row > [class*="col-"],
    body.kp-marketplace-scope .mp-admin-stats-row > [class*="col-"] {
        display: flex !important;
    }
    body.kp-marketplace-scope .mp-my-stat-card,
    body.kp-marketplace-scope .mp-admin-stats-row .widget-flat {
        width: 100% !important;
        height: 100% !important;
    }

    body.kp-marketplace-scope #mp-my-listings-table tr,
    body.kp-marketplace-scope #mp-deals-table tr,
    body.kp-marketplace-scope #mp-admin-listings-table tr,
    body.kp-marketplace-scope #mp-admin-reports-table tr,
    body.kp-marketplace-scope #mp-admin-paid-table tr,
    body.kp-marketplace-scope #mp-admin-promos-table tr,
    body.kp-marketplace-scope #mp-admin-logs-table tr,
    body.kp-marketplace-scope .mp-admin-category-table tr,
    body.kp-marketplace-scope #mp-admin-moderators table tr,
    body.kp-marketplace-scope .mp-event-monetization-table tr {
        overflow: hidden !important;
    }
    body.kp-marketplace-scope #mp-my-listings-table td,
    body.kp-marketplace-scope #mp-deals-table td,
    body.kp-marketplace-scope #mp-admin-listings-table td,
    body.kp-marketplace-scope #mp-admin-reports-table td,
    body.kp-marketplace-scope #mp-admin-paid-table td,
    body.kp-marketplace-scope #mp-admin-promos-table td,
    body.kp-marketplace-scope #mp-admin-logs-table td,
    body.kp-marketplace-scope .mp-admin-category-table td,
    body.kp-marketplace-scope #mp-admin-moderators table td,
    body.kp-marketplace-scope .mp-event-monetization-table td {
        min-width: 0 !important;
    }
    body.kp-marketplace-scope .mp-status-badge,
    body.kp-marketplace-scope .mp-my-promotion-badge,
    body.kp-marketplace-scope #mp-my-listings-table .badge,
    body.kp-marketplace-scope #mp-deals-table .badge,
    body.kp-marketplace-scope #mp-admin-listings-table .badge,
    body.kp-marketplace-scope #mp-admin-reports-table .badge,
    body.kp-marketplace-scope #mp-admin-promos-table .badge,
    body.kp-marketplace-scope .mp-event-monetization-table .badge {
        display: inline-flex !important;
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        line-height: 1.25 !important;
        vertical-align: middle !important;
    }
    body.kp-marketplace-scope .mp-admin-actions,
    body.kp-marketplace-scope .mp-my-table-actions,
    body.kp-marketplace-scope .mp-my-table-actions .dropdown {
        max-width: 100% !important;
    }
    body.kp-marketplace-scope .mp-action-dropdown-btn,
    body.kp-marketplace-scope .mp-admin-actions > .dropdown-toggle,
    body.kp-marketplace-scope #mp-my-listings-table .dropdown-toggle {
        white-space: nowrap !important;
    }
}

@media (max-width: 575.98px) {
    body.kp-marketplace-scope .kp-market-topbar .kp-market-actions {
        grid-template-columns: 1fr !important;
    }
    body.kp-marketplace-scope .kp-market-topbar .kp-market-actions .btn {
        min-height: 38px;
    }
}

/* Kuulaportti marketplace usability pass 2026-07-06 v4.8
   Conservative UI-only refinements: scoped mobile cards, modal confirmations and safer chat scrolling. */
.kp-market-confirm-modal .modal-content {
    border: 0;
    border-radius: .55rem;
    overflow: hidden;
    box-shadow: 0 1rem 3rem rgba(49, 58, 70, .22);
}
.kp-market-confirm-modal .modal-header,
.kp-market-confirm-modal .modal-footer {
    border-color: rgba(152, 166, 173, .18);
}
.kp-market-confirm-modal .modal-footer {
    gap: .35rem;
}
.kp-market-confirm-modal .kp-market-confirm-body {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
}
.kp-market-confirm-modal .kp-market-confirm-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    font-size: 1.35rem;
    color: #727cf5;
    background: rgba(114, 124, 245, .12);
}
.kp-market-confirm-modal.kp-market-confirm-danger .kp-market-confirm-avatar {
    color: #fa5c7c;
    background: rgba(250, 92, 124, .12);
}
.kp-market-confirm-modal.kp-market-confirm-warning .kp-market-confirm-avatar {
    color: #ffbc00;
    background: rgba(255, 188, 0, .14);
}
.kp-market-confirm-modal.kp-market-confirm-success .kp-market-confirm-avatar {
    color: #0acf97;
    background: rgba(10, 207, 151, .12);
}
.kp-market-confirm-modal .kp-market-confirm-text {
    min-width: 0;
    flex: 1 1 auto;
}
.kp-market-confirm-modal .kp-market-confirm-text p:last-child {
    margin-bottom: 0;
}
.kp-market-confirm-modal .kp-market-confirm-input {
    margin-top: .75rem;
}
html[data-layout-color="dark"] .kp-market-confirm-modal .modal-content,
body[data-layout-color="dark"] .kp-market-confirm-modal .modal-content,
html[data-theme="dark"] .kp-market-confirm-modal .modal-content,
html.kp-theme-dark-html .kp-market-confirm-modal .modal-content,
body.kp-theme-dark-body .kp-market-confirm-modal .modal-content,
.kp-theme-dark .kp-market-confirm-modal .modal-content {
    background: #37404a;
    color: #f1f3fa;
}
html[data-layout-color="dark"] .kp-market-confirm-modal .modal-header,
body[data-layout-color="dark"] .kp-market-confirm-modal .modal-header,
html[data-layout-color="dark"] .kp-market-confirm-modal .modal-footer,
body[data-layout-color="dark"] .kp-market-confirm-modal .modal-footer,
html[data-theme="dark"] .kp-market-confirm-modal .modal-header,
html[data-theme="dark"] .kp-market-confirm-modal .modal-footer,
html.kp-theme-dark-html .kp-market-confirm-modal .modal-header,
html.kp-theme-dark-html .kp-market-confirm-modal .modal-footer,
body.kp-theme-dark-body .kp-market-confirm-modal .modal-header,
body.kp-theme-dark-body .kp-market-confirm-modal .modal-footer,
.kp-theme-dark .kp-market-confirm-modal .modal-header,
.kp-theme-dark .kp-market-confirm-modal .modal-footer {
    border-color: rgba(241, 243, 250, .12);
}

.kp-prod-total-input[disabled],
.kp-prod-total-input:disabled {
    min-width: 7.75rem;
    font-size: 1rem;
    font-weight: 700;
    text-align: right;
    opacity: 1;
    color: inherit;
    background: rgba(114, 124, 245, .08);
    border-color: rgba(114, 124, 245, .28);
}
@media (min-width: 768px) {
    .kp-prod-total-input[disabled],
    .kp-prod-total-input:disabled {
        font-size: 1.08rem;
        min-height: 36px;
    }
}
html[data-layout-color="dark"] .kp-prod-total-input[disabled],
body[data-layout-color="dark"] .kp-prod-total-input[disabled],
html[data-theme="dark"] .kp-prod-total-input[disabled],
html.kp-theme-dark-html .kp-prod-total-input[disabled],
body.kp-theme-dark-body .kp-prod-total-input[disabled],
.kp-theme-dark .kp-prod-total-input[disabled] {
    background: rgba(114, 124, 245, .16);
    border-color: rgba(114, 124, 245, .34);
    color: #f1f3fa;
}

/* Messenger scrollbars: keep SimpleBar and native scroll tracks visible in thread and message panes. */
.mp-chat-thread-list,
.mp-chat-messages {
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(152, 166, 173, .78) transparent;
}
.mp-chat-thread-list::-webkit-scrollbar,
.mp-chat-messages::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}
.mp-chat-thread-list::-webkit-scrollbar-thumb,
.mp-chat-messages::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(152, 166, 173, .72);
    border: 2px solid transparent;
    background-clip: content-box;
}
.mp-chat-thread-list::-webkit-scrollbar-track,
.mp-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}
.mp-chat-thread-list[data-simplebar],
.mp-chat-messages[data-simplebar] {
    overflow: hidden !important;
    position: relative;
}
.mp-chat-thread-list .simplebar-content-wrapper,
.mp-chat-messages .simplebar-content-wrapper {
    height: 100% !important;
    max-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
}
.mp-chat-thread-list .simplebar-track.simplebar-vertical,
.mp-chat-messages .simplebar-track.simplebar-vertical {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    right: 2px;
    width: 8px;
    border-radius: 999px;
    background: rgba(152, 166, 173, .14);
}
.mp-chat-thread-list .simplebar-scrollbar:before,
.mp-chat-messages .simplebar-scrollbar:before {
    left: 1px;
    right: 1px;
    top: 2px;
    bottom: 2px;
    border-radius: 999px;
    background: rgba(152, 166, 173, .72);
    opacity: 1 !important;
}
html[data-layout-color="dark"] .mp-chat-thread-list .simplebar-track.simplebar-vertical,
body[data-layout-color="dark"] .mp-chat-thread-list .simplebar-track.simplebar-vertical,
html[data-layout-color="dark"] .mp-chat-messages .simplebar-track.simplebar-vertical,
body[data-layout-color="dark"] .mp-chat-messages .simplebar-track.simplebar-vertical,
html[data-theme="dark"] .mp-chat-thread-list .simplebar-track.simplebar-vertical,
html[data-theme="dark"] .mp-chat-messages .simplebar-track.simplebar-vertical,
html.kp-theme-dark-html .mp-chat-thread-list .simplebar-track.simplebar-vertical,
html.kp-theme-dark-html .mp-chat-messages .simplebar-track.simplebar-vertical,
body.kp-theme-dark-body .mp-chat-thread-list .simplebar-track.simplebar-vertical,
body.kp-theme-dark-body .mp-chat-messages .simplebar-track.simplebar-vertical,
.kp-theme-dark .mp-chat-thread-list .simplebar-track.simplebar-vertical,
.kp-theme-dark .mp-chat-messages .simplebar-track.simplebar-vertical {
    background: rgba(241, 243, 250, .12);
}

@media (max-width: 991.98px) {
    body.kp-marketplace-scope .kp-filter-mobile-head {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: .75rem;
    }
    body.kp-marketplace-scope .kp-filter-mobile-head .header-title {
        margin-bottom: 0 !important;
    }
    body.kp-marketplace-scope #market-filter-close.kp-market-filter-close-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-height: 34px;
        white-space: nowrap;
    }
    body.kp-marketplace-scope #market-filter-close .badge {
        line-height: 1;
    }
}

@media (max-width: 767.98px) {
    body.kp-marketplace-scope #mp-my-listings-table,
    body.kp-marketplace-scope #mp-deals-table,
    body.kp-marketplace-scope #mp-admin-listings-table,
    body.kp-marketplace-scope #mp-admin-reports-table,
    body.kp-marketplace-scope #mp-admin-paid-table,
    body.kp-marketplace-scope #mp-admin-promos-table,
    body.kp-marketplace-scope #mp-admin-logs-table,
    body.kp-marketplace-scope .mp-admin-category-table,
    body.kp-marketplace-scope #mp-admin-moderators table,
    body.kp-marketplace-scope .mp-event-monetization-table {
        border-collapse: separate !important;
        border-spacing: 0 .75rem !important;
    }
    body.kp-marketplace-scope #mp-my-listings-table tbody tr,
    body.kp-marketplace-scope #mp-deals-table tbody tr,
    body.kp-marketplace-scope #mp-admin-listings-table tbody tr,
    body.kp-marketplace-scope #mp-admin-reports-table tbody tr,
    body.kp-marketplace-scope #mp-admin-paid-table tbody tr,
    body.kp-marketplace-scope #mp-admin-promos-table tbody tr,
    body.kp-marketplace-scope #mp-admin-logs-table tbody tr,
    body.kp-marketplace-scope .mp-admin-category-table tbody tr,
    body.kp-marketplace-scope #mp-admin-moderators table tbody tr,
    body.kp-marketplace-scope .mp-event-monetization-table tbody tr {
        background: #fff !important;
        border: 1px solid rgba(152, 166, 173, .22) !important;
        border-radius: .8rem !important;
        box-shadow: 0 .25rem .85rem rgba(49, 58, 70, .08) !important;
        margin-bottom: .75rem !important;
        overflow: hidden !important;
    }
    body.kp-marketplace-scope #mp-my-listings-table tbody td,
    body.kp-marketplace-scope #mp-deals-table tbody td,
    body.kp-marketplace-scope #mp-admin-listings-table tbody td,
    body.kp-marketplace-scope #mp-admin-reports-table tbody td,
    body.kp-marketplace-scope #mp-admin-paid-table tbody td,
    body.kp-marketplace-scope #mp-admin-promos-table tbody td,
    body.kp-marketplace-scope #mp-admin-logs-table tbody td,
    body.kp-marketplace-scope .mp-admin-category-table tbody td,
    body.kp-marketplace-scope #mp-admin-moderators table tbody td,
    body.kp-marketplace-scope .mp-event-monetization-table tbody td {
        padding: .64rem .75rem !important;
        border-top: 0 !important;
        border-bottom: 1px dashed rgba(152, 166, 173, .22) !important;
        vertical-align: top !important;
    }
    body.kp-marketplace-scope #mp-my-listings-table tbody td:last-child,
    body.kp-marketplace-scope #mp-deals-table tbody td:last-child,
    body.kp-marketplace-scope #mp-admin-listings-table tbody td:last-child,
    body.kp-marketplace-scope #mp-admin-reports-table tbody td:last-child,
    body.kp-marketplace-scope #mp-admin-paid-table tbody td:last-child,
    body.kp-marketplace-scope #mp-admin-promos-table tbody td:last-child,
    body.kp-marketplace-scope #mp-admin-logs-table tbody td:last-child,
    body.kp-marketplace-scope .mp-admin-category-table tbody td:last-child,
    body.kp-marketplace-scope #mp-admin-moderators table tbody td:last-child,
    body.kp-marketplace-scope .mp-event-monetization-table tbody td:last-child {
        border-bottom: 0 !important;
    }
    html[data-layout-color="dark"] body.kp-marketplace-scope #mp-my-listings-table tbody tr,
    html[data-layout-color="dark"] body.kp-marketplace-scope #mp-deals-table tbody tr,
    html[data-layout-color="dark"] body.kp-marketplace-scope #mp-admin-listings-table tbody tr,
    html[data-layout-color="dark"] body.kp-marketplace-scope #mp-admin-reports-table tbody tr,
    html[data-layout-color="dark"] body.kp-marketplace-scope #mp-admin-paid-table tbody tr,
    html[data-layout-color="dark"] body.kp-marketplace-scope #mp-admin-promos-table tbody tr,
    html[data-layout-color="dark"] body.kp-marketplace-scope #mp-admin-logs-table tbody tr,
    html[data-layout-color="dark"] body.kp-marketplace-scope .mp-admin-category-table tbody tr,
    html[data-layout-color="dark"] body.kp-marketplace-scope #mp-admin-moderators table tbody tr,
    html[data-layout-color="dark"] body.kp-marketplace-scope .mp-event-monetization-table tbody tr,
    body[data-layout-color="dark"].kp-marketplace-scope #mp-my-listings-table tbody tr,
    body[data-layout-color="dark"].kp-marketplace-scope #mp-deals-table tbody tr,
    body[data-layout-color="dark"].kp-marketplace-scope #mp-admin-listings-table tbody tr,
    body[data-layout-color="dark"].kp-marketplace-scope #mp-admin-reports-table tbody tr,
    body[data-layout-color="dark"].kp-marketplace-scope #mp-admin-paid-table tbody tr,
    body[data-layout-color="dark"].kp-marketplace-scope #mp-admin-promos-table tbody tr,
    body[data-layout-color="dark"].kp-marketplace-scope #mp-admin-logs-table tbody tr,
    body[data-layout-color="dark"].kp-marketplace-scope .mp-admin-category-table tbody tr,
    body[data-layout-color="dark"].kp-marketplace-scope #mp-admin-moderators table tbody tr,
    body[data-layout-color="dark"].kp-marketplace-scope .mp-event-monetization-table tbody tr,
    body.kp-theme-dark-body.kp-marketplace-scope #mp-my-listings-table tbody tr,
    body.kp-theme-dark-body.kp-marketplace-scope #mp-deals-table tbody tr,
    body.kp-theme-dark-body.kp-marketplace-scope #mp-admin-listings-table tbody tr,
    body.kp-theme-dark-body.kp-marketplace-scope #mp-admin-reports-table tbody tr,
    body.kp-theme-dark-body.kp-marketplace-scope #mp-admin-paid-table tbody tr,
    body.kp-theme-dark-body.kp-marketplace-scope #mp-admin-promos-table tbody tr,
    body.kp-theme-dark-body.kp-marketplace-scope #mp-admin-logs-table tbody tr,
    body.kp-theme-dark-body.kp-marketplace-scope .mp-admin-category-table tbody tr,
    body.kp-theme-dark-body.kp-marketplace-scope #mp-admin-moderators table tbody tr,
    body.kp-theme-dark-body.kp-marketplace-scope .mp-event-monetization-table tbody tr {
        background: #37404a !important;
        border-color: rgba(241, 243, 250, .11) !important;
        box-shadow: 0 .25rem .85rem rgba(0, 0, 0, .16) !important;
    }
    html[data-layout-color="dark"] body.kp-marketplace-scope #mp-my-listings-table tbody td,
    html[data-layout-color="dark"] body.kp-marketplace-scope #mp-deals-table tbody td,
    html[data-layout-color="dark"] body.kp-marketplace-scope #mp-admin-listings-table tbody td,
    html[data-layout-color="dark"] body.kp-marketplace-scope #mp-admin-reports-table tbody td,
    html[data-layout-color="dark"] body.kp-marketplace-scope #mp-admin-paid-table tbody td,
    html[data-layout-color="dark"] body.kp-marketplace-scope #mp-admin-promos-table tbody td,
    html[data-layout-color="dark"] body.kp-marketplace-scope #mp-admin-logs-table tbody td,
    html[data-layout-color="dark"] body.kp-marketplace-scope .mp-admin-category-table tbody td,
    html[data-layout-color="dark"] body.kp-marketplace-scope #mp-admin-moderators table tbody td,
    html[data-layout-color="dark"] body.kp-marketplace-scope .mp-event-monetization-table tbody td,
    body[data-layout-color="dark"].kp-marketplace-scope #mp-my-listings-table tbody td,
    body[data-layout-color="dark"].kp-marketplace-scope #mp-deals-table tbody td,
    body[data-layout-color="dark"].kp-marketplace-scope #mp-admin-listings-table tbody td,
    body[data-layout-color="dark"].kp-marketplace-scope #mp-admin-reports-table tbody td,
    body[data-layout-color="dark"].kp-marketplace-scope #mp-admin-paid-table tbody td,
    body[data-layout-color="dark"].kp-marketplace-scope #mp-admin-promos-table tbody td,
    body[data-layout-color="dark"].kp-marketplace-scope #mp-admin-logs-table tbody td,
    body[data-layout-color="dark"].kp-marketplace-scope .mp-admin-category-table tbody td,
    body[data-layout-color="dark"].kp-marketplace-scope #mp-admin-moderators table tbody td,
    body[data-layout-color="dark"].kp-marketplace-scope .mp-event-monetization-table tbody td,
    body.kp-theme-dark-body.kp-marketplace-scope #mp-my-listings-table tbody td,
    body.kp-theme-dark-body.kp-marketplace-scope #mp-deals-table tbody td,
    body.kp-theme-dark-body.kp-marketplace-scope #mp-admin-listings-table tbody td,
    body.kp-theme-dark-body.kp-marketplace-scope #mp-admin-reports-table tbody td,
    body.kp-theme-dark-body.kp-marketplace-scope #mp-admin-paid-table tbody td,
    body.kp-theme-dark-body.kp-marketplace-scope #mp-admin-promos-table tbody td,
    body.kp-theme-dark-body.kp-marketplace-scope #mp-admin-logs-table tbody td,
    body.kp-theme-dark-body.kp-marketplace-scope .mp-admin-category-table tbody td,
    body.kp-theme-dark-body.kp-marketplace-scope #mp-admin-moderators table tbody td,
    body.kp-theme-dark-body.kp-marketplace-scope .mp-event-monetization-table tbody td {
        border-bottom-color: rgba(241, 243, 250, .1) !important;
    }
}

@media (max-width: 575.98px) {
    body.kp-marketplace-scope .mp-admin-listing-filter-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(108px, .72fr) auto;
        align-items: center;
        gap: .45rem;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    body.kp-marketplace-scope .mp-admin-listing-filter-row > [class*="col-"],
    body.kp-marketplace-scope .mp-my-listing-filter-row > [class*="col-"],
    body.kp-marketplace-scope .mp-deals-filter-row > [class*="col-"] {
        width: auto !important;
        max-width: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 0 !important;
    }
    body.kp-marketplace-scope .mp-admin-listing-filter-row .form-control-sm,
    body.kp-marketplace-scope .mp-my-listing-filter-row .form-control-sm,
    body.kp-marketplace-scope .mp-deals-filter-row .form-control-sm,
    body.kp-marketplace-scope .mp-show-deleted-btn {
        min-height: 34px;
    }
    body.kp-marketplace-scope .mp-filter-action-col {
        text-align: right !important;
    }
    body.kp-marketplace-scope .mp-show-deleted-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        padding-left: .48rem;
        padding-right: .48rem;
    }
    body.kp-marketplace-scope .mp-show-deleted-btn .mdi {
        margin-right: .25rem !important;
    }
    body.kp-marketplace-scope .mp-show-deleted-btn span {
        font-size: .78rem;
    }
    body.kp-marketplace-scope .mp-my-listing-filter-row,
    body.kp-marketplace-scope .mp-deals-filter-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(118px, .74fr);
        align-items: center;
        gap: .45rem;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 380px) {
    body.kp-marketplace-scope .mp-admin-listing-filter-row {
        grid-template-columns: minmax(0, 1fr) minmax(94px, .65fr) auto;
        gap: .35rem;
    }
    body.kp-marketplace-scope .mp-show-deleted-btn span {
        display: none;
    }
    body.kp-marketplace-scope .mp-show-deleted-btn .mdi {
        margin-right: 0 !important;
    }
    body.kp-marketplace-scope .mp-my-listing-filter-row,
    body.kp-marketplace-scope .mp-deals-filter-row {
        grid-template-columns: minmax(0, 1fr) minmax(104px, .68fr);
        gap: .35rem;
    }
}

@media (max-width: 767.98px) {
    body.kp-marketplace-scope .mp-admin-category-table,
    body.kp-marketplace-scope #mp-admin-moderators table,
    body.kp-marketplace-scope .mp-event-monetization-table {
        display: block !important;
        width: 100% !important;
        table-layout: auto !important;
        border-collapse: separate !important;
    }
    body.kp-marketplace-scope .mp-admin-category-table thead,
    body.kp-marketplace-scope #mp-admin-moderators table thead,
    body.kp-marketplace-scope .mp-event-monetization-table thead {
        display: none !important;
    }
    body.kp-marketplace-scope .mp-admin-category-table tbody,
    body.kp-marketplace-scope #mp-admin-moderators table tbody,
    body.kp-marketplace-scope .mp-event-monetization-table tbody,
    body.kp-marketplace-scope .mp-admin-category-table tbody tr,
    body.kp-marketplace-scope #mp-admin-moderators table tbody tr,
    body.kp-marketplace-scope .mp-event-monetization-table tbody tr {
        display: block !important;
        width: 100% !important;
    }
    body.kp-marketplace-scope .mp-admin-category-table tbody tr,
    body.kp-marketplace-scope #mp-admin-moderators table tbody tr,
    body.kp-marketplace-scope .mp-event-monetization-table tbody tr {
        padding: .75rem !important;
    }
    body.kp-marketplace-scope .mp-admin-category-table tbody td,
    body.kp-marketplace-scope #mp-admin-moderators table tbody td,
    body.kp-marketplace-scope .mp-event-monetization-table tbody td {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        align-items: flex-start;
        justify-content: space-between;
        gap: .75rem;
        padding: .36rem 0 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        text-align: left !important;
    }
    body.kp-marketplace-scope .mp-admin-category-table tbody td::before,
    body.kp-marketplace-scope #mp-admin-moderators table tbody td::before,
    body.kp-marketplace-scope .mp-event-monetization-table tbody td::before {
        flex: 0 0 34%;
        max-width: 34%;
        color: #98a6ad;
        font-size: .72rem;
        font-weight: 700;
        letter-spacing: .02em;
        text-transform: uppercase;
    }
    body.kp-marketplace-scope .mp-event-monetization-table td:nth-child(1)::before { content: 'Enabled'; }
    body.kp-marketplace-scope .mp-event-monetization-table td:nth-child(2)::before { content: 'Title'; }
    body.kp-marketplace-scope .mp-event-monetization-table td:nth-child(3)::before { content: 'Key'; }
    body.kp-marketplace-scope .mp-event-monetization-table td:nth-child(4)::before { content: 'Price'; }
    body.kp-marketplace-scope .mp-event-monetization-table td:nth-child(5)::before { content: 'VAT'; }
    body.kp-marketplace-scope .mp-event-monetization-table td:nth-child(6)::before { content: 'Total'; }
    body.kp-marketplace-scope .mp-event-monetization-table td:nth-child(7)::before { content: 'Duration'; }
    body.kp-marketplace-scope .mp-event-monetization-table td:nth-child(8)::before { content: 'Save'; }
    body.kp-marketplace-scope .mp-admin-category-table td:nth-child(1)::before { content: 'Category'; }
    body.kp-marketplace-scope .mp-admin-category-table td:nth-child(2)::before { content: 'Slug'; }
    body.kp-marketplace-scope .mp-admin-category-table td:nth-child(3)::before { content: 'Parent'; }
    body.kp-marketplace-scope .mp-admin-category-table td:nth-child(4)::before { content: 'Sort'; }
    body.kp-marketplace-scope .mp-admin-category-table td:nth-child(5)::before { content: 'Status'; }
    body.kp-marketplace-scope .mp-admin-category-table td:nth-child(6)::before { content: 'Actions'; }
    body.kp-marketplace-scope #mp-admin-moderators table td:nth-child(1)::before { content: 'Moderator'; }
    body.kp-marketplace-scope #mp-admin-moderators table td:nth-child(2)::before { content: 'Reports'; }
    body.kp-marketplace-scope #mp-admin-moderators table td:nth-child(3)::before { content: 'Promotions'; }
    body.kp-marketplace-scope #mp-admin-moderators table td:nth-child(4)::before { content: 'Enabled'; }
    body.kp-marketplace-scope #mp-admin-moderators table td:nth-child(5)::before { content: 'Actions'; }
}

@media (max-width: 767.98px) {
    body.kp-marketplace-scope #event-paid-table td:nth-child(1)::before { content: 'Enabled'; }
    body.kp-marketplace-scope #event-paid-table td:nth-child(2)::before { content: 'Title'; }
    body.kp-marketplace-scope #event-paid-table td:nth-child(3)::before { content: 'Key'; }
    body.kp-marketplace-scope #event-paid-table td:nth-child(4)::before { content: 'Price'; }
    body.kp-marketplace-scope #event-paid-table td:nth-child(5)::before { content: 'VAT'; }
    body.kp-marketplace-scope #event-paid-table td:nth-child(6)::before { content: 'Total'; }
    body.kp-marketplace-scope #event-paid-table td:nth-child(7)::before { content: 'Duration'; }
    body.kp-marketplace-scope #event-paid-table td:nth-child(8)::before { content: 'Save'; }
    body.kp-marketplace-scope #event-promos-table td:nth-child(1)::before { content: 'Event'; }
    body.kp-marketplace-scope #event-promos-table td:nth-child(2)::before { content: 'Status'; }
    body.kp-marketplace-scope #event-promos-table td:nth-child(3)::before { content: 'Period'; }
    body.kp-marketplace-scope #event-promos-table td:nth-child(4)::before { content: 'Amount'; }
}

@media (max-width: 767.98px) {
    body.kp-marketplace-scope .mp-admin-category-table td:nth-child(1)::before { content: 'ID'; }
    body.kp-marketplace-scope .mp-admin-category-table td:nth-child(2)::before { content: 'Parent'; }
    body.kp-marketplace-scope .mp-admin-category-table td:nth-child(3)::before { content: 'Sort'; }
    body.kp-marketplace-scope .mp-admin-category-table td:nth-child(4)::before { content: 'Slug'; }
    body.kp-marketplace-scope .mp-admin-category-table td:nth-child(5)::before { content: 'EN'; }
    body.kp-marketplace-scope .mp-admin-category-table td:nth-child(6)::before { content: 'FI'; }
    body.kp-marketplace-scope .mp-admin-category-table td:nth-child(7)::before { content: 'State'; }
    body.kp-marketplace-scope .mp-admin-category-table td:nth-child(8)::before { content: 'Actions'; }
    body.kp-marketplace-scope #mp-admin-moderators table td:nth-child(1)::before { content: 'User'; }
    body.kp-marketplace-scope #mp-admin-moderators table td:nth-child(2)::before { content: 'Notifications'; }
    body.kp-marketplace-scope #mp-admin-moderators table td:nth-child(3)::before { content: 'Enabled'; }
    body.kp-marketplace-scope #mp-admin-moderators table td:nth-child(4)::before { content: 'Actions'; }
    body.kp-marketplace-scope #mp-admin-promos-table td:nth-child(1)::before { content: 'ID'; }
    body.kp-marketplace-scope #mp-admin-promos-table td:nth-child(2)::before { content: 'Target'; }
    body.kp-marketplace-scope #mp-admin-promos-table td:nth-child(3)::before { content: 'Product'; }
    body.kp-marketplace-scope #mp-admin-promos-table td:nth-child(4)::before { content: 'Amount'; }
    body.kp-marketplace-scope #mp-admin-promos-table td:nth-child(5)::before { content: 'Requested'; }
    body.kp-marketplace-scope #mp-admin-promos-table td:nth-child(6)::before { content: 'Status'; }
    body.kp-marketplace-scope #mp-admin-promos-table td:nth-child(7)::before { content: 'Actions'; }
}

@media (max-width: 767.98px) {
    body.kp-marketplace-scope #event-paid-table td:nth-child(1)::before { content: 'Enabled' !important; }
    body.kp-marketplace-scope #event-paid-table td:nth-child(2)::before { content: 'Title' !important; }
    body.kp-marketplace-scope #event-paid-table td:nth-child(3)::before { content: 'Key' !important; }
    body.kp-marketplace-scope #event-paid-table td:nth-child(4)::before { content: 'Price' !important; }
    body.kp-marketplace-scope #event-paid-table td:nth-child(5)::before { content: 'VAT' !important; }
    body.kp-marketplace-scope #event-paid-table td:nth-child(6)::before { content: 'Total' !important; }
    body.kp-marketplace-scope #event-paid-table td:nth-child(7)::before { content: 'Duration' !important; }
    body.kp-marketplace-scope #event-paid-table td:nth-child(8)::before { content: 'Save' !important; }
    body.kp-marketplace-scope #event-promos-table td:nth-child(1)::before { content: 'Event' !important; }
    body.kp-marketplace-scope #event-promos-table td:nth-child(2)::before { content: 'Status' !important; }
    body.kp-marketplace-scope #event-promos-table td:nth-child(3)::before { content: 'Period' !important; }
    body.kp-marketplace-scope #event-promos-table td:nth-child(4)::before { content: 'Amount' !important; }
    body.kp-marketplace-scope .mp-admin-category-table td:nth-child(1)::before { content: 'ID' !important; }
    body.kp-marketplace-scope .mp-admin-category-table td:nth-child(2)::before { content: 'Parent' !important; }
    body.kp-marketplace-scope .mp-admin-category-table td:nth-child(3)::before { content: 'Sort' !important; }
    body.kp-marketplace-scope .mp-admin-category-table td:nth-child(4)::before { content: 'Slug' !important; }
    body.kp-marketplace-scope .mp-admin-category-table td:nth-child(5)::before { content: 'EN' !important; }
    body.kp-marketplace-scope .mp-admin-category-table td:nth-child(6)::before { content: 'FI' !important; }
    body.kp-marketplace-scope .mp-admin-category-table td:nth-child(7)::before { content: 'State' !important; }
    body.kp-marketplace-scope .mp-admin-category-table td:nth-child(8)::before { content: 'Actions' !important; }
    body.kp-marketplace-scope #mp-admin-moderators table td:nth-child(1)::before { content: 'User' !important; }
    body.kp-marketplace-scope #mp-admin-moderators table td:nth-child(2)::before { content: 'Notifications' !important; }
    body.kp-marketplace-scope #mp-admin-moderators table td:nth-child(3)::before { content: 'Enabled' !important; }
    body.kp-marketplace-scope #mp-admin-moderators table td:nth-child(4)::before { content: 'Actions' !important; }
    body.kp-marketplace-scope #mp-admin-promos-table td:nth-child(1)::before { content: 'ID' !important; }
    body.kp-marketplace-scope #mp-admin-promos-table td:nth-child(2)::before { content: 'Target' !important; }
    body.kp-marketplace-scope #mp-admin-promos-table td:nth-child(3)::before { content: 'Product' !important; }
    body.kp-marketplace-scope #mp-admin-promos-table td:nth-child(4)::before { content: 'Amount' !important; }
    body.kp-marketplace-scope #mp-admin-promos-table td:nth-child(5)::before { content: 'Requested' !important; }
    body.kp-marketplace-scope #mp-admin-promos-table td:nth-child(6)::before { content: 'Status' !important; }
    body.kp-marketplace-scope #mp-admin-promos-table td:nth-child(7)::before { content: 'Actions' !important; }
}

/* Marketplace v4.9: shared messenger actions, review tabs, badge cards and savebar alignment. */
.mp-chat-header-actions,
.mp-chat-context-actions,
.mp-chat-offer-action-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem;
}
.mp-chat-header-actions .mp-chat-action-chip,
.mp-chat-context-actions .mp-chat-action-chip,
.mp-chat-offer-action-row .mp-chat-action-chip {
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
    max-width: 100%;
    white-space: nowrap;
    line-height: 1.25;
    padding: .28rem .48rem;
    border-radius: 999px;
    text-decoration: none !important;
    vertical-align: middle;
}
.mp-chat-header-actions .mp-chat-action-chip.disabled,
.mp-chat-context-actions .mp-chat-action-chip.disabled,
.mp-chat-offer-action-row .mp-chat-action-chip.disabled {
    pointer-events: none;
    opacity: .72;
}
.mp-chat-context-actions > .badge:not(.mp-chat-action-chip) {
    display: inline-flex;
    align-items: center;
    width: auto;
    max-width: 100%;
    white-space: nowrap;
    line-height: 1.25;
    padding: .28rem .48rem;
    border-radius: 999px;
}
.mp-chat-offer-action-row {
    margin-top: .5rem;
}
.mp-chat-offer-action-row .btn {
    display: none !important;
}
.mp-review-nav .nav-link {
    display: inline-flex;
    align-items: center;
}
.mp-review-pending-grid .mp-review-pending-card,
.mp-badge-card-grid .mp-badge-guide-card {
    border: 1px solid rgba(152,166,173,.18);
    box-shadow: 0 .125rem .35rem rgba(0,0,0,.04);
}
.mp-badge-card-grid .mp-badge-guide-card.is-earned {
    border-color: rgba(10,207,151,.35);
}
.mp-badge-card-grid .avatar-title {
    width: 100%;
    height: 100%;
}
.mp-badge-card-grid .progress,
.mp-review-pending-grid .progress {
    height: .35rem;
}
@media (max-width: 767.98px) {
    .mp-chat-header-actions,
    .mp-chat-context-actions,
    .mp-chat-offer-action-row {
        gap: .28rem;
    }
    .mp-chat-header-actions .mp-chat-action-chip,
    .mp-chat-context-actions .mp-chat-action-chip,
    .mp-chat-offer-action-row .mp-chat-action-chip,
    .mp-chat-context-actions > .badge:not(.mp-chat-action-chip) {
        font-size: .74rem;
        padding: .24rem .42rem;
    }
    .mp-review-nav {
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .mp-review-nav .nav-link {
        white-space: nowrap;
    }
}
body[data-layout-color="dark"] .mp-review-pending-grid .mp-review-pending-card,
html[data-layout-color="dark"] .mp-review-pending-grid .mp-review-pending-card,
html[data-theme="dark"] .mp-review-pending-grid .mp-review-pending-card,
body[data-layout-color="dark"] .mp-badge-card-grid .mp-badge-guide-card,
html[data-layout-color="dark"] .mp-badge-card-grid .mp-badge-guide-card,
html[data-theme="dark"] .mp-badge-card-grid .mp-badge-guide-card,
html.kp-theme-dark-html .mp-review-pending-grid .mp-review-pending-card,
body.kp-theme-dark-body .mp-review-pending-grid .mp-review-pending-card,
html.kp-theme-dark-html .mp-badge-card-grid .mp-badge-guide-card,
body.kp-theme-dark-body .mp-badge-card-grid .mp-badge-guide-card {
    border-color: rgba(255,255,255,.08);
    box-shadow: none;
}

/* Kuulaportti marketplace v50: compact My marketplace shortcuts and unified review cards. */
body.kp-marketplace-my-page .mp-my-summary-row {
    margin-bottom: .35rem;
}
body.kp-marketplace-my-page .mp-my-summary-row > [class*="col-"] {
    display: flex;
    margin-bottom: .75rem;
}
body.kp-marketplace-my-page .mp-my-summary-row .mp-my-quicklink-card,
body.kp-marketplace-my-page .mp-my-summary-row .mp-my-quicklink-card.card.widget-flat,
body.kp-marketplace-my-page .mp-my-summary-row a.mp-my-quicklink-card.card.widget-flat {
    width: 100% !important;
    min-height: 68px !important;
    height: auto !important;
    margin-bottom: 0 !important;
    border: 1px solid rgba(152,166,173,.18);
    border-radius: .45rem;
    display: block !important;
}
body.kp-marketplace-my-page .mp-my-summary-row .mp-my-quicklink-card .card-body {
    min-height: 68px !important;
    height: 68px !important;
    padding: .62rem .72rem !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-align: left !important;
}
body.kp-marketplace-my-page .mp-my-summary-row .mp-quicklink-main {
    display: flex;
    align-items: center;
    min-width: 0;
}
body.kp-marketplace-my-page .mp-my-summary-row .mp-quicklink-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    margin-right: .55rem;
    background: rgba(114,124,245,.12);
    color: #727cf5;
    font-size: 1.05rem;
}
body.kp-marketplace-my-page .mp-my-summary-row .mp-quicklink-text {
    min-width: 0;
    display: block;
}
body.kp-marketplace-my-page .mp-my-summary-row .mp-quicklink-label {
    display: block;
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.kp-marketplace-my-page .mp-my-summary-row .mp-quicklink-meta {
    display: block;
    color: #98a6ad;
    font-size: .74rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: .12rem;
}
body.kp-marketplace-my-page .mp-my-summary-row .mp-quicklink-count {
    flex: 0 0 auto;
    margin-left: .5rem;
    font-size: 1.28rem;
    line-height: 1;
    font-weight: 700;
}
body.kp-marketplace-my-page .mp-my-summary-row .mp-my-quicklink-card:hover,
body.kp-marketplace-my-page .mp-my-summary-row .mp-my-quicklink-card:focus {
    transform: translateY(-1px);
    box-shadow: 0 .2rem .65rem rgba(0,0,0,.07);
    text-decoration: none;
}
body.kp-marketplace-my-page .mp-review-card-grid .mp-review-card {
    border: 1px solid rgba(152,166,173,.18);
    border-radius: .45rem;
    box-shadow: 0 .125rem .35rem rgba(0,0,0,.04);
    transition: background-color .12s ease, box-shadow .12s ease, border-color .12s ease;
}
body.kp-marketplace-my-page .mp-review-card-grid .mp-review-card:hover {
    background: rgba(152,166,173,.05);
    box-shadow: 0 .2rem .75rem rgba(0,0,0,.06);
}
body.kp-marketplace-my-page .mp-review-card-grid .mp-review-card .card-body {
    padding: .82rem;
}
body.kp-marketplace-my-page .mp-review-card-grid .mp-review-avatar {
    width: 24px;
    height: 24px;
    object-fit: cover;
    flex: 0 0 24px;
}
@media (max-width: 575.98px) {
    body.kp-marketplace-my-page .mp-my-summary-row > [class*="col-"] {
        margin-bottom: .5rem;
        padding-left: .25rem;
        padding-right: .25rem;
    }
    body.kp-marketplace-my-page .mp-my-summary-row .mp-my-quicklink-card .card-body {
        height: 62px !important;
        min-height: 62px !important;
        padding: .5rem .55rem !important;
    }
    body.kp-marketplace-my-page .mp-my-summary-row .mp-quicklink-icon {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
        margin-right: .42rem;
        font-size: .95rem;
    }
    body.kp-marketplace-my-page .mp-my-summary-row .mp-quicklink-label {
        font-size: .82rem;
    }
    body.kp-marketplace-my-page .mp-my-summary-row .mp-quicklink-meta {
        display: none;
    }
    body.kp-marketplace-my-page .mp-my-summary-row .mp-quicklink-count {
        font-size: 1.08rem;
        margin-left: .35rem;
    }
}
body[data-layout-color="dark"].kp-marketplace-my-page .mp-my-summary-row .mp-my-quicklink-card,
html[data-layout-color="dark"] body.kp-marketplace-my-page .mp-my-summary-row .mp-my-quicklink-card,
html[data-theme="dark"] body.kp-marketplace-my-page .mp-my-summary-row .mp-my-quicklink-card,
html.kp-theme-dark-html body.kp-marketplace-my-page .mp-my-summary-row .mp-my-quicklink-card,
body.kp-theme-dark-body.kp-marketplace-my-page .mp-my-summary-row .mp-my-quicklink-card,
body[data-layout-color="dark"].kp-marketplace-my-page .mp-review-card-grid .mp-review-card,
html[data-layout-color="dark"] body.kp-marketplace-my-page .mp-review-card-grid .mp-review-card,
html[data-theme="dark"] body.kp-marketplace-my-page .mp-review-card-grid .mp-review-card,
html.kp-theme-dark-html body.kp-marketplace-my-page .mp-review-card-grid .mp-review-card,
body.kp-theme-dark-body.kp-marketplace-my-page .mp-review-card-grid .mp-review-card {
    border-color: rgba(255,255,255,.08);
    box-shadow: none;
}

/* Kuulaportti marketplace v51: mobile filter modal, compact shortcuts and admin polish. */
@media (max-width: 991.98px) {
    body.kp-marketplace-scope .kp-filter-mobile-head {
        padding-bottom: .55rem;
        border-bottom: 1px solid rgba(152,166,173,.18);
    }
    body.kp-marketplace-scope #market-filter-close.kp-market-filter-close-icon {
        width: 34px;
        height: 34px;
        padding: 0 !important;
        border-radius: 999px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        border-color: rgba(152,166,173,.28);
    }
    body.kp-marketplace-scope #market-filter-close.kp-market-filter-close-icon i {
        font-size: 1.2rem;
        line-height: 1;
    }
    body.kp-marketplace-scope .kp-market-filter-mobile-footer {
        padding-top: .9rem !important;
        padding-bottom: calc(.7rem + env(safe-area-inset-bottom, 0px)) !important;
    }
    body.kp-marketplace-scope .kp-market-filter-mobile-footer .kp-filter-show-results {
        margin-bottom: .65rem !important;
        transform: translateY(-.18rem);
        box-shadow: 0 .25rem .8rem rgba(49,58,70,.14);
    }
    body.kp-marketplace-scope .kp-market-filter-mobile-footer .kp-market-filter-footer-toggle {
        margin-top: 0 !important;
        justify-content: center;
    }
    body.kp-marketplace-scope .kp-market-filter-mobile-footer .kp-market-filter-footer-toggle .badge {
        line-height: 1;
    }
    body[data-layout-color="dark"].kp-marketplace-scope #market-filter-close.kp-market-filter-close-icon,
    html[data-layout-color="dark"] body.kp-marketplace-scope #market-filter-close.kp-market-filter-close-icon,
    html[data-theme="dark"] body.kp-marketplace-scope #market-filter-close.kp-market-filter-close-icon,
    html.kp-theme-dark-html body.kp-marketplace-scope #market-filter-close.kp-market-filter-close-icon,
    body.kp-theme-dark-body.kp-marketplace-scope #market-filter-close.kp-market-filter-close-icon {
        background: rgba(255,255,255,.06);
        color: #f1f3fa;
        border-color: rgba(255,255,255,.12);
    }
}

@media (max-width: 767.98px) {
    body.kp-marketplace-my-page .mp-my-summary-row {
        justify-content: center !important;
        align-items: stretch !important;
        margin: -.16rem -.16rem .45rem !important;
    }
    body.kp-marketplace-my-page .mp-my-summary-row > [class*="col-"] {
        flex: 0 0 25% !important;
        max-width: 25% !important;
        padding: .16rem !important;
        margin-bottom: 0 !important;
        display: flex !important;
    }
    body.kp-marketplace-my-page .mp-my-summary-row .mp-my-quicklink-card,
    body.kp-marketplace-my-page .mp-my-summary-row .mp-my-quicklink-card.card.widget-flat,
    body.kp-marketplace-my-page .mp-my-summary-row a.mp-my-quicklink-card.card.widget-flat {
        min-height: 44px !important;
        height: 44px !important;
        border-radius: 999px !important;
        box-shadow: none !important;
        overflow: hidden;
    }
    body.kp-marketplace-my-page .mp-my-summary-row .mp-my-quicklink-card .card-body {
        min-height: 44px !important;
        height: 44px !important;
        padding: .25rem .32rem !important;
        justify-content: center !important;
        text-align: center !important;
        gap: .15rem;
    }
    body.kp-marketplace-my-page .mp-my-summary-row .mp-quicklink-main {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 0 !important;
        line-height: 1;
    }
    body.kp-marketplace-my-page .mp-my-summary-row .mp-quicklink-icon {
        width: 18px !important;
        height: 18px !important;
        flex-basis: 18px !important;
        margin: 0 0 .08rem 0 !important;
        background: transparent !important;
        font-size: .88rem !important;
    }
    body.kp-marketplace-my-page .mp-my-summary-row .mp-quicklink-text {
        width: 100%;
        min-width: 0;
    }
    body.kp-marketplace-my-page .mp-my-summary-row .mp-quicklink-label {
        font-size: .58rem !important;
        line-height: 1 !important;
        max-width: 100%;
        text-align: center;
    }
    body.kp-marketplace-my-page .mp-my-summary-row .mp-quicklink-meta {
        display: none !important;
    }
    body.kp-marketplace-my-page .mp-my-summary-row .mp-quicklink-count {
        font-size: .92rem !important;
        margin-left: .12rem !important;
        line-height: 1 !important;
        align-self: center;
    }
    body.kp-marketplace-admin-page .mp-admin-stats-row {
        display: none !important;
    }
    body.kp-marketplace-admin-page .mp-admin-moderator-add-row {
        align-items: stretch;
        margin-left: -.25rem;
        margin-right: -.25rem;
    }
    body.kp-marketplace-admin-page .mp-admin-moderator-add-row > [class*="col-"] {
        padding-left: .25rem;
        padding-right: .25rem;
    }
    body.kp-marketplace-admin-page #mp-moderator-add {
        min-height: 37px;
        padding-left: .35rem;
        padding-right: .35rem;
        white-space: nowrap;
    }
    body.kp-marketplace-admin-page .mp-admin-log-filter-row {
        margin-left: -.25rem;
        margin-right: -.25rem;
    }
    body.kp-marketplace-admin-page .mp-admin-log-filter-row > [class*="col-"] {
        padding-left: .25rem;
        padding-right: .25rem;
        margin-bottom: .5rem;
    }
    body.kp-marketplace-admin-page .mp-admin-log-filter-row .mp-log-search-col,
    body.kp-marketplace-admin-page .mp-admin-log-filter-row .mp-log-load-col {
        margin-top: .25rem;
    }
    body.kp-marketplace-admin-page #mp-log-q {
        margin-top: .1rem;
    }
    body.kp-marketplace-admin-page #mp-admin-listings-table .badge-secondary-lighten,
    body.kp-marketplace-my-page #mp-my-listings-table .badge-secondary-lighten,
    body.kp-marketplace-scope .badge-secondary-lighten {
        display: inline-flex;
        align-items: center;
        width: auto;
    }
}

@media (max-width: 420px) {
    body.kp-marketplace-my-page .mp-my-summary-row .mp-quicklink-label {
        display: none !important;
    }
    body.kp-marketplace-my-page .mp-my-summary-row .mp-my-quicklink-card,
    body.kp-marketplace-my-page .mp-my-summary-row .mp-my-quicklink-card.card.widget-flat,
    body.kp-marketplace-my-page .mp-my-summary-row a.mp-my-quicklink-card.card.widget-flat,
    body.kp-marketplace-my-page .mp-my-summary-row .mp-my-quicklink-card .card-body {
        height: 38px !important;
        min-height: 38px !important;
    }
    body.kp-marketplace-my-page .mp-my-summary-row .mp-quicklink-main {
        flex: 0 0 auto !important;
    }
    body.kp-marketplace-my-page .mp-my-summary-row .mp-quicklink-icon {
        margin-bottom: 0 !important;
    }
    body.kp-marketplace-my-page .mp-my-summary-row .mp-quicklink-count {
        font-size: .86rem !important;
    }
}

body.kp-marketplace-scope .badge-secondary-lighten,
body.kp-marketplace-scope .badge.badge-secondary-lighten {
    background-color: rgba(108,117,125,.16) !important;
    color: #495057 !important;
    border: 1px solid rgba(108,117,125,.24);
}
body[data-layout-color="dark"].kp-marketplace-scope .badge-secondary-lighten,
html[data-layout-color="dark"] body.kp-marketplace-scope .badge-secondary-lighten,
html[data-theme="dark"] body.kp-marketplace-scope .badge-secondary-lighten,
html.kp-theme-dark-html body.kp-marketplace-scope .badge-secondary-lighten,
body.kp-theme-dark-body.kp-marketplace-scope .badge-secondary-lighten {
    background-color: rgba(241,243,250,.14) !important;
    color: #f1f3fa !important;
    border-color: rgba(241,243,250,.2);
}
body.kp-marketplace-payment-page .kp-payment-status-card .alert {
    border: 0;
}
body.kp-marketplace-payment-page .kp-payment-status-list > div {
    min-height: 1.55rem;
}

/* Kuulaportti marketplace v5.2 – messenger/action chips, my listing filters and review clarity. */
.mp-chat-context-actions .mp-chat-action-chip,
.mp-chat-header-actions .mp-chat-action-chip {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center;
    gap: .18rem;
    min-height: 1.55rem;
    padding: .34rem .55rem !important;
    border-radius: .25rem;
    font-size: .78rem !important;
    font-weight: 600;
    line-height: 1.2 !important;
    text-decoration: none !important;
    vertical-align: middle;
}
.mp-chat-context-actions .mp-chat-action-chip .mdi,
.mp-chat-header-actions .mp-chat-action-chip .mdi {
    line-height: 1;
}
.mp-chat-context-actions .mp-chat-action-chip > span,
.mp-chat-header-actions .mp-chat-action-chip > span {
    line-height: 1.2;
}
.mp-chat-context-actions .mp-chat-disabled-chip {
    white-space: normal !important;
    justify-content: flex-start;
    text-align: left;
}
.mp-chat-system-state {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.mp-review-comment {
    line-height: 1.45;
}

@media (max-width: 575.98px) {
    body.kp-marketplace-scope .mp-my-listing-filter-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(104px, .72fr) auto !important;
        align-items: center;
        gap: .4rem;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    body.kp-marketplace-scope .mp-my-listing-filter-row > [class*="col-"] {
        width: auto !important;
        max-width: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 0 !important;
    }
    body.kp-marketplace-scope .mp-new-listing-btn {
        min-height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding-left: .5rem;
        padding-right: .5rem;
        white-space: nowrap;
    }
    body.kp-marketplace-scope .mp-new-listing-btn span {
        display: none;
    }
    body.kp-marketplace-scope .mp-new-listing-btn .mdi {
        margin-right: 0 !important;
    }
}

@media (max-width: 380px) {
    body.kp-marketplace-scope .mp-my-listing-filter-row {
        grid-template-columns: minmax(0, 1fr) minmax(92px, .62fr) auto !important;
        gap: .32rem;
    }
    body.kp-marketplace-scope .mp-chat-context-actions .mp-chat-action-chip,
    body.kp-marketplace-scope .mp-chat-header-actions .mp-chat-action-chip {
        font-size: .72rem !important;
        padding: .22rem .4rem !important;
    }
}

/* Kuulaportti marketplace v5.3 – admin/payment/editor mobile polish. */
@media (max-width: 991.98px) {
    body.kp-marketplace-scope .kp-market-filter-mobile-footer .kp-market-filter-mobile-actions .btn {
        margin-top: 0 !important;
    }
    body.kp-marketplace-scope .kp-market-filter-mobile-footer .kp-market-filter-reset-mobile {
        flex: 0 0 auto;
        min-width: 96px;
    }
    body.kp-marketplace-scope .kp-market-filter-mobile-footer .kp-filter-show-results {
        display: none !important;
    }
}

@media (max-width: 575.98px) {
    body.kp-marketplace-scope .kp-market-actions {
        display: flex !important;
        align-items: stretch;
        justify-content: center !important;
        gap: .45rem;
        flex-wrap: nowrap !important;
    }
    body.kp-marketplace-scope .kp-market-actions .kp-market-action-sell,
    body.kp-marketplace-scope .kp-market-actions .kp-market-action-my {
        flex: 1 1 0;
        margin: 0 !important;
        justify-content: center;
        display: inline-flex;
        align-items: center;
        min-height: 38px;
    }
    body.kp-marketplace-admin-page .mp-admin-report-filter-row,
    body.kp-marketplace-admin-page .mp-admin-category-toolbar {
        margin-left: -.25rem;
        margin-right: -.25rem;
    }
    body.kp-marketplace-admin-page .mp-admin-report-filter-row > [class*="col-"],
    body.kp-marketplace-admin-page .mp-admin-category-toolbar > [class*="col-"] {
        padding-left: .25rem;
        padding-right: .25rem;
    }
    body.kp-marketplace-admin-page .mp-admin-report-filter-row .form-control-sm,
    body.kp-marketplace-admin-page .mp-admin-category-toolbar .form-control-sm,
    body.kp-marketplace-admin-page .mp-admin-category-toolbar .btn-sm {
        min-height: 34px;
    }
}

body.kp-marketplace-admin-page #mp-admin-listings-table tr.mp-admin-deleted,
body.kp-marketplace-admin-page #mp-admin-listings-table tr.mp-admin-deleted > td {
    box-shadow: inset 3px 0 0 rgba(250,92,124,.45);
}
body.kp-marketplace-admin-page #mp-admin-listings-table tr.mp-admin-deleted > td {
    border-top-color: rgba(250,92,124,.22) !important;
    border-bottom-color: rgba(250,92,124,.16) !important;
}
body.kp-marketplace-admin-page #mp-admin-listings-table tr.mp-admin-deleted td:first-child {
    border-left: 1px solid rgba(250,92,124,.24) !important;
}
body.kp-marketplace-admin-page #mp-admin-listings-table tr.mp-admin-deleted td:last-child {
    border-right: 1px solid rgba(250,92,124,.24) !important;
}
body[data-layout-color="dark"].kp-marketplace-admin-page #mp-admin-listings-table tr.mp-admin-deleted > td,
html[data-layout-color="dark"] body.kp-marketplace-admin-page #mp-admin-listings-table tr.mp-admin-deleted > td,
html[data-theme="dark"] body.kp-marketplace-admin-page #mp-admin-listings-table tr.mp-admin-deleted > td,
html.kp-theme-dark-html body.kp-marketplace-admin-page #mp-admin-listings-table tr.mp-admin-deleted > td,
body.kp-theme-dark-body.kp-marketplace-admin-page #mp-admin-listings-table tr.mp-admin-deleted > td {
    background-color: rgba(250,92,124,.055);
}

body.kp-marketplace-editor-page .mp-select2-team {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}
body.kp-marketplace-editor-page .mp-select2-team img {
    width: 22px;
    height: 22px;
    object-fit: cover;
    flex: 0 0 22px;
}
body.kp-marketplace-editor-page .select2-results__option .mp-select2-team img {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
}

@media (max-width: 767.98px) {
    body.kp-marketplace-editor-page .kp-listing-status-card {
        margin-top: .25rem !important;
        margin-bottom: .75rem !important;
    }
    body.kp-marketplace-editor-page .kp-form-section {
        margin-bottom: .75rem !important;
    }
}

body.kp-marketplace-payment-page .kp-payment-history-table small {
    line-height: 1.25;
}
body.kp-marketplace-payment-page .kp-payment-history-table .btn-sm {
    white-space: nowrap;
}

/* Kuulaportti marketplace v5.4 – focused UI polish. */
body.kp-marketplace-scope .mp-chat-header-actions,
body.kp-marketplace-scope .mp-chat-context-actions,
body.kp-marketplace-scope .mp-chat-offer-action-row {
    align-items: center !important;
    gap: .35rem !important;
}
body.kp-marketplace-scope .mp-chat-header-actions .mp-chat-action-chip,
body.kp-marketplace-scope .mp-chat-context-actions .mp-chat-action-chip,
body.kp-marketplace-scope .mp-chat-offer-action-row .mp-chat-action-chip {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .2rem !important;
    min-height: 1.6rem !important;
    height: 1.6rem !important;
    padding: .28rem .52rem !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-radius: 999px !important;
    font-size: .78rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}
body.kp-marketplace-scope .mp-chat-header-actions .mp-chat-action-chip .mdi,
body.kp-marketplace-scope .mp-chat-context-actions .mp-chat-action-chip .mdi,
body.kp-marketplace-scope .mp-chat-offer-action-row .mp-chat-action-chip .mdi,
body.kp-marketplace-scope .mp-chat-header-actions .mp-chat-action-chip > span,
body.kp-marketplace-scope .mp-chat-context-actions .mp-chat-action-chip > span,
body.kp-marketplace-scope .mp-chat-offer-action-row .mp-chat-action-chip > span {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
}
body.kp-marketplace-scope .mp-review-card-grid > [class*="col-"] {
    margin-bottom: .75rem !important;
}
body.kp-marketplace-scope .mp-review-card .card-body {
    padding: .75rem !important;
}
body.kp-marketplace-scope .mp-review-card .media {
    min-width: 0;
}
body.kp-marketplace-scope .mp-review-card .mp-table-thumb-sm {
    width: 42px !important;
    height: 42px !important;
    object-fit: cover;
}
body.kp-marketplace-scope .mp-review-card .mp-review-avatar {
    width: 34px !important;
    height: 34px !important;
    object-fit: cover;
}
body.kp-marketplace-scope .mp-review-card .btn-sm {
    padding-top: .25rem !important;
    padding-bottom: .25rem !important;
}
body.kp-marketplace-scope .mp-review-card .mp-review-comment {
    max-height: 4.4rem;
    overflow: auto;
}
@media (min-width: 1200px) {
    body.kp-marketplace-scope .mp-review-card-grid .col-xl-4 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}
@media (max-width: 767.98px) {
    body.kp-marketplace-scope .mp-chat-header-actions .mp-chat-action-chip,
    body.kp-marketplace-scope .mp-chat-context-actions .mp-chat-action-chip,
    body.kp-marketplace-scope .mp-chat-offer-action-row .mp-chat-action-chip {
        min-height: 1.5rem !important;
        height: 1.5rem !important;
        padding: .24rem .44rem !important;
        font-size: .74rem !important;
    }
}
body.kp-marketplace-scope .mp-review-pending-card .btn-block {
    margin-top: .55rem !important;
}
body.kp-marketplace-scope .mp-review-received-card .media.mb-3 {
    margin-bottom: .6rem !important;
}
body.kp-marketplace-scope .mp-review-received-card .border-top {
    padding-top: .6rem !important;
}
body.kp-marketplace-scope .mp-review-received-card .mt-3 {
    margin-top: .6rem !important;
}

/* Kuulaportti marketplace v5.5 – marketplace_new editor layout fixes. */
body.kp-marketplace-editor-page .kp-media-section {
    margin-bottom: .85rem !important;
}
body.kp-marketplace-editor-page .mp-condition-help {
    display: block;
    padding: .32rem .5rem .32rem .6rem;
    border-left: 2px solid rgba(114,124,245,.35);
    border-radius: .25rem;
    background: rgba(114,124,245,.045);
    line-height: 1.35;
}
body.kp-marketplace-editor-page .js-size-field .form-control::placeholder {
    font-size: .82rem;
}
body[data-layout-color="dark"].kp-marketplace-editor-page .mp-condition-help,
html[data-layout-color="dark"] body.kp-marketplace-editor-page .mp-condition-help,
html[data-theme="dark"] body.kp-marketplace-editor-page .mp-condition-help,
html.kp-theme-dark-html body.kp-marketplace-editor-page .mp-condition-help,
body.kp-theme-dark-body.kp-marketplace-editor-page .mp-condition-help {
    background: rgba(114,124,245,.10);
    border-left-color: rgba(114,124,245,.55);
    color: rgba(255,255,255,.68) !important;
}
@media (max-width: 767.98px) {
body.kp-marketplace-editor-page .js-size-field .form-control::placeholder {
        font-size: .76rem;
    }
    body.kp-marketplace-editor-page .mp-condition-help {
        padding: .28rem .45rem .28rem .55rem;
    }
}

/* Kuulaportti marketplace v5.6 – messenger stability, listing layout and editor polish. */
body.kp-marketplace-scope .mp-chat-header-actions,
body.kp-marketplace-scope .mp-chat-context-actions,
body.kp-marketplace-scope .mp-chat-offer-action-row {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: .35rem !important;
}
body.kp-marketplace-scope .mp-chat-action-chip.badge,
body.kp-marketplace-scope a.mp-chat-action-chip.badge,
body.kp-marketplace-scope span.mp-chat-action-chip.badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    position: relative !important;
    top: 0 !important;
    transform: none !important;
    min-height: 1.55rem !important;
    height: 1.55rem !important;
    padding: .27rem .5rem !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1 !important;
    transition: none !important;
    white-space: nowrap;
}
body.kp-marketplace-scope .mp-chat-action-chip.badge .mdi,
body.kp-marketplace-scope .mp-chat-action-chip.badge > span {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
}
body.kp-marketplace-listing-page .kp-listing-tabs-row {
    margin-bottom: 0;
}
body.kp-marketplace-listing-page .kp-completed-deal-row {
    margin-bottom: 1rem;
}
body.kp-marketplace-listing-page .kp-completed-deal-card {
    margin-bottom: 0;
}
body.kp-marketplace-listing-page .mp-completed-review-avatar {
    width: 34px;
    height: 34px;
    object-fit: cover;
}
body.kp-marketplace-listing-page .kp-seller-panel .kp-seller-scroll {
    max-height: 100%;
    overflow: auto;
}
body.kp-marketplace-listing-page .kp-seller-panel .avatar-lg {
    margin-bottom: .25rem !important;
}
body.kp-marketplace-listing-page .kp-seller-panel h4 {
    margin-top: .05rem;
}
body.kp-marketplace-scope .mp-reviewer-name {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.2;
}
body.kp-marketplace-my-page .mp-status-select2-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    width: 100%;
}
body.kp-marketplace-my-page .mp-status-select2-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body.kp-marketplace-editor-page .mp-description-terms-col .mp-description-terms-section {
    margin-bottom: .85rem !important;
}
body.kp-marketplace-editor-page .kp-media-editor-row {
    margin-top: 0 !important;
}
body.kp-marketplace-editor-page .kp-media-editor-row .kp-media-section {
    margin-top: 0 !important;
}
@media (max-width: 767.98px) {
    body.kp-marketplace-scope .mp-chat-action-chip.badge,
    body.kp-marketplace-scope a.mp-chat-action-chip.badge,
    body.kp-marketplace-scope span.mp-chat-action-chip.badge {
        min-height: 1.45rem !important;
        height: 1.45rem !important;
        padding: .23rem .42rem !important;
        font-size: .74rem !important;
    }
}

/* Marketplace v5.7: mobile marketplace UX, stable messenger, shared mobile table cards. */
.kp-icon-stack{position:relative;display:inline-flex;width:1.35em;height:1.35em;align-items:center;justify-content:center;vertical-align:middle;line-height:1}.kp-icon-stack>.mdi:first-child{font-size:1.18em}.kp-icon-stack-corner{position:absolute;right:-.34em;bottom:-.24em;font-size:.74em;line-height:1;border-radius:999px;background:#fff;padding:.03em}body[data-layout-color="dark"] .kp-icon-stack-corner,html[data-layout-color="dark"] .kp-icon-stack-corner,html[data-theme="dark"] .kp-icon-stack-corner,body.kp-theme-dark-body .kp-icon-stack-corner{background:#37404a}.mp-show-deleted-btn{display:inline-flex;align-items:center;justify-content:center;min-height:calc(1.5em + .5rem + 2px);white-space:nowrap}.mp-admin-deleted{box-shadow:inset 3px 0 0 rgba(250,92,124,.72)!important}.mp-admin-deleted td{background:rgba(250,92,124,.045)!important}

/* removed obsolete v5.7 marketplace.php mobile topbar/filter block */

@media (max-width:767.98px){
 body.kp-marketplace-my-page .mp-my-listing-filter-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(8.8rem,9.8rem) 44px;gap:.45rem;align-items:stretch}.mp-my-listing-filter-row>[class*="col-"]{max-width:none!important;flex:none!important;width:auto!important;padding-left:0!important;padding-right:0!important;margin:0!important}.mp-my-listing-filter-row .form-control,.mp-my-listing-filter-row .select2-selection,.mp-my-listing-filter-row .btn{min-height:42px}.mp-my-listing-filter-row .mp-new-listing-btn span{display:none!important}.mp-my-listing-filter-row .mp-new-listing-btn i{margin-right:0!important;font-size:1.25rem}.mp-status-select2-option{display:flex;align-items:center;justify-content:space-between;width:100%;min-width:0}.mp-status-select2-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
 body.kp-marketplace-admin-page .mp-admin-mobile-hide-title{display:none!important}.mp-admin-listing-filter-row,.mp-admin-report-filter-row,.mp-admin-moderator-add-row,.mp-admin-category-toolbar,.mp-admin-log-filter-row{margin-top:.25rem!important}.mp-admin-listing-filter-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(8rem,9.2rem) 44px;gap:.45rem}.mp-admin-listing-filter-row>[class*="col-"]{max-width:none!important;flex:none!important;width:auto!important;padding-left:0!important;padding-right:0!important;margin:0!important}.mp-show-deleted-btn{width:44px;height:42px;padding:.35rem!important}.mp-show-deleted-btn .kp-icon-stack{margin:0!important}.mp-admin-report-filter-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(6.75rem,8rem);gap:.45rem}.mp-admin-report-filter-row>[class*="col-"]{max-width:none!important;flex:none!important;width:auto!important;padding:0!important}.mp-admin-moderator-add-row{display:grid!important;grid-template-columns:minmax(0,1fr) 76px;gap:.45rem}.mp-admin-moderator-add-row>[class*="col-"]{max-width:none!important;flex:none!important;width:auto!important;padding-left:0!important;padding-right:0!important}.mp-admin-moderator-add-row #mp-moderator-add{font-size:0}.mp-admin-moderator-add-row #mp-moderator-add .mdi{font-size:1.2rem;margin-right:0!important}.mp-admin-moderator-add-row #mp-moderator-add:after{content:'Add';font-size:.875rem;margin-left:.2rem}.mp-admin-log-filter-row{display:grid!important;grid-template-columns:1fr 1fr;gap:.45rem}.mp-admin-log-filter-row>[class*="col-"]{max-width:none!important;flex:none!important;width:auto!important;padding-left:0!important;padding-right:0!important}.mp-admin-log-filter-row .mp-log-search-col{grid-column:1/2;margin-top:.35rem}.mp-admin-log-filter-row .mp-log-load-col{grid-column:2/3;margin-top:.35rem}.mp-admin-category-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:.45rem;align-items:center}.mp-admin-category-toolbar .btn{white-space:nowrap}

 /* Shared marketplace DataTables mobile card language. */
 body.kp-marketplace-scope .kp-mobile-card-table,
 body.kp-marketplace-scope #mp-my-listings-table,body.kp-marketplace-scope #mp-deals-table,body.kp-marketplace-scope #mp-admin-listings-table,body.kp-marketplace-scope #mp-admin-reports-table,body.kp-marketplace-scope #mp-admin-paid-table,body.kp-marketplace-scope #mp-admin-promos-table,body.kp-marketplace-scope #mp-admin-categories-table,body.kp-marketplace-scope #mp-admin-logs-table,body.kp-marketplace-scope #mp-admin-moderators table,body.kp-marketplace-scope .mp-event-monetization-table{display:block!important;width:100%!important;border-collapse:separate!important;border-spacing:0!important;background:transparent!important}
 body.kp-marketplace-scope .kp-mobile-card-table thead,body.kp-marketplace-scope #mp-my-listings-table thead,body.kp-marketplace-scope #mp-deals-table thead,body.kp-marketplace-scope #mp-admin-listings-table thead,body.kp-marketplace-scope #mp-admin-reports-table thead,body.kp-marketplace-scope #mp-admin-paid-table thead,body.kp-marketplace-scope #mp-admin-promos-table thead,body.kp-marketplace-scope #mp-admin-categories-table thead,body.kp-marketplace-scope #mp-admin-logs-table thead,body.kp-marketplace-scope #mp-admin-moderators table thead,body.kp-marketplace-scope .mp-event-monetization-table thead{display:none!important}
 body.kp-marketplace-scope .kp-mobile-card-table tbody,body.kp-marketplace-scope #mp-my-listings-table tbody,body.kp-marketplace-scope #mp-deals-table tbody,body.kp-marketplace-scope #mp-admin-listings-table tbody,body.kp-marketplace-scope #mp-admin-reports-table tbody,body.kp-marketplace-scope #mp-admin-paid-table tbody,body.kp-marketplace-scope #mp-admin-promos-table tbody,body.kp-marketplace-scope #mp-admin-categories-table tbody,body.kp-marketplace-scope #mp-admin-logs-table tbody,body.kp-marketplace-scope #mp-admin-moderators table tbody,body.kp-marketplace-scope .mp-event-monetization-table tbody{display:block!important;width:100%!important}
 body.kp-marketplace-scope .kp-mobile-card-table tbody tr,body.kp-marketplace-scope #mp-my-listings-table tbody tr,body.kp-marketplace-scope #mp-deals-table tbody tr,body.kp-marketplace-scope #mp-admin-listings-table tbody tr,body.kp-marketplace-scope #mp-admin-reports-table tbody tr,body.kp-marketplace-scope #mp-admin-paid-table tbody tr,body.kp-marketplace-scope #mp-admin-promos-table tbody tr,body.kp-marketplace-scope #mp-admin-categories-table tbody tr,body.kp-marketplace-scope #mp-admin-logs-table tbody tr,body.kp-marketplace-scope #mp-admin-moderators table tbody tr,body.kp-marketplace-scope .mp-event-monetization-table tbody tr{display:block!important;position:relative;width:100%!important;margin:0 0 .8rem!important;padding:.85rem!important;border:1px solid rgba(152,166,173,.22)!important;border-radius:.85rem!important;background:#fff!important;box-shadow:0 .25rem .85rem rgba(49,58,70,.08)!important;overflow:visible!important}.table-responsive,.dataTables_wrapper{overflow:visible!important}
 body.kp-marketplace-scope .kp-mobile-card-table tbody td,body.kp-marketplace-scope #mp-my-listings-table tbody td,body.kp-marketplace-scope #mp-deals-table tbody td,body.kp-marketplace-scope #mp-admin-listings-table tbody td,body.kp-marketplace-scope #mp-admin-reports-table tbody td,body.kp-marketplace-scope #mp-admin-paid-table tbody td,body.kp-marketplace-scope #mp-admin-promos-table tbody td,body.kp-marketplace-scope #mp-admin-categories-table tbody td,body.kp-marketplace-scope #mp-admin-logs-table tbody td,body.kp-marketplace-scope #mp-admin-moderators table tbody td,body.kp-marketplace-scope .mp-event-monetization-table tbody td{display:block!important;width:100%!important;max-width:100%!important;padding:.22rem 0!important;border:0!important;text-align:left!important;white-space:normal!important;overflow:visible!important}.kp-mobile-card-table td::before,#mp-my-listings-table td::before,#mp-deals-table td::before,#mp-admin-listings-table td::before,#mp-admin-reports-table td::before,#mp-admin-paid-table td::before,#mp-admin-promos-table td::before,#mp-admin-categories-table td::before,#mp-admin-logs-table td::before,#mp-admin-moderators table td::before,.mp-event-monetization-table td::before{display:none!important;content:none!important}
 body.kp-marketplace-scope #mp-my-listings-table tbody td:nth-child(1),body.kp-marketplace-scope #mp-deals-table tbody td:nth-child(1),body.kp-marketplace-scope #mp-admin-listings-table tbody td:nth-child(2),body.kp-marketplace-scope #mp-admin-reports-table tbody td:nth-child(1){padding-bottom:.55rem!important;margin-bottom:.45rem!important;border-bottom:1px solid rgba(152,166,173,.16)!important}.kp-mobile-card-table .media,#mp-my-listings-table .media,#mp-deals-table .media,#mp-admin-listings-table .media,#mp-admin-reports-table .media{align-items:center!important}.kp-mobile-card-table .media-body,#mp-my-listings-table .media-body,#mp-deals-table .media-body,#mp-admin-listings-table .media-body,#mp-admin-reports-table .media-body{min-width:0!important}.kp-mobile-card-table img.rounded,#mp-my-listings-table img.rounded,#mp-deals-table img.rounded,#mp-admin-listings-table img.rounded,#mp-admin-reports-table img.rounded{width:56px!important;height:56px!important;object-fit:cover!important}.kp-mobile-card-listings td:nth-child(3),#mp-my-listings-table td:nth-child(3){font-size:1.05rem;color:#6c757d}.kp-mobile-card-listings td:nth-child(4),.kp-mobile-card-listings td:nth-child(5),.kp-mobile-card-listings td:nth-child(6),#mp-my-listings-table td:nth-child(4),#mp-my-listings-table td:nth-child(5),#mp-my-listings-table td:nth-child(6){display:inline-flex!important;width:auto!important;margin-right:.65rem;color:#98a6ad;font-size:.9rem}.kp-mobile-card-listings td:nth-child(4)::after,#mp-my-listings-table td:nth-child(4)::after{content:' views';margin-left:.15rem}.kp-mobile-card-listings td:nth-child(5)::before,#mp-my-listings-table td:nth-child(5)::before{display:inline!important;content:'♡'!important;margin-right:.2rem}.kp-mobile-card-listings td:nth-child(6)::before,#mp-my-listings-table td:nth-child(6)::before{display:inline!important;content:'💬'!important;margin-right:.2rem}.kp-mobile-card-listings td:last-child,#mp-my-listings-table td:last-child{margin-top:.55rem;padding-top:.55rem!important;border-top:1px solid rgba(152,166,173,.16)!important}.mp-action-dropdown-btn{min-width:0!important;width:auto!important;max-width:100%;white-space:nowrap}.dropdown-menu{z-index:2065!important}#mp-my-listings-table .dropdown-menu,#mp-admin-listings-table .dropdown-menu,#mp-admin-categories-table .dropdown-menu{min-width:11rem}
 html[data-layout-color="dark"] body.kp-marketplace-scope .kp-mobile-card-table tbody tr,body[data-layout-color="dark"].kp-marketplace-scope .kp-mobile-card-table tbody tr,body.kp-theme-dark-body.kp-marketplace-scope .kp-mobile-card-table tbody tr,html[data-layout-color="dark"] body.kp-marketplace-scope #mp-my-listings-table tbody tr,body[data-layout-color="dark"].kp-marketplace-scope #mp-my-listings-table tbody tr,body.kp-theme-dark-body.kp-marketplace-scope #mp-my-listings-table tbody tr,html[data-layout-color="dark"] body.kp-marketplace-scope #mp-deals-table tbody tr,body[data-layout-color="dark"].kp-marketplace-scope #mp-deals-table tbody tr,body.kp-theme-dark-body.kp-marketplace-scope #mp-deals-table tbody tr,html[data-layout-color="dark"] body.kp-marketplace-scope #mp-admin-listings-table tbody tr,body[data-layout-color="dark"].kp-marketplace-scope #mp-admin-listings-table tbody tr,body.kp-theme-dark-body.kp-marketplace-scope #mp-admin-listings-table tbody tr,html[data-layout-color="dark"] body.kp-marketplace-scope #mp-admin-reports-table tbody tr,body[data-layout-color="dark"].kp-marketplace-scope #mp-admin-reports-table tbody tr,body.kp-theme-dark-body.kp-marketplace-scope #mp-admin-reports-table tbody tr,html[data-layout-color="dark"] body.kp-marketplace-scope #mp-admin-paid-table tbody tr,body[data-layout-color="dark"].kp-marketplace-scope #mp-admin-paid-table tbody tr,body.kp-theme-dark-body.kp-marketplace-scope #mp-admin-paid-table tbody tr,html[data-layout-color="dark"] body.kp-marketplace-scope #mp-admin-promos-table tbody tr,body[data-layout-color="dark"].kp-marketplace-scope #mp-admin-promos-table tbody tr,body.kp-theme-dark-body.kp-marketplace-scope #mp-admin-promos-table tbody tr,html[data-layout-color="dark"] body.kp-marketplace-scope #mp-admin-categories-table tbody tr,body[data-layout-color="dark"].kp-marketplace-scope #mp-admin-categories-table tbody tr,body.kp-theme-dark-body.kp-marketplace-scope #mp-admin-categories-table tbody tr,html[data-layout-color="dark"] body.kp-marketplace-scope #mp-admin-logs-table tbody tr,body[data-layout-color="dark"].kp-marketplace-scope #mp-admin-logs-table tbody tr,body.kp-theme-dark-body.kp-marketplace-scope #mp-admin-logs-table tbody tr,html[data-layout-color="dark"] body.kp-marketplace-scope #mp-admin-moderators table tbody tr,body[data-layout-color="dark"].kp-marketplace-scope #mp-admin-moderators table tbody tr,body.kp-theme-dark-body.kp-marketplace-scope #mp-admin-moderators table tbody tr{background:#37404a!important;border-color:rgba(241,243,250,.12)!important;box-shadow:0 .25rem .85rem rgba(0,0,0,.16)!important}

 body.kp-marketplace-my-page #mp-tab-messages{padding-top:0!important}.mp-chat-shell{margin-top:0!important}.mp-chat-header-actions{min-height:0}.mp-chat-action-chip{display:inline-flex!important;align-items:center!important;justify-content:center!important;vertical-align:middle!important;line-height:1.1!important;min-height:28px!important}.mp-chat-offer-message .font-weight-semibold{display:inline-flex;align-items:center;gap:.25rem;line-height:1.35}.mp-chat-composer .input-group{display:flex!important;align-items:stretch}.mp-chat-composer .input-group-prepend,.mp-chat-composer .input-group-append{flex:0 0 auto}.mp-chat-composer #mp-chat-attach,.mp-chat-composer #mp-chat-send{width:48px!important;min-width:48px!important;padding-left:.35rem!important;padding-right:.35rem!important}.mp-chat-composer #mp-chat-body{flex:1 1 auto!important;min-width:0!important;width:auto!important}.mp-chat-header-actions{display:none!important}.mp-chat-header .mp-chat-title-wrap{min-width:0}.mp-chat-title{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.mp-chat-meta{font-size:.78rem}.mp-chat-context-actions{margin-top:.3rem!important}.mp-chat-thread-list{overscroll-behavior:contain}.mp-chat-messages{overscroll-behavior:contain}

 body.kp-marketplace-editor-page .mp-description-terms-col,.kp-marketplace-editor-page .mp-description-terms-col{margin-bottom:.75rem!important}.kp-media-editor-row{margin-top:0!important}.kp-media-editor-row .card{margin-top:0!important}
}

/* Kuulaportti marketplace v5.8 – consolidated mobile fixes and unified marketplace controls. */
@media (max-width: 991.98px) {
  body.kp-marketplace-browse-page .kp-market-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    margin-left: -12px;
    margin-right: -12px;
    padding: .55rem 12px;
    background: #fff;
    box-shadow: 0 .15rem .65rem rgba(49,58,70,.08);
  }
  html[data-layout-color="dark"] body.kp-marketplace-browse-page .kp-market-topbar,
  body[data-layout-color="dark"].kp-marketplace-browse-page .kp-market-topbar,
  html[data-theme="dark"] body.kp-marketplace-browse-page .kp-market-topbar,
  body.kp-theme-dark-body.kp-marketplace-browse-page .kp-market-topbar {
    background: #313a46;
    box-shadow: 0 .15rem .65rem rgba(0,0,0,.25);
  }
  body.kp-marketplace-browse-page .kp-market-topbar .kp-market-search { width: 100%; }
  body.kp-marketplace-browse-page .kp-market-mobile-search-group { width: 100%; }
  body.kp-marketplace-browse-page .kp-market-mobile-filter-inline { min-width: 104px; }
  body.kp-marketplace-browse-page .kp-market-actions { margin-left: .25rem; }
  body.kp-marketplace-browse-page .kp-market-mobile-user-actions .btn { height: 46px; }
  body.kp-marketplace-browse-page .kp-market-mobile-user-actions .dropdown-menu { min-width: 13rem; }
  body.kp-marketplace-browse-page .kp-market-layout { margin-top: .5rem; }

  body.kp-marketplace-browse-page .marketplace-card,
  body.kp-marketplace-browse-page .marketplace-card .position-relative,
  body.kp-marketplace-browse-page .kp-market-card-media,
  body.kp-marketplace-browse-page .marketplace-card .carousel,
  body.kp-marketplace-browse-page .marketplace-card .carousel-inner,
  body.kp-marketplace-browse-page .marketplace-card .carousel-item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: block !important;
  }
  body.kp-marketplace-browse-page .marketplace-card .kp-market-card-media,
  body.kp-marketplace-browse-page .marketplace-card .carousel,
  body.kp-marketplace-browse-page .marketplace-card .carousel-inner,
  body.kp-marketplace-browse-page .marketplace-card .carousel-item {
    aspect-ratio: auto !important;
    height: auto !important;
  }
  body.kp-marketplace-browse-page .marketplace-card .card-img-top {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
}

@media (max-width: 767.98px) {
  /* marketplace_new: true Bootstrap-flow spacing and mobile side sections near the bottom */
  body.kp-marketplace-editor-page #marketplace-form > .row { align-items: flex-start; }
body.kp-marketplace-editor-page .kp-form-section,
  body.kp-marketplace-editor-page .kp-media-section,
  body.kp-marketplace-editor-page .mp-description-terms-section,
  body.kp-marketplace-editor-page .kp-listing-status-card,
  body.kp-marketplace-editor-page .mp-safety-card {
    margin-top: 0 !important;
    margin-bottom: .75rem !important;
  }
  body.kp-marketplace-editor-page .mp-description-terms-col + .kp-media-editor-row,
  body.kp-marketplace-editor-page .kp-media-editor-row + .mp-listing-side-col { margin-top: 0 !important; }
  body.kp-marketplace-editor-page .mp-safety-card .card-body { padding: .75rem !important; }
  body.kp-marketplace-editor-page .mp-safety-toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    text-align: left;
  }
  body.kp-marketplace-editor-page .mp-safety-collapse { padding-top: .7rem; }
}

/* Messenger: single component, stable mobile header and compact composer. */
@media (max-width: 991.98px) {
  body.kp-marketplace-scope .mp-chat-header {
    gap: .5rem;
    align-items: center !important;
  }
  body.kp-marketplace-scope .mp-chat-header-actions {
    display: none !important;
    width: 0 !important;
    max-width: 0 !important;
    overflow: hidden !important;
  }
  body.kp-marketplace-scope .mp-chat-header #mp-chat-title,
  body.kp-marketplace-scope .mp-chat-title {
    display: block !important;
    font-size: .95rem !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }
  body.kp-marketplace-scope .mp-chat-header #mp-chat-meta { font-size: .75rem !important; }
  body.kp-marketplace-scope .mp-chat-composer .input-group { display: flex !important; width: 100%; }
  body.kp-marketplace-scope .mp-chat-composer .input-group-prepend,
  body.kp-marketplace-scope .mp-chat-composer .input-group-append { flex: 0 0 auto !important; }
  body.kp-marketplace-scope .mp-chat-composer #mp-chat-attach,
  body.kp-marketplace-scope .mp-chat-composer #mp-chat-send {
    width: 46px !important;
    min-width: 46px !important;
    padding-left: .25rem !important;
    padding-right: .25rem !important;
  }
  body.kp-marketplace-scope .mp-chat-composer #mp-chat-body {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
  }
}

/* My marketplace compact toolbar and proper listing cards. */
@media (max-width: 767.98px) {
  body.kp-marketplace-my-page .mp-my-listing-filter-row,
  body.kp-marketplace-my-page .mp-deals-filter-row {
    display: flex !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    gap: .45rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  body.kp-marketplace-my-page .mp-my-listing-filter-row > [class*="col-"],
  body.kp-marketplace-my-page .mp-deals-filter-row > [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 0 !important;
  }
  body.kp-marketplace-my-page .mp-my-listing-filter-row .mp-filter-search-col { flex: 1 1 auto !important; max-width: none !important; }
  body.kp-marketplace-my-page .mp-my-listing-filter-row .mp-filter-status-col { flex: 0 0 94px !important; max-width: 94px !important; }
  body.kp-marketplace-my-page .mp-my-listing-filter-row .mp-new-listing-col { flex: 0 0 42px !important; max-width: 42px !important; }
  body.kp-marketplace-my-page .mp-my-listing-filter-row .form-control,
  body.kp-marketplace-my-page .mp-my-listing-filter-row .select2-selection--single,
  body.kp-marketplace-my-page .mp-new-listing-btn { height: 42px !important; min-height: 42px !important; }
  body.kp-marketplace-my-page .mp-new-listing-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border-radius: .35rem !important;
  }
  body.kp-marketplace-my-page .mp-new-listing-btn span { display: none !important; }
  body.kp-marketplace-my-page .mp-new-listing-btn .mdi { margin-right: 0 !important; font-size: 1.35rem; }
  body.kp-marketplace-my-page #mp-my-listing-status + .select2-container .select2-selection__rendered { padding-left: .55rem !important; padding-right: 1.4rem !important; }
  body.kp-marketplace-my-page #mp-my-listing-status + .select2-container .badge { font-size: .72rem; padding: .12rem .32rem; }

  body.kp-marketplace-my-page #mp-my-listings-table tbody tr,
  body.kp-marketplace-my-page #mp-deals-table tbody tr {
    padding: .75rem !important;
    border-radius: .85rem !important;
  }
  body.kp-marketplace-my-page #mp-my-listings-table tbody td,
  body.kp-marketplace-my-page #mp-deals-table tbody td {
    padding: .12rem 0 !important;
    border: 0 !important;
  }
  body.kp-marketplace-my-page #mp-my-listings-table tbody td:nth-child(1),
  body.kp-marketplace-my-page #mp-deals-table tbody td:nth-child(1) {
    padding: 0 0 .45rem !important;
    margin: 0 0 .45rem !important;
    border-bottom: 1px solid rgba(152,166,173,.14) !important;
  }
  body.kp-marketplace-my-page #mp-my-listings-table tbody td:nth-child(1) .media,
  body.kp-marketplace-my-page #mp-deals-table tbody td:nth-child(1) .media {
    align-items: center !important;
    width: 100%;
  }
  body.kp-marketplace-my-page #mp-my-listings-table .mp-table-thumb,
  body.kp-marketplace-my-page #mp-deals-table .mp-table-thumb-sm {
    width: 58px !important;
    height: 58px !important;
    flex: 0 0 58px;
    object-fit: cover;
  }
  body.kp-marketplace-my-page #mp-my-listings-table tbody td:nth-child(2) {
    display: inline-flex !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 .45rem .4rem 0 !important;
    vertical-align: middle;
  }
  body.kp-marketplace-my-page #mp-my-listings-table tbody td:nth-child(3) {
    display: block !important;
    font-size: 1.05rem !important;
    font-weight: 700;
    color: #313a46 !important;
    margin-bottom: .25rem;
  }
  body.kp-marketplace-my-page #mp-my-listings-table tbody td:nth-child(4),
  body.kp-marketplace-my-page #mp-my-listings-table tbody td:nth-child(5),
  body.kp-marketplace-my-page #mp-my-listings-table tbody td:nth-child(6) {
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
    margin-right: .75rem !important;
    color: #98a6ad !important;
    font-size: .88rem !important;
  }
  body.kp-marketplace-my-page #mp-my-listings-table tbody td:nth-child(7),
  body.kp-marketplace-my-page #mp-deals-table tbody td:last-child {
    display: block !important;
    margin-top: .45rem !important;
    padding-top: .35rem !important;
    border-top: 0 !important;
    text-align: left !important;
  }
  body.kp-marketplace-my-page #mp-my-listings-table .mp-action-dropdown-btn,
  body.kp-marketplace-my-page #mp-deals-table .mp-action-dropdown-btn {
    height: 34px !important;
    padding: .25rem .6rem !important;
    border-radius: .35rem !important;
  }
  html[data-layout-color="dark"] body.kp-marketplace-my-page #mp-my-listings-table tbody td:nth-child(3),
  body[data-layout-color="dark"].kp-marketplace-my-page #mp-my-listings-table tbody td:nth-child(3),
  body.kp-theme-dark-body.kp-marketplace-my-page #mp-my-listings-table tbody td:nth-child(3) {
    color: #f1f3fa !important;
  }
}

/* Admin marketplace mobile toolbar and cards. */
@media (max-width: 767.98px) {
  body.kp-marketplace-admin-page .mp-admin-mobile-hide-title { display: none !important; }
  body.kp-marketplace-admin-page .card-body > .form-row,
  body.kp-marketplace-admin-page .mp-admin-category-toolbar,
  body.kp-marketplace-admin-page .mp-admin-moderator-add-row,
  body.kp-marketplace-admin-page .mp-admin-report-filter-row,
  body.kp-marketplace-admin-page .mp-admin-listing-filter-row {
    display: flex !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    gap: .45rem;
    margin: .15rem 0 .85rem !important;
  }
  body.kp-marketplace-admin-page .card-body > .form-row > [class*="col-"],
  body.kp-marketplace-admin-page .mp-admin-category-toolbar > [class*="col-"],
  body.kp-marketplace-admin-page .mp-admin-moderator-add-row > [class*="col-"],
  body.kp-marketplace-admin-page .mp-admin-report-filter-row > [class*="col-"],
  body.kp-marketplace-admin-page .mp-admin-listing-filter-row > [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 0 !important;
  }
  body.kp-marketplace-admin-page .mp-admin-listing-filter-row .mp-filter-search-col { flex: 1 1 auto !important; max-width: none !important; }
  body.kp-marketplace-admin-page .mp-admin-listing-filter-row .mp-filter-status-col { flex: 0 0 126px !important; max-width: 126px !important; }
  body.kp-marketplace-admin-page .mp-admin-listing-filter-row .mp-filter-action-col { flex: 0 0 44px !important; max-width: 44px !important; }
  body.kp-marketplace-admin-page .form-control-sm,
  body.kp-marketplace-admin-page .select2-container .select2-selection--single,
  body.kp-marketplace-admin-page .mp-show-deleted-btn,
  body.kp-marketplace-admin-page .mp-admin-add-btn {
    min-height: 40px !important;
    height: 40px !important;
  }
  body.kp-marketplace-admin-page .mp-show-deleted-btn {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    padding: 0 !important;
    border-radius: .35rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  body.kp-marketplace-admin-page .mp-show-deleted-btn .d-md-inline { display: none !important; }
  body.kp-marketplace-admin-page .mp-show-deleted-btn .kp-icon-stack { margin: 0 !important; color: inherit !important; }
  body.kp-marketplace-admin-page .mp-show-deleted-btn .mdi { display: inline-block !important; opacity: 1 !important; }
  body.kp-marketplace-admin-page .mp-admin-add-btn {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    padding: 0 !important;
    border-radius: .35rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  body.kp-marketplace-admin-page .mp-admin-add-btn span { display: none !important; }
  body.kp-marketplace-admin-page .mp-admin-add-btn .mdi { margin-right: 0 !important; font-size: 1.35rem; }
  body.kp-marketplace-admin-page #mp-admin-moderators .mp-admin-moderator-add-row > .col-8,
  body.kp-marketplace-admin-page #mp-admin-categories .mp-admin-category-toolbar > .col-8 { flex: 1 1 auto !important; max-width: none !important; }
  body.kp-marketplace-admin-page #mp-admin-moderators .mp-admin-moderator-add-row > .col-4,
  body.kp-marketplace-admin-page #mp-admin-categories .mp-admin-category-toolbar > .col-4 { flex: 0 0 44px !important; max-width: 44px !important; }

  body.kp-marketplace-admin-page #mp-admin-listings-table tbody tr,
  body.kp-marketplace-admin-page #mp-admin-reports-table tbody tr,
  body.kp-marketplace-admin-page #mp-admin-categories-table tbody tr,
  body.kp-marketplace-admin-page #mp-admin-moderators table tbody tr,
  body.kp-marketplace-admin-page #mp-admin-paid-table tbody tr,
  body.kp-marketplace-admin-page #mp-admin-promos-table tbody tr,
  body.kp-marketplace-admin-page #mp-admin-logs-table tbody tr {
    padding: .75rem !important;
    border-radius: .85rem !important;
  }
  body.kp-marketplace-admin-page #mp-admin-categories-table tbody td,
  body.kp-marketplace-admin-page #mp-admin-paid-table tbody td,
  body.kp-marketplace-admin-page #mp-admin-promos-table tbody td,
  body.kp-marketplace-admin-page #mp-admin-logs-table tbody td,
  body.kp-marketplace-admin-page #mp-admin-moderators table tbody td {
    padding: .16rem 0 !important;
    border: 0 !important;
  }
  body.kp-marketplace-admin-page #mp-admin-categories-table tbody td input.form-control-sm,
  body.kp-marketplace-admin-page #mp-admin-paid-table tbody td input.form-control-sm {
    background: transparent !important;
    border-color: rgba(152,166,173,.22) !important;
  }
  body.kp-marketplace-admin-page #mp-admin-categories-table tbody td:first-child,
  body.kp-marketplace-admin-page #mp-admin-paid-table tbody td:first-child,
  body.kp-marketplace-admin-page #mp-admin-moderators table tbody td:first-child {
    padding-bottom: .45rem !important;
    margin-bottom: .45rem !important;
    border-bottom: 1px solid rgba(152,166,173,.14) !important;
  }
  body.kp-marketplace-admin-page #mp-admin-listings-table .mp-action-dropdown-btn,
  body.kp-marketplace-admin-page #mp-admin-reports-table .mp-action-dropdown-btn,
  body.kp-marketplace-admin-page #mp-admin-categories-table .mp-action-dropdown-btn,
  body.kp-marketplace-admin-page #mp-admin-moderators .mp-action-dropdown-btn {
    height: 34px !important;
    padding: .25rem .6rem !important;
    border-radius: .35rem !important;
  }
}

@media (min-width: 768px) {
  body.kp-marketplace-admin-page .mp-show-deleted-btn { min-width: 0; white-space: nowrap; }
  body.kp-marketplace-admin-page .mp-admin-add-btn { width: auto; min-width: 0; white-space: nowrap; }
}
@media (max-width: 991.98px) {
  body.kp-marketplace-browse-page .kp-market-mobile-user-actions .btn {
    width: 46px !important;
    min-width: 46px !important;
    padding: 0 !important;
    font-size: 0 !important;
  }
  body.kp-marketplace-browse-page .kp-market-mobile-user-actions .btn .mdi {
    margin-right: 0 !important;
    font-size: 1.35rem !important;
  }
}
@media (max-width: 767.98px) {
  body.kp-marketplace-admin-page #mp-admin-categories .card-body > .d-flex.justify-content-between:first-child { display: none !important; }
  body.kp-marketplace-admin-page #mp-admin-paid .card-body > .form-group { margin: .15rem 0 .85rem !important; }
}

/* Kuulaportti marketplace v5.9 hotfix
   Roll back only marketplace.php front page mobile card/filter/topbar behavior to the stable pre-v57 layout.
   Keep v57/v58 fixes for my marketplace, admin, messenger and listing editor intact. */
@media (max-width: 991.98px) {
    body.kp-marketplace-browse-page .kp-market-topbar {
        position: static !important;
        top: auto !important;
        z-index: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-left: -12px !important;
        margin-right: -12px !important;
    }
    body.kp-marketplace-browse-page .kp-market-topbar .col-lg-7,
    body.kp-marketplace-browse-page .kp-market-topbar .col-lg-5,
    body.kp-marketplace-browse-page .kp-market-actions {
        -ms-flex: 0 0 100% !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    body.kp-marketplace-browse-page .kp-market-actions {
        margin-left: 0 !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    body.kp-marketplace-browse-page .kp-market-toolbar .kp-market-filter-button {
        display: inline-flex !important;
    }

    body.kp-marketplace-browse-page.kp-market-filter-modal-open {
        overflow: hidden !important;
    }
    body.kp-marketplace-browse-page.kp-market-filter-modal-open #market-filter-col {
        position: fixed !important;
        inset: 0 !important;
        z-index: 1060 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        padding: .75rem !important;
        margin: 0 !important;
        overflow-y: auto !important;
        background: rgba(49, 58, 70, .98) !important;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }
    body.kp-marketplace-browse-page.kp-market-filter-modal-open #market-filter-collapse {
        min-height: calc(100dvh - 1.5rem) !important;
        margin: 0 !important;
        border-radius: .35rem !important;
        border: 0 !important;
        box-shadow: 0 .75rem 2.2rem rgba(0, 0, 0, .28) !important;
    }
    body.kp-marketplace-browse-page.kp-market-filter-modal-open #market-filter-collapse .kp-filter-card-body {
        min-height: calc(100dvh - 1.5rem) !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 1.25rem !important;
    }
    body.kp-marketplace-browse-page.kp-market-filter-modal-open .kp-filter-mobile-head {
        position: sticky !important;
        top: 0 !important;
        z-index: 2 !important;
        min-height: 0 !important;
        padding: 0 0 .55rem 0 !important;
        margin-bottom: .75rem !important;
        background: inherit !important;
        border-bottom: 1px solid rgba(152,166,173,.18) !important;
        justify-content: space-between !important;
    }
    body.kp-marketplace-browse-page.kp-market-filter-modal-open .kp-filter-mobile-head .header-title {
        font-size: 1rem !important;
        font-weight: 700 !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
    }
    body.kp-marketplace-browse-page.kp-market-filter-modal-open .kp-filter-mobile-head .header-title .mdi {
        font-size: 1rem !important;
        vertical-align: 0 !important;
    }
    body.kp-marketplace-browse-page.kp-market-filter-modal-open .kp-market-filter-close-icon {
        position: static !important;
        transform: none !important;
        width: 34px !important;
        height: 34px !important;
        padding: 0 !important;
        border-radius: 999px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1rem !important;
        text-decoration: none !important;
    }
    body.kp-marketplace-browse-page.kp-market-filter-modal-open .kp-filter-card-body > .form-group {
        padding: 0 !important;
        margin-bottom: .75rem !important;
        border-bottom: 0 !important;
    }
    body.kp-marketplace-browse-page.kp-market-filter-modal-open .kp-filter-card-body > .form-row {
        padding: 0 !important;
        margin-left: -.5rem !important;
        margin-right: -.5rem !important;
        margin-bottom: .75rem !important;
        border-bottom: 0 !important;
    }
    body.kp-marketplace-browse-page.kp-market-filter-modal-open .kp-filter-card-body label {
        font-size: .875rem !important;
        font-weight: 600 !important;
        margin-bottom: .35rem !important;
    }
    body.kp-marketplace-browse-page.kp-market-filter-modal-open .kp-market-filter-mobile-footer {
        position: sticky !important;
        bottom: 0 !important;
        z-index: 2 !important;
        margin-top: auto !important;
        padding: .9rem 0 calc(.7rem + env(safe-area-inset-bottom, 0px)) 0 !important;
        background: inherit !important;
        border-top: 0 !important;
    }
    body.kp-marketplace-browse-page.kp-market-filter-modal-open .kp-market-filter-reset-mobile,
    body.kp-marketplace-browse-page.kp-market-filter-modal-open .kp-market-filter-footer-toggle {
        min-height: 38px !important;
        font-size: .875rem !important;
        font-weight: 600 !important;
    }
}

@media (max-width: 575.98px) {
    body.kp-marketplace-browse-page .marketplace-card,
    body.kp-marketplace-browse-page .kp-market-grid-item > .marketplace-card {
        height: auto !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }
    body.kp-marketplace-browse-page .marketplace-card .kp-market-card-media,
    body.kp-marketplace-browse-page .marketplace-card .card-img-top,
    body.kp-marketplace-browse-page .marketplace-card .kp-card-carousel,
    body.kp-marketplace-browse-page .marketplace-card .kp-card-carousel .carousel-inner,
    body.kp-marketplace-browse-page .marketplace-card .kp-card-carousel .carousel-item {
        aspect-ratio: auto !important;
        height: 230px !important;
        min-height: 230px !important;
        max-height: 230px !important;
    }
    body.kp-marketplace-browse-page .marketplace-card .kp-card-carousel img,
    body.kp-marketplace-browse-page .marketplace-card .card-img-top {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    body.kp-marketplace-browse-page .marketplace-card .kp-line-clamp {
        min-height: 0 !important;
        max-height: none !important;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    body.kp-marketplace-browse-page .marketplace-card .kp-market-card-media,
    body.kp-marketplace-browse-page .marketplace-card .card-img-top,
    body.kp-marketplace-browse-page .marketplace-card .kp-card-carousel,
    body.kp-marketplace-browse-page .marketplace-card .kp-card-carousel .carousel-inner,
    body.kp-marketplace-browse-page .marketplace-card .kp-card-carousel .carousel-item {
        aspect-ratio: auto !important;
        height: 235px !important;
        min-height: 235px !important;
        max-height: 235px !important;
    }
    body.kp-marketplace-browse-page .marketplace-card .kp-card-carousel img,
    body.kp-marketplace-browse-page .marketplace-card .card-img-top {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}


/* Kuulaportti marketplace v6.0 mobile my-marketplace quick polish
   Wide action buttons and compact Select2 status labels on small screens. */
@media (max-width: 575.98px) {
    body.kp-marketplace-scope .mp-my-listing-filter-row .select2-container .select2-selection__rendered .badge,
    body.kp-marketplace-scope .mp-deals-filter-row .select2-container .select2-selection__rendered .badge,
    body.kp-marketplace-scope .mp-admin-listing-filter-row .select2-container .select2-selection__rendered .badge,
    body.kp-marketplace-scope .select2-container .mp-status-select2-selection .badge {
        display: none !important;
    }
    body.kp-marketplace-scope .mp-my-listing-filter-row .select2-container .select2-selection__rendered,
    body.kp-marketplace-scope .mp-deals-filter-row .select2-container .select2-selection__rendered,
    body.kp-marketplace-scope .mp-admin-listing-filter-row .select2-container .select2-selection__rendered {
        padding-right: 1.45rem !important;
    }
    body.kp-marketplace-scope .mp-my-listing-filter-row .select2-container .mp-status-select2-label,
    body.kp-marketplace-scope .mp-deals-filter-row .select2-container .mp-status-select2-label,
    body.kp-marketplace-scope .mp-admin-listing-filter-row .select2-container .mp-status-select2-label {
        display: block !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body.kp-marketplace-scope #mp-my-listings-table tbody td.mp-my-table-actions,
    body.kp-marketplace-scope #mp-my-listings-table tbody td:last-child,
    body.kp-marketplace-scope #mp-deals-table tbody td:last-child,
    body.kp-marketplace-scope #mp-admin-listings-table tbody td:last-child,
    body.kp-marketplace-scope #mp-admin-reports-table tbody td:last-child,
    body.kp-marketplace-scope #mp-admin-paid-table tbody td:last-child,
    body.kp-marketplace-scope #mp-admin-promos-table tbody td:last-child,
    body.kp-marketplace-scope #mp-admin-logs-table tbody td:last-child,
    body.kp-marketplace-scope .mp-admin-category-table tbody td:last-child,
    body.kp-marketplace-scope #mp-admin-moderators table tbody td:last-child,
    body.kp-marketplace-scope .mp-event-monetization-table tbody td:last-child {
        display: block !important;
        width: 100% !important;
        padding-top: .45rem !important;
    }
    body.kp-marketplace-scope #mp-my-listings-table .mp-my-table-actions,
    body.kp-marketplace-scope #mp-my-listings-table .mp-my-table-actions .dropdown,
    body.kp-marketplace-scope #mp-my-listings-table .mp-action-dropdown-btn,
    body.kp-marketplace-scope #mp-my-listings-table .dropdown-toggle,
    body.kp-marketplace-scope #mp-deals-table .dropdown,
    body.kp-marketplace-scope #mp-deals-table .mp-action-dropdown-btn,
    body.kp-marketplace-scope #mp-deals-table .dropdown-toggle,
    body.kp-marketplace-scope #mp-admin-listings-table .mp-action-dropdown-btn,
    body.kp-marketplace-scope #mp-admin-reports-table .mp-action-dropdown-btn,
    body.kp-marketplace-scope #mp-admin-paid-table .mp-action-dropdown-btn,
    body.kp-marketplace-scope #mp-admin-promos-table .mp-action-dropdown-btn,
    body.kp-marketplace-scope #mp-admin-logs-table .mp-action-dropdown-btn,
    body.kp-marketplace-scope .mp-admin-category-table .mp-action-dropdown-btn,
    body.kp-marketplace-scope #mp-admin-moderators .mp-action-dropdown-btn {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        justify-content: center !important;
        text-align: center !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: .35rem !important;
    }
    body.kp-marketplace-scope #mp-my-listings-table .mp-action-dropdown-btn .mdi,
    body.kp-marketplace-scope #mp-my-listings-table .dropdown-toggle .mdi,
    body.kp-marketplace-scope #mp-deals-table .mp-action-dropdown-btn .mdi,
    body.kp-marketplace-scope #mp-admin-listings-table .mp-action-dropdown-btn .mdi,
    body.kp-marketplace-scope #mp-admin-reports-table .mp-action-dropdown-btn .mdi,
    body.kp-marketplace-scope #mp-admin-paid-table .mp-action-dropdown-btn .mdi,
    body.kp-marketplace-scope #mp-admin-promos-table .mp-action-dropdown-btn .mdi,
    body.kp-marketplace-scope #mp-admin-logs-table .mp-action-dropdown-btn .mdi,
    body.kp-marketplace-scope .mp-admin-category-table .mp-action-dropdown-btn .mdi,
    body.kp-marketplace-scope #mp-admin-moderators .mp-action-dropdown-btn .mdi {
        display: inline-block !important;
        opacity: 1 !important;
        font-size: 1rem !important;
        line-height: 1 !important;
        margin-right: .15rem !important;
    }
}


/* Marketplace v6.1: mobile messenger thread-first behaviour and composer stability. */
@media (max-width: 767.98px) {
  body.kp-marketplace-scope #mp-tab-messages .mp-chat-shell {
    margin-top: .5rem !important;
  }
  body.kp-marketplace-scope #mp-tab-messages .mp-chat-shell:not(.mp-chat-open) .mp-chat-sidebar {
    display: block !important;
  }
  body.kp-marketplace-scope #mp-tab-messages .mp-chat-shell:not(.mp-chat-open) .mp-chat-main {
    display: none !important;
  }
  body.kp-marketplace-scope #mp-tab-messages .mp-chat-thread-list[data-simplebar] {
    height: auto !important;
    max-height: none !important;
    min-height: 360px !important;
  }
  body.kp-marketplace-scope #mp-tab-messages .mp-chat-thread-list .simplebar-content-wrapper {
    max-height: none !important;
  }
  body.kp-marketplace-scope #mp-tab-messages .mp-chat-shell.mp-chat-open {
    max-height: none !important;
    overflow: visible !important;
  }
  body.kp-marketplace-scope #mp-tab-messages .mp-chat-shell.mp-chat-open .mp-chat-main,
  body.kp-marketplace-scope #mp-tab-messages .mp-chat-shell.mp-chat-open #mp-chat-panel {
    min-height: 0 !important;
  }
  body.kp-marketplace-scope #mp-tab-messages .mp-chat-messages[data-simplebar] {
    height: min(46vh, 340px) !important;
    max-height: min(46vh, 340px) !important;
    min-height: 230px !important;
  }
  body.kp-marketplace-scope .mp-chat-composer {
    padding: .55rem !important;
  }
  body.kp-marketplace-scope .mp-chat-composer .input-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100% !important;
  }
  body.kp-marketplace-scope .mp-chat-composer .input-group-prepend,
  body.kp-marketplace-scope .mp-chat-composer .input-group-append {
    display: flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
  }
  body.kp-marketplace-scope .mp-chat-composer #mp-chat-attach,
  body.kp-marketplace-scope .mp-chat-composer #mp-chat-send {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    min-width: 48px !important;
    height: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  body.kp-marketplace-scope .mp-chat-composer #mp-chat-body {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 1% !important;
    resize: vertical;
  }
}

@media (max-width: 575.98px) {
  body.kp-marketplace-scope #mp-tab-messages .mp-chat-messages[data-simplebar] {
    height: min(42vh, 315px) !important;
    max-height: min(42vh, 315px) !important;
    min-height: 220px !important;
  }
  body.kp-marketplace-scope .mp-chat-composer #mp-chat-attach,
  body.kp-marketplace-scope .mp-chat-composer #mp-chat-send {
    width: 44px !important;
    min-width: 44px !important;
  }
}

/* Kuulaportti marketplace v6.2 front page rollback/fix
   Strictly scoped to marketplace.php browse page. Restores the pre-v57 listing-card and filter behaviour,
   prevents the Wodwell-style mobile toolbar from affecting the page, and fixes dynamic carousel controls. */
body.kp-marketplace-browse-page .kp-card-carousel .carousel-control-prev,
body.kp-marketplace-browse-page .kp-card-carousel .carousel-control-next {
    z-index: 30 !important;
    pointer-events: auto !important;
}
body.kp-marketplace-browse-page .kp-card-carousel .carousel-control-prev-icon,
body.kp-marketplace-browse-page .kp-card-carousel .carousel-control-next-icon {
    width: 1.65rem !important;
    height: 1.65rem !important;
    pointer-events: none !important;
    filter: drop-shadow(0 .15rem .3rem rgba(0,0,0,.35));
}
body.kp-marketplace-browse-page .kp-card-carousel .carousel-item > a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 991.98px) {
    body.kp-marketplace-browse-page .kp-market-topbar {
        position: static !important;
        top: auto !important;
        z-index: auto !important;
        display: flex !important;
        flex-wrap: wrap !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-left: -12px !important;
        margin-right: -12px !important;
    }
    body.kp-marketplace-browse-page .kp-market-topbar > .col-lg-7,
    body.kp-marketplace-browse-page .kp-market-topbar > .col-lg-5,
    body.kp-marketplace-browse-page .kp-market-topbar > .col-xl-8,
    body.kp-marketplace-browse-page .kp-market-topbar > .col-xl-4,
    body.kp-marketplace-browse-page .kp-market-actions {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    body.kp-marketplace-browse-page .kp-market-topbar .kp-market-search,
    body.kp-marketplace-browse-page .kp-market-search .input-group {
        width: 100% !important;
    }
    body.kp-marketplace-browse-page .kp-market-mobile-search-group,
    body.kp-marketplace-browse-page .kp-market-mobile-filter-inline,
    body.kp-marketplace-browse-page .kp-market-mobile-user-actions {
        display: none !important;
    }
    body.kp-marketplace-browse-page .kp-market-actions {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        margin-left: 0 !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        text-align: left !important;
    }
    body.kp-marketplace-browse-page .kp-market-actions .btn {
        height: auto !important;
        min-height: calc(1.5em + .5rem + 2px) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        min-width: 0 !important;
        padding: .25rem .5rem !important;
        font-size: .875rem !important;
        white-space: nowrap !important;
    }
    body.kp-marketplace-browse-page .kp-market-actions .btn .mdi {
        font-size: 1rem !important;
        margin-right: .25rem !important;
    }
    body.kp-marketplace-browse-page .kp-market-toolbar .kp-market-filter-button,
    body.kp-marketplace-browse-page #market-filter-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    body.kp-marketplace-browse-page #marketplace-layout {
        margin-top: 0 !important;
    }
}

@media (max-width: 575.98px) {
    body.kp-marketplace-browse-page #market-content-col {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    body.kp-marketplace-browse-page #market-grid.kp-market-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        min-height: 0 !important;
        margin-left: -6px !important;
        margin-right: -6px !important;
        overflow-anchor: auto !important;
    }
    body.kp-marketplace-browse-page #market-grid > .kp-market-grid-item,
    body.kp-marketplace-browse-page .kp-market-layout.filters-collapsed #market-grid > .kp-market-grid-item {
        position: static !important;
        transform: none !important;
        left: auto !important;
        top: auto !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
        margin-bottom: .85rem !important;
    }
    body.kp-marketplace-browse-page #market-grid > .kp-market-grid-item > .marketplace-card,
    body.kp-marketplace-browse-page .marketplace-card {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        border-radius: .35rem !important;
    }
    body.kp-marketplace-browse-page .marketplace-card .position-relative.kp-market-card-media,
    body.kp-marketplace-browse-page .marketplace-card .kp-market-card-media,
    body.kp-marketplace-browse-page .marketplace-card .card-img-top,
    body.kp-marketplace-browse-page .marketplace-card .kp-card-carousel,
    body.kp-marketplace-browse-page .marketplace-card .kp-card-carousel .carousel-inner,
    body.kp-marketplace-browse-page .marketplace-card .kp-card-carousel .carousel-item {
        width: 100% !important;
        height: 230px !important;
        min-height: 230px !important;
        max-height: 230px !important;
        aspect-ratio: auto !important;
    }
    body.kp-marketplace-browse-page .marketplace-card .kp-card-carousel img,
    body.kp-marketplace-browse-page .marketplace-card .card-img-top {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    body.kp-marketplace-browse-page .marketplace-card .kp-market-card-body {
        padding: .7rem .85rem .85rem !important;
    }
    body.kp-marketplace-browse-page .marketplace-card .kp-line-clamp {
        min-height: 0 !important;
        max-height: none !important;
        -webkit-line-clamp: 3 !important;
    }
    body.kp-marketplace-browse-page .marketplace-card .kp-market-seller {
        margin-bottom: .35rem !important;
    }
    body.kp-marketplace-browse-page .marketplace-card .btn-block {
        margin-top: .5rem !important;
    }
}

/* v6.3 mobile card/action/admin refinements */
@media (max-width: 767.98px) {
  body.kp-marketplace-scope #mp-my-listings-table tbody td:last-child,
  body.kp-marketplace-admin-page #mp-admin-listings-table tbody td:last-child,
  body.kp-marketplace-admin-page #mp-admin-categories-table tbody td:last-child,
  body.kp-marketplace-admin-page #mp-admin-moderators table tbody td:last-child,
  body.kp-marketplace-admin-page #mp-admin-reports-table tbody td:last-child,
  body.kp-marketplace-admin-page #mp-admin-paid-table tbody td:last-child,
  body.kp-marketplace-admin-page #mp-admin-promos-table tbody td:last-child,
  body.kp-marketplace-admin-page #mp-admin-logs-table tbody td:last-child {
    width: 100% !important;
  }

  body.kp-marketplace-scope .mp-my-table-actions,
  body.kp-marketplace-admin-page .mp-admin-actions,
  body.kp-marketplace-admin-page .kp-mobile-card-table .dropdown,
  body.kp-marketplace-scope .kp-mobile-card-table .dropdown {
    width: 100% !important;
  }

  body.kp-marketplace-scope .mp-mobile-wide-action-btn,
  body.kp-marketplace-scope .kp-mobile-card-table .mp-action-dropdown-btn,
  body.kp-marketplace-admin-page .kp-mobile-card-table .mp-action-dropdown-btn {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: .7rem .95rem !important;
    border-radius: .8rem !important;
  }

  body.kp-marketplace-scope .mp-mobile-wide-action-btn .mdi,
  body.kp-marketplace-scope .kp-mobile-card-table .mp-action-dropdown-btn .mdi,
  body.kp-marketplace-admin-page .kp-mobile-card-table .mp-action-dropdown-btn .mdi,
  body.kp-marketplace-scope .kp-mobile-card-table .dropdown-item .mdi,
  body.kp-marketplace-admin-page .kp-mobile-card-table .dropdown-item .mdi {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.05rem !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  body.kp-marketplace-scope .mp-mobile-wide-action-btn .mdi,
  body.kp-marketplace-scope .kp-mobile-card-table .mp-action-dropdown-btn .mdi,
  body.kp-marketplace-admin-page .kp-mobile-card-table .mp-action-dropdown-btn .mdi {
    margin-right: .35rem !important;
  }

  body.kp-marketplace-scope #mp-my-listings-table .dropdown-menu,
  body.kp-marketplace-admin-page #mp-admin-listings-table .dropdown-menu,
  body.kp-marketplace-admin-page #mp-admin-categories-table .dropdown-menu,
  body.kp-marketplace-admin-page #mp-admin-moderators table .dropdown-menu,
  body.kp-marketplace-admin-page #mp-admin-reports-table .dropdown-menu,
  body.kp-marketplace-admin-page #mp-admin-paid-table .dropdown-menu,
  body.kp-marketplace-admin-page #mp-admin-promos-table .dropdown-menu,
  body.kp-marketplace-admin-page #mp-admin-logs-table .dropdown-menu {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    min-width: min(14rem, calc(100vw - 2.25rem)) !important;
    max-width: calc(100vw - 2.25rem) !important;
  }

  body.kp-marketplace-admin-page #mp-admin-listings-table tbody td.mp-admin-party-cell::before {
    display: block !important;
    margin: 0 0 .3rem !important;
    font-size: .72rem !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    color: #98a6ad !important;
    content: '';
  }

  body.kp-marketplace-admin-page #mp-admin-listings-table tbody td.mp-admin-party-seller::before {
    content: 'Seller' !important;
  }

  body.kp-marketplace-admin-page #mp-admin-listings-table tbody td.mp-admin-party-buyer::before {
    content: 'Buyer' !important;
  }

  body.kp-marketplace-admin-page .mp-show-deleted-btn {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  body.kp-marketplace-admin-page .mp-show-deleted-btn .d-md-inline {
    display: none !important;
  }

  body.kp-marketplace-admin-page .mp-show-deleted-icons {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1px !important;
    width: 100% !important;
    font-size: 1.08rem !important;
    line-height: 1 !important;
  }

  body.kp-marketplace-admin-page .mp-show-deleted-icons .mdi {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  body.kp-marketplace-admin-page .mp-show-deleted-icons .mdi:last-child {
    margin-left: -2px !important;
    font-size: .95rem !important;
  }
}

/* v6.4 marketplace.php hard rollback to v5.4 front page behaviour
   Keep newer admin/my marketplace fixes, but force browse page cards/filter toolbar back to the v5.4 layout. */
body.kp-marketplace-browse-page .kp-market-topbar {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
@media (max-width: 991.98px) {
    body.kp-marketplace-browse-page .kp-market-topbar {
        display: flex !important;
        flex-wrap: wrap !important;
        margin-left: -12px !important;
        margin-right: -12px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    body.kp-marketplace-browse-page .kp-market-topbar > .col-lg-7,
    body.kp-marketplace-browse-page .kp-market-topbar > .col-lg-5,
    body.kp-marketplace-browse-page .kp-market-topbar > .col-xl-8,
    body.kp-marketplace-browse-page .kp-market-topbar > .col-xl-4 {
        position: relative !important;
        width: 100% !important;
        min-height: 1px !important;
        padding-right: 12px !important;
        padding-left: 12px !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: .5rem !important;
    }
    body.kp-marketplace-browse-page .kp-market-actions {
        display: block !important;
        text-align: left !important;
        margin-left: 0 !important;
    }
    body.kp-marketplace-browse-page .kp-market-actions .btn {
        height: auto !important;
        min-height: calc(1.5em + .5rem + 2px) !important;
        width: auto !important;
        max-width: none !important;
        padding: .25rem .5rem !important;
        font-size: .875rem !important;
        border-radius: .2rem !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    body.kp-marketplace-browse-page .kp-market-toolbar .kp-market-filter-button,
    body.kp-marketplace-browse-page #market-filter-toggle {
        display: inline-flex !important;
    }
}

body.kp-marketplace-browse-page #market-grid.kp-market-grid {
    min-height: 0 !important;
    overflow-anchor: auto !important;
}
body.kp-marketplace-browse-page .kp-market-grid-item {
    display: flex !important;
}
body.kp-marketplace-browse-page .kp-market-grid-item > .marketplace-card,
body.kp-marketplace-browse-page .marketplace-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 560px !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}
body.kp-marketplace-browse-page .marketplace-card .kp-market-card-media,
body.kp-marketplace-browse-page .marketplace-card .card-img-top,
body.kp-marketplace-browse-page .marketplace-card .kp-card-carousel,
body.kp-marketplace-browse-page .marketplace-card .kp-card-carousel .carousel-inner,
body.kp-marketplace-browse-page .marketplace-card .kp-card-carousel .carousel-item {
    width: 100% !important;
    height: 235px !important;
    min-height: 235px !important;
    max-height: 235px !important;
    aspect-ratio: auto !important;
}
body.kp-marketplace-browse-page .marketplace-card .kp-card-carousel img,
body.kp-marketplace-browse-page .marketplace-card .card-img-top {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
body.kp-marketplace-browse-page .marketplace-card .kp-market-card-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding-top: .55rem !important;
}
body.kp-marketplace-browse-page .marketplace-card .kp-card-meta-row {
    margin-bottom: .25rem !important;
    min-height: 1.35rem !important;
}
body.kp-marketplace-browse-page .marketplace-card .kp-line-clamp {
    -webkit-line-clamp: 3 !important;
    min-height: 3.55rem !important;
    max-height: 3.55rem !important;
    margin-bottom: .35rem !important;
}
body.kp-marketplace-browse-page .marketplace-card .kp-market-card-bottom {
    flex: 0 0 auto !important;
    min-height: 0 !important;
}
body.kp-marketplace-browse-page .marketplace-card .kp-price {
    min-height: 1.55rem !important;
    line-height: 1.25 !important;
}
body.kp-marketplace-browse-page .marketplace-card .kp-market-seller {
    min-height: 32px !important;
    padding: .24rem .42rem !important;
    margin-bottom: .25rem !important;
}
@media (min-width: 1367px) {
    body.kp-marketplace-browse-page .kp-market-grid-item > .marketplace-card,
    body.kp-marketplace-browse-page .marketplace-card { height: 545px !important; }
    body.kp-marketplace-browse-page .marketplace-card .kp-market-card-media,
    body.kp-marketplace-browse-page .marketplace-card .card-img-top,
    body.kp-marketplace-browse-page .marketplace-card .kp-card-carousel,
    body.kp-marketplace-browse-page .marketplace-card .kp-card-carousel .carousel-inner,
    body.kp-marketplace-browse-page .marketplace-card .kp-card-carousel .carousel-item {
        height: 225px !important;
        min-height: 225px !important;
        max-height: 225px !important;
    }
}
@media (max-width: 575.98px) {
    body.kp-marketplace-browse-page .kp-market-grid-item > .marketplace-card,
    body.kp-marketplace-browse-page .marketplace-card { height: auto !important; }
    body.kp-marketplace-browse-page .marketplace-card .kp-market-card-media,
    body.kp-marketplace-browse-page .marketplace-card .card-img-top,
    body.kp-marketplace-browse-page .marketplace-card .kp-card-carousel,
    body.kp-marketplace-browse-page .marketplace-card .kp-card-carousel .carousel-inner,
    body.kp-marketplace-browse-page .marketplace-card .kp-card-carousel .carousel-item {
        height: 230px !important;
        min-height: 230px !important;
        max-height: 230px !important;
    }
    body.kp-marketplace-browse-page .marketplace-card .kp-line-clamp {
        min-height: 0 !important;
        max-height: none !important;
    }
}

/* v6.5 listing/chat polish */
body.kp-marketplace-listing-page .kp-listing-tabs-row {
    margin-top: 0 !important;
}
body.kp-marketplace-listing-page .kp-completed-deal-row {
    margin-top: 0 !important;
}
body.kp-marketplace-scope #mp-my-tabs.mp-my-tabs-messages-active,
body.kp-marketplace-scope .mp-my-nav.mp-my-tabs-messages-active {
    margin-bottom: 0 !important;
}
@media (max-width: 767.98px) {
    body.kp-marketplace-listing-page .kp-listing-actions {
        justify-content: center !important;
        text-align: center !important;
    }
    body.kp-marketplace-listing-page .kp-listing-actions .btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 9.5rem;
        margin-left: .25rem !important;
        margin-right: .25rem !important;
    }
}

/* removed obsolete marketplace mobile override block: Kuulaportti marketplace v6.6 */
@media (max-width: 767.98px) {
  body.kp-marketplace-browse-page #market-grid.kp-market-grid,
  body.kp-marketplace-browse-page #market-grid.grid {
    display: flex !important;
    flex-wrap: wrap !important;
    height: auto !important;
    min-height: 0 !important;
    overflow-anchor: auto;
  }

  body.kp-marketplace-browse-page #market-grid > .grid-item,
  body.kp-marketplace-browse-page #market-grid > .kp-market-grid-item {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-left: .5rem !important;
    padding-right: .5rem !important;
  }

  body.kp-marketplace-browse-page .marketplace-card,
  body.kp-marketplace-browse-page .kp-market-grid-item > .marketplace-card {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  body.kp-marketplace-browse-page .marketplace-card .kp-market-card-media {
    width: 100% !important;
    aspect-ratio: 4 / 3;
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
    background: rgba(152,166,173,.12);
  }

  body.kp-marketplace-browse-page .marketplace-card .kp-market-card-media .carousel,
  body.kp-marketplace-browse-page .marketplace-card .kp-market-card-media .carousel-inner,
  body.kp-marketplace-browse-page .marketplace-card .kp-market-card-media .carousel-item,
  body.kp-marketplace-browse-page .marketplace-card .kp-market-card-media .carousel-item > a {
    width: 100% !important;
    height: 100% !important;
  }

  body.kp-marketplace-browse-page .marketplace-card .kp-market-card-media img.card-img-top,
  body.kp-marketplace-browse-page .marketplace-card .kp-market-card-media .carousel-item img.card-img-top {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
  }

  body.kp-marketplace-browse-page .kp-card-carousel .carousel-control-prev,
  body.kp-marketplace-browse-page .kp-card-carousel .carousel-control-next {
    z-index: 6 !important;
    pointer-events: auto !important;
  }

  body.kp-marketplace-browse-page .kp-card-carousel .carousel-control-prev-icon,
  body.kp-marketplace-browse-page .kp-card-carousel .carousel-control-next-icon {
    pointer-events: none !important;
  }

  body.kp-marketplace-browse-page #market-loading,
  body.kp-marketplace-browse-page #market-more,
  body.kp-marketplace-browse-page #market-empty {
    overflow-anchor: none;
  }
}

/* Kuulaportti marketplace v6.7
   Mobile filter Select2 normalization inside fullscreen filter modal. */
@media (max-width: 991.98px) {
  body.kp-marketplace-browse-page.kp-market-filter-modal-open #market-filter-col .form-control,
  body.kp-marketplace-browse-page.kp-market-filter-modal-open #market-filter-col .select2-container .select2-selection--single {
    min-height: calc(1.5em + .9rem + 2px) !important;
    height: calc(1.5em + .9rem + 2px) !important;
  }

  body.kp-marketplace-browse-page.kp-market-filter-modal-open #market-filter-col .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: calc(1.5em + .9rem) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  body.kp-marketplace-browse-page.kp-market-filter-modal-open #market-filter-col .select2-container .select2-selection--single .select2-selection__arrow {
    height: calc(1.5em + .9rem) !important;
  }

  body.kp-marketplace-browse-page.kp-market-filter-modal-open #market-filter-col .select2-container {
    width: 100% !important;
  }

  body.kp-marketplace-browse-page.kp-market-filter-modal-open #market-filter-col .select2-container--open,
  body.kp-marketplace-browse-page.kp-market-filter-modal-open #market-filter-col .select2-dropdown {
    z-index: 1090 !important;
  }

  body.kp-marketplace-browse-page.kp-market-filter-modal-open #market-filter-col .select2-dropdown {
    border-color: rgba(152,166,173,.28) !important;
    box-shadow: 0 .5rem 1.5rem rgba(49,58,70,.18) !important;
  }
}
body.kp-marketplace-editor-page .kp-media-action-menu .mp-action-dropdown-btn {
  width: 2rem !important;
  min-width: 2rem !important;
  height: 2rem !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
body.kp-marketplace-editor-page .kp-media-action-menu .mp-action-dropdown-btn:after {
  display: none !important;
}
body.kp-marketplace-my-page #mp-deals-table th:nth-child(3),
body.kp-marketplace-my-page #mp-deals-table td:nth-child(3) {
  text-align: left !important;
}
body.kp-marketplace-my-page #mp-my-listings-table th:last-child {
  text-align: right !important;
}
body.kp-marketplace-my-page #mp-my-listings-table .dropdown-menu {
  z-index: 2070 !important;
}
body.kp-marketplace-my-page .mp-deal-role-filter .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
}
@media (min-width: 768px) {
  body.kp-marketplace-my-page .mp-deals-filter-row {
    align-items: center !important;
  }
  body.kp-marketplace-my-page .mp-deals-filter-row .mp-filter-role-col {
    display: flex !important;
  }
}
@media (max-width: 767.98px) {
body.kp-marketplace-my-page .mp-deals-filter-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(8rem, 9rem) !important;
    gap: .45rem !important;
    align-items: stretch !important;
  }
  body.kp-marketplace-my-page .mp-deals-filter-row > [class*="col-"] {
    width: auto !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
  }
  body.kp-marketplace-my-page .mp-deals-filter-row .mp-filter-search-col { grid-column: 1 / 2; }
  body.kp-marketplace-my-page .mp-deals-filter-row .mp-filter-role-col { grid-column: 1 / 3; grid-row: 2; }
  body.kp-marketplace-my-page .mp-deals-filter-row .mp-filter-status-col { grid-column: 2 / 3; grid-row: 1; }
  body.kp-marketplace-my-page .mp-deal-role-filter .btn {
    flex: 1 1 0 !important;
    padding-left: .35rem !important;
    padding-right: .35rem !important;
    font-size: .78rem !important;
  }
  body.kp-marketplace-my-page #mp-deals-table td:nth-child(3) {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }
}

/* removed obsolete marketplace mobile override block: Kuulaportti marketplace v6.9 */
/* Marketplace v7.2 refinements */
body.kp-marketplace-form-page .kp-marketplace-savebar-wrap > .card,
body.kp-editor-savebar-fixed .kp-marketplace-savebar-wrap > .card {
  z-index: 2070 !important;
  border-top: 1px solid rgba(152,166,173,.22) !important;
}
body.kp-marketplace-form-page .kp-editor-action-card {
  box-shadow: none !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
}
body.kp-marketplace-listing-page .kp-seller-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .2rem;
  max-height: 2.1rem;
  overflow: hidden;
  position: relative;
  margin-top: .35rem !important;
  margin-bottom: .45rem !important;
}
body.kp-marketplace-listing-page .kp-seller-badges:hover,
body.kp-marketplace-listing-page .kp-seller-badges:focus-within {
  max-height: 12rem;
  overflow: visible;
  z-index: 3;
}
body.kp-marketplace-listing-page .kp-seller-badges .badge,
body.kp-marketplace-listing-page .kp-seller-badges .btn,
body.kp-marketplace-listing-page .kp-seller-badges a {
  margin: 0 !important;
  font-size: .72rem;
  line-height: 1.15;
  padding: .18rem .34rem;
}
body.kp-marketplace-listing-page .kp-seller-badges::after {
  content: '…';
  position: absolute;
  right: .25rem;
  bottom: 0;
  width: 1.8rem;
  text-align: right;
  color: #98a6ad;
  background: linear-gradient(90deg, rgba(255,255,255,0), #fff 55%);
  pointer-events: none;
}
body.kp-marketplace-listing-page .kp-seller-badges:hover::after,
body.kp-marketplace-listing-page .kp-seller-badges:focus-within::after { display: none; }
html[data-layout-color="dark"] body.kp-marketplace-listing-page .kp-seller-badges::after,
body[data-layout-color="dark"].kp-marketplace-listing-page .kp-seller-badges::after,
body.kp-theme-dark-body.kp-marketplace-listing-page .kp-seller-badges::after {
  background: linear-gradient(90deg, rgba(55,64,74,0), #37404a 55%);
}
body.kp-marketplace-listing-page .kp-listing-status-ribbon {
  z-index: 2;
  margin-top: -.25rem;
  margin-left: -.25rem;
}
body.kp-marketplace-listing-page .kp-listing-main-card.ribbon-box .ribbon-content {
  clear: both;
}
@media (max-width: 767.98px) {
  body.kp-marketplace-listing-page .kp-listing-status-ribbon { margin-bottom: .75rem; }
}

/* Marketplace v7.3 cleanup and responsive refinements */
body.kp-marketplace-listing-page .kp-seller-badges {
  gap: .28rem !important;
  max-height: 2.6rem !important;
  align-content: flex-start;
}
body.kp-marketplace-listing-page .kp-seller-badges .badge,
body.kp-marketplace-listing-page .kp-seller-badges .btn,
body.kp-marketplace-listing-page .kp-seller-badges a {
  font-size: clamp(.74rem, .55vw, .84rem) !important;
  line-height: 1.25 !important;
  padding: .25em .45em !important;
}
body.kp-marketplace-listing-page .kp-seller-badges:hover,
body.kp-marketplace-listing-page .kp-seller-badges:focus-within {
  max-height: 14rem !important;
  overflow: visible !important;
}
body.kp-marketplace-listing-page .mp-chat-meta-badge {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  line-height: 1.2;
}
body.kp-marketplace-listing-page .mp-completed-review-item .badge {
  white-space: normal;
}
body.kp-marketplace-editor-page .mp-safety-card .card-body {
  max-height: min(360px, calc(100vh - 280px));
  overflow: auto;
}
body.kp-marketplace-editor-page .mp-safety-card {
  overflow: hidden;
}
body.kp-marketplace-editor-page .kp-marketplace-savebar-wrap > .card {
  z-index: 2085 !important;
}
body.kp-marketplace-admin-page .mp-admin-nav .nav-link .mdi {
  font-size: 1rem;
  vertical-align: -1px;
}
body.kp-marketplace-admin-page .mp-admin-listing-filter-row .form-control,
body.kp-marketplace-admin-page .mp-admin-report-filter-row .form-control,
body.kp-marketplace-admin-page .mp-admin-category-toolbar .form-control,
body.kp-marketplace-admin-page .mp-admin-moderator-add-row .form-control,
body.kp-marketplace-admin-page .mp-admin-log-filter-row .form-control,
body.kp-marketplace-admin-page .mp-admin-listing-filter-row .select2-selection,
body.kp-marketplace-admin-page .mp-admin-report-filter-row .select2-selection,
body.kp-marketplace-admin-page .mp-admin-category-toolbar .select2-selection,
body.kp-marketplace-admin-page .mp-admin-moderator-add-row .select2-selection,
body.kp-marketplace-admin-page .mp-admin-log-filter-row .select2-selection {
  min-height: 38px;
  height: 38px;
}
body.kp-marketplace-admin-page .mp-admin-suggestion-stats .card-body {
  min-height: 76px;
}
body.kp-marketplace-admin-page #mp-admin-suggestions .list-group-item {
  background: transparent;
}
@media (max-width: 767.98px) {
  body.kp-marketplace-listing-page .kp-seller-badges {
    max-height: 2.35rem !important;
  }
  body.kp-marketplace-listing-page .kp-seller-badges .badge,
  body.kp-marketplace-listing-page .kp-seller-badges .btn,
  body.kp-marketplace-listing-page .kp-seller-badges a {
    font-size: .74rem !important;
  }
  body.kp-marketplace-editor-page .mp-safety-card .card-body {
    max-height: none;
    overflow: visible;
  }
  body.kp-marketplace-editor-page .mp-safety-collapse {
    max-height: 260px;
    overflow: auto;
  }
  body.kp-marketplace-admin-page .mp-admin-listing-filter-row .form-control,
  body.kp-marketplace-admin-page .mp-admin-report-filter-row .form-control,
  body.kp-marketplace-admin-page .mp-admin-category-toolbar .form-control,
  body.kp-marketplace-admin-page .mp-admin-moderator-add-row .form-control,
  body.kp-marketplace-admin-page .mp-admin-log-filter-row .form-control,
  body.kp-marketplace-admin-page .mp-admin-listing-filter-row .select2-selection,
  body.kp-marketplace-admin-page .mp-admin-report-filter-row .select2-selection,
  body.kp-marketplace-admin-page .mp-admin-category-toolbar .select2-selection,
  body.kp-marketplace-admin-page .mp-admin-moderator-add-row .select2-selection,
  body.kp-marketplace-admin-page .mp-admin-log-filter-row .select2-selection {
    min-height: 42px !important;
    height: 42px !important;
  }
}
body.kp-marketplace-admin-page #mp-admin-paid-q,
body.kp-marketplace-admin-page #mp-admin-category-q,
body.kp-marketplace-admin-page #mp-admin-report-q,
body.kp-marketplace-admin-page #mp-admin-listing-q,
body.kp-marketplace-admin-page #mp-admin-listing-status,
body.kp-marketplace-admin-page #mp-admin-report-status,
body.kp-marketplace-admin-page #mp-log-q,
body.kp-marketplace-admin-page #mp-log-type,
body.kp-marketplace-admin-page #mp-log-actor,
body.kp-marketplace-admin-page #mp-moderator-user {
  min-height: 38px;
  height: 38px;
}
@media (max-width: 767.98px) {
  body.kp-marketplace-admin-page #mp-admin-paid-q,
  body.kp-marketplace-admin-page #mp-admin-category-q,
  body.kp-marketplace-admin-page #mp-admin-report-q,
  body.kp-marketplace-admin-page #mp-admin-listing-q,
  body.kp-marketplace-admin-page #mp-admin-listing-status,
  body.kp-marketplace-admin-page #mp-admin-report-status,
  body.kp-marketplace-admin-page #mp-log-q,
  body.kp-marketplace-admin-page #mp-log-type,
  body.kp-marketplace-admin-page #mp-log-actor,
  body.kp-marketplace-admin-page #mp-moderator-user {
    min-height: 42px !important;
    height: 42px !important;
  }
}

/* v7.4 marketplace cleanup and admin/log/editor refinements */
body.kp-marketplace-editor-page .kp-editor-action-card .card-body .btn + .btn { margin-left: .5rem; }
body.kp-marketplace-editor-page .kp-editor-action-card { z-index: 2060; border-top: 1px solid rgba(152,166,173,.22) !important; box-shadow: none !important; }
body.kp-marketplace-editor-page.kp-editor-savebar-fixed .kp-editor-action-card { z-index: 2060 !important; }
body.kp-marketplace-editor-page .mp-listing-side-col { display: flex; flex-direction: column; }
body.kp-marketplace-editor-page .mp-safety-card { flex: 1 1 auto; min-height: 0; }
body.kp-marketplace-editor-page .mp-safety-card .card-body { display: flex; flex-direction: column; min-height: 0; }
body.kp-marketplace-editor-page .mp-safety-collapse { min-height: 0; overflow: auto; scrollbar-width: thin; }
body.kp-marketplace-editor-page .mp-safety-collapse::-webkit-scrollbar { width: 8px; }
body.kp-marketplace-editor-page .mp-safety-collapse::-webkit-scrollbar-thumb { background: rgba(152,166,173,.45); border-radius: 999px; }
@media (min-width: 1200px) {
  body.kp-marketplace-editor-page .mp-listing-side-col { align-self: stretch; }
  body.kp-marketplace-editor-page .mp-safety-collapse { max-height: calc(100vh - 410px); }
}
@media (max-width: 767.98px) {
  body.kp-marketplace-editor-page .kp-editor-action-card .card-body .btn + .btn { margin-left: .35rem; }
  body.kp-marketplace-editor-page .mp-safety-collapse { max-height: 42vh; }
}

body.kp-marketplace-admin-page .mp-admin-log-filter-row,
body.kp-marketplace-admin-page .mp-admin-report-filter-row,
body.kp-marketplace-admin-page .mp-admin-moderator-add-row,
body.kp-marketplace-admin-page .mp-admin-category-toolbar { align-items: center; }
body.kp-marketplace-admin-page .mp-admin-log-filter-row .form-control,
body.kp-marketplace-admin-page .mp-admin-report-filter-row .form-control,
body.kp-marketplace-admin-page .mp-admin-moderator-add-row .form-control,
body.kp-marketplace-admin-page .mp-admin-category-toolbar .form-control,
body.kp-marketplace-admin-page .mp-admin-log-filter-row .select2-container .select2-selection--single,
body.kp-marketplace-admin-page .mp-admin-report-filter-row .select2-container .select2-selection--single,
body.kp-marketplace-admin-page .mp-admin-moderator-add-row .select2-container .select2-selection--single,
body.kp-marketplace-admin-page .mp-admin-category-toolbar .select2-container .select2-selection--single { min-height: calc(1.5em + .9rem + 2px); height: calc(1.5em + .9rem + 2px); }
body.kp-marketplace-admin-page .prod-total-gross[disabled] { font-weight: 400 !important; font-size: .875rem !important; color: inherit !important; background-color: #eef2f7 !important; border-color: #dee2e6 !important; }
html[data-layout-color="dark"] body.kp-marketplace-admin-page .prod-total-gross[disabled],
body[data-layout-color="dark"].kp-marketplace-admin-page .prod-total-gross[disabled],
body.kp-theme-dark-body.kp-marketplace-admin-page .prod-total-gross[disabled] { background-color: #3b4651 !important; border-color: rgba(241,243,250,.15) !important; color: #ced4da !important; }
body.kp-marketplace-admin-page .mp-risk-low { color: #0acf97 !important; }
body.kp-marketplace-admin-page .mp-risk-medium { color: #ffbc00 !important; }
body.kp-marketplace-admin-page .mp-risk-high { color: #fa5c7c !important; }
body.kp-marketplace-admin-page .mp-report-message { max-width: 32rem; }
body.kp-marketplace-admin-page #mp-admin-logs-table td:last-child small { max-width: 24rem; display: inline-block; }
@media (max-width: 767.98px) {
  body.kp-marketplace-admin-page .mp-admin-log-filter-row { display: grid !important; grid-template-columns: 1fr 1fr; gap: .45rem; }
  body.kp-marketplace-admin-page .mp-admin-log-filter-row .mp-log-search-col { grid-column: 1 / -1; margin-top: 0 !important; }
  body.kp-marketplace-admin-page .mp-admin-log-filter-row .mp-log-load-col { grid-column: 1 / -1; margin-top: 0 !important; }
}

body.kp-marketplace-listing-page .kp-seller-badges { display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; max-height: none !important; overflow: visible !important; }
body.kp-marketplace-listing-page .kp-seller-badges .badge { white-space: normal; line-height: 1.15; max-width: 100%; }
@media (min-width: 992px) {
  body.kp-marketplace-listing-page .kp-seller-panel .kp-seller-badges { max-height: 4.8rem; overflow: auto !important; scrollbar-width: thin; }
  body.kp-marketplace-listing-page .kp-seller-panel .kp-seller-badges:hover,
  body.kp-marketplace-listing-page .kp-seller-panel .kp-seller-badges:focus-within { max-height: none; }
}
.mp-chat-read-receipt { opacity: .78; }
.mp-chat-thread .badge.badge-secondary-lighten .mdi-lock-outline { font-size: .85em; }

/* v7.5 marketplace cleanup: editor savebar, profile cards and suggestion/admin polish */
body.kp-marketplace-editor-page .kp-editor-action-card,
body.kp-marketplace-editor-page.kp-editor-savebar-fixed .kp-editor-action-card {
  box-shadow: none !important;
  border-top: 1px solid rgba(152,166,173,.24) !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  z-index: 2140 !important;
}
body.kp-marketplace-editor-page.kp-editor-savebar-fixed .kp-marketplace-savebar-wrap > .card {
  bottom: 0 !important;
}
body.kp-marketplace-editor-page .kp-editor-action-card .card-body {
  justify-content: flex-start !important;
  gap: .5rem !important;
}
body.kp-marketplace-editor-page .kp-editor-action-card .card-body .btn {
  margin: 0 !important;
}
@media (min-width: 1200px) {
  body.kp-marketplace-editor-page .mp-listing-side-col {
    display: flex !important;
    flex-direction: column !important;
  }
  body.kp-marketplace-editor-page .mp-safety-card {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
  }
  body.kp-marketplace-editor-page .mp-safety-card > .card-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  body.kp-marketplace-editor-page .mp-safety-collapse {
    overflow: auto !important;
    scrollbar-width: thin;
  }
}
body.kp-marketplace-editor-page .mp-safety-collapse::-webkit-scrollbar,
body.kp-marketplace-admin-page .mp-admin-suggestion-tabcontent .table-responsive::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
body.kp-marketplace-editor-page .mp-safety-collapse::-webkit-scrollbar-thumb,
body.kp-marketplace-admin-page .mp-admin-suggestion-tabcontent .table-responsive::-webkit-scrollbar-thumb {
  background: rgba(152,166,173,.45);
  border-radius: 999px;
}
body.kp-marketplace-listing-page .kp-seller-badges {
  max-height: none !important;
  overflow: visible !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: .25rem !important;
}
body.kp-marketplace-listing-page .kp-seller-badges .badge {
  font-size: clamp(.72rem, .78vw, .82rem) !important;
  max-width: 100%;
  white-space: normal;
}
body.kp-marketplace-admin-page #mp-admin-suggestions .nav-pills .nav-link {
  white-space: nowrap;
}
body.kp-marketplace-admin-page #mp-admin-suggestions .table-responsive {
  max-height: 56vh;
  overflow: auto;
}
@media (max-width: 767.98px) {
  body.kp-marketplace-editor-page .kp-editor-action-card .card-body {
    gap: .4rem !important;
  }
  body.kp-marketplace-admin-page #mp-admin-suggestions .nav-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  body.kp-marketplace-admin-page #mp-admin-suggestions .nav-pills .nav-item {
    flex: 0 0 auto;
  }
}
body.kp-marketplace-admin-page #mp-admin-suggestions .dataTables_wrapper .row:first-child,
body.kp-marketplace-admin-page #mp-admin-suggestions .dataTables_wrapper .row:last-child {
  margin-left: 0;
  margin-right: 0;
}
body.kp-marketplace-admin-page #mp-admin-suggestions .table td,
body.kp-marketplace-admin-page #mp-admin-suggestions .table th {
  vertical-align: middle;
}
body.kp-marketplace-form-page .kp-marketplace-savebar.card,
body.kp-marketplace-form-page .kp-marketplace-savebar-fixed.card {
  box-shadow: none !important;
}
body.kp-marketplace-form-page .kp-marketplace-savebar-fixed.card {
  bottom: 0 !important;
  border-radius: .25rem .25rem 0 0 !important;
}
body.kp-marketplace-form-page .kp-marketplace-savebar .card-body,
body.kp-marketplace-form-page .kp-marketplace-savebar-fixed .card-body {
  justify-content: flex-start !important;
  gap: .5rem !important;
}
@media (max-width: 767.98px) {
  body.kp-marketplace-admin-page #mp-admin-suggestions .nav-pills .nav-link {
    padding: .55rem .5rem;
    font-size: .82rem;
    white-space: nowrap;
  }
  body.kp-marketplace-admin-page #mp-admin-suggestions .tab-content .card-body {
    padding: .85rem;
  }
  body.kp-marketplace-form-page .kp-marketplace-savebar-fixed.card {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* removed obsolete marketplace mobile override block: v7.7 marketplace polish: mobile toolbar */
body.kp-marketplace-browse-page .kp-card-carousel .carousel-control-prev,
body.kp-marketplace-browse-page .kp-card-carousel .carousel-control-next {
  z-index: 30 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}
body.kp-marketplace-browse-page .kp-card-carousel .carousel-control-prev *,
body.kp-marketplace-browse-page .kp-card-carousel .carousel-control-next * {
  pointer-events: none !important;
}
body.kp-marketplace-browse-page .kp-card-carousel .carousel-item > a {
  display: block !important;
}

@media (max-width: 767.98px) {
  body.kp-marketplace-my-page #mp-my-listings-table tbody tr:hover,
  body.kp-marketplace-my-page #mp-my-listings-table tbody tr:active,
  body.kp-marketplace-my-page #mp-my-listings-table tbody tr:focus-within {
    background: inherit !important;
    filter: none !important;
  }

  html[data-layout-color="dark"] body.kp-marketplace-my-page #mp-my-listings-table tbody tr:hover,
  body[data-layout-color="dark"].kp-marketplace-my-page #mp-my-listings-table tbody tr:hover,
  body.kp-theme-dark-body.kp-marketplace-my-page #mp-my-listings-table tbody tr:hover {
    background: #37404a !important;
  }

  body.kp-marketplace-my-page #mp-my-listings-table .mp-my-table-metric {
    display: inline-flex !important;
    align-items: center !important;
    gap: .18rem !important;
  }

  body.kp-marketplace-my-page #mp-my-listings-table .mp-my-table-metric .mdi {
    font-size: 1rem !important;
    line-height: 1 !important;
  }

  body.kp-marketplace-my-page #mp-my-listings-table td:nth-child(4)::after,
  body.kp-marketplace-my-page #mp-my-listings-table td:nth-child(5)::before,
  body.kp-marketplace-my-page #mp-my-listings-table td:nth-child(6)::before,
  body.kp-marketplace-scope #mp-my-listings-table td:nth-child(4)::after,
  body.kp-marketplace-scope #mp-my-listings-table td:nth-child(5)::before,
  body.kp-marketplace-scope #mp-my-listings-table td:nth-child(6)::before {
    content: none !important;
    display: none !important;
  }

  body.kp-marketplace-my-page #mp-tab-messages .mp-chat-shell:not(.mp-chat-open) .mp-chat-sidebar {
    height: 58vh !important;
    max-height: 58vh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  body.kp-marketplace-my-page #mp-tab-messages .mp-chat-shell:not(.mp-chat-open) #mp-my-threads {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
  }

  body.kp-marketplace-my-page #mp-tab-messages .mp-chat-shell.mp-chat-open .mp-chat-composer,
  body.kp-marketplace-listing-page .mp-chat-shell.mp-chat-open .mp-chat-composer {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.kp-marketplace-my-page #mp-tab-messages .mp-chat-shell.mp-chat-open .mp-chat-context-actions,
  body.kp-marketplace-listing-page .mp-chat-shell.mp-chat-open .mp-chat-context-actions {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

body.kp-marketplace-admin-page .mp-show-deleted-icons {
  gap: 0 !important;
}
body.kp-marketplace-admin-page .mp-show-deleted-icons .mdi:not(:first-child) {
  display: none !important;
}

body.kp-marketplace-admin-page #mp-admin-suggest-contributors-table img.rounded-circle {
  width: 34px;
  height: 34px;
  object-fit: cover;
}




/* v8.6 marketplace.php mobile layout, fullscreen filters and plugin-free card carousel */
body.kp-marketplace-browse-page .kp-market-topbar {
  display: flex !important;
  align-items: stretch !important;
  gap: .5rem !important;
  width: 100% !important;
  max-width: 100% !important;
}
body.kp-marketplace-browse-page .kp-market-search-col {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
}
body.kp-marketplace-browse-page .kp-market-search,
body.kp-marketplace-browse-page .kp-market-search .input-group,
body.kp-marketplace-browse-page #market-q {
  width: 100% !important;
}
body.kp-marketplace-browse-page .kp-market-actions {
  display: inline-flex !important;
  align-items: stretch !important;
  justify-content: flex-end !important;
  gap: .45rem !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.kp-marketplace-browse-page .kp-market-actions .btn {
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
body.kp-marketplace-browse-page .kp-market-mobile-tools {
  display: inline-flex !important;
  align-items: stretch !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}
body.kp-marketplace-browse-page .kp-market-actions > .kp-market-action-sell,
body.kp-marketplace-browse-page .kp-market-actions > .kp-market-action-my {
  gap: .25rem;
}
body.kp-marketplace-browse-page .kp-market-toolbar #market-filter-toggle {
  display: inline-flex;
}

@media (max-width: 991.98px) {
  body.kp-marketplace-browse-page .kp-market-topbar {
    flex-wrap: nowrap !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  body.kp-marketplace-browse-page .kp-market-search,
  body.kp-marketplace-browse-page .kp-market-search .input-group,
  body.kp-marketplace-browse-page #market-q {
    height: 44px !important;
    min-height: 44px !important;
  }
  body.kp-marketplace-browse-page .kp-market-actions > .kp-market-filter-button-inline,
  body.kp-marketplace-browse-page .kp-market-actions .kp-market-mobile-tools > .kp-market-tools-button {
    flex: 0 0 44px !important;
    width: 44px !important;
    max-width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border-radius: .35rem !important;
    font-size: 0 !important;
    line-height: 1 !important;
  }
  body.kp-marketplace-browse-page .kp-market-actions > .kp-market-filter-button-inline .mdi,
  body.kp-marketplace-browse-page .kp-market-actions .kp-market-mobile-tools > .kp-market-tools-button .mdi {
    font-size: 1.35rem !important;
    line-height: 1 !important;
    margin: 0 !important;
  }
  body.kp-marketplace-browse-page .kp-market-actions > .kp-market-action-sell,
  body.kp-marketplace-browse-page .kp-market-actions > .kp-market-action-my {
    display: none !important;
    visibility: hidden !important;
  }
  body.kp-marketplace-browse-page .kp-market-toolbar #market-filter-toggle {
    display: none !important;
  }

  html.kp-market-filter-modal-open-html,
  body.kp-marketplace-browse-page.kp-market-filter-modal-open {
    overflow: hidden !important;
    height: 100% !important;
  }
  body.kp-marketplace-browse-page #market-filter-col.d-none {
    display: none !important;
  }
  body.kp-marketplace-browse-page.kp-market-filter-modal-open > #market-filter-col,
  body.kp-marketplace-browse-page.kp-market-filter-modal-open #market-filter-col {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: none !important;
    overflow: hidden !important;
    background: #fff !important;
  }
  body.kp-marketplace-browse-page.kp-market-filter-modal-open #market-filter-collapse,
  body.kp-marketplace-browse-page.kp-market-filter-modal-open #market-filter-collapse.card {
    display: block !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }
  body.kp-marketplace-browse-page.kp-market-filter-modal-open #market-filter-collapse .kp-filter-card-body {
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }
  body.kp-marketplace-browse-page.kp-market-filter-modal-open .kp-filter-mobile-head {
    flex: 0 0 auto !important;
    min-height: 0 !important;
    padding: 0 0 .65rem !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    justify-content: space-between !important;
  }
  body.kp-marketplace-browse-page.kp-market-filter-modal-open .kp-filter-fields {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding-top: 0 !important;
  }
  body.kp-marketplace-browse-page.kp-market-filter-modal-open .kp-filter-fields > .form-group,
  body.kp-marketplace-browse-page.kp-market-filter-modal-open .kp-filter-fields > .form-row {
    margin-bottom: .8rem !important;
  }
  body.kp-marketplace-browse-page.kp-market-filter-modal-open .kp-filter-fields label {
    font-size: .875rem !important;
    line-height: 1.2 !important;
    margin-bottom: .35rem !important;
    font-weight: 600 !important;
  }
  body.kp-marketplace-browse-page.kp-market-filter-modal-open #market-filter-col .form-control,
  body.kp-marketplace-browse-page.kp-market-filter-modal-open #market-filter-col .select2-container .select2-selection--single {
    min-height: 44px !important;
    height: 44px !important;
    font-size: .95rem !important;
  }
  body.kp-marketplace-browse-page.kp-market-filter-modal-open .kp-market-filter-mobile-footer {
    flex: 0 0 auto !important;
    position: static !important;
    display: block !important;
    margin: 0 !important;
    padding: .75rem 0 0 !important;
    background: transparent !important;
    border-top: 1px solid rgba(152,166,173,.22) !important;
  }
  body.kp-marketplace-browse-page.kp-market-filter-modal-open .kp-market-filter-back-button,
  body.kp-marketplace-browse-page.kp-market-filter-modal-open .kp-market-filter-mobile-footer #market-filter-apply {
    min-height: 48px !important;
    font-weight: 700 !important;
  }
  html[data-layout-color="dark"] body.kp-marketplace-browse-page.kp-market-filter-modal-open > #market-filter-col,
  body[data-layout-color="dark"].kp-marketplace-browse-page.kp-market-filter-modal-open > #market-filter-col,
  html[data-theme="dark"] body.kp-marketplace-browse-page.kp-market-filter-modal-open > #market-filter-col,
  body.kp-theme-dark-body.kp-marketplace-browse-page.kp-market-filter-modal-open > #market-filter-col,
  html[data-layout-color="dark"] body.kp-marketplace-browse-page.kp-market-filter-modal-open #market-filter-collapse,
  body[data-layout-color="dark"].kp-marketplace-browse-page.kp-market-filter-modal-open #market-filter-collapse,
  html[data-theme="dark"] body.kp-marketplace-browse-page.kp-market-filter-modal-open #market-filter-collapse,
  body.kp-theme-dark-body.kp-marketplace-browse-page.kp-market-filter-modal-open #market-filter-collapse {
    background: #313a46 !important;
    color: #f1f3fa !important;
  }
  html[data-layout-color="dark"] body.kp-marketplace-browse-page.kp-market-filter-modal-open .kp-market-filter-mobile-footer,
  body[data-layout-color="dark"].kp-marketplace-browse-page.kp-market-filter-modal-open .kp-market-filter-mobile-footer,
  html[data-theme="dark"] body.kp-marketplace-browse-page.kp-market-filter-modal-open .kp-market-filter-mobile-footer,
  body.kp-theme-dark-body.kp-marketplace-browse-page.kp-market-filter-modal-open .kp-market-filter-mobile-footer {
    border-top-color: rgba(241,243,250,.14) !important;
  }
}

body.kp-marketplace-browse-page .kp-card-carousel,
body.kp-marketplace-scope .kp-card-carousel {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  touch-action: pan-y !important;
}
body.kp-marketplace-browse-page .kp-card-carousel-inner,
body.kp-marketplace-scope .kp-card-carousel-inner,
body.kp-marketplace-browse-page .kp-mp-carousel-item,
body.kp-marketplace-scope .kp-mp-carousel-item,
body.kp-marketplace-browse-page .kp-mp-carousel-item > a,
body.kp-marketplace-scope .kp-mp-carousel-item > a {
  width: 100% !important;
  height: 100% !important;
}
body.kp-marketplace-browse-page .kp-mp-carousel-item,
body.kp-marketplace-scope .kp-mp-carousel-item {
  display: none !important;
}
body.kp-marketplace-browse-page .kp-mp-carousel-item.active,
body.kp-marketplace-scope .kp-mp-carousel-item.active {
  display: block !important;
}
body.kp-marketplace-browse-page .kp-mp-carousel-item img,
body.kp-marketplace-scope .kp-mp-carousel-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
body.kp-marketplace-browse-page .kp-card-carousel .kp-carousel-control,
body.kp-marketplace-scope .kp-card-carousel .kp-carousel-control {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22% !important;
  max-width: 82px !important;
  min-width: 48px !important;
  height: auto !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  z-index: 214 !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
  cursor: pointer !important;
}
body.kp-marketplace-browse-page .kp-card-carousel button.carousel-control-prev,
body.kp-marketplace-scope .kp-card-carousel button.carousel-control-prev { left: 0 !important; right: auto !important; }
body.kp-marketplace-browse-page .kp-card-carousel button.carousel-control-next,
body.kp-marketplace-scope .kp-card-carousel button.carousel-control-next { right: 0 !important; left: auto !important; }
body.kp-marketplace-browse-page .kp-card-carousel .kp-carousel-control *,
body.kp-marketplace-scope .kp-card-carousel .kp-carousel-control * {
  pointer-events: none !important;
}


/* v8.7 marketplace category chip scroll focus */
body.kp-marketplace-browse-page #market-category-chips {
  scroll-behavior: smooth;
  scroll-padding-left: .75rem;
  scroll-padding-right: .75rem;
}
body.kp-marketplace-browse-page #market-category-chips .kp-category-chip {
  scroll-snap-align: center;
}
@media (max-width: 991.98px) {
  body.kp-marketplace-browse-page #market-category-chips {
    scroll-snap-type: x proximity;
  }
}

/* v8.8 marketplace: listing chat, admin mobile tools and suggestion polish */
@media (max-width: 767.98px) {
  body.kp-marketplace-admin-page .mp-show-deleted-btn {
    position: relative !important;
    overflow: hidden !important;
  }
  body.kp-marketplace-admin-page .mp-show-deleted-btn::after {
    content: "";
    position: absolute;
    left: .34rem;
    right: .34rem;
    top: 50%;
    height: 1px;
    background: #fa5c7c;
    transform: rotate(39deg);
    transform-origin: center;
    pointer-events: none;
    opacity: 1;
  }
  body.kp-marketplace-admin-page #mp-admin-suggestions .mp-admin-suggestion-subnav {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    gap: .35rem;
    padding-bottom: .25rem;
  }
  body.kp-marketplace-admin-page #mp-admin-suggestions .mp-admin-suggestion-subnav .nav-item {
    flex: 0 0 auto !important;
    width: auto !important;
  }
  body.kp-marketplace-admin-page #mp-admin-suggestions .mp-admin-suggestion-subnav .nav-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: max-content;
    scroll-snap-align: center;
  }
  body.kp-marketplace-admin-page #mp-admin-suggestions .mp-admin-suggestion-stats .card-body {
    padding-left: .55rem !important;
    padding-right: .55rem !important;
  }
  body.kp-marketplace-editor-page #mp-ai-btn {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
  }
  body.kp-marketplace-editor-page .mp-ai-suggestion .badge {
    margin-bottom: .25rem;
    white-space: normal;
  }
}

/* v8.9 marketplace mobile filter button badge/border + listing chat open polish */
@media (max-width: 991.98px) {
  body.kp-marketplace-browse-page .kp-market-actions > .kp-market-filter-button-inline {
    position: relative !important;
    overflow: visible !important;
    border: 1px solid rgba(152, 166, 173, .35) !important;
    box-shadow: 0 .15rem .35rem rgba(49, 58, 70, .08), inset 0 1px 0 rgba(255,255,255,.55) !important;
    background: rgba(248, 249, 250, .96) !important;
  }
  body.kp-marketplace-browse-page .kp-market-actions > .kp-market-filter-button-inline:hover,
  body.kp-marketplace-browse-page .kp-market-actions > .kp-market-filter-button-inline:focus {
    border-color: rgba(57, 175, 209, .45) !important;
  }
  body.kp-marketplace-browse-page #market-filter-count-mobile.kp-filter-count-badge {
    position: absolute !important;
    top: -.42rem !important;
    right: -.38rem !important;
    min-width: 1.28rem !important;
    height: 1.28rem !important;
    padding: .12rem .28rem !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: .68rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #fff !important;
    background: #39afd1 !important;
    border: 2px solid #fff !important;
    box-shadow: 0 .12rem .28rem rgba(49, 58, 70, .22) !important;
    margin: 0 !important;
    pointer-events: none !important;
    z-index: 2 !important;
  }
  body.kp-marketplace-browse-page #market-filter-count-mobile.kp-filter-count-badge.d-none {
    display: none !important;
  }
  html[data-layout-color="dark"] body.kp-marketplace-browse-page .kp-market-actions > .kp-market-filter-button-inline,
  body[data-layout-color="dark"].kp-marketplace-browse-page .kp-market-actions > .kp-market-filter-button-inline,
  html[data-theme="dark"] body.kp-marketplace-browse-page .kp-market-actions > .kp-market-filter-button-inline,
  body.kp-theme-dark-body.kp-marketplace-browse-page .kp-market-actions > .kp-market-filter-button-inline {
    background: rgba(55, 64, 74, .96) !important;
    border-color: rgba(241, 243, 250, .18) !important;
    box-shadow: 0 .15rem .35rem rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.06) !important;
  }
  html[data-layout-color="dark"] body.kp-marketplace-browse-page #market-filter-count-mobile.kp-filter-count-badge,
  body[data-layout-color="dark"].kp-marketplace-browse-page #market-filter-count-mobile.kp-filter-count-badge,
  html[data-theme="dark"] body.kp-marketplace-browse-page #market-filter-count-mobile.kp-filter-count-badge,
  body.kp-theme-dark-body.kp-marketplace-browse-page #market-filter-count-mobile.kp-filter-count-badge {
    border-color: #313a46 !important;
  }
}



/* Marketplace v9.1: keep mobile-only toolbar controls hidden on desktop */
@media (min-width: 992px) {
  .kp-marketplace-scope #market-filter-toggle-mobile,
  .kp-marketplace-scope .kp-market-mobile-tools,
  body.kp-marketplace-browse-page #market-filter-toggle-mobile,
  body.kp-marketplace-browse-page .kp-market-actions > .kp-market-filter-button-inline.d-lg-none,
  body.kp-marketplace-browse-page .kp-market-actions > .kp-market-mobile-tools.d-lg-none,
  body.kp-marketplace-browse-page .kp-market-actions .kp-market-mobile-tools {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* Marketplace v9.0 listing chat + trader badge cleanup */
body.kp-marketplace-listing-page .kp-seller-panel .kp-seller-badges {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: .25rem !important;
  position: relative !important;
  max-height: 2.35rem !important;
  overflow: hidden !important;
  padding-right: 1.6rem !important;
  outline: none !important;
  cursor: pointer;
}
body.kp-marketplace-listing-page .kp-seller-panel .kp-seller-badges .badge {
  margin: 0 !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
  flex: 0 1 auto !important;
}
body.kp-marketplace-listing-page .kp-seller-panel .kp-seller-badges::after {
  content: none !important;
}
body.kp-marketplace-listing-page .kp-seller-panel .kp-seller-badges:has(.badge:nth-child(4))::after {
  content: '…' !important;
  position: absolute !important;
  right: .15rem !important;
  top: .08rem !important;
  min-width: 1.25rem !important;
  height: 1.25rem !important;
  line-height: 1.05rem !important;
  padding: 0 .25rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(152,166,173,.35) !important;
  background: #eef2f7 !important;
  color: #6c757d !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.08) !important;
  pointer-events: none !important;
}
body.kp-marketplace-listing-page .kp-seller-panel .kp-seller-badges:hover,
body.kp-marketplace-listing-page .kp-seller-panel .kp-seller-badges:focus,
body.kp-marketplace-listing-page .kp-seller-panel .kp-seller-badges:focus-within {
  max-height: none !important;
  overflow: visible !important;
  padding-right: 0 !important;
  z-index: 5 !important;
}
body.kp-marketplace-listing-page .kp-seller-panel .kp-seller-badges:hover::after,
body.kp-marketplace-listing-page .kp-seller-panel .kp-seller-badges:focus::after,
body.kp-marketplace-listing-page .kp-seller-panel .kp-seller-badges:focus-within::after {
  content: none !important;
}
html[data-layout-color="dark"] body.kp-marketplace-listing-page .kp-seller-panel .kp-seller-badges:has(.badge:nth-child(4))::after,
body[data-layout-color="dark"].kp-marketplace-listing-page .kp-seller-panel .kp-seller-badges:has(.badge:nth-child(4))::after,
body.kp-theme-dark-body.kp-marketplace-listing-page .kp-seller-panel .kp-seller-badges:has(.badge:nth-child(4))::after {
  background: #3b4651 !important;
  border-color: rgba(241,243,250,.18) !important;
  color: #ced4da !important;
}
@media (max-width: 991.98px) {
  body.kp-marketplace-listing-page .kp-seller-panel .kp-seller-badges {
    max-height: 2.6rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  body.kp-marketplace-listing-page .kp-seller-panel .kp-seller-badges .badge {
    font-size: .78rem !important;
  }
}

/* Marketplace v9.2: seller badges should use the available card width instead of showing a premature overflow chip */
body.kp-marketplace-listing-page .kp-seller-panel .kp-seller-badges,
body.kp-marketplace-listing-page .kp-seller-badges {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  align-content: center !important;
  gap: .28rem .32rem !important;
  max-height: none !important;
  overflow: visible !important;
  padding-right: 0 !important;
  cursor: default !important;
}
body.kp-marketplace-listing-page .kp-seller-panel .kp-seller-badges::after,
body.kp-marketplace-listing-page .kp-seller-panel .kp-seller-badges:has(.badge:nth-child(4))::after,
body.kp-marketplace-listing-page .kp-seller-badges::after,
body.kp-marketplace-listing-page .kp-seller-badges:has(.badge:nth-child(4))::after {
  content: none !important;
  display: none !important;
}
body.kp-marketplace-listing-page .kp-seller-panel .kp-seller-badges .badge,
body.kp-marketplace-listing-page .kp-seller-badges .badge {
  flex: 0 1 auto !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  margin: 0 !important;
}


/* v9.3 marketplace suggestion parser and alias admin */
.mp-ai-suggestion .mp-suggestion-breakdown{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(148px,1fr));
    gap:.5rem;
}
.mp-suggestion-part{
    display:flex;
    align-items:flex-start;
    min-width:0;
    border:1px solid var(--kp-border-color, rgba(152,166,173,.28));
    border-radius:.65rem;
    padding:.55rem .6rem;
    background:rgba(255,255,255,.72);
}
.kp-theme-dark .mp-suggestion-part,
body[data-layout-color="dark"] .mp-suggestion-part,
html.kp-theme-dark-html .mp-suggestion-part{
    background:rgba(49,58,70,.72);
    border-color:rgba(152,166,173,.22);
}
.mp-suggestion-part-icon{
    width:1.35rem;
    flex:0 0 1.35rem;
    margin-right:.45rem;
    color:#39afd1;
    line-height:1.1;
}
.mp-suggestion-part-warning .mp-suggestion-part-icon{ color:#ffbc00; }
.mp-suggestion-part-body{
    display:block;
    min-width:0;
}
.mp-suggestion-part-label{
    display:block;
    font-size:.69rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.03em;
    color:#98a6ad;
    line-height:1.05;
}
.mp-suggestion-part strong{
    display:block;
    color:inherit;
    font-size:.88rem;
    line-height:1.15;
    overflow-wrap:anywhere;
}
.mp-suggestion-part small{
    display:block;
    color:#98a6ad;
    line-height:1.15;
    overflow-wrap:anywhere;
}
.mp-suggestion-training-note{
    font-size:.78rem;
    color:#6c757d;
    border-top:1px dashed rgba(152,166,173,.35);
    padding-top:.5rem;
}
.mp-admin-suggest-alias-table .form-control-sm{
    min-height:32px;
}
.mp-suggest-alias-risk td{
    background:rgba(255,188,0,.06);
}
.mp-suggest-alias-disabled{
    opacity:.68;
}
.mp-suggest-alias-disabled .mp-alias-alias{
    text-decoration:line-through;
}
.mp-admin-alias-new-card{
    background:rgba(57,175,209,.04);
}
@media (max-width: 767.98px){
    .mp-ai-suggestion .mp-suggestion-breakdown{
        grid-template-columns:1fr 1fr;
        gap:.45rem;
    }
    .mp-suggestion-part{
        padding:.5rem;
        border-radius:.55rem;
    }
    .mp-admin-alias-new-card .form-row > [class*="col-"]{
        margin-bottom:.5rem;
    }
    .mp-admin-suggest-alias-table .btn-group{
        width:100%;
        display:flex;
    }
    .mp-admin-suggest-alias-table .btn-group .btn{
        flex:1 1 auto;
    }
}

/* v9.5 profile marketplace refresh + profile info rows */
.kp-profile-info-list{
    border-top:1px solid rgba(152,166,173,.18);
    border-bottom:1px solid rgba(152,166,173,.18);
}
.kp-info-row{
    display:flex;
    align-items:center;
    gap:.75rem;
    min-width:0;
}
.kp-info-ico{
    width:34px;
    height:34px;
    flex:0 0 34px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:.55rem;
    background:rgba(54,136,252,.08);
    border:1px solid rgba(54,136,252,.12);
    color:#3688fc;
    overflow:hidden;
}
.kp-info-main{
    min-width:0;
    flex:1 1 auto;
}
.kp-info-label{
    font-size:.72rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.025em;
    color:#98a6ad;
    line-height:1.1;
}
.kp-info-value{
    line-height:1.25;
    color:inherit;
}
.kp-profile-team-badges,
.kp-profile-marketplace-pills{
    display:flex;
    flex-wrap:wrap;
    gap:.3rem;
    min-width:0;
}
.kp-profile-team-badges .badge,
.kp-profile-marketplace-pills span{
    white-space:normal;
}
.kp-profile-marketplace-pills span{
    display:inline-flex;
    align-items:center;
    border:1px solid rgba(152,166,173,.18);
    border-radius:999px;
    padding:.16rem .45rem;
    background:rgba(152,166,173,.08);
    font-size:.75rem;
    line-height:1.2;
}


body[data-layout-color="dark"] .kp-profile-info-list,
html[data-layout-color="dark"] .kp-profile-info-list,
body.kp-theme-dark-body .kp-profile-info-list{
    border-color:rgba(241,243,250,.12);
}
body[data-layout-color="dark"] .kp-info-ico,
html[data-layout-color="dark"] .kp-info-ico,
body.kp-theme-dark-body .kp-info-ico{
    background:rgba(54,136,252,.13);
    border-color:rgba(54,136,252,.22);
}

/* v9.6 admin suggestion parser and tools refinements */
.mp-suggest-admin-toolbar{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap}.mp-suggest-admin-toolbar .btn.active{box-shadow:inset 0 0 0 1px rgba(54,144,255,.35)}.mp-suggest-parser-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.5rem}.mp-suggest-parser-card{background:var(--white,#fff);min-height:82px}.mp-suggest-parser-card .badge{margin-top:.25rem}.mp-admin-suggestion-subnav{overflow-x:auto;white-space:nowrap;flex-wrap:nowrap}.mp-admin-suggestion-subnav .nav-item{float:none;display:inline-block;min-width:max-content}.mp-admin-suggestion-subnav .nav-link{white-space:nowrap}.mp-suggest-alias-risk td{background-color:rgba(250,183,51,.045)}.mp-suggest-alias-disabled{opacity:.72}
body[data-layout-color="dark"] .mp-suggest-parser-card,.mm-active .mp-suggest-parser-card{background:#37404a;border-color:rgba(255,255,255,.12)!important}body[data-layout-color="dark"] .mp-suggest-alias-risk td{background-color:rgba(250,183,51,.08)}
@media(max-width:767.98px){.mp-suggest-admin-toolbar .btn-group{display:flex;overflow-x:auto;width:100%}.mp-suggest-admin-toolbar .btn{white-space:nowrap}.mp-suggest-alias-search{max-width:100%!important;width:100%!important}.mp-suggest-parser-grid{grid-template-columns:1fr 1fr}.mp-suggest-parser-card{min-height:72px}}

/* v9.7 profile marketplace and admin tool refinements */
.kp-profile-info-list .list-group-item {
    background: transparent;
    border-color: rgba(152,166,173,.16);
    padding: .85rem 0;
}
.kp-profile-info-list .kp-info-row {
    display: flex;
    align-items: center;
    min-width: 0;
}
.kp-profile-info-list .kp-info-ico {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    margin-right: .75rem;
    background: rgba(57,175,209,.12);
    color: #39afd1;
    font-size: 1.1rem;
}
.kp-profile-info-list .kp-info-main {
    min-width: 0;
    flex: 1 1 auto;
}
.kp-profile-info-list .kp-info-label {
    color: #98a6ad;
    font-size: .72rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: .035em;
    font-weight: 700;
}
.kp-profile-info-list .kp-info-value {
    color: inherit;
    font-weight: 600;
}
.kp-profile-team-badges,
.kp-profile-marketplace-pills,
.kp-profile-market-badges-inline {
    display: flex;
    flex-wrap: wrap;
    gap: .28rem;
}
.kp-profile-marketplace-pills span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: .12rem .45rem;
    border-radius: 999px;
    background: rgba(152,166,173,.12);
    color: inherit;
    font-size: .78rem;
}
.kp-profile-market-hero {
    border: 1px solid rgba(152,166,173,.18);
    overflow: hidden;
}
.kp-profile-market-hero:before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, rgba(57,175,209,.95), rgba(114,124,245,.85), rgba(10,207,151,.8));
}
.kp-profile-market-avatar {
    width: 72px;
    height: 72px;
    object-fit: cover;
    box-shadow: 0 0 0 4px rgba(57,175,209,.12);
}
.kp-profile-market-badges,
.kp-profile-market-badges-inline {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
}
.kp-profile-market-badges .badge,
.kp-profile-market-badges-inline .badge {
    margin: 0 !important;
    white-space: normal;
    text-align: left;
    line-height: 1.25;
}
.kp-profile-market-actions .btn {
    border-radius: .35rem;
}
.kp-profile-market-stat {
    border: 1px solid rgba(152,166,173,.14);
    height: 100%;
}
.kp-profile-market-stat .card-body {
    position: relative;
    padding: 1rem 1rem 1rem 4rem;
    min-height: 86px;
}
.kp-profile-market-stat-icon {
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.35rem;
}
.kp-profile-market-sidecard,
.kp-profile-market-listcard,
.kp-profile-market-sold {
    border: 1px solid rgba(152,166,173,.14);
}
.kp-profile-market-info-list .list-group-item:first-child {
    padding-top: 0;
}
.kp-profile-market-info-list .list-group-item:last-child {
    padding-bottom: 0;
}
.kp-profile-market-search {
    min-width: 250px;
}
.kp-profile-market-list {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}
.kp-profile-market-item {
    display: flex;
    align-items: stretch;
    width: 100%;
    border: 1px solid rgba(152,166,173,.16);
    border-radius: .55rem;
    background: rgba(255,255,255,.72);
    overflow: hidden;
    transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease;
}
.kp-profile-market-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 .35rem 1rem rgba(0,0,0,.06);
    border-color: rgba(57,175,209,.35);
}
.kp-profile-market-thumb {
    position: relative;
    width: 116px;
    min-height: 104px;
    flex: 0 0 116px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(152,166,173,.10);
    color: #98a6ad;
    overflow: hidden;
}
.kp-profile-market-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.kp-profile-market-thumb > span {
    font-size: 1.9rem;
}
.kp-profile-market-thumb em {
    position: absolute;
    right: .35rem;
    bottom: .35rem;
    display: inline-flex;
    align-items: center;
    gap: .15rem;
    padding: .08rem .34rem;
    border-radius: 999px;
    background: rgba(0,0,0,.62);
    color: #fff;
    font-style: normal;
    font-size: .72rem;
}
.kp-profile-market-item-body {
    padding: .8rem .9rem;
    flex: 1 1 auto;
}
.kp-profile-market-title {
    display: block;
    font-weight: 700;
    line-height: 1.25;
}
.kp-profile-market-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .75rem;
}
.kp-profile-market-price {
    font-weight: 800;
    white-space: nowrap;
}
.kp-profile-market-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
}
.kp-profile-market-sold-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: .65rem;
}
.kp-profile-market-sold-item {
    display: block;
    color: inherit;
    border: 1px solid rgba(152,166,173,.16);
    border-radius: .5rem;
    padding: .45rem;
    background: rgba(152,166,173,.06);
    min-width: 0;
}
.kp-profile-market-sold-item img,
.kp-profile-market-sold-item > span {
    width: 100%;
    height: 84px;
    border-radius: .35rem;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(152,166,173,.12);
    color: #98a6ad;
    margin-bottom: .4rem;
}
.kp-profile-market-sold-item strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .82rem;
}
.kp-profile-market-sold-item small {
    color: #98a6ad;
}
.kp-player-thumb {
    width: 44px;
    height: 44px;
    border-radius: .35rem;
    object-fit: cover;
    border: 1px solid rgba(152,166,173,.22);
    background: rgba(152,166,173,.10);
}
.kp-tools-type-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    max-width: 100%;
    white-space: nowrap;
}
.kp-cron-state-dot {
    width: .65rem;
    height: .65rem;
    border-radius: 999px;
    display: inline-block;
    margin-right: .35rem;
}
.kp-cron-state-ok { background: #0acf97; }
.kp-cron-state-stale { background: #ffbc00; }
.kp-cron-state-missing { background: #fa5c7c; }
body[data-layout-color="dark"] .kp-profile-info-list .list-group-item,
body[data-layout-color="dark"] .kp-profile-market-stat,
body[data-layout-color="dark"] .kp-profile-market-sidecard,
body[data-layout-color="dark"] .kp-profile-market-listcard,
body[data-layout-color="dark"] .kp-profile-market-sold,
body[data-layout-color="dark"] .kp-profile-market-hero,
body[data-layout-color="dark"] .kp-profile-market-item,
body[data-layout-color="dark"] .kp-profile-market-sold-item {
    border-color: rgba(255,255,255,.10);
}
body[data-layout-color="dark"] .kp-profile-market-item {
    background: rgba(255,255,255,.035);
}
body[data-layout-color="dark"] .kp-profile-market-sold-item,
body[data-layout-color="dark"] .kp-profile-market-thumb,
body[data-layout-color="dark"] .kp-profile-market-sold-item > span {
    background: rgba(255,255,255,.06);
}
body[data-layout-color="dark"] .kp-profile-info-list .kp-info-ico {
    background: rgba(57,175,209,.18);
}
@media (max-width: 767.98px) {
    .kp-profile-market-avatar {
        width: 58px;
        height: 58px;
    }
    .kp-profile-market-search {
        min-width: 0;
        width: 100%;
    }
    .kp-profile-market-item {
        align-items: flex-start;
    }
    .kp-profile-market-thumb {
        width: 86px;
        min-height: 92px;
        flex-basis: 86px;
    }
    .kp-profile-market-item-body {
        padding: .65rem .7rem;
    }
    .kp-profile-market-price {
        font-size: .9rem;
    }
    .kp-profile-market-meta {
        gap: .2rem .45rem;
    }
    .kp-profile-market-tags .badge {
        font-size: .7rem;
    }
}

/* v9.9 profile marketplace cleanup */
.kp-profile-market-rating-link{
    display:inline-flex;
    align-items:center;
    min-height:24px;
    padding:.12rem .45rem !important;
    border:1px solid rgba(152,166,173,.18);
    border-radius:999px;
    background:rgba(152,166,173,.08);
    color:inherit;
    font-size:.78rem;
    line-height:1.2;
    text-decoration:none !important;
}
.kp-profile-market-rating-link:hover,
.kp-profile-market-rating-link:focus{
    background:rgba(250,188,0,.12);
    border-color:rgba(250,188,0,.25);
    color:inherit;
    text-decoration:none !important;
}




/* Kuulaportti marketplace v10.1 – compact mobile locked-composer message. */
body.kp-marketplace-scope .mp-chat-disabled-chip .mp-chat-disabled-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  body.kp-marketplace-scope .mp-chat-composer textarea.form-control[disabled],
  body.kp-marketplace-scope .mp-chat-composer textarea.form-control:disabled {
    font-size: .86rem !important;
    line-height: 1.3 !important;
  }

  body.kp-marketplace-scope .mp-chat-context-actions {
    max-width: 100% !important;
    overflow: hidden !important;
  }

  body.kp-marketplace-scope .mp-chat-context-actions .mp-chat-disabled-chip {
    display: inline-flex !important;
    max-width: 100% !important;
    width: auto !important;
    min-height: 2rem !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: .38rem .65rem !important;
    white-space: nowrap !important;
    text-align: left !important;
    border-radius: 999px !important;
    font-size: .78rem !important;
    line-height: 1.15 !important;
  }

  body.kp-marketplace-scope .mp-chat-context-actions .mp-chat-disabled-chip .mdi {
    flex: 0 0 auto;
    margin-right: .35rem !important;
  }
}


/* v10.5 marketplace pricing / offers */
.kp-market-price-options .custom-control{margin-bottom:.35rem;}
.kp-market-price-options .custom-control:last-child{margin-bottom:0;}
.kp-market-pricing-badges{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem;min-width:0;}
.kp-market-pricing-badges .badge{white-space:normal;line-height:1.25;text-align:left;}
.marketplace-card .kp-market-pricing-badges .badge{font-size:.72rem;}
.mp-chat-meta-pricing .badge,.mp-chat-listing-terms{white-space:normal;line-height:1.25;}
@media (max-width: 767.98px){
  .kp-market-price-options{display:block;}
  .kp-market-price-options .custom-control{display:block;margin-right:0;}
  .mp-chat-listing-terms{display:inline-block;margin-top:.2rem;}
}


/* v10.5.1 mobile admin/action polish */
@media (max-width: 767.98px) {
  body.kp-marketplace-admin-page .mp-show-deleted-btn {
    position: relative !important;
    overflow: hidden !important;
  }
  body.kp-marketplace-admin-page .mp-show-deleted-btn::after {
    content: "" !important;
    position: absolute !important;
    left: .34rem !important;
    right: .34rem !important;
    top: 50% !important;
    height: 1px !important;
    background: #fa5c7c !important;
    transform: rotate(39deg) !important;
    transform-origin: center !important;
    pointer-events: none !important;
    opacity: 1 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.kp-marketplace-scope .mp-mobile-wide-action-btn > .mdi-dots-vertical:first-child,
  body.kp-marketplace-scope #mp-my-listings-table .dropdown-toggle > .mdi-dots-vertical:first-child,
  body.kp-marketplace-admin-page .mp-action-dropdown-btn > .mdi-dots-vertical:first-child {
    display: none !important;
  }
  body.kp-marketplace-scope .mp-mobile-wide-action-btn > span,
  body.kp-marketplace-scope #mp-my-listings-table .dropdown-toggle > span {
    margin-left: 0 !important;
  }
}


/* v10.5.3 - make paid promotions obvious in My Marketplace listings */
#mp-my-listings-table tr.mp-my-listing-promoted > td:first-child {
    border-left: 3px solid #fabc2c;
}
#mp-my-listings-table tr.mp-my-listing-promoted {
    background: rgba(250, 188, 44, .045);
}
body[data-layout-color="dark"] #mp-my-listings-table tr.mp-my-listing-promoted,
html[data-theme="dark"] #mp-my-listings-table tr.mp-my-listing-promoted,
html.kp-theme-dark-html #mp-my-listings-table tr.mp-my-listing-promoted,
body.kp-theme-dark-body #mp-my-listings-table tr.mp-my-listing-promoted {
    background: rgba(250, 188, 44, .075);
}
#mp-my-listings-table .mp-my-listing-title {
    min-width: 0;
}
#mp-my-listings-table .mp-my-promotion-badge {
    margin-left: .5rem;
    flex-shrink: 0;
}
.mp-my-promotion-callout {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin-top: .35rem;
    padding: .28rem .5rem;
    border: 1px solid rgba(250, 188, 44, .35);
    border-radius: .35rem;
    background: rgba(250, 188, 44, .12);
    color: #6c4a00;
    font-size: .78rem;
    line-height: 1.25;
}
.mp-my-promotion-callout-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    margin-right: .35rem;
    border-radius: 999px;
    background: rgba(250, 188, 44, .22);
    color: #b57600;
    flex-shrink: 0;
}
body[data-layout-color="dark"] .mp-my-promotion-callout,
html[data-theme="dark"] .mp-my-promotion-callout,
html.kp-theme-dark-html .mp-my-promotion-callout,
body.kp-theme-dark-body .mp-my-promotion-callout {
    background: rgba(250, 188, 44, .13);
    border-color: rgba(250, 188, 44, .32);
    color: #f6d27a;
}
.mp-status-promo-badge {
    display: inline-flex;
    align-items: center;
}
@media (max-width: 767.98px) {
    #mp-my-listings-table tr.mp-my-listing-promoted {
        box-shadow: inset 3px 0 0 #fabc2c;
    }
    #mp-my-listings-table tr.mp-my-listing-promoted > td:first-child {
        border-left: 0;
    }
    .mp-my-promotion-callout {
        display: flex;
        width: 100%;
        margin-top: .45rem;
        white-space: normal;
    }
    #mp-my-listings-table .mp-status-promo-badge {
        margin-left: .25rem;
    }
}

/* v10.5.4 - marketplace browse card/filters cleanup */
body.kp-marketplace-browse-page #market-grid.kp-market-grid {
    align-items: stretch !important;
}
body.kp-marketplace-browse-page #market-grid > .kp-market-grid-item,
body.kp-marketplace-browse-page #market-grid > .grid-item {
    display: flex !important;
}
body.kp-marketplace-browse-page .kp-market-grid-item > .marketplace-card,
body.kp-marketplace-browse-page .marketplace-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}
body.kp-marketplace-browse-page .marketplace-card .kp-market-card-body {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
}
body.kp-marketplace-browse-page .marketplace-card .kp-market-card-bottom {
    margin-top: auto !important;
}
body.kp-marketplace-browse-page .marketplace-card .kp-market-pricing-badges {
    min-height: 1.45rem !important;
    margin-bottom: .45rem !important;
}
body.kp-marketplace-browse-page .marketplace-card .kp-market-pricing-badges:empty {
    visibility: hidden !important;
}
body.kp-marketplace-browse-page .marketplace-card .kp-market-pricing-badges .badge-info-lighten {
    color: #39afd1 !important;
}
body.kp-marketplace-browse-page .kp-market-term-filters .custom-control {
    display: flex !important;
    align-items: center !important;
    min-height: 1.35rem !important;
    margin-bottom: .32rem !important;
    padding-left: 1.65rem !important;
}
body.kp-marketplace-browse-page .kp-market-term-filters .custom-control:last-child {
    margin-bottom: 0 !important;
}
body.kp-marketplace-browse-page .kp-market-term-filters .custom-control-label {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 1.15rem !important;
    margin-bottom: 0 !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
}
body.kp-marketplace-browse-page .kp-market-term-filters .custom-control-label::before,
body.kp-marketplace-browse-page .kp-market-term-filters .custom-control-label::after {
    top: 50% !important;
    left: -1.65rem !important;
    transform: translateY(-50%) !important;
}
@media (min-width: 768px) {
    body.kp-marketplace-browse-page .kp-market-grid-item > .marketplace-card,
    body.kp-marketplace-browse-page .marketplace-card {
        height: 540px !important;
        min-height: 540px !important;
        max-height: 540px !important;
    }
    body.kp-marketplace-browse-page .marketplace-card .kp-market-card-media,
    body.kp-marketplace-browse-page .marketplace-card .card-img-top,
    body.kp-marketplace-browse-page .marketplace-card .kp-card-carousel,
    body.kp-marketplace-browse-page .marketplace-card .kp-card-carousel-inner,
    body.kp-marketplace-browse-page .marketplace-card .kp-card-carousel .carousel-inner,
    body.kp-marketplace-browse-page .marketplace-card .kp-card-carousel .carousel-item,
    body.kp-marketplace-browse-page .marketplace-card .kp-mp-carousel-item,
    body.kp-marketplace-browse-page .marketplace-card .kp-mp-carousel-item > a {
        height: 225px !important;
        min-height: 225px !important;
        max-height: 225px !important;
        aspect-ratio: auto !important;
    }
    body.kp-marketplace-browse-page .marketplace-card .kp-market-card-main {
        min-height: 128px !important;
        max-height: 128px !important;
        overflow: hidden !important;
    }
    body.kp-marketplace-browse-page .marketplace-card .kp-card-title {
        min-height: 1.35rem !important;
    }
    body.kp-marketplace-browse-page .marketplace-card .kp-card-model {
        min-height: 1.2rem !important;
    }
    body.kp-marketplace-browse-page .marketplace-card .kp-line-clamp {
        -webkit-line-clamp: 2 !important;
        min-height: 2.45rem !important;
        max-height: 2.45rem !important;
        overflow: hidden !important;
    }
    body.kp-marketplace-browse-page .marketplace-card .kp-market-seller {
        min-height: 34px !important;
    }
}
@media (max-width: 767.98px) {
    body.kp-marketplace-browse-page .marketplace-card .kp-market-pricing-badges {
        min-height: 1.4rem !important;
    }
    body.kp-marketplace-browse-page .kp-market-term-filters .custom-control {
        min-height: 1.55rem !important;
        margin-bottom: .4rem !important;
    }
}


/* v10.5.6 card bottom alignment polish */
body.kp-marketplace-browse-page .marketplace-card .kp-market-card-bottom {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
}
body.kp-marketplace-browse-page .marketplace-card .kp-market-pricing-badges {
    min-height: 2.2rem !important;
    align-content: flex-start !important;
}
body.kp-marketplace-browse-page .marketplace-card .kp-market-pricing-badges:empty {
    min-height: 2.2rem !important;
}
body.kp-marketplace-browse-page .marketplace-card .kp-market-card-bottom > .small.text-muted.mb-2.text-truncate {
    min-height: 1.1rem !important;
}
body.kp-marketplace-browse-page .marketplace-card .kp-market-seller {
    margin-top: auto !important;
}
body.kp-marketplace-browse-page .marketplace-card .kp-market-card-bottom > .btn.btn-primary.btn-sm.btn-block.mt-2 {
    margin-top: .5rem !important;
}


/* v10.5.7 production package cleanup
   Keep marketplace browse cards aligned without external debug helper files. */
body.kp-marketplace-browse-page .marketplace-card .kp-market-card-bottom {
    display: flex !important;
    flex-direction: column !important;
}
body.kp-marketplace-browse-page .marketplace-card .kp-market-seller {
    margin-top: auto !important;
}


/* v10.5.8 marketplace browse card layout fix
   The browse card must not use a too-small fixed height because long content pushes
   the CTA outside the card. Clamp the variable content areas and keep the CTA inside
   a normal flex footer. */
body.kp-marketplace-browse-page #market-grid > .kp-market-grid-item {
    display: flex !important;
    align-items: stretch !important;
}

body.kp-marketplace-browse-page #market-grid > .kp-market-grid-item > .marketplace-card,
body.kp-marketplace-browse-page .marketplace-card {
    width: 100% !important;
    height: auto !important;
    min-height: 560px !important;
    overflow: hidden !important;
}

body.kp-marketplace-browse-page .marketplace-card .kp-market-card-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}

body.kp-marketplace-browse-page .marketplace-card .kp-market-card-main {
    flex: 0 0 auto !important;
    min-height: 7.75rem !important;
    max-height: 7.75rem !important;
    overflow: hidden !important;
}

body.kp-marketplace-browse-page .marketplace-card .kp-card-title,
body.kp-marketplace-browse-page .marketplace-card .kp-card-model {
    min-height: 1.25rem !important;
}

body.kp-marketplace-browse-page .marketplace-card .kp-line-clamp {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 3.55rem !important;
    max-height: 3.55rem !important;
}

body.kp-marketplace-browse-page .marketplace-card .kp-market-card-bottom {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
}

body.kp-marketplace-browse-page .marketplace-card .kp-market-pricing-badges {
    flex: 0 0 auto !important;
    min-height: 1.75rem !important;
    max-height: 2.6rem !important;
    overflow: hidden !important;
    align-content: flex-start !important;
}

body.kp-marketplace-browse-page .marketplace-card .kp-market-pricing-badges:empty {
    min-height: 1.75rem !important;
    max-height: 1.75rem !important;
    visibility: hidden !important;
}

body.kp-marketplace-browse-page .marketplace-card .kp-market-card-bottom > .small.text-muted.mb-2.text-truncate {
    flex: 0 0 auto !important;
    min-height: 1.25rem !important;
    max-height: 1.25rem !important;
}

body.kp-marketplace-browse-page .marketplace-card .kp-market-seller {
    flex: 0 0 auto !important;
    min-height: 32px !important;
    max-height: 38px !important;
    overflow: hidden !important;
    margin-top: auto !important;
}

body.kp-marketplace-browse-page .marketplace-card .kp-market-card-bottom > .btn.btn-primary.btn-sm.btn-block,
body.kp-marketplace-browse-page .marketplace-card a.btn.btn-primary.btn-sm.btn-block {
    flex: 0 0 auto !important;
    display: block !important;
    width: 100% !important;
    margin-top: .5rem !important;
    margin-bottom: 0 !important;
    position: static !important;
    transform: none !important;
    bottom: auto !important;
}

/* Keep the terms semantically distinct in UI:
   open_for_offers = monetary offers, open_to_trades = swaps/trades. */
body.kp-marketplace-browse-page .marketplace-card .kp-market-pricing-badges .kp-badge-open-offers {
    color: #39afd1 !important;
}
body.kp-marketplace-browse-page .marketplace-card .kp-market-pricing-badges .kp-badge-trades {
    color: #39afd1 !important;
}

@media (max-width: 767.98px) {
    body.kp-marketplace-browse-page #market-grid > .kp-market-grid-item > .marketplace-card,
    body.kp-marketplace-browse-page .marketplace-card {
        min-height: 0 !important;
        height: auto !important;
    }
    body.kp-marketplace-browse-page .marketplace-card .kp-market-card-main {
        min-height: 0 !important;
        max-height: none !important;
    }
    body.kp-marketplace-browse-page .marketplace-card .kp-market-pricing-badges {
        max-height: none !important;
    }
}


/* v10.5.9 marketplace browse card vertical rhythm
   Let the description use available empty space, while keeping the footer order fixed:
   price -> terms -> location -> seller -> CTA. The CTA stays at the card bottom. */
body.kp-marketplace-browse-page #market-grid > .kp-market-grid-item {
    display: flex !important;
    align-items: stretch !important;
}
body.kp-marketplace-browse-page #market-grid > .kp-market-grid-item > .marketplace-card,
body.kp-marketplace-browse-page .marketplace-card {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 560px !important;
    overflow: hidden !important;
}
body.kp-marketplace-browse-page .marketplace-card .kp-market-card-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
}
body.kp-marketplace-browse-page .marketplace-card .kp-market-card-main {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
}
body.kp-marketplace-browse-page .marketplace-card .kp-line-clamp {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 5 !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: 5.75rem !important;
    overflow: hidden !important;
    margin-bottom: .2rem !important;
}
body.kp-marketplace-browse-page .marketplace-card .kp-market-card-bottom {
    display: flex !important;
    flex-direction: column !important;
    flex: 0 0 auto !important;
    min-height: 0 !important;
    margin-top: .35rem !important;
    padding-bottom: 0 !important;
    overflow: visible !important;
}
body.kp-marketplace-browse-page .marketplace-card .kp-market-card-bottom > .d-flex.justify-content-between.align-items-center.mb-1 {
    margin-bottom: .15rem !important;
}
body.kp-marketplace-browse-page .marketplace-card .kp-market-pricing-badges {
    flex: 0 0 auto !important;
    min-height: 0 !important;
    max-height: 1.45rem !important;
    margin-bottom: .12rem !important;
    gap: .2rem !important;
    overflow: hidden !important;
    align-content: flex-start !important;
}
body.kp-marketplace-browse-page .marketplace-card .kp-market-pricing-badges:empty {
    display: none !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    visibility: hidden !important;
}
body.kp-marketplace-browse-page .marketplace-card .kp-market-card-bottom > .small.text-muted.mb-2.text-truncate {
    flex: 0 0 auto !important;
    min-height: 1.1rem !important;
    max-height: 1.1rem !important;
    margin-bottom: .25rem !important;
}
body.kp-marketplace-browse-page .marketplace-card .kp-market-seller {
    flex: 0 0 auto !important;
    min-height: 32px !important;
    max-height: 38px !important;
    margin-top: 0 !important;
    margin-bottom: .35rem !important;
    overflow: hidden !important;
}
body.kp-marketplace-browse-page .marketplace-card .kp-market-card-bottom > .btn.btn-primary.btn-sm.btn-block,
body.kp-marketplace-browse-page .marketplace-card a.btn.btn-primary.btn-sm.btn-block {
    flex: 0 0 auto !important;
    display: block !important;
    width: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    position: static !important;
    transform: none !important;
    bottom: auto !important;
}
@media (max-width: 767.98px) {
    body.kp-marketplace-browse-page #market-grid > .kp-market-grid-item > .marketplace-card,
    body.kp-marketplace-browse-page .marketplace-card {
        min-height: 0 !important;
        height: auto !important;
    }
    body.kp-marketplace-browse-page .marketplace-card .kp-line-clamp {
        -webkit-line-clamp: 4 !important;
        max-height: 4.65rem !important;
    }
}


/* v10.6.0 marketplace editor promotion/receipt polish */
.kp-promotion-badge-btn {
    display: inline-flex !important;
    align-items: center !important;
    max-width: 100%;
    border: 0;
    white-space: normal;
    text-align: left;
    line-height: 1.25;
}
.kp-promotion-badge-btn:hover,
.kp-promotion-badge-btn:focus {
    text-decoration: none;
    filter: brightness(1.02);
}
.kp-editor-action-card .card-body {
    gap: .5rem;
}
.kp-savebar-primary-actions {
    min-width: 0;
}
.kp-savebar-delete-listing {
    white-space: nowrap;
}
@media (max-width: 575.98px) {
    .kp-editor-action-card .card-body {
        align-items: stretch !important;
    }
    .kp-savebar-primary-actions,
    .kp-savebar-primary-actions .btn,
    .kp-savebar-delete-listing {
        width: 100%;
    }
    .kp-savebar-delete-listing {
        margin-left: 0 !important;
    }
}
.mp-receipt .list-group-item,
#mpPromotionReceiptModal .list-group-item {
    background: transparent;
}


/* v10.6.1 marketplace editor status/promotion receipt polish */
.kp-listing-status-box .select2-container {
    width: 100% !important;
}
.kp-status-select-badge {
    font-size: .75rem;
    line-height: 1.2;
}
.kp-listing-status-box .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.45;
    padding-top: .2rem;
}
.kp-promotion-badge-btn.badge {
    border: 0;
    cursor: pointer;
    white-space: normal;
    text-align: left;
    line-height: 1.25;
    padding: .35rem .5rem;
}
.kp-promotion-badge-btn.badge:hover,
.kp-promotion-badge-btn.badge:focus {
    text-decoration: none;
    filter: brightness(1.04);
}
#mpPromotionReceiptModal .mp-promotion-receipt-table th {
    width: 32%;
    color: var(--kp-text-muted, #98a6ad);
    font-weight: 600;
}
#mpPromotionReceiptModal .mp-promotion-receipt-table td {
    word-break: break-word;
}
@media print {
    body.modal-open * {
        visibility: hidden !important;
    }
    #mpPromotionReceiptModal,
    #mpPromotionReceiptModal * {
        visibility: visible !important;
    }
    #mpPromotionReceiptModal {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
    }
    #mpPromotionReceiptModal .modal-dialog {
        max-width: 100% !important;
        margin: 0 !important;
    }
    #mpPromotionReceiptModal .modal-content {
        border: 0 !important;
        box-shadow: none !important;
    }
    #mpPromotionReceiptModal .modal-footer,
    #mpPromotionReceiptModal .close {
        display: none !important;
    }
}


/* v10.6.2 admin marketplace suggestions/moderators polish */
.kp-admin-search-like .input-group-text {
    background: rgba(152,166,173,.12);
    border-color: rgba(152,166,173,.25);
}
.kp-theme-dark-body .kp-admin-search-like .input-group-text,
body[data-layout-color="dark"] .kp-admin-search-like .input-group-text {
    background: rgba(255,255,255,.05);
    border-color: rgba(255,255,255,.12);
}
.mp-admin-suggestion-subnav {
    gap: .25rem;
}
.mp-suggest-admin-toolbar .btn-group .btn {
    border-color: rgba(152,166,173,.35);
}
.mp-suggest-admin-toolbar .btn-group .btn.active {
    color: #fff;
    background-color: #727cf5;
    border-color: #727cf5;
}
.mp-suggest-parser-grid-row .card,
.mp-suggest-teach-card,
.kp-admin-suggest-parser-card {
    background: transparent;
}
.mp-suggest-parser-field .font-weight-semibold,
.mp-parser-original {
    word-break: break-word;
}
.mp-suggest-teach-card label {
    margin-bottom: .25rem;
}
.mp-suggest-alias-risk {
    border-left: 3px solid #ffbc00;
}
.mp-suggest-alias-disabled {
    opacity: .62;
}
.mp-mod-inline-feedback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    min-height: 22px;
    vertical-align: middle;
}
.kp-mobile-card-admin-moderators .custom-control {
    margin-bottom: .25rem;
}
.kp-mobile-card-admin-moderators .btn-outline-danger {
    white-space: nowrap;
}
@media (max-width: 767.98px) {
    .mp-suggest-admin-toolbar {
        display: block !important;
    }
    .mp-suggest-admin-toolbar .btn-group,
    .mp-suggest-admin-toolbar .kp-admin-search-like {
        width: 100%;
        max-width: 100% !important;
    }
    .mp-suggest-admin-toolbar .btn-group {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: .2rem;
    }
    .mp-suggest-admin-toolbar .btn-group .btn {
        flex: 0 0 auto;
    }
    .kp-admin-suggest-parser-card .input-group {
        display: flex;
        flex-wrap: nowrap;
    }
    .kp-admin-suggest-parser-card .input-group-append .btn {
        white-space: nowrap;
    }
    .kp-mobile-card-admin-moderators td.text-right {
        text-align: left !important;
    }
    .kp-mobile-card-admin-moderators .btn-outline-danger {
        width: 100%;
        margin-top: .35rem;
    }
}


/* v10.6.4 admin suggestions polish + moderator field feedback */
.mp-mod-field-feedback {
    display: inline-flex;
    min-width: 18px;
    min-height: 18px;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}
.mp-mod-field-feedback .mdi {
    font-size: 1rem;
}
.kp-admin-suggest-parser-card {
    border-color: rgba(152,166,173,.22) !important;
}
.kp-admin-suggest-parser-card .input-group .form-control,
.mp-suggest-admin-toolbar .input-group .form-control {
    min-height: 34px;
}
.mp-suggest-parser-result .card {
    background: rgba(152,166,173,.06);
}
.kp-theme-dark-body .mp-suggest-parser-result .card,
body[data-layout-color="dark"] .mp-suggest-parser-result .card {
    background: rgba(255,255,255,.035);
}
.mp-suggest-parser-grid-row .card-body {
    min-height: 112px;
}
.mp-suggest-teach-card {
    border-style: dashed !important;
    border-color: rgba(57,175,209,.45) !important;
}
.mp-suggest-teach-card .form-group {
    margin-bottom: .75rem;
}
.mp-admin-suggestion-tabcontent .card {
    box-shadow: none;
}
.mp-admin-suggestion-tabcontent .mp-admin-alias-new-card .form-row {
    align-items: flex-end;
}
.mp-admin-suggestion-tabcontent .mp-admin-alias-new-card label,
.mp-admin-suggestion-tabcontent .mp-suggest-teach-card label {
    color: var(--kp-text-muted, #98a6ad);
    font-size: .78rem;
    text-transform: none;
}
.mp-admin-suggest-alias-table td {
    vertical-align: middle;
}
.mp-admin-suggest-alias-table .btn-group .btn {
    min-width: 42px;
}
.mp-suggest-admin-toolbar .btn {
    font-weight: 500;
}
.mp-suggest-admin-toolbar .btn.active {
    box-shadow: none;
}
.mp-parser-original {
    font-size: .95rem;
}
@media (max-width: 991.98px) {
    .mp-admin-suggestion-tabcontent .mp-admin-alias-new-card .form-group {
        margin-bottom: .5rem;
    }
}
@media (max-width: 767.98px) {
    .kp-admin-suggest-parser-card .input-group {
        flex-wrap: wrap;
    }
    .kp-admin-suggest-parser-card .input-group-prepend {
        display: none;
    }
    .kp-admin-suggest-parser-card .input-group .form-control {
        flex: 1 1 100%;
        width: 100%;
        border-radius: .2rem !important;
        margin-bottom: .4rem;
    }
    .kp-admin-suggest-parser-card .input-group-append {
        width: 100%;
    }
    .kp-admin-suggest-parser-card .input-group-append .btn {
        width: 100%;
        border-radius: .2rem !important;
    }
    .mp-admin-suggest-alias-table .btn-group {
        width: 100%;
        display: flex;
    }
    .mp-admin-suggest-alias-table .btn-group .btn {
        flex: 1 1 auto;
    }
}


/* v10.6.6 suggestion admin redesign and parser hardening */
.mp-admin-alias-intro-card {
    background: rgba(114,124,245,.045);
    border-color: rgba(114,124,245,.18) !important;
}
.kp-theme-dark-body .mp-admin-alias-intro-card,
body[data-layout-color="dark"] .mp-admin-alias-intro-card {
    background: rgba(114,124,245,.08);
}
.mp-admin-alias-list-card .card-body {
    padding-top: 1rem;
}
.mp-admin-suggest-alias-table {
    border-collapse: separate !important;
    border-spacing: 0 .55rem !important;
}
.mp-admin-suggest-alias-table thead th {
    border: 0 !important;
    color: var(--kp-text-muted, #98a6ad);
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.mp-admin-suggest-alias-table tbody tr {
    background: rgba(152,166,173,.055);
    border-radius: .45rem;
}
.kp-theme-dark-body .mp-admin-suggest-alias-table tbody tr,
body[data-layout-color="dark"] .mp-admin-suggest-alias-table tbody tr {
    background: rgba(255,255,255,.035);
}
.mp-admin-suggest-alias-table tbody tr > td {
    border-top: 1px solid rgba(152,166,173,.16) !important;
    border-bottom: 1px solid rgba(152,166,173,.16) !important;
    padding-top: .65rem !important;
    padding-bottom: .65rem !important;
    vertical-align: middle !important;
}
.mp-admin-suggest-alias-table tbody tr > td:first-child {
    border-left: 1px solid rgba(152,166,173,.16) !important;
    border-radius: .45rem 0 0 .45rem;
}
.mp-admin-suggest-alias-table tbody tr > td:last-child {
    border-right: 1px solid rgba(152,166,173,.16) !important;
    border-radius: 0 .45rem .45rem 0;
}
.mp-admin-suggest-alias-table .form-control {
    background-color: rgba(152,166,173,.09);
    border-color: rgba(152,166,173,.17);
}
.kp-theme-dark-body .mp-admin-suggest-alias-table .form-control,
body[data-layout-color="dark"] .mp-admin-suggest-alias-table .form-control {
    background-color: rgba(255,255,255,.055);
    border-color: rgba(255,255,255,.1);
}
.mp-admin-suggest-alias-table .btn-group {
    display: inline-flex;
    border-radius: .35rem;
    overflow: hidden;
}
.mp-admin-suggest-alias-table .btn-group .btn {
    border-radius: 0 !important;
}
.mp-admin-suggest-alias-table .btn-group .btn:first-child {
    border-radius: .35rem 0 0 .35rem !important;
}
.mp-admin-suggest-alias-table .btn-group .btn:last-child {
    border-radius: 0 .35rem .35rem 0 !important;
}
.mp-suggest-alias-risk > td:first-child {
    box-shadow: inset 3px 0 0 #ffbc00;
}
.mp-suggest-alias-disabled {
    opacity: .72;
}
#adminSuggestionAliasModal .modal-body label {
    font-weight: 600;
}
#adminSuggestionAliasModal .custom-switch {
    padding-top: .25rem;
}
.mp-parser-input-card,
.mp-suggest-parser-result .mp-suggest-parser-field,
.mp-suggest-teach-card {
    border-color: rgba(152,166,173,.18) !important;
}
.mp-suggest-parser-result .alert {
    color: inherit;
}
.mp-suggest-parser-result .alert-light {
    color: inherit;
}
@media (max-width: 767.98px) {
    .mp-admin-suggest-alias-table {
        border-spacing: 0 .75rem !important;
    }
    .mp-admin-suggest-alias-table thead {
        display: none;
    }
    .mp-admin-suggest-alias-table,
    .mp-admin-suggest-alias-table tbody,
    .mp-admin-suggest-alias-table tr,
    .mp-admin-suggest-alias-table td {
        display: block;
        width: 100%;
    }
    .mp-admin-suggest-alias-table tbody tr {
        padding: .75rem;
        border: 1px solid rgba(152,166,173,.18);
        border-radius: .55rem;
    }
    .mp-admin-suggest-alias-table tbody tr > td {
        border: 0 !important;
        padding: .35rem 0 !important;
        border-radius: 0 !important;
    }
    .mp-admin-suggest-alias-table tbody tr > td:last-child {
        padding-top: .65rem !important;
    }
    .mp-admin-suggest-alias-table .btn-group {
        width: 100%;
    }
    .mp-admin-suggest-alias-table .btn-group .btn {
        flex: 1 1 50%;
    }
}


/* v10.6.7 parser teach dropdowns and rich alias fields */
.mp-suggest-teach-card .select2-container,
#adminSuggestionAliasModal .select2-container {
    width: 100% !important;
}
.mp-suggest-teach-card .form-group,
#adminSuggestionAliasModal .form-group {
    margin-bottom: .75rem;
}
.mp-parser-teach-category + .select2-container .select2-selection,
.mp-parser-teach-brand + .select2-container .select2-selection,
#adminSuggestionAliasModal .select2-selection {
    min-height: 34px;
}
.mp-admin-suggest-alias-table .mp-alias-color,
.mp-admin-suggest-alias-table .mp-alias-size {
    font-size: .78rem;
}
@media (max-width: 767.98px) {
    .mp-suggest-teach-card .form-row,
    #adminSuggestionAliasModal .form-row {
        margin-left: 0;
        margin-right: 0;
    }
    .mp-suggest-teach-card .form-row > [class*="col-"],
    #adminSuggestionAliasModal .form-row > [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
    }
}




/* v10.7.0 messenger attach/no-extra-ui + mobile fullscreen chat + receipt modal z-index */
@media (max-width: 767.98px) {
    #messagesModal {
        overflow: hidden !important;
    }
    #messagesModal .modal-dialog {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    #messagesModal .modal-content {
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        border: 0 !important;
        border-radius: 0 !important;
        overflow: hidden !important;
    }
    #messagesModal .modal-header {
        flex: 0 0 auto !important;
    }
    #messagesModal .modal-body {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        height: auto !important;
        overflow: hidden !important;
    }
    #messagesModal .mp-chat-shell,
    #messagesModal .mp-chat-shell > .card-body,
    #messagesModal .mp-chat-shell > .card-body > .row {
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: hidden !important;
    }
    #messagesModal .mp-chat-sidebar,
    #messagesModal .mp-chat-main,
    #messagesModal .mp-chat-placeholder,
    #messagesModal .mp-chat-panel {
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: hidden !important;
    }
    #messagesModal .mp-chat-panel {
        display: flex !important;
        flex-direction: column !important;
    }
    #messagesModal .mp-chat-thread-list {
        height: calc(100vh - 104px) !important;
        height: calc(100dvh - 104px) !important;
        max-height: none !important;
        overflow: auto !important;
    }
    #messagesModal .mp-chat-messages {
        flex: 1 1 auto !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: auto !important;
    }
    #messagesModal .mp-chat-header,
    #messagesModal .mp-chat-composer {
        flex: 0 0 auto !important;
    }
    #messagesModal .mp-chat-composer textarea.form-control {
        max-height: 6rem;
    }
}
#mpPromotionReceiptModal {
    z-index: 2065 !important;
}
.modal-backdrop.kp-receipt-backdrop.show {
    z-index: 2050 !important;
}


/* v10.7.3 messenger multiple image preview layout + optimized uploads */
.mp-chat-attachment-preview-grid {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    min-width: 0;
}
.mp-chat-attachment-preview-thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: .35rem;
    max-width: 100%;
    overflow: hidden;
}
.mp-chat-attachment-preview-info {
    display: flex;
    align-items: center;
    min-width: 0;
}
.mp-chat-attachment-preview-tile {
    flex: 0 0 auto;
}
.mp-chat-attachment-preview-tile img,
.mp-chat-attachment-preview-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
}
.mp-chat-attachment-preview-meta {
    flex: 1 1 auto;
    min-width: 0;
}
@media (max-width: 575.98px) {
    .mp-chat-attachment-preview-grid {
        gap: .4rem;
    }
    .mp-chat-attachment-preview-thumbs {
        gap: .3rem;
    }
    .mp-chat-attachment-preview-tile img,
    .mp-chat-attachment-preview-img {
        width: 42px;
        height: 42px;
    }
}




/* v10.7.6 messenger pricing/status badge cleanup */
.mp-chat-price-badge .mdi,
.mp-chat-listing-terms .mdi {
    opacity: .9;
}

/* v10.7.8 marketplace listing video controls/thumbs + my listing mini badges */
.kp-listing-gallery .carousel-control-prev,
.kp-listing-gallery .carousel-control-next {
    z-index: 8;
    width: 3rem;
    top: 50%;
    bottom: auto;
    height: 4.5rem;
    transform: translateY(-50%);
    opacity: .9;
}
.kp-listing-gallery .carousel-control-prev {
    left: .35rem;
}
.kp-listing-gallery .carousel-control-next {
    right: .35rem;
}
.kp-listing-gallery video.kp-product-main,
.kp-listing-gallery .carousel-item video {
    position: relative;
    z-index: 2;
}
.kp-listing-gallery .carousel-control-prev-icon,
.kp-listing-gallery .carousel-control-next-icon {
    pointer-events: none;
}
.kp-video-thumb {
    height: 72px;
    background: #000;
}
.kp-video-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.kp-video-thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.85);
    font-size: 1.9rem;
    pointer-events: none;
    background: rgba(0,0,0,.12);
}
.mp-my-listing-mini-badges .badge {
    vertical-align: middle;
}
.mp-completed-review-item .badge.badge-primary-lighten,
.mp-completed-review-item .badge.badge-info-lighten {
    font-weight: 600;
}

/* v10.8.0 listing details and gallery cleanup */
.kp-brand-model-cell .badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    white-space: normal;
}


/* v10.8.2 messenger attachment preview polish */
.mp-chat-attachment-preview-grid.is-single {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    grid-template-areas: "thumb info";
    align-items: center;
    column-gap: .65rem;
    row-gap: 0;
}
.mp-chat-attachment-preview-grid.is-single .mp-chat-attachment-preview-thumbs {
    grid-area: thumb;
    display: block;
}
.mp-chat-attachment-preview-grid.is-single .mp-chat-attachment-preview-info {
    grid-area: info;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-width: 0;
}
.mp-chat-attachment-preview-grid.is-single .mp-chat-attachment-preview-meta {
    min-width: 0;
}
.mp-chat-attachment-preview-grid.is-single #mp-chat-remove-attachment {
    align-self: center;
}
.mp-chat-attachment-preview-grid.is-single .mp-chat-attachment-preview-tile img,
.mp-chat-attachment-preview-grid.is-single .mp-chat-attachment-preview-img {
    width: 54px;
    height: 54px;
}
.mp-chat-attachment-preview-meta strong {
    line-height: 1.15;
    max-width: 100%;
}
.mp-chat-attachment-preview-meta small {
    display: block;
    line-height: 1.2;
    margin-top: .1rem;
}
@media (max-width: 575.98px) {
    .mp-chat-attachment-preview {
        padding: .45rem;
    }
    .mp-chat-attachment-preview-grid.is-single {
        grid-template-columns: 48px minmax(0, 1fr);
        column-gap: .55rem;
    }
    .mp-chat-attachment-preview-grid.is-single .mp-chat-attachment-preview-tile img,
    .mp-chat-attachment-preview-grid.is-single .mp-chat-attachment-preview-img {
        width: 48px;
        height: 48px;
    }
    .mp-chat-attachment-preview-grid.is-single #mp-chat-remove-attachment {
        min-width: 42px;
        min-height: 42px;
        margin-left: .45rem !important;
    }
    .mp-chat-attachment-preview-grid.is-multiple .mp-chat-attachment-preview-info {
        gap: .5rem;
    }
}


/* v10.8.3 messenger offers, unread and read receipt polish */
.mp-chat-thread.is-unread {
    border-left: 3px solid rgba(114, 124, 245, .95);
    background: rgba(114, 124, 245, .08);
}
.mp-chat-thread.is-unread:not(.active):hover,
.mp-chat-thread.is-unread:not(.active):focus {
    background: rgba(114, 124, 245, .13);
}
.mp-thread-unread-count {
    min-width: 1.35rem;
    text-align: center;
}
/* v10.8.4 mobile messenger badge wrapping + attachment loading state */
#messagesModal .mp-chat-header {
    min-width: 0;
}
#messagesModal .mp-chat-meta {
    min-width: 0;
}
#messagesModal .mp-chat-meta-pricing {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center;
    gap: .25rem .25rem;
    max-width: 100%;
    overflow: visible !important;
}
#messagesModal .mp-chat-meta-pricing .badge {
    margin-right: 0 !important;
    flex: 0 1 auto;
    max-width: 100%;
}
#messagesModal .mp-chat-meta-badge {
    display: inline-flex;
    max-width: 100%;
    white-space: normal;
    line-height: 1.25;
}
#messagesModal .mp-chat-action-chip {
    white-space: normal;
}
.mp-chat-attachment-preview-tile {
    position: relative;
    overflow: hidden;
}
.mp-attachment-spinner,
.mp-attachment-ready {
    position: absolute;
    right: .18rem;
    bottom: .18rem;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(49, 58, 70, .78);
    color: #fff;
    font-size: .72rem;
    line-height: 1;
}
.mp-attachment-spinner .spinner-border {
    width: .82rem;
    height: .82rem;
    border-width: .12rem;
}
.mp-chat-attachment-preview-grid.is-processing .mp-chat-attachment-preview-img {
    opacity: .65;
}
.mp-chat-attachment-preview-grid.is-ready .mp-chat-attachment-preview-img {
    opacity: 1;
}
@media (max-width: 575.98px) {
    #messagesModal .mp-chat-header .media,
    #messagesModal .mp-chat-header .media-body {
        min-width: 0;
    }
    #messagesModal .mp-chat-meta-name {
        display: inline-block;
        max-width: 100%;
    }
    #messagesModal .mp-chat-meta-pricing {
        margin-top: .2rem;
    }
    #messagesModal .mp-chat-meta-pricing .badge {
        font-size: .72rem;
        line-height: 1.2;
        padding: .22rem .38rem;
    }
}


/* v10.8.5 messenger own-offer/read receipt/listing link polish */
.mp-chat-bubble {
    position: relative;
}
.mp-chat-message.mine .mp-chat-bubble {
    padding-top: 1.15rem;
}
.mp-chat-read-receipt {
    position: absolute;
    top: .34rem;
    right: .45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .88rem;
    line-height: 1;
    color: rgba(152, 166, 173, .82);
    opacity: .82;
    cursor: help;
}
.mp-chat-read-receipt .mdi {
    line-height: 1;
}
#messagesModal #mp-chat-open-listing {
    flex: 0 0 auto;
}
@media (max-width: 575.98px) {
    #messagesModal #mp-chat-open-listing {
        width: 2.4rem;
        height: 2.4rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }
}


/* v10.8.6 marketplace report/admin moderation polish */
#mp-admin-paid-table td:last-child,
#mp-admin-promos-table td:last-child,
#mp-admin-reports-table td:last-child {
    min-width: 96px;
    white-space: nowrap;
}
#mp-admin-paid-table .btn,
#mp-admin-promos-table .btn,
#mp-admin-reports-table .btn {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}
.mp-admin-report-actions .btn.disabled {
    pointer-events: none;
    opacity: .65;
}
.mp-admin-risk-icon .mdi {
    font-size: 1rem;
}
#admin-report-context-panel {
    background: rgba(152,166,173,.08) !important;
}


/* v10.8.7 mobile messenger header pricing badges: horizontal nav-style scroll */
@media (max-width: 575.98px) {
    #messagesModal .mp-chat-meta-pricing {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        max-width: 100%;
        padding-bottom: .08rem;
        gap: 0;
    }
    #messagesModal .mp-chat-meta-pricing::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
    #messagesModal .mp-chat-meta-pricing .badge {
        flex: 0 0 auto;
        white-space: nowrap !important;
        margin-right: .25rem !important;
    }
}


/* v10.8.8 mobile messenger: one message scrollbar only */
@media (max-width: 767.98px) {
    #messagesModal,
    #messagesModal .modal-dialog,
    #messagesModal .modal-content,
    #messagesModal .modal-body,
    #messagesModal .mp-chat-shell,
    #messagesModal .mp-chat-shell > .card-body,
    #messagesModal .mp-chat-shell > .card-body > .row,
    #messagesModal .mp-chat-main,
    #messagesModal .mp-chat-panel {
        overflow: hidden !important;
    }
    #messagesModal .mp-chat-panel {
        height: 100% !important;
        max-height: 100% !important;
        min-height: 0 !important;
    }
    #messagesModal .mp-chat-header,
    #messagesModal .mp-chat-composer,
    #messagesModal #mp-chat-context-actions {
        flex: 0 0 auto !important;
    }
    #messagesModal .mp-chat-messages {
        flex: 1 1 0 !important;
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding-bottom: 0 !important;
    }
    #messagesModal .mp-chat-messages > .simplebar-wrapper,
    #messagesModal .mp-chat-messages > .simplebar-mask,
    #messagesModal .mp-chat-messages > .simplebar-offset,
    #messagesModal .mp-chat-messages > .simplebar-content-wrapper,
    #messagesModal .mp-chat-messages > .simplebar-content {
        position: static !important;
        transform: none !important;
        inset: auto !important;
        width: auto !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    #messagesModal .mp-chat-messages .simplebar-placeholder,
    #messagesModal .mp-chat-messages .simplebar-track {
        display: none !important;
    }
    #messagesModal .mp-chat-messages .mp-chat-message:last-child {
        margin-bottom: 0 !important;
    }
}

/* v10.9.0 profile marketplace tab — compact marketplace.php card layout */
.kp-profile-marketplace-tab .min-width-0 {
    min-width: 0;
}
.kp-profile-marketplace-summary {
    border: 1px solid rgba(152,166,173,.16);
    box-shadow: none;
}
.kp-profile-marketplace-avatar {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    object-fit: cover;
    box-shadow: 0 0 0 3px rgba(57,175,209,.12);
}
.kp-profile-marketplace-facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .3rem .7rem;
    color: #98a6ad;
    font-size: .78rem;
}
.kp-profile-marketplace-facts span {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}
.kp-profile-marketplace-facts .mdi {
    margin-right: .22rem;
}
.kp-profile-marketplace-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .35rem;
}
.kp-profile-marketplace-actions .btn {
    margin: 0;
    white-space: nowrap;
}
.kp-profile-marketplace-badges .kp-seller-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
}
.kp-profile-marketplace-badges .kp-seller-badges .badge {
    margin: 0 !important;
    white-space: normal;
    text-align: left;
    line-height: 1.2;
}
.kp-profile-marketplace-grid {
    margin-left: -.45rem;
    margin-right: -.45rem;
}
.kp-profile-marketplace-grid > [class*="col-"] {
    padding-left: .45rem;
    padding-right: .45rem;
}
.kp-profile-marketplace-grid .marketplace-card {
    margin-bottom: 0;
}
.kp-profile-marketplace-grid .kp-market-card-media,
.kp-profile-marketplace-grid .kp-card-carousel,
.kp-profile-marketplace-grid .kp-card-carousel-inner,
.kp-profile-marketplace-grid .kp-mp-carousel-item,
.kp-profile-marketplace-grid .card-img-top {
    height: 220px;
}
.kp-profile-marketplace-grid .card-img-top {
    width: 100%;
    object-fit: cover;
}
.kp-profile-marketplace-grid .kp-card-carousel-inner,
.kp-profile-marketplace-grid .kp-mp-carousel-item {
    position: relative;
    width: 100%;
}
.kp-profile-marketplace-grid .kp-mp-carousel-item {
    display: none;
}
.kp-profile-marketplace-grid .kp-mp-carousel-item.active {
    display: block;
}
.kp-profile-marketplace-grid .kp-market-card-body {
    min-height: 220px;
}
.kp-profile-marketplace-grid .kp-market-card-main {
    min-height: 86px;
}
.kp-profile-marketplace-grid .kp-line-clamp {
    -webkit-line-clamp: 2;
}
.kp-profile-marketplace-favorite {
    position: absolute;
    right: .55rem;
    bottom: .55rem;
    z-index: 8;
}
.kp-profile-marketplace-grid .kp-market-pricing-badges:empty {
    display: none;
}
body[data-layout-color="dark"] .kp-profile-marketplace-summary,
html[data-layout-color="dark"] .kp-profile-marketplace-summary,
body.kp-theme-dark-body .kp-profile-marketplace-summary {
    border-color: rgba(241,243,250,.12);
}
@media (max-width: 991.98px) {
    .kp-profile-marketplace-actions {
        justify-content: flex-start;
    }
}
@media (max-width: 575.98px) {
    .kp-profile-marketplace-summary .card-body {
        padding: .85rem !important;
    }
    .kp-profile-marketplace-avatar {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }
    .kp-profile-marketplace-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }
    .kp-profile-marketplace-actions .btn {
        width: 100%;
    }
    .kp-profile-marketplace-grid .kp-market-card-media,
    .kp-profile-marketplace-grid .kp-card-carousel,
    .kp-profile-marketplace-grid .kp-card-carousel-inner,
    .kp-profile-marketplace-grid .kp-mp-carousel-item,
    .kp-profile-marketplace-grid .card-img-top {
        height: 210px;
    }
    .kp-profile-marketplace-grid .kp-market-card-body {
        min-height: 0;
    }
}


/* v10.9.2 profile reviews + rebuilt team marketplace */
.kp-profile-marketplace-facts > span,
.kp-team-marketplace-meta > span {
    display: inline-flex;
    align-items: center;
    gap: .24rem;
    white-space: nowrap;
}
.kp-profile-marketplace-facts > span > span,
.kp-team-marketplace-meta > span > span {
    display: inline;
}
.kp-profile-marketplace-facts strong,
.kp-team-marketplace-meta strong {
    color: inherit;
    font-variant-numeric: tabular-nums;
}
.kp-profile-marketplace-badges {
    display: block;
}
.kp-profile-marketplace-badges .kp-seller-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .32rem;
}
.kp-profile-marketplace-badges .kp-seller-badges .badge {
    display: inline-flex !important;
    align-items: center;
    min-height: 28px;
    margin: 0 !important;
    padding: .28rem .5rem;
    border: 0;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
    box-shadow: none;
}
.kp-profile-marketplace-badges .kp-seller-badges .kp-marketplace-user-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: .3rem !important;
    color: inherit;
    font-size: .82rem;
}
.kp-profile-reviews-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: .85rem;
    box-shadow: 0 1rem 3rem rgba(49,58,70,.22);
}
.kp-profile-reviews-header {
    align-items: center;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(152,166,173,.16);
    background: linear-gradient(135deg, rgba(250,188,0,.10), rgba(57,175,209,.06));
}
.kp-profile-reviews-header .media {
    min-width: 0;
    flex: 1 1 auto;
}
.kp-profile-reviews-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    object-fit: cover;
    box-shadow: 0 0 0 3px rgba(250,188,0,.14);
}
.kp-profile-reviews-summary {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .8rem .9rem;
    border: 1px solid rgba(152,166,173,.16);
    border-radius: .7rem;
    background: rgba(152,166,173,.055);
}
.kp-profile-reviews-score {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    min-width: 72px;
}
.kp-profile-reviews-score strong {
    font-size: 1.75rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.kp-profile-reviews-score span {
    margin-left: .12rem;
    color: #98a6ad;
    font-size: .78rem;
}
.kp-profile-reviews-stars {
    min-height: 20px;
    color: #f9c851;
    line-height: 1;
}
.kp-profile-reviews-list .mp-review-list {
    display: grid;
    gap: .55rem;
}
.kp-profile-reviews-list .mp-review-item {
    padding: .75rem !important;
    border: 1px solid rgba(152,166,173,.15) !important;
    border-radius: .65rem !important;
    background: rgba(152,166,173,.025);
}
.kp-profile-reviews-list .mp-review-item:last-child {
    border-bottom: 1px solid rgba(152,166,173,.15) !important;
}
.kp-profile-reviews-list .mp-review-listing-img {
    width: 58px;
    height: 44px;
    object-fit: cover;
}
.kp-profile-reviews-list .mp-review-avatar {
    width: 34px;
    height: 34px;
    object-fit: cover;
}

/* Team marketplace intentionally uses the same .kp-market-grid,
   .kp-market-grid-item and .marketplace-card rules as marketplace.php. */
.kp-team-marketplace-v2 {
    min-width: 0;
}
.kp-team-marketplace-toolbar {
    padding: .85rem 1rem;
    border: 1px solid rgba(152,166,173,.16);
    border-radius: .55rem;
    background: rgba(152,166,173,.035);
}
.kp-team-marketplace-avatar {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    object-fit: cover;
    box-shadow: 0 0 0 3px rgba(57,175,209,.12);
}
.kp-team-marketplace-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .28rem .7rem;
    color: #98a6ad;
    font-size: .78rem;
}
.kp-team-marketplace-meta .mdi {
    margin-right: .05rem;
}
.kp-team-marketplace-loading {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #98a6ad;
}
.kp-team-marketplace-empty {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    border: 1px dashed rgba(152,166,173,.32);
    border-radius: .55rem;
    color: #98a6ad;
    text-align: center;
    background: rgba(152,166,173,.025);
}
.kp-team-marketplace-empty .mdi {
    margin-bottom: .55rem;
    font-size: 2.4rem;
}
.kp-team-marketplace-empty strong {
    color: inherit;
}
.kp-team-marketplace-empty span {
    max-width: 440px;
    margin-top: .2rem;
    font-size: .82rem;
}
#team-market-grid {
    min-height: 0;
}
#team-market-grid:empty {
    display: none;
}
body[data-layout-color="dark"] .kp-profile-reviews-summary,
html[data-layout-color="dark"] .kp-profile-reviews-summary,
body.kp-theme-dark-body .kp-profile-reviews-summary,
body[data-layout-color="dark"] .kp-profile-reviews-list .mp-review-item,
html[data-layout-color="dark"] .kp-profile-reviews-list .mp-review-item,
body.kp-theme-dark-body .kp-profile-reviews-list .mp-review-item,
body[data-layout-color="dark"] .kp-team-marketplace-toolbar,
html[data-layout-color="dark"] .kp-team-marketplace-toolbar,
body.kp-theme-dark-body .kp-team-marketplace-toolbar,
body[data-layout-color="dark"] .kp-team-marketplace-empty,
html[data-layout-color="dark"] .kp-team-marketplace-empty,
body.kp-theme-dark-body .kp-team-marketplace-empty {
    border-color: rgba(241,243,250,.11) !important;
    background: rgba(241,243,250,.035);
}
@media (max-width: 575.98px) {
    .kp-profile-marketplace-badges .kp-seller-badges {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: .15rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .kp-profile-marketplace-badges .kp-seller-badges::-webkit-scrollbar {
        display: none;
    }
    .kp-profile-marketplace-badges .kp-seller-badges .badge {
        flex: 0 0 auto;
    }
    .kp-profile-reviews-modal .modal-dialog {
        margin: .5rem;
        min-height: calc(100% - 1rem);
    }
    .kp-profile-reviews-modal .modal-content {
        max-height: calc(100vh - 1rem);
        border-radius: .7rem;
    }
    .kp-profile-reviews-header {
        padding: .85rem;
    }
    .kp-profile-reviews-summary {
        padding: .7rem;
    }
    .kp-profile-reviews-list .mp-review-item {
        padding: .65rem !important;
    }
    .kp-team-marketplace-toolbar {
        padding: .75rem;
    }
    .kp-team-marketplace-avatar {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }
    .kp-team-marketplace-toolbar .btn {
        width: 100%;
    }
}


/* v10.9.3 team marketplace card parity + team sidebar list layout */
.kp-team-marketplace-v2 #team-market-grid > .kp-market-grid-item {
    display: flex !important;
    align-items: stretch !important;
}
.kp-team-marketplace-v2 #team-market-grid > .kp-market-grid-item > .marketplace-card,
.kp-team-marketplace-v2 .marketplace-card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    min-height: 560px !important;
    overflow: visible !important;
}
.kp-team-marketplace-v2 .marketplace-card .ribbon-two {
    z-index: 12 !important;
}
.kp-team-marketplace-v2 .marketplace-card .kp-market-card-media {
    flex: 0 0 auto !important;
    overflow: hidden !important;
    border-radius: .35rem .35rem 0 0;
}
.kp-team-marketplace-v2 .marketplace-card .kp-market-card-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
}
.kp-team-marketplace-v2 .marketplace-card .kp-market-card-main {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
}
.kp-team-marketplace-v2 .marketplace-card .kp-line-clamp {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 5 !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: 5.75rem !important;
    overflow: hidden !important;
    margin-bottom: .2rem !important;
}
.kp-team-marketplace-v2 .marketplace-card .kp-market-card-bottom {
    display: flex !important;
    flex-direction: column !important;
    flex: 0 0 auto !important;
    min-height: 0 !important;
    margin-top: .35rem !important;
    padding-bottom: 0 !important;
    overflow: visible !important;
}
.kp-team-marketplace-v2 .marketplace-card .kp-market-card-bottom > .d-flex.justify-content-between.align-items-center.mb-1 {
    margin-bottom: .15rem !important;
}
.kp-team-marketplace-v2 .marketplace-card .kp-market-pricing-badges {
    flex: 0 0 auto !important;
    min-height: 0 !important;
    max-height: 1.45rem !important;
    margin-bottom: .12rem !important;
    gap: .2rem !important;
    overflow: hidden !important;
    align-content: flex-start !important;
}
.kp-team-marketplace-v2 .marketplace-card .kp-market-pricing-badges:empty {
    display: none !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    visibility: hidden !important;
}
.kp-team-marketplace-v2 .marketplace-card .kp-market-card-bottom > .small.text-muted.mb-2.text-truncate {
    flex: 0 0 auto !important;
    min-height: 1.1rem !important;
    max-height: 1.1rem !important;
    margin-bottom: .25rem !important;
}
.kp-team-marketplace-v2 .marketplace-card .kp-market-seller {
    flex: 0 0 auto !important;
    min-height: 32px !important;
    max-height: 38px !important;
    margin-top: 0 !important;
    margin-bottom: .35rem !important;
    overflow: hidden !important;
}
.kp-team-marketplace-v2 .marketplace-card .kp-market-card-bottom > .btn.btn-primary.btn-sm.btn-block,
.kp-team-marketplace-v2 .marketplace-card a.btn.btn-primary.btn-sm.btn-block {
    flex: 0 0 auto !important;
    display: block !important;
    width: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    position: static !important;
    transform: none !important;
    bottom: auto !important;
}

/* Team profile side cards: title/text/date/link use normal document flow. */
.kp-team-side-list {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.kp-team-side-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: .65rem;
    min-width: 0;
    padding: .72rem 0;
    border-bottom: 1px solid rgba(152,166,173,.15);
}
.kp-team-side-item:first-child {
    padding-top: 0;
}
.kp-team-side-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}
.kp-team-side-avatar {
    width: 40px;
    min-width: 40px;
}
.kp-team-side-avatar > img,
.kp-team-side-avatar > .rounded-circle {
    width: 40px !important;
    height: 40px !important;
    object-fit: cover;
}
.kp-team-side-content {
    min-width: 0;
}
.kp-team-side-title {
    display: block;
    min-width: 0;
    margin: 0 0 .2rem;
    color: inherit;
    font-size: .84rem;
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
a.kp-team-side-title:hover,
a.kp-team-side-title:focus {
    color: #39afd1;
}
.kp-team-side-text {
    min-width: 0;
    color: #98a6ad;
    font-size: .75rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.kp-team-side-flag {
    width: 16px;
    height: 11px;
    margin-right: .2rem;
    border-radius: .15rem;
    vertical-align: -1px;
}
.kp-team-side-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .45rem;
    min-width: 0;
    margin-top: .28rem;
    color: #98a6ad;
    font-size: .7rem;
    line-height: 1.2;
}
.kp-team-side-meta time {
    flex: 0 0 auto;
    white-space: nowrap;
}
.kp-team-side-meta > span {
    min-width: 0;
    text-align: right;
}
.kp-team-side-link,
.kp-team-side-meta .btn {
    display: inline-block;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    color: #39afd1;
    font-size: .72rem !important;
    line-height: 1.2 !important;
    white-space: nowrap;
}
body[data-layout-color="dark"] .kp-team-side-item,
html[data-layout-color="dark"] .kp-team-side-item,
body.kp-theme-dark-body .kp-team-side-item {
    border-bottom-color: rgba(241,243,250,.09);
}

@media (max-width: 767.98px) {
    .kp-team-marketplace-v2 #team-market-grid > .kp-market-grid-item > .marketplace-card,
    .kp-team-marketplace-v2 .marketplace-card {
        min-height: 0 !important;
        height: auto !important;
    }
    .kp-team-marketplace-v2 .marketplace-card .kp-line-clamp {
        -webkit-line-clamp: 4 !important;
        max-height: 4.65rem !important;
    }
}


/* v10.9.4 profile reviews, Hyper-theme badges and badge rarity */
.kp-profile-marketplace-name-link {
    color: inherit;
    text-decoration: none;
}
.kp-profile-marketplace-name-link:hover,
.kp-profile-marketplace-name-link:focus {
    color: #39afd1;
    text-decoration: none;
}
.kp-profile-reviews-button .kp-profile-reviews-count {
    min-width: 1.4rem;
    border: 1px solid rgba(255,188,0,.28);
    font-variant-numeric: tabular-nums;
}
.kp-profile-reviews-button:hover .kp-profile-reviews-count,
.kp-profile-reviews-button:focus .kp-profile-reviews-count,
.kp-profile-reviews-button:active .kp-profile-reviews-count {
    background-color: #fff !important;
    color: #a87400 !important;
    border-color: rgba(255,255,255,.88) !important;
}
.kp-profile-marketplace-badges .kp-marketplace-user-badge {
    max-width: 100%;
}
.kp-profile-marketplace-badges .kp-marketplace-user-badge-label {
    overflow: hidden;
    text-overflow: ellipsis;
}
.kp-badge-holder-count {
    display: inline-flex;
    align-items: center;
    gap: .16rem;
    min-height: 18px;
    margin-left: .38rem;
    padding: .05rem .3rem;
    border-radius: 999px;
    background: rgba(49,58,70,.14);
    color: inherit;
    font-size: .64rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.badge-primary .kp-badge-holder-count,
.badge-secondary .kp-badge-holder-count,
.badge-success .kp-badge-holder-count,
.badge-info .kp-badge-holder-count,
.badge-warning .kp-badge-holder-count,
.badge-danger .kp-badge-holder-count {
    background: rgba(255,255,255,.22);
}
.kp-badge-holder-count .mdi {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0;
    background: transparent !important;
    color: inherit !important;
    font-size: .68rem !important;
}
.mp-badge-guide-card {
    overflow: hidden;
}
.mp-badge-guide-card.is-rare {
    position: relative;
}
.mp-badge-guide-card.is-rare::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 52px;
    height: 3px;
    border-radius: 0 0 0 3px;
    background: #ffbc00;
}
.mp-badge-holder-meta {
    display: inline-flex;
    align-items: center;
    color: #98a6ad;
    font-size: .72rem;
    line-height: 1.25;
}
.mp-badge-tone-primary.is-earned { border-color: rgba(114,124,245,.42) !important; }
.mp-badge-tone-secondary.is-earned { border-color: rgba(108,117,125,.42) !important; }
.mp-badge-tone-success.is-earned { border-color: rgba(10,207,151,.42) !important; }
.mp-badge-tone-info.is-earned { border-color: rgba(57,175,209,.42) !important; }
.mp-badge-tone-warning.is-earned { border-color: rgba(255,188,0,.48) !important; }
.mp-badge-tone-danger.is-earned { border-color: rgba(250,92,124,.44) !important; }
body[data-layout-color="dark"] .kp-profile-reviews-button:hover .kp-profile-reviews-count,
html[data-layout-color="dark"] .kp-profile-reviews-button:hover .kp-profile-reviews-count,
body.kp-theme-dark-body .kp-profile-reviews-button:hover .kp-profile-reviews-count {
    background-color: #f1f3fa !important;
    color: #8a6300 !important;
}
@media (max-width: 575.98px) {
    .kp-profile-marketplace-badges .kp-marketplace-user-badge {
        flex: 0 0 auto;
    }
}
