/* Cookie Consent Custom Styles for WordPress */

#cc-main {
    --cc-btn-primary-bg: #075985;
    --cc-btn-primary-border-color: #075985;
    --cc-btn-primary-hover-bg: #0369a1;
    --cc-btn-primary-hover-border-color: #0369a1;
    --cc-toggle-on-bg: var(--cc-btn-primary-bg);
    --cc-btn-border-radius: 10px;
}

/* Expand cookie table accordions by default */
#cc__pm .pm__section--expandable {
    --section-is-expanded: 1;
}

#cc__pm .pm__section-desc-wrapper {
    max-height: none;
    visibility: visible;
}

#cc__pm .pm__section-arrow {
    transform: rotate(180deg);
}

/* Cookie Preferences Button */
.cookie-preferences-btn {
    position: fixed;
    left: 2rem;
    bottom: 2rem;
    z-index: 99;
    display: none; /* Hidden until consent given */
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    border-radius: 0.375rem;
    background-color: #075985;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease-in-out;
}

.cookie-preferences-btn:hover {
    background-color: #0369a1;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.cookie-preferences-btn:focus {
    outline: 2px solid #0369a1;
    outline-offset: 2px;
}

.cookie-preferences-btn:active {
    transform: translateY(0);
}

.cookie-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.cookie-icon img {
    width: 1.5rem;
    height: 1.5rem;
    display: block;
    object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .cookie-preferences-btn {
        left: 1rem;
        bottom: 1rem;
    }
}
