/* --- FBRHD Cookie Consent Banner --- */
#fbrhd-cookie-consent-banner {
    position: fixed;
    padding: 15px 20px;
    background-color: #222; /* Default, will be overridden by settings */
    color: #fff; /* Default, will be overridden by settings */
    z-index: 99998;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    font-size: 14px;
    line-height: 1.5;
    display: none; /* Hidden by default, shown by JS */
}

/* Explicit class for bottom banner */
#fbrhd-cookie-consent-banner.cnsnt-bottom {
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    transform: none; /* Ensure no transform is applied */
}

/* Explicit class for center popup */
#fbrhd-cookie-consent-banner.cnsnt-center {
    top: 50%;
    left: 50%;
    bottom: auto;
    right: auto;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
}

#fbrhd-cookie-consent-banner.cnsnt-center .fbrhd-cookie-consent-content {
    flex-direction: column;
    text-align: center;
}

.fbrhd-cookie-consent-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}

.fbrhd-cookie-consent-content p {
    margin: 0;
    flex-grow: 1;
}

.fbrhd-cookie-consent-content p a {
    color: inherit;
    text-decoration: underline;
}

.fbrhd-cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.fbrhd-cookie-consent-buttons button {
    padding: 8px 15px;
    border: 1px solid transparent;
    border-radius: 15px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    transition: opacity 0.2s ease-in-out, transform 0.1s ease-in-out;
}
.fbrhd-cookie-consent-buttons button:hover {
    opacity: 0.85;
    transform: scale(1.1);
   
}
.fbrhd-cookie-consent-buttons button:active {
    transform: scale(0.97);
}

/* Default button styles (will be overridden by settings if colors are set) */
.fbrhd-cookie-consent-buttons .fbrhd-accept-all { background-color: #2271b1; color: #fff; }
.fbrhd-cookie-consent-buttons .fbrhd-modify-consent { background-color: #e0e0e0; color: #333; }
.fbrhd-cookie-consent-buttons .fbrhd-only-necessary { background-color: #6c757d; color: #fff; }


/* --- Modify Consent Modal --- */
#fbrhd-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 99999;
}

#fbrhd-modify-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 550px;
    background-color: #fff;
    color: #333;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    z-index: 100000;
    font-size: 14px;
}

#fbrhd-modify-modal h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
}
#fbrhd-modify-modal p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.fbrhd-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}
.fbrhd-modal-close:hover {
    color: #000;
}

#fbrhd-consent-form .fbrhd-consent-category {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
#fbrhd-consent-form .fbrhd-consent-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

#fbrhd-consent-form label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}
#fbrhd-consent-form input[type="checkbox"] {
    margin-top: 3px;
}
#fbrhd-consent-form label strong {
    display: block;
    font-weight: 600;
}
#fbrhd-consent-form label small {
    display: block;
    font-size: 12px;
    color: #555;
    line-height: 1.4;
}

#fbrhd-modify-modal .fbrhd-save-consent {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background-color: #2271b1; /* Default, same as accept all */
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 25px;
    transition: background-color 0.2s ease-in-out;
}
#fbrhd-modify-modal .fbrhd-save-consent:hover {
    background-color: #1d619a;
}

@media (max-width: 600px) {
    .fbrhd-cookie-consent-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .fbrhd-cookie-consent-buttons {
        width: 100%;
        flex-wrap: wrap;
    }
    .fbrhd-cookie-consent-buttons button {
        flex: 1;
    }
}