/*
 * Dai nang luc dung chung - template-parts/trust-strip.php
 * Trang chu: nam ngay duoi banner. Trang danh muc san pham: nam trong hero
 * (truoc day la .product-hero-stats noi dung khac, gio dung het nhu trang chu).
 *
 * Tach nguyen van va GI THU TU tai lieu cua home.css: .trust-grid cung
 * specificity voi .tsl-container nen rule nam sau thang; dao thu tu la kich
 * thuoc dai ngoai trang chu thay doi.
 */

.trust-strip {
    position: relative;
    margin-top: -25px;
    z-index: 2
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 16px 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(4, 46, 98, .13)
}
.trust-item {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 20px;
    border-right: 1px solid var(--tsl-border)
}
.trust-item:last-child {
    border-right: 0
}
.trust-item>svg {
    width: 39px;
    height: 39px;
    padding: 8px;
    flex: none;
    color: var(--tsl-blue);
    background: #eef6ff;
    border-radius: 50%
}
.trust-item span {
    font-size: 15px;
    color: var(--tsl-muted)
}
.trust-item strong {
    display: block;
    color: var(--tsl-text);
    font-size: 17px
}

@media(max-width:1024px)
{
    .trust-grid {
        grid-template-columns: repeat(2, 1fr)
    }
    .trust-item:nth-child(2) {
        border-right: 0
    }
    .trust-item {
        border-bottom: 1px solid var(--tsl-border)
    }
    .trust-item:nth-child(n+3) {
        border-bottom: 0
    }
}

@media(max-width:768px)
{
    .trust-strip {
        margin-top: -12px
    }
    .trust-grid {
        padding: 10px
    }
    .trust-item {
        padding: 7px 10px
    }
    .trust-item strong {
        font-size: 14px
    }
}

@media(max-width:480px)
{
    .trust-grid {
        grid-template-columns: 1fr
    }
    .trust-item {
        border-right: 0;
        border-bottom: 1px solid var(--tsl-border) !important
    }
    .trust-item:last-child {
        border-bottom: 0 !important
    }
}

/* Capability strip */
.trust-strip {
    position: relative;
    z-index: 3;
    margin-top: -27px;
    padding: 0 0 4px
}
.trust-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: min(1540px, calc(100% - 48px));
    padding: 13px 16px;
    border: 1px solid #e3edf8;
    border-radius: 14px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 10px 32px rgba(15, 69, 126, .12)
}
.trust-item {
    min-width: 0;
    min-height: 66px;
    gap: 10px;
    padding: 0 7px;
    border-right: 1px solid #e5edf7;
    border-bottom: 0
}
.trust-item:last-child {
    border-right: 0
}
.trust-item>svg {
    width: 35px;
    height: 35px;
    padding: 6px;
    border: 1px solid #d8e9fb;
    background: #f4f9ff;
    color: #0873e8;
    box-shadow: 0 4px 12px rgba(17, 103, 198, .1)
}
.trust-item span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    color: #526b88;
    font-size: 15px;
    line-height: 1.35
}
.trust-item strong {
    margin-bottom: 2px;
    font-size: 14px;
    line-height: 1.25
}
.trust-item small {
    display: block;
    color: #000;
    font-size: 14px;
    line-height: 1.35
}

@media(max-width:1200px)
{
    .trust-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 10px 14px
    }
    .trust-item:nth-child(3) {
        border-right: 0
    }
    .trust-item:nth-child(-n+3) {
        border-bottom: 1px solid #e5edf7
    }
}

@media(min-width:769px) and (max-width:1200px)
{
    .trust-item:nth-child(2) {
        border-right: 1px solid #e5edf7
    }
}

@media(max-width:768px)
{
    .trust-strip {
        margin-top: -12px
    }
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .trust-strip .trust-item:nth-child(2),
    .trust-strip .trust-item:nth-child(5) {
        display: none;
    }
    .trust-item {
        flex: 0 0 46%;
        scroll-snap-align: start;
        border-right: 1px solid #e5edf7 !important;
        border-bottom: 1px solid #e5edf7 !important;

        padding: 7px 10px
    }
    .trust-strip .trust-item:nth-child(4),
    .trust-strip .trust-item:nth-child(6) {
        border-bottom: none !important;
    }
    .trust-strip .trust-item:nth-child(3),
    .trust-strip .trust-item:nth-child(6) {
        border-right: none !important;
    }
    .trust-item small {
        font-size: 12px;
    }
    .trust-item>svg {
        width: 30px;
        height: 30px
    }
    .trust-item strong {
        font-size: 14px
    }
}

@media(max-width:480px)
{
    .trust-grid {
        width: min(100% - 22px, 1540px)
    }
    .trust-item {
        flex-basis: 76%
    }
}

@media(max-width:600px)
{
    .trust-grid{
        padding: 8px 8px;
    }
    .trust-item strong {
        font-size: 14px;
    }
}
