/* File: css/public-cookie-consent.css */
/* Version: 1.0.0 */

:root {
    --mfhu-ccm-background-color: #2c3e50;
    --mfhu-ccm-text-color: #ecf0f1;
    --mfhu-ccm-title-color: #ffffff;
    --mfhu-ccm-primary-button-background-color: #3498db;
    --mfhu-ccm-primary-button-text-color: #ffffff;
    --mfhu-ccm-secondary-button-background-color: #2ecc71;
    --mfhu-ccm-secondary-button-text-color: #ffffff;
    --mfhu-ccm-tertiary-button-background-color: #7f8c8d;
    --mfhu-ccm-tertiary-button-text-color: #ffffff;
    --mfhu-ccm-details-background-color: #34495e;
    --mfhu-ccm-details-border-color: #4a627a;
    --mfhu-ccm-details-text-color: #bdc3c7;
    --mfhu-ccm-details-strong-text-color: #ecf0f1;
    --mfhu-ccm-checkbox-accent-color: #3498db;
    --mfhu-ccm-link-color: #3498db;
    --mfhu-ccm-error-background-color: #fdeded;
    --mfhu-ccm-error-text-color: #e74c3c;
    --mfhu-ccm-error-border-color: #e74c3c;

    --mfhu-ccm-banner-padding: 20px;
    --mfhu-ccm-banner-max-width: 960px;
    --mfhu-ccm-border-radius: 5px;
    --mfhu-ccm-font-size: 14px;
    --mfhu-ccm-line-height: 1.6;
    --mfhu-ccm-title-font-size: 18px;
    --mfhu-ccm-button-padding: 10px 20px;

    --mfhu-ccm-toggle-slider-bg-off: #ccc;
    --mfhu-ccm-toggle-slider-bg-on: var(--mfhu-ccm-checkbox-accent-color);
    --mfhu-ccm-toggle-slider-color: white;

    --mfhu-ccm-compact-font-size: var(--mfhu-ccm-font-size);
    --mfhu-ccm-compact-title-font-size: var(--mfhu-ccm-title-font-size);
    --mfhu-ccm-compact-button-padding: var(--mfhu-ccm-button-padding);
    --mfhu-ccm-compact-banner-padding: var(--mfhu-ccm-banner-padding);
    --mfhu-ccm-compact-category-label-font-size: 1.1em;
    --mfhu-ccm-compact-cookie-list-font-size: 0.95em;
}

/* Page overlay/backdrop */
.mfhu-ccm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.mfhu-ccm-banner {
    position: fixed;
    z-index: 100000;
    background-color: var(--mfhu-ccm-background-color);
    color: var(--mfhu-ccm-text-color);
    padding: var(--mfhu-ccm-banner-padding);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    font-family: Arial, sans-serif;
    font-size: var(--mfhu-ccm-font-size);
    line-height: var(--mfhu-ccm-line-height);
    display: none;
    box-sizing: border-box;
    border-radius: 0;
}

.mfhu-ccm-layout-bottom-full { bottom: 0; left: 0; width: 100%; }
.mfhu-ccm-layout-bottom-narrow { bottom: 20px; left: 50%; transform: translateX(-50%); width: var(--mfhu-ccm-banner-max-width); max-width: 95%; border-radius: var(--mfhu-ccm-border-radius); box-shadow: 0 2px 15px rgba(0,0,0,0.25); }
.mfhu-ccm-layout-center-modal {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: var(--mfhu-ccm-banner-max-width);
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--mfhu-ccm-border-radius);
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.mfhu-ccm-layout-float-bottom-left { bottom: 20px; left: 20px; width: var(--mfhu-ccm-banner-max-width); max-width: calc(100% - 40px); border-radius: var(--mfhu-ccm-border-radius); box-shadow: 0 2px 15px rgba(0,0,0,0.25); }
.mfhu-ccm-layout-float-bottom-right { bottom: 20px; right: 20px; width: var(--mfhu-ccm-banner-max-width); max-width: calc(100% - 40px); border-radius: var(--mfhu-ccm-border-radius); box-shadow: 0 2px 15px rgba(0,0,0,0.25); }

