/* IMH Cookie Consent v2.1 */

/* ------------------------------------------------------------------ */
/* Banner — visible by default, hidden via JS class when not needed    */
/* ------------------------------------------------------------------ */

.imh-cc-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999999;
    background: var(--imh-bg, #1a1a2e);
    color: var(--imh-text, #e0e0e0);
    box-shadow: 0 -4px 20px rgba(0,0,0,.35);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    /* Visible by default — JS adds .imh-cc-hidden to suppress */
    display: block;
    opacity: 1;
    transform: translateY(0);
    transition: opacity .3s ease, transform .3s ease;
}

.imh-cc-banner--bottom { bottom: 0; }
.imh-cc-banner--top    { top: 0; box-shadow: 0 4px 20px rgba(0,0,0,.35); }

/* Hidden state — added by JS */
.imh-cc-banner.imh-cc-hidden {
    display: none !important;
}

/* Slide-in animation when becoming visible */
.imh-cc-banner.imh-cc-visible {
    animation: imh-slideIn .3s ease forwards;
}

@keyframes imh-slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.imh-cc-banner--top.imh-cc-visible {
    animation: imh-slideInTop .3s ease forwards;
}

@keyframes imh-slideInTop {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------------ */
/* Inner layout                                                         */
/* ------------------------------------------------------------------ */

.imh-cc-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    flex-wrap: wrap;
}

.imh-cc-text {
    flex: 1 1 300px;
    min-width: 0;
}

.imh-cc-text p {
    margin: 0 0 6px;
    color: inherit;
    font-size: 14px;
    line-height: 1.55;
}

.imh-cc-privacy {
    color: var(--imh-accept, #4caf50);
    font-size: 12px;
    text-decoration: underline;
    opacity: .85;
    transition: opacity .2s;
}

.imh-cc-privacy:hover { opacity: 1; }

/* ------------------------------------------------------------------ */
/* Buttons                                                              */
/* ------------------------------------------------------------------ */

.imh-cc-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.imh-cc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    white-space: nowrap;
    transition: filter .2s, transform .1s;
    min-width: 110px;
}

.imh-cc-btn:hover  { filter: brightness(1.12); }
.imh-cc-btn:active { transform: scale(.97); }

.imh-cc-btn--accept { background: var(--imh-accept, #4caf50); }
.imh-cc-btn--reject { background: var(--imh-reject, #e53935); }

/* ------------------------------------------------------------------ */
/* Floating Icon                                                        */
/* ------------------------------------------------------------------ */

.imh-cc-icon {
    position: fixed;
    z-index: 999998;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(0,0,0,.3);
    transition: transform .2s, box-shadow .2s;
    /* Hidden by default — shown by JS after consent is set */
    display: none;
}

.imh-cc-icon:not(.imh-cc-hidden) {
    display: flex;
}

.imh-cc-icon.imh-cc-hidden {
    display: none !important;
}

.imh-cc-icon:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 18px rgba(0,0,0,.35);
}

.imh-cc-icon--bottom-right { bottom: 18px; right: 18px; }
.imh-cc-icon--bottom-left  { bottom: 18px; left: 18px; }

/* ------------------------------------------------------------------ */
/* Mobile                                                               */
/* ------------------------------------------------------------------ */

@media (max-width: 600px) {
    .imh-cc-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 16px;
        gap: 12px;
    }

    .imh-cc-actions {
        justify-content: stretch;
    }

    .imh-cc-btn {
        flex: 1;
        padding: 12px 10px;
    }
}
