/**
 * Cookie Consent Banner
 * =====================
 * Namespace: .zsmh-cookie-*
 * Nahradza CookieYes plugin (14 MB) jednoduchym bannerom
 * Skola nepouziva tracking cookies — len technicke (login, session)
 *
 * Z-index hierarchia:
 *   Chatbot bubble:  100001
 *   Chatbot window:  100002
 *   Cookie banner:    99999
 *   Back-to-top:        999
 */

/* =========================================================================
   Banner — fixed bottom overlay
   ========================================================================= */

.zsmh-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding: 20px 24px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease;
}

.zsmh-cookie-banner--hidden {
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* =========================================================================
   Inner container — centered, max-width
   ========================================================================= */

.zsmh-cookie-inner {
    width: 80%;
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* =========================================================================
   Text + link
   ========================================================================= */

.zsmh-cookie-text {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin: 0;
    flex: 1;
}

.zsmh-cookie-link {
    color: #f19e00;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.zsmh-cookie-link:hover {
    color: #d48800;
}

/* =========================================================================
   Buttons
   ========================================================================= */

.zsmh-cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.zsmh-cookie-btn {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease,
                color 0.2s ease,
                transform 0.15s ease,
                box-shadow 0.2s ease;
    white-space: nowrap;
    line-height: 1;
}

.zsmh-cookie-btn:active {
    transform: scale(0.97);
}

/* Accept — primary orange */
.zsmh-cookie-btn-accept {
    background: #f19e00;
    color: #fff;
}

.zsmh-cookie-btn-accept:hover {
    background: #d48800;
    box-shadow: 0 2px 8px rgba(241, 158, 0, 0.25);
}

/* Decline — ghost style */
.zsmh-cookie-btn-decline {
    background: transparent;
    color: #777;
    border: 1px solid #ddd;
}

.zsmh-cookie-btn-decline:hover {
    background: #f5f5f5;
    color: #555;
    border-color: #ccc;
}

/* =========================================================================
   Responsive — tablet
   ========================================================================= */

@media (max-width: 1024px) {
    .zsmh-cookie-inner {
        width: 90%;
    }
}

/* =========================================================================
   Responsive — mobile
   ========================================================================= */

@media (max-width: 768px) {
    .zsmh-cookie-banner {
        padding: 16px 16px 20px;
    }

    .zsmh-cookie-inner {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .zsmh-cookie-text {
        font-size: 13px;
        text-align: center;
    }

    .zsmh-cookie-actions {
        justify-content: center;
    }

    .zsmh-cookie-btn {
        flex: 1;
        text-align: center;
        padding: 12px 16px;
    }
}

/* =========================================================================
   Print — hide
   ========================================================================= */

@media print {
    .zsmh-cookie-banner {
        display: none !important;
    }
}
