/* COLONIAL CLUB — Précontrôle Instagram V1.2.3.1 */

.instagram-preflight-safe {
    display: flex;
    gap: .7rem;
    align-items: center;
    margin: 1rem 0 1.25rem;
    padding: .9rem 1rem;
    border: 1px solid #f2c57c;
    border-left: 5px solid #F7941D;
    border-radius: 14px;
    background: #fff8ee;
}

.instagram-account-preflight {
    margin-bottom: 1rem;
}

.instagram-check-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .7rem;
    margin-top: .8rem;
}

.instagram-check {
    display: grid;
    align-content: start;
    gap: .25rem;
    min-height: 112px;
    padding: .8rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
}

.instagram-check > span {
    width: fit-content;
    padding: .2rem .45rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 900;
}

.instagram-check p {
    margin: .2rem 0 0;
    color: #666;
    font-size: .86rem;
    line-height: 1.4;
}

.instagram-check-ok {
    border-color: #b8dcbc;
    background: #f4fbf5;
}

.instagram-check-ok > span {
    background: #dff3e2;
    color: #246b31;
}

.instagram-check-error {
    border-color: #efb5ac;
    background: #fff5f3;
}

.instagram-check-error > span,
.instagram-preflight-badge-error {
    background: #fde1dc;
    color: #9a2e20;
}

.instagram-check-info {
    border-color: #ead8a5;
    background: #fffbef;
}

.instagram-check-info > span {
    background: #fff0c8;
    color: #7c5700;
}

.instagram-quota {
    margin: 1rem 0 0;
    padding-top: .8rem;
    border-top: 1px solid #e4e4e4;
}

.instagram-preflight-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.instagram-preflight-list {
    display: grid;
    gap: 1rem;
}

.instagram-publication-preflight {
    display: grid;
    gap: .8rem;
}

.instagram-publication-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
}

.instagram-publication-head h3 {
    margin: .2rem 0 0;
}

.instagram-preflight-result {
    display: inline-flex;
    width: fit-content;
    padding: .35rem .62rem;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 900;
    white-space: nowrap;
}

.instagram-preflight-result-ready {
    background: #dff3e2;
    color: #246b31;
}

.instagram-preflight-result-review {
    background: #fff0c8;
    color: #7c5700;
}

.instagram-preflight-result-error {
    background: #fde1dc;
    color: #9a2e20;
}

.instagram-publication-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    justify-content: space-between;
    align-items: center;
    padding-top: .2rem;
}

.instagram-signed-url-note {
    color: #666;
    font-size: .82rem;
}

@media (max-width: 980px) {
    .instagram-check-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .instagram-preflight-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .instagram-preflight-safe,
    .instagram-publication-head {
        display: grid;
    }

    .instagram-check-grid,
    .instagram-preflight-summary {
        grid-template-columns: 1fr;
    }

    .instagram-publication-actions {
        display: grid;
    }

    .instagram-publication-actions .button {
        width: 100%;
    }

    .instagram-preflight-result {
        white-space: normal;
    }
}
