.kwdmm-wrap,
.kwdmm-wrap * {
    box-sizing: border-box;
}

.kwdmm-wrap {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    font-family: inherit;
    z-index: 80;
}

.kwdmm-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    cursor: pointer;
    min-height: 48px;
    line-height: 1;
    font-family: inherit;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.kwdmm-trigger-icon,
.kwdmm-trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.kwdmm-trigger-icon svg,
.kwdmm-trust-icon svg {
    width: 1em;
    height: 1em;
}

.kwdmm-chevron {
    display: inline-block;
    font-size: 18px;
    line-height: 1;
    transform: translateY(-1px);
}

.kwdmm-panel {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    overflow: hidden;
    z-index: 99990;
    max-width: calc(100vw - 28px);
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 18px 60px rgba(15, 23, 42, .14);
}

.kwdmm-align-center .kwdmm-panel {
    left: 50%;
    transform: translate(-50%, 8px);
}

.kwdmm-align-right .kwdmm-panel {
    left: auto;
    right: 0;
}

.kwdmm-wrap.is-open .kwdmm-panel,
.kwdmm-wrap[data-interaction="hover"]:hover .kwdmm-panel,
.kwdmm-wrap[data-interaction="hover"]:focus-within .kwdmm-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.kwdmm-align-center.is-open .kwdmm-panel,
.kwdmm-align-center[data-interaction="hover"]:hover .kwdmm-panel,
.kwdmm-align-center[data-interaction="hover"]:focus-within .kwdmm-panel {
    transform: translate(-50%, 0);
}

.kwdmm-panel-inner {
    display: flex;
    align-items: stretch;
    min-height: 420px;
}



.kwdmm-wrap.kwdmm-match-auto-trigger {
    width: 420px;
    max-width: calc(100vw - 28px);
}

.kwdmm-wrap.kwdmm-match-auto-trigger .kwdmm-trigger {
    width: 100%;
    justify-content: flex-start;
}

.kwdmm-wrap.kwdmm-match-auto-trigger .kwdmm-chevron {
    margin-left: auto;
}

.kwdmm-wrap.is-auto-sidebar-only .kwdmm-panel {
    width: 420px !important;
    max-width: calc(100vw - 28px);
}

.kwdmm-wrap.is-auto-sidebar-only .kwdmm-panel-inner {
    min-height: 0;
}

.kwdmm-wrap.is-auto-sidebar-only .kwdmm-sidebar {
    width: 420px;
    flex-basis: 420px;
    border-right: 0;
}

.kwdmm-wrap.is-auto-sidebar-only .kwdmm-content,
.kwdmm-wrap.is-auto-sidebar-only .kwdmm-trust,
.kwdmm-wrap.is-auto-sidebar-only .kwdmm-brands {
    display: none;
}

.kwdmm-sidebar {
    flex: 0 0 330px;
    border-right: 1px solid rgba(15, 23, 42, .08);
    background: #fff;
    padding: 12px 0;
    max-height: 70vh;
    overflow: auto;
}

.kwdmm-department {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(15, 23, 42, .06);
    cursor: pointer;
    text-align: left;
    padding: 11px 18px;
    color: #111827;
    font-family: inherit;
    transition: background-color .16s ease, color .16s ease;
}

.kwdmm-department:hover,
.kwdmm-department.is-active {
    background: #f9edf5;
    color: #7a0046;
}

.kwdmm-department-image {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 8px;
    flex: 0 0 auto;
}

.kwdmm-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #7a0046;
    font-weight: 800;
}

.kwdmm-department-text {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
}

.kwdmm-department-title {
    display: block;
    font-weight: 800;
    font-size: 14px;
    line-height: 1.22;
    color: #111827;
}

.kwdmm-department-sub {
    display: block;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.25;
    margin-top: 2px;
}

