/*
 * plg_system_primo_cookie_consent_manager — banner styles
 *
 * The banner is fixed to top or bottom. Hidden by [hidden] when JS dismisses it.
 * All CSS is namespaced under .primo-cc to avoid conflicts with site templates.
 */

.primo-cc {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999999;
    background: #1f2937;
    color: #f3f4f6;
    padding: 1rem 1.25rem;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.18);
    font-family: inherit;
    font-size: 0.9375rem;
    line-height: 1.45;
    box-sizing: border-box;
}

.primo-cc *,
.primo-cc *::before,
.primo-cc *::after {
    box-sizing: inherit;
}

.primo-cc--bottom { bottom: 0; }
.primo-cc--top    { top: 0; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18); }

.primo-cc-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.primo-cc-text {
    flex: 1 1 60%;
    min-width: 280px;
}

.primo-cc-head {
    font-weight: 700;
    margin: 0 0 0.25rem;
    font-size: 1rem;
    color: #ffffff;
}

.primo-cc-body {
    margin: 0;
    opacity: 0.95;
}

.primo-cc-body a {
    color: #93c5fd;
    text-decoration: underline;
}

.primo-cc-body a:hover {
    color: #bfdbfe;
}

.primo-cc-btns {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.primo-cc-btn {
    display: inline-block;
    padding: 0.55rem 1.25rem;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9375rem;
    font-family: inherit;
    line-height: 1.2;
    transition: background-color 0.15s, opacity 0.15s;
}

.primo-cc-btn-accept {
    background: #16a34a;
    color: #ffffff;
}

.primo-cc-btn-accept:hover {
    background: #15803d;
}

.primo-cc-btn-decline {
    background: rgba(255, 255, 255, 0.12);
    color: #f3f4f6;
}

.primo-cc-btn-decline:hover {
    background: rgba(255, 255, 255, 0.2);
}

.primo-cc-btn:focus {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.primo-cc[hidden] {
    display: none !important;
}

@media (max-width: 600px) {
    .primo-cc-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .primo-cc-btns {
        justify-content: stretch;
    }

    .primo-cc-btn {
        flex: 1 1 0;
        min-width: 0;
    }
}
