/* Trust Signals Frontend Styles */
.wts-trust-signals {
    margin: 20px 0;
}

/* Grid Layouts */
.wts-trust-signals.wts-layout-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.wts-trust-signals.wts-layout-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.wts-trust-signals.wts-layout-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* Horizontal Layout */
.wts-trust-signals.wts-layout-horizontal {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.wts-trust-signals.wts-layout-horizontal .trust-item {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
}

/* List Layout */
.wts-trust-signals.wts-layout-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wts-trust-signals.wts-layout-list .trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wts-trust-signals.wts-layout-list .trust-icon {
    margin-bottom: 0;
}

/* Carousel Layout */
.wts-trust-signals.wts-layout-carousel {
    position: relative;
    overflow: hidden;
}

.wts-trust-signals.wts-layout-carousel .trust-items-wrapper {
    display: flex;
    transition: transform 0.3s ease;
}

.wts-trust-signals.wts-layout-carousel .trust-item {
    flex: 0 0 33.333%;
    padding: 0 10px;
}

/* Trust Item Styles */
.trust-item {
    text-align: center;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 10px;
    transition: transform 0.3s ease;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

a.trust-item:hover {
    text-decoration: none;
}

.trust-item:hover {
    transform: translateY(-5px);
}

.trust-icon {
    font-size: 24px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.trust-icon img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.trust-text {
    font-size: 14px;
    line-height: 1.4;
}

/* Animations - FIXED: Removed initial opacity: 0 and using animation-fill-mode properly */

/* Fade In Animation */
.wts-trust-signals.wts-animation-fade-in .trust-item {
    animation: wtsFadeIn 0.5s ease forwards;
}

.wts-trust-signals.wts-animation-fade-in .trust-item:nth-child(1) { animation-delay: 0.1s; }
.wts-trust-signals.wts-animation-fade-in .trust-item:nth-child(2) { animation-delay: 0.2s; }
.wts-trust-signals.wts-animation-fade-in .trust-item:nth-child(3) { animation-delay: 0.3s; }
.wts-trust-signals.wts-animation-fade-in .trust-item:nth-child(4) { animation-delay: 0.4s; }
.wts-trust-signals.wts-animation-fade-in .trust-item:nth-child(5) { animation-delay: 0.5s; }
.wts-trust-signals.wts-animation-fade-in .trust-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes wtsFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide In Animation */
.wts-trust-signals.wts-animation-slide-in .trust-item {
    animation: wtsSlideIn 0.5s ease forwards;
}

.wts-trust-signals.wts-animation-slide-in .trust-item:nth-child(1) { animation-delay: 0.1s; }
.wts-trust-signals.wts-animation-slide-in .trust-item:nth-child(2) { animation-delay: 0.2s; }
.wts-trust-signals.wts-animation-slide-in .trust-item:nth-child(3) { animation-delay: 0.3s; }
.wts-trust-signals.wts-animation-slide-in .trust-item:nth-child(4) { animation-delay: 0.4s; }
.wts-trust-signals.wts-animation-slide-in .trust-item:nth-child(5) { animation-delay: 0.5s; }
.wts-trust-signals.wts-animation-slide-in .trust-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes wtsSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale Animation */
.wts-trust-signals.wts-animation-scale .trust-item {
    animation: wtsScale 0.4s ease forwards;
}

.wts-trust-signals.wts-animation-scale .trust-item:nth-child(1) { animation-delay: 0.1s; }
.wts-trust-signals.wts-animation-scale .trust-item:nth-child(2) { animation-delay: 0.15s; }
.wts-trust-signals.wts-animation-scale .trust-item:nth-child(3) { animation-delay: 0.2s; }
.wts-trust-signals.wts-animation-scale .trust-item:nth-child(4) { animation-delay: 0.25s; }
.wts-trust-signals.wts-animation-scale .trust-item:nth-child(5) { animation-delay: 0.3s; }
.wts-trust-signals.wts-animation-scale .trust-item:nth-child(6) { animation-delay: 0.35s; }

@keyframes wtsScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .wts-trust-signals.wts-layout-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Keep grid-4 as 4 columns on tablet */
    .wts-trust-signals.wts-layout-grid-4 {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px; /* Reduce gap on smaller screens */
    }
    
    /* Adjust sizing for tablet */
    .wts-trust-signals.wts-layout-grid-4 .trust-item {
        padding: 10px 5px;
    }
    
    .wts-trust-signals.wts-layout-grid-4 .trust-text {
        font-size: 12px;
    }
    
    .wts-trust-signals.wts-layout-grid-4 .trust-icon {
        font-size: 20px;
        height: 30px;
    }
    
    .wts-trust-signals.wts-layout-carousel .trust-item {
        flex: 0 0 50%;
    }
}

@media (max-width: 480px) {
    .wts-trust-signals.wts-layout-grid-3,
    .wts-trust-signals.wts-layout-grid-2 {
        grid-template-columns: 1fr;
    }
    
    /* Keep grid-4 as 4 columns even on small mobile */
    .wts-trust-signals.wts-layout-grid-4 {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px; /* Even smaller gap on mobile */
    }
    
    /* Make everything more compact on mobile for grid-4 */
    .wts-trust-signals.wts-layout-grid-4 .trust-item {
        padding: 8px 3px;
    }
    
    .wts-trust-signals.wts-layout-grid-4 .trust-text {
        font-size: 10px;
        line-height: 1.2;
    }
    
    .wts-trust-signals.wts-layout-grid-4 .trust-icon {
        font-size: 18px;
        height: 25px;
        margin-bottom: 5px;
    }
    
    .wts-trust-signals.wts-layout-horizontal .trust-item {
        min-width: 100%;
    }
    
    .wts-trust-signals.wts-layout-carousel .trust-item {
        flex: 0 0 100%;
    }
}

/* For very small screens (below 380px) - optional further adjustments */
@media (max-width: 380px) {
    .wts-trust-signals.wts-layout-grid-4 .trust-text {
        font-size: 9px;
    }
    
    .wts-trust-signals.wts-layout-grid-4 .trust-icon {
        font-size: 16px;
    }
}