.mfhu-ccm-banner-content {
    position: relative;
    max-width: var(--mfhu-ccm-banner-max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 30px;
}

.mfhu-ccm-banner-page {
    display: none;
    flex-direction: column;
    gap: 15px;
}

.mfhu-ccm-banner-page.mfhu-ccm-page-active {
    display: flex;
}

.mfhu-ccm-banner-logo {
    margin-bottom: 10px;
}

.mfhu-ccm-back-button {
    background: transparent;
    border: none;
    color: var(--mfhu-ccm-title-color);
    cursor: pointer;
    padding: 5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    transition: opacity 0.2s ease;
    margin-bottom: 10px;
}

.mfhu-ccm-back-button:hover {
    opacity: 0.7;
}

.mfhu-ccm-back-button svg {
    display: block;
}
.mfhu-ccm-layout-bottom-narrow .mfhu-ccm-banner-content,
.mfhu-ccm-layout-center-modal .mfhu-ccm-banner-content,
.mfhu-ccm-layout-float-bottom-left .mfhu-ccm-banner-content,
.mfhu-ccm-layout-float-bottom-right .mfhu-ccm-banner-content {
    max-width: none; margin: 0;
}

.mfhu-ccm-banner-content h3 { margin-top: 0; margin-bottom: 10px; font-size: var(--mfhu-ccm-title-font-size); color: var(--mfhu-ccm-title-color); }
.mfhu-ccm-banner-content p { margin-bottom: 15px; }

/* Text alignment options */
.mfhu-ccm-text-center .mfhu-ccm-banner-content { text-align: center; }
.mfhu-ccm-text-center .mfhu-ccm-banner-logo { display: flex; justify-content: center; }
.mfhu-ccm-text-center .mfhu-ccm-banner-actions { justify-content: center; }

#mfhu-ccm-cookie-categories-wrapper {
    margin-top: 15px; margin-bottom: 15px; max-height: 250px; overflow-y: auto;
    border: 1px solid var(--mfhu-ccm-details-border-color); padding: 10px;
    background-color: var(--mfhu-ccm-details-background-color);
    border-radius: calc(var(--mfhu-ccm-border-radius) - 2px);
}

.mfhu-ccm-category { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--mfhu-ccm-details-border-color); }
.mfhu-ccm-category:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.mfhu-ccm-category-header { display: flex; align-items: center; margin-bottom: 5px; }

.mfhu-ccm-category-checkbox { margin-right: 10px; accent-color: var(--mfhu-ccm-checkbox-accent-color); transform: scale(1.2); cursor: pointer; }
.mfhu-ccm-category-checkbox:disabled { cursor: not-allowed; opacity: 0.7; }
.mfhu-ccm-category-label { font-weight: bold; font-size: var(--mfhu-ccm-compact-category-label-font-size, 1.1em); flex-grow: 1; cursor: pointer; }
.mfhu-ccm-category-label.mfhu-ccm-label-disabled { cursor: default; opacity: 0.8; }
.mfhu-ccm-cookie-count { font-size: 0.9em; margin-left: 8px; color: var(--mfhu-ccm-details-text-color); }

.mfhu-ccm-toggle-cookie-list {
    background: var(--mfhu-ccm-details-border-color); color: var(--mfhu-ccm-details-strong-text-color);
    border: none; padding: 2px 8px; border-radius: 3px; cursor: pointer;
    margin-left: auto; font-size: 1.1em; line-height: 1;
}
.mfhu-ccm-toggle-cookie-list:hover { opacity: 0.8; }

.mfhu-ccm-cookie-list { list-style: none; padding-left: 0; margin-top: 8px; background-color: rgba(0,0,0,0.05); padding: 10px; border-radius: 3px; border: 1px solid var(--mfhu-ccm-details-border-color); }

