/* =============================================
   Chico Info Products Badges — v1.1.0
   ============================================= */

/* ---- Faixa de badges ---- */
.cipb-strip {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cipb-strip--inline {
    justify-content: center;
    padding: 16px 0;
}

/* ---- Badge (pílula) ---- */
.cipb-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px 7px 10px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .02em;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    font-family: inherit;
}

.cipb-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    filter: brightness(1.04);
}

.cipb-badge:active {
    transform: translateY(0);
}

.cipb-badge__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cipb-badge__icon svg {
    width: 13px;
    height: 13px;
}

.cipb-badge__label {
    line-height: 1;
}

/* Verde — Compra Segura */
.cipb-badge--green {
    background: #eafaf1;
    color: #1a7a45;
    border-color: #b7e8cc;
}
.cipb-badge--green .cipb-badge__icon {
    background: #c6f0d8;
    color: #1a7a45;
}

/* Teal — Seguro Incluso */
.cipb-badge--teal {
    background: #e8f7f5;
    color: #0d6b5e;
    border-color: #9fddd6;
}
.cipb-badge--teal .cipb-badge__icon {
    background: #b8ece7;
    color: #0d6b5e;
}

/* Azul — Qualidade Certificada */
.cipb-badge--blue {
    background: #eaf2fb;
    color: #1558a0;
    border-color: #b3d4f5;
}
.cipb-badge--blue .cipb-badge__icon {
    background: #c5e0f8;
    color: #1558a0;
}

/* Dourado — PIX */
.cipb-badge--gold {
    background: #fdf8ec;
    color: #8a6500;
    border-color: #f0d88a;
}
.cipb-badge--gold .cipb-badge__icon {
    background: #f5e4a0;
    color: #8a6500;
}

/* Laranja — Orientação Médica */
.cipb-badge--orange {
    background: #fff4ec;
    color: #8a3a00;
    border-color: #f5c9a0;
}
.cipb-badge--orange .cipb-badge__icon {
    background: #faddbe;
    color: #8a3a00;
}

/* ---- Overlay ---- */
.cipb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.cipb-overlay.cipb-overlay--visible {
    opacity: 1;
    pointer-events: all;
}

/* ---- Modal ---- */
.cipb-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.cipb-modal.cipb-modal--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.cipb-modal__inner {
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px 28px;
    max-width: 440px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

/* Fechar */
.cipb-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #f4f4f4;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: background 0.12s;
    flex-shrink: 0;
}
.cipb-modal__close:hover { background: #e8e8e8; }
.cipb-modal__close svg { width: 14px; height: 14px; }

/* Ícone do modal */
.cipb-modal__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.cipb-modal__icon svg { width: 26px; height: 26px; }

.cipb-modal__icon--green  { background: #eafaf1; color: #1a7a45; }
.cipb-modal__icon--teal   { background: #e8f7f5; color: #0d6b5e; }
.cipb-modal__icon--blue   { background: #eaf2fb; color: #1558a0; }
.cipb-modal__icon--gold   { background: #fdf8ec; color: #8a6500; }
.cipb-modal__icon--orange { background: #fff4ec; color: #8a3a00; }

/* Título */
.cipb-modal__title {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 0 0 10px;
    line-height: 1.3;
    padding-right: 20px;
}

/* Corpo */
.cipb-modal__body p {
    font-size: 14px;
    color: #555;
    line-height: 1.65;
    margin: 0 0 16px;
}

/* Lista de itens */
.cipb-modal__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cipb-modal__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #444;
    line-height: 1.55;
}

.cipb-modal__item strong { color: #222; }

.cipb-modal__item-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.cipb-modal__item-icon--green  { background: #eafaf1; color: #1a7a45; }
.cipb-modal__item-icon--teal   { background: #e8f7f5; color: #0d6b5e; }
.cipb-modal__item-icon--blue   { background: #eaf2fb; color: #1558a0; }
.cipb-modal__item-icon--gold   { background: #fdf8ec; color: #8a6500; }
.cipb-modal__item-icon--orange { background: #fff4ec; color: #8a3a00; }

/* ---- Responsivo ---- */
@media (max-width: 480px) {
    .cipb-strip { gap: 6px; }
    .cipb-badge { font-size: 11px; padding: 6px 11px 6px 8px; }
    .cipb-modal__inner { padding: 24px 20px 20px; border-radius: 16px; }
    .cipb-modal__title { font-size: 16px; }
}

/* ============================================= */
/* Faixa de ícones — [chico_badges_icons]        */
/* ============================================= */

.cipb-icon-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 0;
}

.cipb-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    padding: 0;
}

.cipb-icon-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.cipb-icon-btn:hover {
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 6px 16px rgba(0,0,0,0.14);
    filter: brightness(1.06);
}

.cipb-icon-btn:active {
    transform: translateY(0) scale(1);
}

/* Cores — espelham os badges */
.cipb-icon-btn--green  { background: #eafaf1; color: #1a7a45; border-color: #b7e8cc; }
.cipb-icon-btn--teal   { background: #e8f7f5; color: #0d6b5e; border-color: #9fddd6; }
.cipb-icon-btn--blue   { background: #eaf2fb; color: #1558a0; border-color: #b3d4f5; }
.cipb-icon-btn--gold   { background: #fdf8ec; color: #8a6500; border-color: #f0d88a; }
.cipb-icon-btn--orange { background: #fff4ec; color: #8a3a00; border-color: #f5c9a0; }

@media (max-width: 480px) {
    .cipb-icon-strip { gap: 10px; }
    .cipb-icon-btn   { width: 40px; height: 40px; }
    .cipb-icon-btn svg { width: 18px; height: 18px; }
}
