/* mtik.pl cookie consent — bottom bar + modal */

#mtik-cc-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #0f1419;
    border-top: 1px solid #1f2937;
    color: #e5e7eb;
    font-family: 'Inter', system-ui, sans-serif;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
}
#mtik-cc-banner.mtik-cc-show { transform: translateY(0); }

.mtik-cc-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.mtik-cc-text { flex: 1 1 320px; min-width: 0; }
.mtik-cc-text strong { display: block; font-size: 0.95rem; margin-bottom: 0.25rem; color: #f3f4f6; }
.mtik-cc-text p { margin: 0; font-size: 0.85rem; line-height: 1.5; color: #9ca3af; }
.mtik-cc-link { color: #60a5fa; text-decoration: underline; }
.mtik-cc-link:hover { color: #93c5fd; }

.mtik-cc-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.mtik-cc-btn {
    border: 0;
    cursor: pointer;
    padding: 0.55rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.mtik-cc-btn-ghost {
    background: transparent;
    color: #d1d5db;
    border: 1px solid #374151;
}
.mtik-cc-btn-ghost:hover { background: #1f2937; color: #f9fafb; }
.mtik-cc-btn-primary {
    background: #3b82f6;
    color: #fff;
}
.mtik-cc-btn-primary:hover { background: #2563eb; }

/* Modal */
#mtik-cc-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.2s ease;
    font-family: 'Inter', system-ui, sans-serif;
}
#mtik-cc-modal.mtik-cc-show { opacity: 1; }

.mtik-cc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.mtik-cc-modal-box {
    position: relative;
    background: #111827;
    color: #e5e7eb;
    border: 1px solid #1f2937;
    border-radius: 1rem;
    max-width: 540px;
    width: calc(100% - 2rem);
    margin: 5vh auto 0;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.mtik-cc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #1f2937;
}
.mtik-cc-modal-header h2 { margin: 0; font-size: 1.125rem; font-weight: 600; color: #f3f4f6; }
.mtik-cc-close {
    background: transparent;
    border: 0;
    color: #9ca3af;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.5rem;
}
.mtik-cc-close:hover { color: #f3f4f6; }

.mtik-cc-modal-body { padding: 1rem 1.5rem; overflow-y: auto; }
.mtik-cc-modal-intro { margin: 0 0 1rem; font-size: 0.85rem; color: #9ca3af; line-height: 1.5; }

.mtik-cc-cat {
    background: #0f1419;
    border: 1px solid #1f2937;
    border-radius: 0.625rem;
    padding: 0.875rem 1rem;
    margin-bottom: 0.75rem;
}
.mtik-cc-cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    gap: 1rem;
}
.mtik-cc-cat strong { font-size: 0.95rem; color: #f3f4f6; }
.mtik-cc-cat p { margin: 0; font-size: 0.8rem; color: #9ca3af; line-height: 1.5; }
.mtik-cc-badge {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: normal;
}

/* iOS-style switch */
.mtik-cc-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.mtik-cc-switch input { opacity: 0; width: 0; height: 0; }
.mtik-cc-slider {
    position: absolute;
    inset: 0;
    background: #374151;
    border-radius: 22px;
    cursor: pointer;
    transition: background 0.2s;
}
.mtik-cc-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.mtik-cc-switch input:checked + .mtik-cc-slider { background: #3b82f6; }
.mtik-cc-switch input:checked + .mtik-cc-slider::before { transform: translateX(18px); }
.mtik-cc-switch-disabled .mtik-cc-slider { background: #1f2937; cursor: not-allowed; }
.mtik-cc-switch-disabled .mtik-cc-slider::before { background: #6b7280; }

.mtik-cc-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #1f2937;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .mtik-cc-inner {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.75rem;
        padding: 0.875rem 1rem;
    }
    .mtik-cc-text { flex: 0 0 auto; }
    .mtik-cc-text strong { font-size: 0.9rem; }
    .mtik-cc-text p { font-size: 0.8rem; }
    .mtik-cc-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    .mtik-cc-btn {
        width: 100%;
        padding: 0.65rem 0.75rem;
        font-size: 0.8rem;
    }
    .mtik-cc-btn-primary {
        grid-column: 1 / -1;
        order: -1;
    }
    .mtik-cc-modal-box { margin-top: 2vh; }
}