.mfhu-ccm-individual-cookie-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--mfhu-ccm-details-border-color);
    font-size: var(--mfhu-ccm-compact-cookie-list-font-size, 0.95em);
}
.mfhu-ccm-individual-cookie-item:last-child { border-bottom: none; }
.mfhu-ccm-individual-cookie-item.mfhu-ccm-legitimate-interest {
    opacity: 0.9;
    background-color: rgba(255, 193, 7, 0.05);
    padding: 8px 5px;
    margin: 0 -5px;
    border-radius: 3px;
}
.mfhu-ccm-cookie-info { flex-grow: 1; padding-right: 10px; }
.mfhu-ccm-cookie-name { display: block; font-weight: bold; color: var(--mfhu-ccm-title-color); margin-bottom: 3px; }
.mfhu-ccm-legitimate-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid #ffc107;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: normal;
    text-transform: uppercase;
    vertical-align: middle;
}
.mfhu-ccm-cookie-details p { margin: 2px 0 2px 0; font-size: 0.9em; color: var(--mfhu-ccm-details-text-color); }
.mfhu-ccm-cookie-details p strong { color: var(--mfhu-ccm-details-strong-text-color); }

.mfhu-ccm-cookie-toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.mfhu-ccm-cookie-toggle input.mfhu-ccm-individual-cookie-checkbox { opacity: 0; width: 0; height: 0; }

.mfhu-ccm-slider-label {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--mfhu-ccm-toggle-slider-bg-off);
    transition: .4s;
    border-radius: 24px;
}
.mfhu-ccm-slider-label:before {
    position: absolute; content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--mfhu-ccm-toggle-slider-color);
    transition: .4s;
    border-radius: 50%;
}
input.mfhu-ccm-individual-cookie-checkbox:checked + .mfhu-ccm-slider-label {
    background-color: var(--mfhu-ccm-toggle-slider-bg-on);
}
input.mfhu-ccm-individual-cookie-checkbox:focus + .mfhu-ccm-slider-label {
    box-shadow: 0 0 1px var(--mfhu-ccm-toggle-slider-bg-on);
}
input.mfhu-ccm-individual-cookie-checkbox:checked + .mfhu-ccm-slider-label:before {
    transform: translateX(20px);
}

.mfhu-ccm-banner-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; margin-top: 10px; }
.mfhu-ccm-button {
    border: none; padding: var(--mfhu-ccm-button-padding); text-align: center; text-decoration: none;
    display: inline-block; font-size: var(--mfhu-ccm-font-size); border-radius: var(--mfhu-ccm-border-radius);
    cursor: pointer; transition: background-color 0.2s ease, transform 0.1s ease, opacity 0.2s ease; line-height: normal;
}
.mfhu-ccm-button:active { transform: translateY(1px); }

#mfhu-ccm-accept-all.mfhu-ccm-button { background-color: var(--mfhu-ccm-primary-button-background-color); color: var(--mfhu-ccm-primary-button-text-color); }
#mfhu-ccm-accept-all.mfhu-ccm-button:hover { opacity: 0.85; }
#mfhu-ccm-save-settings.mfhu-ccm-button { background-color: var(--mfhu-ccm-secondary-button-background-color); color: var(--mfhu-ccm-secondary-button-text-color); }
#mfhu-ccm-save-settings.mfhu-ccm-button:hover { opacity: 0.85; }
#mfhu-ccm-more-info-toggle.mfhu-ccm-button { background-color: var(--mfhu-ccm-tertiary-button-background-color); color: var(--mfhu-ccm-tertiary-button-text-color); }
#mfhu-ccm-more-info-toggle.mfhu-ccm-button:hover { opacity: 0.85; }

.mfhu-ccm-error-message {
    color: var(--mfhu-ccm-error-text-color); background-color: var(--mfhu-ccm-error-background-color);
    padding: 8px 12px; border-radius: var(--mfhu-ccm-border-radius); margin-top: 10px;
    border: 1px solid var(--mfhu-ccm-error-border-color); text-align: center; font-size: 0.95em;
}

#mfhu-ccm-li-cookies-list {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 15px;
}

