﻿
/*Common CSS */
body { background-color: #fff; overflow-y: scroll; overflow-x: hidden; width: 100% !important; max-width: 100% !important; padding-top: 0 !important }
[v-cloak] { display: none; }
.std-font { font-family: "proxima-nova", "Helvetica Neue",Helvetica,Arial,sans-serif; font-size: 14px; }
.std-grey-border { border: solid 1px #DDDDDD; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

.body-is, .body-ms, .body-hh { width: 100% !important; display: table !important; vertical-align: top; }


/*DESKTOP*/
.body-container { background-color: #fff; margin-top: 0; padding-top: 20px; width: 100% !important; }
container.directory-container-v2, .directory-container-v2 { width: 100%; max-width:1200px !important; font-family: 'proxima-nova'; font-size: 12px; min-width: 350px; padding: 0 10px; }
    .directory-container-v2 a { transition: all 0.3s; }

        .directory-container-v2 a.view-more-articles, .directory-container-v2 a.view-more-products { text-decoration: none !important; border: solid 1px var(--bgcolor-theme); padding: 3px 8px; width: 110px; display: block; float: right; text-align: center; }
    .directory-container-v2 .more-products-container { display: flex; width: 100%; justify-content: flex-end; padding-right: 20px; }
    .directory-container-v2 h2 { margin-left: 1rem; font-size: 17px; font-family: 'proxima-nova'; }

        .directory-container-v2 h2:after { content: " "; border-bottom: solid 4px var(--bgcolor-theme); display: block; width: 140px; padding: 0; margin: 0; margin-bottom: 20px; }
        .directory-container-v2 h2.long-h2::after { width: 290px !important; }
        .directory-container-v2 .popular-categories h2:after { width: 175px; }
        .directory-container-v2 .related-categories { background: none; }
        .directory-container-v2 .related-categories h2 { text-align: right; margin-bottom: 25px;}        
        .directory-container-v2 .related-categories h2:after { width: 175px; position: absolute; right: 0;}
        .directory-container-v2 .related-categories .category-item { float: right; }
    .directory-container-v2 h1.generic-header { margin-top: 10px; margin-bottom: 13px; }

    .directory-container-v2 .category-item { margin: 0 0.8% 8px 0; padding: 3px; border: solid 2px #fff; border-radius: 10px, 10px, 0, 0; opacity: 1; box-sizing: border-box; transform: scale(1.0); transition: all 0.4s; width: 13.6%; float: left; }
        .directory-container-v2 .category-item:nth-of-type(7n) { margin-right: 0; }

        .directory-container-v2 .category-item:hover { border: solid 2px #E0E0E0; opacity: 1; transform: scale(1.05); }
        .directory-container-v2 .category-item .category-item-img { border: solid 0px black; padding: 0; }
        .directory-container-v2 .category-item .category-item-details { margin-top: 5px; background-color: #fff !important; font-weight: normal; font-size: 13px; text-align:center; line-height: 1em; min-height: 4em !important; }

    .directory-container-v2 .intro-text { font-weight: normal; font-size: 1em; line-height: 1.3em; margin-top: 10px; }
    .directory-container-v2 .directory-category-images-container { width: 100%; margin: 0 auto; float: none; }
    .directory-container-v2 .directory-category-ul { column-count: 4; }
    .directory-container-v2 .products-articles-container { width: 100%; }
        .directory-container-v2 .products-articles-container .product-container { width: 65%; float: left; }
        .directory-container-v2 .products-articles-container .article-container { width: 34%; float: right; }
            .directory-container-v2 .products-articles-container .article-container .article-individual-item { width: 100%; margin-bottom: 15px; border: solid 2px #fff; transition: all 0.4s; transform: scale(1.0); }
                .directory-container-v2 .products-articles-container .article-container .article-individual-item:hover { border: solid 2px var(--grey-bg); transform: scale(1.03); background-color: var(--grey-bg);}
                .directory-container-v2 .products-articles-container .article-container .article-individual-item .left-area { width: 26%; float: left; }
                    .directory-container-v2 .products-articles-container .article-container .article-individual-item .left-area img { width: 100%; }
                .directory-container-v2 .products-articles-container .article-container .article-individual-item .right-area { width: 71%; float: right; }
                .directory-container-v2 .products-articles-container .article-container .article-individual-item .right-area a.category-article-link:hover { color:var(--bgcolor-theme); }
                    .directory-container-v2 .products-articles-container .article-container .article-individual-item .right-area .title { font-weight: bold; max-height: 38px; position: relative; top: -4px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal;}
                    .directory-container-v2 .products-articles-container .article-container .article-individual-item .right-area .author { margin-top: -3px; font-size: 12px;color: #898989; }
                    .directory-container-v2 .products-articles-container .article-container .article-individual-item .right-area .author a { font-size: inherit; color: inherit; text-decoration: none; }
                    .directory-container-v2 .products-articles-container .article-container .article-individual-item .right-area .author a:hover { color:var(--bgcolor-theme); }
                    .directory-container-v2 .products-articles-container .article-container .article-individual-item .right-area .readmore { text-decoration: underline; margin-top: 0px; }

    .directory-container-v2 .category-product { border: solid 2px #fff; margin: 0 10px 15px 0; transition: all 0.4s; transform: scale(1.0); width: 23.5%; float: left; min-height: 259px; }
        .directory-container-v2 .category-product:hover { border: solid 2px var(--grey-bg); margin: 0 10px 15px 0; transform: scale(1.05); background-color: var(--grey-bg); }
        .directory-container-v2 .category-product * { font-family: 'proxima-nova'; font-size: 12px; }
        .directory-container-v2 .category-product .category-product-img { margin: 0 !important; padding: 0 !important; }
            .directory-container-v2 .category-product .category-product-img img { position: relative; margin: 0 !important; padding: 0; left: 0; top: 0; height: auto; display: inline-block; border: solid 1px #E0E0E0; }
        .directory-container-v2 .category-product .category-product-details { padding: 3px; box-sizing: border-box; }
            .directory-container-v2 .category-product .category-product-details .title { font-size: 12px; max-height: 47px; line-height: 1.3em; width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; white-space: normal; }
            .directory-container-v2 .category-product .category-product-details .supplier { font-size: 12px; margin-top: 4px; color: #898989; display: inline-block; width: 100%; }
            .directory-container-v2 .category-product .category-product-details .supplier a { font-size: inherit; color: inherit; white-space: nowrap; line-height: 1.2em; overflow: hidden; text-overflow: ellipsis; text-decoration: none;}
            .directory-container-v2 .category-product .category-product-details .supplier a:hover { color:var(--bgcolor-theme); }
    .category-item .category-item-img .img-responsive { width: 145px !important; margin: auto; }

.mobile-navbar-container.navSearch {display:none;}

/* N8N Chat Widget*/

.custom-chat-container {
    width: 100%;
    max-width: 1200px;
    margin: 24px auto 40px auto;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e5e5;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    font-family: 'proxima-nova', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.custom-chat-container.compact {
    max-height: 280px;
    height: 240px;
    justify-content: center;
}


.custom-chat-container.expanded {
    max-height: 85vh;
    height: 85vh;
    justify-content: flex-start;
}

.custom-chat-container.minimized {
    max-height: 280px;
    height: 280px;
    justify-content: flex-start;
}

.custom-chat-header-controls {
    position: relative;
    padding: 16px 16px 12px 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    z-index: 10;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.custom-chat-container.compact .custom-chat-header-controls {
    display: none;
}

.custom-chat-container.expanded .custom-chat-header-controls,
.custom-chat-container.minimized .custom-chat-header-controls {
    display: flex;
}

.custom-chat-minimize-btn,
.custom-chat-expand-btn,
.custom-chat-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.custom-chat-minimize-btn:hover,
.custom-chat-expand-btn:hover,
.custom-chat-close-btn:hover {
    background-color: #f0f0f0;
}

.custom-chat-minimize-btn svg,
.custom-chat-expand-btn svg,
.custom-chat-close-btn svg {
    width: 18px;
    height: 18px;
    stroke: #666666;
    stroke-width: 2;
    fill: none;
}

.custom-chat-expand-btn {
    display: none;
}

.custom-chat-container.minimized .custom-chat-expand-btn {
    display: flex;
}

.custom-chat-container.minimized .custom-chat-minimize-btn {
    display: none;
}

.custom-chat-container.expanded .custom-chat-expand-btn {
    display: none;
}

.custom-chat-header {
    background: #ffffff;
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    gap: 16px;
    flex-direction: row;
    flex-shrink: 0;
}

.custom-chat-container.compact .custom-chat-header {
    padding: 15px 20px;
}

.custom-chat-container.expanded .custom-chat-header,
.custom-chat-container.minimized .custom-chat-header {
    display: none;
}

.custom-chat-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    background-color: var(--custom-chat-color);
    border-radius: 50%;
    flex-shrink: 0;
}

.custom-chat-header-icon i {
    color: #ffffff;
    font-size: 25px;
    transform: rotate(-90deg);
}

.custom-chat-header h1 {
    color: #333333;
    font-family: 'proxima-nova', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 30px;
    margin: 0;
    font-weight: bold;
    line-height: 1.2;
    text-align: center;
}

.custom-chat-body {
    background-color: #ffffff;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    padding: 20px 0 30px 0;
    position: relative;
    min-height: 0;
}

.custom-chat-container.compact .custom-chat-body {
    display: none;
}

.custom-chat-container.minimized .custom-chat-body {
    display: block;
    padding: 15px 0;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.custom-chat-container.expanded .custom-chat-body {
    display: block;
    padding-top: 30px;
}

.custom-chat-messages {
    width: 70%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.custom-chat-message {
    display: flex;
    width: 100%;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.custom-chat-message-user {
    justify-content: flex-end;
}

.custom-chat-message-bot {
    justify-content: flex-start;
    gap: 8px;
}

.custom-message-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    min-width: 35px;
    min-height: 35px;
    background-color: var(--custom-chat-color);
    border-radius: 50%;
    flex-shrink: 0;
    align-self: flex-start;
}

.custom-message-icon i {
    color: #ffffff;
    font-size: 22px;
    transform: rotate(-90deg);
}

.custom-message-bubble {
    display: block;
    max-width: 100%;
    min-width: 20px;
    width: auto;
    padding: 10px 16px;
    border-radius: 18px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: keep-all;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    font-family: 'proxima-nova', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 15px;
}

.custom-chat-message-user .custom-message-bubble {
    background: #f4f4f4;
    color: #434343;
}

.custom-chat-message-bot .custom-message-bubble {
    background: transparent;
    color: #333333;
}

.custom-options-wrap {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.custom-options-wrap[data-layout="pills"] {
    flex-wrap: wrap;
}

.custom-options-wrap[data-layout="single-list"],
.custom-options-wrap[data-layout="multi-list"] {
    flex-direction: column;
}

.custom-options-wrap[data-layout="pills"] .custom-option-btn {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    color: #333333;
    cursor: pointer;
    font-size: 0.95em;
    white-space: nowrap;
    flex: 0 0 auto;
    box-sizing: border-box;
    transition: border-color 0.2s, color 0.2s;
    font-family: 'proxima-nova', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.custom-options-wrap[data-layout="pills"] .custom-option-btn:hover:not(:disabled) {
    border-color: var(--custom-chat-color);
}

.custom-options-wrap[data-layout="single-list"] .custom-option-btn,
.custom-options-wrap[data-layout="multi-list"] .custom-option-btn {
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #333333;
    cursor: pointer;
    font-size: 0.95em;
    text-align: left;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    outline: none;
    font-family: 'proxima-nova', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.custom-radio-circle {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border-radius: 50%;
    border: 2px solid #d0d0d0;
    box-sizing: border-box;
    display: inline-block;
    flex-shrink: 0;
    pointer-events: none;
}

.custom-option-btn:hover:not(:disabled) .custom-radio-circle {
    border-color: var(--custom-chat-color);
}

.custom-checkbox-box {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    display: inline-block;
    text-align: center;
    line-height: 16px;
    font-size: 14px;
    box-sizing: border-box;
    background: #ffffff;
    flex-shrink: 0;
    pointer-events: none;
    color: #ffffff;
}

.custom-done-btn {
    padding: 10px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    background: #ffffff;
    color: #333333;
    cursor: pointer;
    font-size: 0.95em;
    width: auto;
    align-self: flex-start;
    margin-top: 4px;
    box-sizing: border-box;
    transition: border-color 0.2s, color 0.2s;
    font-family: 'proxima-nova', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.custom-done-btn:hover:not(:disabled) {
    border-color: var(--custom-chat-color);
}

.custom-chat-typing {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 70%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.custom-typing-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    min-width: 35px;
    min-height: 35px;
    background-color: var(--custom-chat-color);
    border-radius: 50%;
    flex-shrink: 0;
}

.custom-typing-icon i {
    color: #ffffff;
    font-size: 22px;
    transform: rotate(-90deg);
}

.custom-typing-dots {
    display: flex;
    gap: 4px;
    padding: 10px 16px;
}

.custom-typing-dots span {
    width: 8px;
    height: 8px;
    background: #999999;
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out;
}

.custom-typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.custom-typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing-bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.custom-chat-footer {
    background-color: #ffffff;
    border: none;
    padding: 15px 0 20px 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    position: relative;
}

.custom-chat-container.compact .custom-chat-footer {
    padding: 15px 0;
}

.custom-chat-container.expanded .custom-chat-footer {
    padding: 15px 0 20px 0;
}

.custom-chat-container.minimized .custom-chat-footer {
    padding: 15px 0 20px 0;
    border-top: 1px solid #f0f0f0;
}

.custom-chat-input-wrapper {
    border-radius: 50px;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 5px 5px 5px 20px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    z-index: 1001;
    width: 70%;
    max-width: 800px;
}

.custom-chat-input {
    border-radius: 50px;
    padding: 12px 60px 12px 10px;
    border: none;
    flex: 1;
    resize: none;
    outline: none;
    text-align: left;
    display: flex;
    align-items: center;
    font-family: 'proxima-nova', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 15px;
    max-height: 120px;
    overflow-y: auto;
}

.custom-chat-input::placeholder {
    opacity: 1;
    color: #999999;
    font-family: 'proxima-nova', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 15px;
}

.custom-chat-send-btn {
    background-color: var(--custom-chat-color);
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    transition: transform 0.2s;
}

.custom-chat-send-btn:hover {
    transform: translateY(-50%) scale(1.05);
}

.custom-chat-send-btn i {
    font-size: 16px;
    color: var(--custom-chat-font-color);
    transform: rotate(45deg);
    display: flex;
    padding: 5px 4px 1px 1px;
}

/*IPAD REGULAR SIZE */
@media screen and (max-width: 1199px) {
    .body-container { background-color: #fff; margin-top: 0; padding-top: 20px; }

    .directory-container-v2 .category-item { width: 15.9%; margin: 0 0.8% 8px 0 !important; }
        .directory-container-v2 .category-item:nth-of-type(6n) { margin-right: 0 !important; }

        .directory-container-v2 .category-item .category-item-details { font-size: 13px !important; min-height: 5em !important; }

    .directory-container-v2 .products-articles-container .product-container { width: 67%; }
    .directory-container-v2 .products-articles-container .article-container { width: 32%; }

    .directory-container-v2 .category-product { width: 31.3% !important; min-height: 269px; } /*23.5*/

    .featured-cat-list { }
    .featured-cat-list ul { column-count: 3 !important;}
    .featured-cat-list ul li { background:none; display:block, border:none;}
}

@media screen and (min-width: 769px) {
    .directories.directory-container-v2 .category-item { width: 19.2%; }
    .directories.directory-container-v2 .category-item:nth-of-type(7n) { margin: 0 0.8% 8px 0 }
    .directories.directory-container-v2 .category-item:nth-of-type(5n) { margin-right: 0 }
}

/*IPAD MEDIUM SIZE */
@media screen and (max-width: 768px) {
    .directory-container-v2 .category-item, .directory-container-v2 .category-item:nth-of-type(4n) { margin: 0 0.8% 8px 0 !important; width: 23.9%; }
        .directory-container-v2 .category-item:nth-of-type(4n) { margin-right: 0 !important; }

        .directory-container-v2 .category-item .category-item-img { text-align:center !important;}
        .directory-container-v2 .category-item .category-item-img .img-responsive { display:inline-block; text-align:center;}
        .directory-container-v2 .category-item .category-item-details { }

    .directory-container-v2 .products-articles-container .product-container { width: 67%; }
    .directory-container-v2 .products-articles-container .article-container { width: 32%; }

    /* Product session */
    .directory-container-v2 .category-product { width: 46.5% !important; min-height: 291px; }

    .mobile-navbar-container.navSearch {
        width: auto; display: flex;
    }
    .mobile-navbar-container .navSearchTerm {  
           width: calc(100% - 75px);  
           padding: 12px 5px 10px 20px;  
       }
    .mobile-navbar-container .navSearchButton {
        width: 70px;
        padding: 8px 0 11px 0;
    }
        .mobile-navbar-container .navSearchButton i.fas {
            font-size: 20px;
            color: #b7b7b7;
        }
}

/*MOBILE */
@media screen and (max-width: 500px) {
    .directory-container-v2 { margin: 0 0.8% 8px 0; width: 100% !important; max-width: 100% !important; }
        .directory-container-v2 * { font-size: 14px !important; }
        .directory-container-v2 h2 { font-size: 20px !important; }
        .directory-container-v2 h2.long-h2::after { width: 340px !important; }
        .directory-container-v2 h1 { font-size: 22px !important; line-height: 1.3em; }
        .directory-container-v2 .directory-category-ul { column-count: 2 !important; }

        .directory-container-v2 .products-articles-container .product-container { width: 100%; float: none; }
        .directory-container-v2 .products-articles-container .article-container { width: 100%; float: none; }

        .directory-container-v2 .category-product .category-product-details .title { height: 56px; }

        .directory-container-v2 .category-item, .directory-container-v2 .category-item:nth-of-type(5n), .directory-container-v2 .category-item:nth-of-type(4n) { margin: 0 1% 10px 0 !important; border: none !important; width: 32%; float: left; }
            .directory-container-v2 .category-item:nth-of-type(3n) { margin-right: 0 !important; }

        .directory-container-v2 .category-product { margin: 0; margin-right: 10px !important; width: 48% !important; }
            .directory-container-v2 .category-product:nth-of-type(2n) { margin-right: 0px !important; }
        .directory-container-v2 .mobile-navbar-container .navSearchButton i.fas {
            font-size: 20px !important;
        }

    /* CUSTOM CHAT MOBILE STYLES */
    .custom-chat-container {
        margin: 16px auto 32px auto;
        border-radius: 12px;
    }

    .custom-chat-header-controls {
        padding: 12px 12px 10px 12px;
    }

    .custom-chat-minimize-btn,
    .custom-chat-expand-btn,
    .custom-chat-close-btn {
        width: 28px;
        height: 28px;
        padding: 6px;
    }

    .custom-chat-minimize-btn svg,
    .custom-chat-expand-btn svg,
    .custom-chat-close-btn svg {
        width: 16px;
        height: 16px;
    }

    .custom-chat-header {
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }

    .custom-chat-header h1 {
        font-size: 20px !important;
        line-height: 1.3 !important;
        text-align: center;
    }

    .custom-chat-header-icon {
        width: 35px !important;
        height: 35px !important;
        min-width: 35px !important;
        min-height: 35px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-top: 0;
    }

    .custom-chat-header-icon i {
        font-size: 22px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transform: rotate(-90deg);
    }

    .custom-chat-messages,
    .custom-chat-typing {
        width: 100% !important;
        padding: 0 16px !important;
    }

    .custom-chat-message-bot .custom-message-icon {
        display: none !important;
    }

    .custom-chat-typing .custom-typing-icon {
        display: none !important;
    }

    .custom-options-wrap[data-layout="pills"] {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
    }

    .custom-options-wrap[data-layout="pills"] .custom-option-btn {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .custom-chat-input-wrapper {
        width: 90% !important;
        max-width: 90% !important;
    }

    .custom-chat-input {
        padding-right: 60px !important;
        font-size: 14px !important;
    }

    .custom-chat-input::placeholder {
        font-size: 14px !important;
    }

    .custom-message-bubble {
        font-size: 14px !important;
    }

    .custom-chat-send-btn i {
        font-size: 16px !important;
    }
}


/* ==========================================================================
   Latest Products / Latest Articles — card treatment (parity with EasyAsset)
   ==========================================================================
   Ported from the EA Farming directory. EA derives its tints from its own mint
   accent; the same tints are derived per portal below from --bgcolor-theme
   (IS #fbc509, MS #01b4c8, HH #e22d26) so each portal keeps its own hue.
   The accent itself is read straight from --bgcolor-theme and needs no branch.

   The hover tints are not at matched saturation: near white, a blue this pale
   reads as plain grey, while the same amount of red or yellow still reads as a
   tint. MS therefore carries roughly double the chroma of IS and HH so all three
   look equally tinted rather than measuring equally tinted. */

.directory-container-v2 {
    /* IS is the default portal, so its tints are the base values. */
    --dir-card-shadow-rgb: 57,49,20;
    --dir-card-hover-bg: #f8f7f2;
    /* Titles sit at the shared body text colour, so this one is not per-portal. */
    --dir-card-title: #434343;
    --dir-card-meta: #918d84;
}

.body-ms .directory-container-v2 {
    --dir-card-shadow-rgb: 20,53,57;
    --dir-card-hover-bg: #eff8fa;
    --dir-card-meta: #8b9091;
}

.body-hh .directory-container-v2 {
    --dir-card-shadow-rgb: 57,21,20;
    --dir-card-hover-bg: #f8f2f2;
    --dir-card-meta: #918b8b;
}

/* The legacy layout floats fixed-percentage cards, so a card taller than its row
   snags the next one and leaves ragged holes down the grid. Same columns as the
   legacy breakpoints (4/3/2), but as a real grid so rows can't catch on each
   other. The width/float/margin overrides undo the !important percentage rules
   above. */
.directory-container-v2 #latest-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 16px; }
    .directory-container-v2 #latest-products .category-product { width: auto !important; float: none !important; margin: 0 !important; min-height: 0; }
    /* "View more" is a grid item too, and belongs on a row of its own. */
    .directory-container-v2 #latest-products .more-products-container { grid-column: 1 / -1; }

/* Product photos have wildly different aspect ratios. The legacy border sits on
   the <img>, so each frame hugged its own photo's natural width and no two cards
   matched. Move the frame onto a fixed-size box and contain the photo inside it,
   so every cell is identical regardless of the source image. */
.directory-container-v2 #latest-products .category-product-img { display: flex; align-items: center; justify-content: center; height: 184px; overflow: hidden; border: none; background: #fff; box-sizing: border-box; }
    .directory-container-v2 #latest-products .category-product-img img { border: none !important; max-height: 100%; max-width: 100%; width: auto !important; height: auto !important; object-fit: contain; }
    /* The views badge is a normal block, so inside the flex box it would take up
       room and shove the photo off centre. */
    .directory-container-v2 #latest-products .category-product-img .prod-viewed { position: absolute; right: 0; bottom: 0; margin: 0; }

/* --- Card treatment -------------------------------------------------------
   The legacy markup draws a hairline box around the photo and drops loose text
   beneath it, so a row reads as floating fragments rather than as items. Give
   each product a real surface, and move the hover affordance from the legacy
   scale(1.05) — which shifts neighbours and blurs the image — to a lift plus a
   themed border. */
.directory-container-v2 #latest-products .category-product { background: #fff; border: 1px solid transparent; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(var(--dir-card-shadow-rgb), 0.06), 0 0 0 1px rgba(var(--dir-card-shadow-rgb), 0.05); transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease; }
    .directory-container-v2 #latest-products .category-product:hover { background: #fff; transform: translateY(-4px); border-color: var(--bgcolor-theme); box-shadow: 0 14px 30px rgba(var(--dir-card-shadow-rgb), 0.13), 0 0 0 1px rgba(var(--dir-card-shadow-rgb), 0.04); }
    .directory-container-v2 #latest-products .category-product-details { padding: 14px 16px 16px; }
        /* Two lines exactly, ellipsised past that, so every card in a row reserves the
           same space and the supplier labels all sit on one baseline. min-height and
           the clamp are both 2 lines (2 x 1.4 line-height), and the legacy max-height
           47px / mobile height 56px caps are dropped so neither can slice a line in
           half or pad the box out past two lines. */
        .directory-container-v2 #latest-products .category-product-details .title { min-height: 2.8em; max-height: none; height: auto; -webkit-line-clamp: 2; font-weight: 600; font-size: 13.5px; line-height: 1.4; color: var(--dir-card-title); letter-spacing: -0.005em; }
        /* Supplier reads as a label rather than a second title, so the eye lands
           on the product. */
        .directory-container-v2 #latest-products .category-product-details .supplier { font-size: 10.5px; color: var(--dir-card-meta); margin-top: 9px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
            /* The supplier is a link here (EA renders plain text), and the legacy
               nowrap/ellipsis pair does nothing on an inline box — long names ran
               straight out of the card. */
            .directory-container-v2 #latest-products .category-product-details .supplier a { display: block; }
    /* The HOT ribbon hangs 3px outside the tile; the rounded card clips it, so
       sit it flush in the corner instead. */
    .directory-container-v2 #latest-products .category-hot-product .ribbon-wrapper-red { top: 0; right: 0; }

/* Articles get the same logic: a rounded thumbnail at a fixed size so the column
   has a straight left edge, and a hover surface instead of the legacy
   border+scale. */
.directory-container-v2 .products-articles-container .article-container .article-individual-item { border: none; border-radius: 14px; padding: 10px; margin-bottom: 4px; transition: background .2s ease, transform .2s ease; }
    .directory-container-v2 .products-articles-container .article-container .article-individual-item:hover { border: none; transform: translateX(2px); background: var(--dir-card-hover-bg); }
    .directory-container-v2 .products-articles-container .article-container .article-individual-item .left-area { width: 88px; }
        .directory-container-v2 .products-articles-container .article-container .article-individual-item .left-area img { width: 88px; height: 66px; object-fit: cover; border-radius: 10px; background: #fff; }
    .directory-container-v2 .products-articles-container .article-container .article-individual-item .right-area { width: calc(100% - 102px); }
        .directory-container-v2 .products-articles-container .article-container .article-individual-item .right-area .title { font-size: 13.5px; line-height: 1.42; max-height: none; -webkit-line-clamp: 3; font-weight: 600; color: var(--dir-card-title); letter-spacing: -0.005em; }
        .directory-container-v2 .products-articles-container .article-container .article-individual-item .right-area .author { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; color: var(--dir-card-meta); margin-top: 6px; }

/* Nothing clears the floated "View more" (there is no .clearfix rule in Site.css),
   and the tighter row spacing above no longer leaves a gap to hide it in, so it
   landed on top of the next heading. Right-align it on a line of its own, the way
   the products "View more" sits under its grid. */
.directory-container-v2 .article-container a.view-more-articles { float: none; margin: 8px 0 22px auto; }

/* A directory with no editorial content leaves the right column empty; the grid
   takes the full width rather than sitting in a 65% gutter next to nothing. */
.directory-container-v2 .products-articles-container .product-container.dir-full-width { width: 100% !important; float: none !important; }

@media screen and (max-width: 1199px) {
    .directory-container-v2 #latest-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media screen and (max-width: 768px) {
    .directory-container-v2 #latest-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
}
