/**
 * JID Compliance — Cookie Banner Styles
 * Target: <2KB
 */

.jid-cb {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #1d2327;
}

.jid-cb--bottom { bottom: 0; }
.jid-cb--top { top: 0; }
.jid-cb--center {
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
}

.jid-cb__inner {
    background: #fff;
    padding: 20px 24px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    max-width: 720px;
}

.jid-cb--bottom .jid-cb__inner,
.jid-cb--top .jid-cb__inner {
    max-width: 100%;
}

.jid-cb--center .jid-cb__inner {
    border-radius: 8px;
    margin: 20px;
    max-height: 90vh;
    overflow-y: auto;
}

.jid-cb__title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.jid-cb__message {
    margin: 0 0 12px;
    color: #555;
    font-size: 13px;
}

.jid-cb__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.jid-cb__btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #1d2327;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.3;
}

.jid-cb__btn--accept {
    background: #1d2327;
    color: #fff;
}

.jid-cb__btn--accept:hover {
    background: #000;
}

.jid-cb__btn--reject {
    background: #fff;
    color: #1d2327;
}

.jid-cb__btn--reject:hover {
    background: #f0f0f0;
}

.jid-cb__btn--manage {
    background: transparent;
    color: #666;
    border-color: #ccc;
    font-size: 12px;
}

.jid-cb__btn--manage:hover {
    border-color: #1d2327;
    color: #1d2327;
}

.jid-cb__btn--save {
    background: #1d2327;
    color: #fff;
    margin-top: 8px;
}

.jid-cb__btn--save:hover {
    background: #000;
}

.jid-cb__prefs {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.jid-cb__cat {
    padding: 6px 0;
    font-size: 13px;
}

.jid-cb__cat label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.jid-cb__cat input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #1d2327;
}

.jid-cb__cat strong {
    font-weight: 600;
}

.jid-cb__pref-actions {
    margin-top: 8px;
}

.jid-cb__links {
    margin-top: 12px;
    font-size: 12px;
    color: #999;
}

.jid-cb__links a {
    color: #666;
    text-decoration: underline;
}

.jid-cb__links a:hover {
    color: #1d2327;
}

@media (max-width: 600px) {
    .jid-cb__actions {
        flex-direction: column;
    }
    .jid-cb__btn {
        width: 100%;
        text-align: center;
    }
}
