/* ==========================================================================
   Cookie banner custom - Edizioni Theoria
   ========================================================================== */

.theoria-cookie-overlay {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.theoria-cookie-box {
    background: #1f1f1f;
    color: #f2f2f2;
    max-width: 900px;
    width: 100%;
    border-radius: 6px;
    padding: 20px 24px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
    font-size: 14px;
    line-height: 1.5;
}

.theoria-cookie-text a {
    color: #8fc7ff;
    text-decoration: underline;
}

.theoria-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    justify-content: flex-end;
}

.theoria-cookie-btn {
    border: none;
    border-radius: 4px;
    padding: 10px 18px;
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.theoria-cookie-btn:hover {
    opacity: 0.85;
}

.theoria-cookie-btn-primary {
    background: #2e7d32;
    color: #ffffff;
}

.theoria-cookie-btn-secondary {
    background: #444444;
    color: #ffffff;
}

.theoria-cookie-btn-link {
    background: transparent;
    color: #f2f2f2;
    text-decoration: underline;
    margin-right: auto;
}

.theoria-cookie-detail {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 4px;
}

.theoria-cookie-detail-intro {
    margin: 0 0 12px 0;
}

.theoria-cookie-row {
    border-top: 1px solid #3a3a3a;
    padding: 12px 0;
}

.theoria-cookie-row:first-of-type {
    border-top: none;
}

.theoria-cookie-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.theoria-cookie-row-label {
    font-weight: bold;
}

.theoria-cookie-row-desc {
    margin: 6px 0 0 0;
    font-size: 12px;
    color: #cccccc;
}

.theoria-cookie-save {
    margin-top: 14px;
    width: 100%;
}

@media (max-width: 600px) {
    .theoria-cookie-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .theoria-cookie-btn-link {
        margin-right: 0;
        text-align: center;
    }
}
