/**
 * Cherubs Toys - Stitch Trust Bar Component Styles
 * Modern, Conversion-Optimized Value Proposition Bar
 *
 * @package Woodmart Child
 */

:root {
    --cherubs-trust-bg: #FFFFFF;
    --cherubs-trust-card-bg: #F8FAFC;
    --cherubs-trust-card-border: #F1F5F9;
    --cherubs-trust-title-color: #0F172A;
    --cherubs-trust-desc-color: #64748B;
    
    /* Feature Badge Colors */
    --cherubs-trust-sky-bg: #E0F2FE;
    --cherubs-trust-sky-fg: #0284C7;
    --cherubs-trust-amber-bg: #FEF3C7;
    --cherubs-trust-amber-fg: #D97706;
    --cherubs-trust-mint-bg: #DCFCE7;
    --cherubs-trust-mint-fg: #16A34A;
    --cherubs-trust-rose-bg: #FEE2E2;
    --cherubs-trust-rose-fg: #E11D48;
}

/* ==========================================================================
   Section Container & Layout Alignment
   ========================================================================== */
.elementor-element.elementor-element-998a2d3 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    background-color: #FFFFFF !important;
}

.elementor-element.elementor-element-998a2d3 .elementor-widget-shortcode,
.elementor-element.elementor-element-998a2d3 .elementor-widget-container,
.elementor-element.elementor-element-998a2d3 .elementor-shortcode {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    display: flex !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.cherubs-trust-section {
    background-color: var(--cherubs-trust-bg) !important;
    position: relative;
    width: 100% !important;
    padding: 24px 16px !important;
    box-sizing: border-box;
    z-index: 5;
    overflow: hidden;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.cherubs-trust-container {
    max-width: 1220px !important;
    margin: 0 auto !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    gap: 20px !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   Individual Micro-Card
   ========================================================================== */
.cherubs-trust-container .cherubs-trust-card {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    background-color: var(--cherubs-trust-card-bg);
    border: 1.5px solid var(--cherubs-trust-card-border);
    border-radius: 16px;
    padding: 14px 18px !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.28s ease, 
                border-color 0.25s ease,
                background-color 0.25s ease;
    cursor: default;
    box-sizing: border-box !important;
    position: relative;
}

@media (min-width: 769px) {
    .cherubs-trust-container .cherubs-trust-card {
        flex: 1 1 0 !important;
        width: calc(25% - 15px) !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}

.cherubs-trust-container .cherubs-trust-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    border-color: #CBD5E1;
    background-color: #FFFFFF;
}

/* ==========================================================================
   Circular Icon Badge
   ========================================================================== */
.cherubs-trust-badge {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.cherubs-trust-container .cherubs-trust-card:hover .cherubs-trust-badge {
    transform: scale(1.1) rotate(4deg);
}

.cherubs-trust-badge svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* Badge Color Themes */
.cherubs-trust-badge--sky {
    background-color: var(--cherubs-trust-sky-bg);
    color: var(--cherubs-trust-sky-fg);
}
.cherubs-trust-badge--amber {
    background-color: var(--cherubs-trust-amber-bg);
    color: var(--cherubs-trust-amber-fg);
}
.cherubs-trust-badge--mint {
    background-color: var(--cherubs-trust-mint-bg);
    color: var(--cherubs-trust-mint-fg);
}
.cherubs-trust-badge--rose {
    background-color: var(--cherubs-trust-rose-bg);
    color: var(--cherubs-trust-rose-fg);
}

/* ==========================================================================
   Content & Typography
   ========================================================================== */
.cherubs-trust-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.cherubs-trust-title {
    font-family: 'Fredoka', 'Nunito', system-ui, sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--cherubs-trust-title-color);
    margin: 0 0 2px 0;
    white-space: normal;
    word-break: keep-all;
    letter-spacing: -0.2px;
}

.cherubs-trust-desc {
    font-family: 'Nunito Sans', 'Nunito', system-ui, sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--cherubs-trust-desc-color);
    margin: 0;
    white-space: normal;
    word-break: keep-all;
}

/* ==========================================================================
   Tablet Screen (769px - 1024px)
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .cherubs-trust-section {
        padding: 16px 12px !important;
    }
    .cherubs-trust-container {
        gap: 10px !important;
        padding: 0 8px !important;
    }
    .cherubs-trust-card {
        padding: 10px 12px !important;
        gap: 10px !important;
        width: calc(25% - 8px) !important;
    }
    .cherubs-trust-badge {
        width: 40px !important;
        height: 40px !important;
    }
    .cherubs-trust-badge svg {
        width: 20px !important;
        height: 20px !important;
    }
    .cherubs-trust-title {
        font-size: 13px !important;
    }
    .cherubs-trust-desc {
        font-size: 11px !important;
    }
}

/* ==========================================================================
   Mobile View (<= 768px): Smooth Auto-Continue Scrolling Carousel
   ========================================================================== */
@media (max-width: 768px) {
    .cherubs-trust-section {
        padding: 14px 0 !important;
        margin-bottom: 0 !important;
        background-color: #FFFFFF !important;
    }

    /* Swipeable Marquee Track */
    .cherubs-trust-container.cherubs-trust-track {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 12px !important;
        padding: 4px 16px 8px 16px !important;
        cursor: grab !important;
        user-select: none !important;
        justify-content: flex-start !important;
    }

    .cherubs-trust-container.cherubs-trust-track:active {
        cursor: grabbing !important;
    }

    .cherubs-trust-container.cherubs-trust-track::-webkit-scrollbar {
        display: none !important;
    }

    /* Mobile Pill Card */
    .cherubs-trust-container .cherubs-trust-card {
        flex: 0 0 240px !important;
        width: 240px !important;
        min-width: 240px !important;
        max-width: 240px !important;
        padding: 10px 14px !important;
        border-radius: 14px !important;
        background-color: #F8FAFC !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
        gap: 12px !important;
    }

    .cherubs-trust-container .cherubs-trust-card:hover {
        transform: none !important; /* Touchscreen no hover jump */
    }

    .cherubs-trust-badge {
        width: 38px !important;
        height: 38px !important;
    }

    .cherubs-trust-badge svg {
        width: 20px !important;
        height: 20px !important;
    }

    .cherubs-trust-title {
        font-size: 12.5px !important;
        margin-bottom: 2px !important;
    }

    .cherubs-trust-desc {
        font-size: 11px !important;
    }
}
