/**
 * Cerama Trust Bar Block Styles
 * Scoped to .cerama-trust-bar-wrap
 */

.cerama-trust-bar-wrap {
    box-sizing: border-box;
    width: 100%;
    margin: 30px auto;
    font-family: inherit;
}

.cerama-trust-bar-wrap * {
    box-sizing: border-box;
}

/* Background Variations */
.cerama-trust-bar--bg-transparent {
    background: transparent;
}

.cerama-trust-bar--bg-warm {
    background: #FBF9F5;
    border: 1px solid #E8DFD8;
    border-radius: 18px;
    padding: 24px 20px;
}

.cerama-trust-bar--bg-light {
    background: #FFFFFF;
    border: 1px solid #ECECEC;
    border-radius: 18px;
    padding: 24px 20px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}

.cerama-trust-bar--bg-subtle {
    background: #F8F9FA;
    border-radius: 14px;
    padding: 20px 16px;
}

/* Grid Layout */
.cerama-trust-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: stretch;
}

/* Card Style (Default) */
.cerama-trust-item {
    background: #FFFFFF;
    border: 1px solid #EAEAEA;
    border-radius: 14px;
    padding: 18px 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.cerama-trust-bar--bg-warm .cerama-trust-item,
.cerama-trust-bar--bg-light .cerama-trust-item {
    background: #FFFFFF;
    border-color: #ECECEC;
}

.cerama-trust-bar--bg-subtle .cerama-trust-item {
    background: #FFFFFF;
    border-color: #E2E8F0;
}

.cerama-trust-item:hover {
    transform: translateY(-2px);
    border-color: #CB6843;
    box-shadow: 0 8px 20px rgba(203, 104, 67, 0.08);
}

/* Layout Minimal / Borderless */
.cerama-trust-bar--layout-minimal .cerama-trust-item {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 12px 10px;
}

.cerama-trust-bar--layout-minimal .cerama-trust-item:hover {
    transform: none;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
}

/* Icon Container */
.cerama-trust-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(203, 104, 67, 0.1);
    color: #CB6843;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.cerama-trust-item:hover .cerama-trust-icon-box {
    background: #CB6843;
    color: #FFFFFF;
    transform: scale(1.05);
}

.cerama-trust-icon-box svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Content */
.cerama-trust-content {
    flex: 1;
    min-width: 0;
}

.cerama-trust-title {
    margin: 0 0 4px 0;
    font-size: 14.5px;
    font-weight: 700;
    color: #385D6B;
    line-height: 1.3;
}

.cerama-trust-desc {
    margin: 0;
    font-size: 12.5px;
    color: #666666;
    line-height: 1.45;
}

.cerama-trust-desc p {
    margin: 0 0 4px 0;
}

.cerama-trust-desc p:last-child {
    margin-bottom: 0;
}

.cerama-trust-desc strong,
.cerama-trust-desc b {
    color: #2D3142;
    font-weight: 700;
}

.cerama-trust-desc a {
    color: #CB6843 !important;
    text-decoration: underline !important;
    font-weight: 600;
    transition: color 0.2s ease;
}

.cerama-trust-desc a:hover {
    color: #B35532 !important;
}

.cerama-trust-desc em,
.cerama-trust-desc i {
    font-style: italic;
}

/* Centered Alignment */
.cerama-trust-bar--align-center .cerama-trust-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cerama-trust-bar--align-center .cerama-trust-icon-box {
    margin-bottom: 6px;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .cerama-trust-bar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 600px) {
    .cerama-trust-bar-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .cerama-trust-item {
        padding: 14px 12px;
    }

    .cerama-trust-icon-box {
        width: 38px;
        height: 38px;
    }
    
    .cerama-trust-icon-box svg {
        width: 19px;
        height: 19px;
    }

    .cerama-trust-title {
        font-size: 14px;
    }

    .cerama-trust-desc {
        font-size: 12px;
    }
}