.mfhu-ccm-li-cookie-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mfhu-ccm-li-cookie-item {
    padding: 12px;
    margin-bottom: 10px;
    background-color: rgba(255, 193, 7, 0.05);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 5px;
}

.mfhu-ccm-li-cookie-item:last-child {
    margin-bottom: 0;
}

.mfhu-ccm-li-cookie-item .mfhu-ccm-cookie-name {
    display: block;
    color: var(--mfhu-ccm-title-color);
    margin-bottom: 8px;
    font-size: 1.05em;
}

.mfhu-ccm-li-cookie-item p {
    margin: 4px 0;
    font-size: 0.9em;
    color: var(--mfhu-ccm-details-text-color);
}

.mfhu-ccm-li-cookie-item p strong {
    color: var(--mfhu-ccm-details-strong-text-color);
}

.mfhu-ccm-compact-mode {
    --mfhu-ccm-font-size: var(--mfhu-ccm-compact-font-size, 12px);
    --mfhu-ccm-title-font-size: var(--mfhu-ccm-compact-title-font-size, 15px);
    --mfhu-ccm-button-padding: var(--mfhu-ccm-compact-button-padding, 6px 12px);
    --mfhu-ccm-banner-padding: var(--mfhu-ccm-compact-banner-padding, 10px);
    --mfhu-ccm-compact-category-label-font-size: 1em;
    --mfhu-ccm-compact-cookie-list-font-size: 0.9em;
}
.mfhu-ccm-compact-mode .mfhu-ccm-banner-content { gap: 10px; }
.mfhu-ccm-compact-mode .mfhu-ccm-banner-content h3 { margin-bottom: 5px; }
.mfhu-ccm-compact-mode .mfhu-ccm-banner-content p { margin-bottom: 10px; }
.mfhu-ccm-compact-mode #mfhu-ccm-cookie-categories-wrapper { margin-top: 10px; margin-bottom: 10px; padding: 8px; max-height: 180px; }
.mfhu-ccm-compact-mode .mfhu-ccm-category-checkbox { transform: scale(1); margin-right: 8px; }
.mfhu-ccm-compact-mode .mfhu-ccm-banner-actions { gap: 8px; margin-top: 5px; }
.mfhu-ccm-compact-mode .mfhu-ccm-cookie-toggle { width: 38px; height: 20px; }
.mfhu-ccm-compact-mode .mfhu-ccm-slider-label:before { height: 14px; width: 14px; left: 3px; bottom: 3px; }
.mfhu-ccm-compact-mode input.mfhu-ccm-individual-cookie-checkbox:checked + .mfhu-ccm-slider-label:before { transform: translateX(18px); }

#mfhu-ccm-revisit-consent-trigger {
    position: fixed;
    bottom: 15px;
    left: 15px;
    z-index: 99998;
    background-color: var(--mfhu-ccm-background-color, #2c3e50);
    color: var(--mfhu-ccm-title-color, #ffffff);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    cursor: pointer;
    transition: transform 0.2s ease-out, background-color 0.2s ease, opacity 0.2s ease;
    opacity: 0;
    visibility: hidden;
}
#mfhu-ccm-revisit-consent-trigger.mfhu-ccm-revisit-visible {
    opacity: 0.9;
    visibility: visible;
}

#mfhu-ccm-revisit-consent-trigger:hover {
    transform: scale(1.1);
    opacity: 1;
    background-color: var(--mfhu-ccm-primary-button-background-color, #3498db);
}

#mfhu-ccm-revisit-consent-trigger svg {
    width: 28px;
    height: 28px;
    display: block;
}