.kweli-title-one_line .kwdmm-department-title,
.kweli-sub-one_line .kwdmm-department-sub {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kweli-title-two_line .kwdmm-department-title,
.kweli-sub-two_line .kwdmm-department-sub {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.kweli-title-wrap .kwdmm-department-title,
.kweli-sub-wrap .kwdmm-department-sub {
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    word-break: normal;
}

.kwdmm-content {
    flex: 1 1 auto;
    min-width: 0;
    padding: 26px 28px;
    max-height: 70vh;
    overflow: auto;
}

.kwdmm-content .kwdmm-tab-panel {
    display: none !important;
}

.kwdmm-content .kwdmm-tab-panel.is-active {
    display: block !important;
}


.kwdmm-parent-panel-heading {
    margin: 0 0 20px;
    padding: 0 0 14px;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.kwdmm-parent-panel-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
    color: #111827;
}

.kwdmm-parent-panel-title a {
    color: inherit;
    text-decoration: none;
}

.kwdmm-parent-panel-title a:hover {
    text-decoration: underline;
}

.kwdmm-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 26px;
}

.kwdmm-column {
    min-width: 0;
    padding-right: 20px;
    border-right: 1px solid rgba(15, 23, 42, .08);
}

.kwdmm-column:last-child {
    border-right: 0;
}

.kwdmm-column-media {
    display: flex;
    width: 100%;
    height: 130px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    background: #fafafa;
    border-radius: 10px;
    overflow: hidden;
}

.kwdmm-column-image {
    max-width: 92%;
    max-height: 112px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.kwdmm-column-title {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 800;
    text-transform: uppercase;
}

.kwdmm-column-title a {
    color: inherit;
    text-decoration: none;
}

.kwdmm-links {
    margin: 0;
    padding: 0 0 0 18px;
    list-style: disc;
}

.kwdmm-links li {
    margin: 0 0 9px;
    padding: 0;
}

.kwdmm-link,
.kwdmm-view-all {
    text-decoration: none;
    transition: color .16s ease;
}

.kwdmm-link {
    font-size: 14px;
    line-height: 1.3;
}

.kwdmm-view-all {
    display: inline-block;
    color: #2563eb;
    font-weight: 700;
    margin-top: 14px;
}

.kwdmm-count {
    opacity: .65;
    font-size: .9em;
}

.kwdmm-trust {
    flex: 0 0 330px;
    border-left: 1px solid rgba(15, 23, 42, .08);
    padding: 26px 28px;
    background: #fff;
    max-height: 70vh;
    overflow: auto;
}

.kwdmm-trust-heading,
.kwdmm-brands-heading {
    margin: 0 0 22px;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
}

.kwdmm-trust-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.kwdmm-trust-icon {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 50%;
    color: #111827;
    font-size: 18px;
}

.kwdmm-trust-item strong {
    display: block;
    font-size: 14px;
    line-height: 1.25;
    margin-bottom: 3px;
    color: #111827;
}

.kwdmm-trust-item span {
    display: block;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.3;
}

.kwdmm-brands {
    border-top: 1px solid rgba(15, 23, 42, .08);
    padding: 20px 28px;
}

.kwdmm-brand-list {
    display: flex;
    align-items: center;
    gap: 34px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
}

.kwdmm-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 80px;
    min-height: 38px;
    text-decoration: none;
    color: #111827;
    font-weight: 800;
}

.kwdmm-brand img {
    display: block;
    max-width: 130px;
    max-height: 42px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.kwdmm-empty-panel,
.kwdmm-notice {
    padding: 22px;
}

@media (max-width: 1240px) {
    .kwdmm-columns {
        grid-template-columns: repeat(3, minmax(140px, 1fr));
    }
    .kwdmm-trust {
        flex-basis: 230px;
        width: 230px;
    }
}

/* v1.0.11: reduce empty gap between sub-category title and View all link when lower-level links are hidden. */
.kwdmm-column.has-no-links .kwdmm-column-title {
    margin-bottom: 4px;
}

.kwdmm-column.has-no-links .kwdmm-view-all {
    margin-top: 0;
}

.kwdmm-parent-panel-heading {
    background-clip: padding-box;
}

.kwdmm-parent-panel-title,
.kwdmm-parent-panel-title a {
    color: inherit;
}