@media (max-width: 768px) {
    .mfhu-ccm-layout-bottom-full .mfhu-ccm-banner-content,
    .mfhu-ccm-layout-bottom-narrow .mfhu-ccm-banner-content { align-items: stretch; }
    .mfhu-ccm-banner-actions { flex-direction: column; }
    .mfhu-ccm-button { width: 100%; margin-bottom: 5px; }
    .mfhu-ccm-button:last-child { margin-bottom: 0; }
    #mfhu-ccm-cookie-categories-wrapper { max-height: 200px; }
    .mfhu-ccm-category-header { flex-wrap: wrap; }
    .mfhu-ccm-category-label { margin-bottom: 5px; }
    .mfhu-ccm-toggle-cookie-list { margin-left: 5px; }
    .mfhu-ccm-layout-float-bottom-left,
    .mfhu-ccm-layout-float-bottom-right { width: calc(100% - 20px); left: 10px; right: auto; bottom: 10px; max-width: none; }
    .mfhu-ccm-layout-float-bottom-right { left: auto; right: 10px; }

    #mfhu-ccm-revisit-consent-trigger {
        width: 44px;
        height: 44px;
        bottom: 10px;
        left: 10px;
    }
    #mfhu-ccm-revisit-consent-trigger svg {
        width: 24px;
        height: 24px;
    }

    /* Center modal responsiveness - switch to bottom full width on mobile */
    .mfhu-ccm-layout-center-modal {
        top: auto;
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        max-height: 80vh;
        border-radius: var(--mfhu-ccm-border-radius) var(--mfhu-ccm-border-radius) 0 0;
    }
}

@media (max-width: 480px) {
    :root { --mfhu-ccm-font-size: 13px; --mfhu-ccm-title-font-size: 16px; --mfhu-ccm-button-padding: 8px 15px; }
    .mfhu-ccm-compact-mode {
         --mfhu-ccm-font-size: var(--mfhu-ccm-compact-font-size, 11px);
         --mfhu-ccm-title-font-size: var(--mfhu-ccm-compact-title-font-size, 14px);
         --mfhu-ccm-button-padding: var(--mfhu-ccm-compact-button-padding, 5px 10px);
    }
    .mfhu-ccm-compact-mode .mfhu-ccm-cookie-toggle { width: 34px; height: 18px; }
    .mfhu-ccm-compact-mode .mfhu-ccm-slider-label:before { height: 12px; width: 12px; left: 3px; bottom: 3px; }
    .mfhu-ccm-compact-mode input.mfhu-ccm-individual-cookie-checkbox:checked + .mfhu-ccm-slider-label:before { transform: translateX(16px); }
}


/* Branding Footer */
/* Privacy Policy Link Footer (GDPR Compliance) */
.mfhu-ccm-privacy-footer {
    margin-top: 16px !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    text-align: center !important;
    font-size: 13px !important;
}

.mfhu-ccm-banner.mfhu-ccm-light .mfhu-ccm-privacy-footer {
    border-top-color: rgba(0, 0, 0, 0.1) !important;
}

.mfhu-ccm-privacy-link {
    color: var(--mfhu-ccm-link-color) !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease, text-decoration 0.2s ease !important;
    display: inline-block !important;
}

.mfhu-ccm-privacy-link:hover {
    opacity: 0.8 !important;
    text-decoration: underline !important;
}

.mfhu-ccm-banner.mfhu-ccm-light .mfhu-ccm-privacy-link {
    color: #007bff !important;
}

.mfhu-ccm-branding-footer {
    position: absolute !important;
    bottom: 8px !important;
    right: 12px !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    text-align: right !important;
    pointer-events: auto !important;
    z-index: 10 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mfhu-ccm-banner.mfhu-ccm-light .mfhu-ccm-branding-footer {
    color: rgba(0, 0, 0, 0.5) !important;
}

.mfhu-ccm-branding-text {
    display: block !important;
    white-space: nowrap !important;
}

.mfhu-ccm-branding-text a {
    color: inherit !important;
    text-decoration: none !important;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.mfhu-ccm-branding-text a:hover {
    opacity: 1 !important;
    text-decoration: underline !important;
}

@media (max-width: 768px) {
    .mfhu-ccm-branding-footer {
        font-size: 10px !important;
        bottom: 6px !important;
        right: 10px !important;
    }
}

@media (max-width: 480px) {
    .mfhu-ccm-branding-footer {
        font-size: 9px !important;
        bottom: 5px !important;
        right: 8px !important;
    }
}
