/*!
 * Matax Cookie Consent – štýly (tmavý motív, dolný pás)
 * © matax.sk
 */

/* Footer link "Nastavenia cookies" – zladený s ostatnými footer linkmi */
.footer-cookie-link {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    text-align: left;
    font-family: inherit;
    transition: color 0.3s;
}
.footer-cookie-link:hover {
    color: #fff;
    text-decoration: underline;
}

#cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35);
    color: #f1f5f9;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.9rem;
    line-height: 1.55;
    animation: ccSlideUp 0.35s ease-out;
}
@keyframes ccSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
#cookie-consent .cc-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
}
#cookie-consent .cc-main {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
#cookie-consent .cc-text {
    flex: 1 1 420px;
    min-width: 280px;
}
#cookie-consent .cc-text strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: #fff;
    font-weight: 700;
}
#cookie-consent .cc-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.85rem;
}
#cookie-consent .cc-text a {
    color: #38bdf8;
    text-decoration: underline;
    text-underline-offset: 2px;
}
#cookie-consent .cc-text a:hover { color: #7dd3fc; }
#cookie-consent .cc-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
#cookie-consent .cc-buttons-settings { margin-top: 16px; justify-content: flex-end; }
#cookie-consent .cc-btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 9999px;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    white-space: nowrap;
}
#cookie-consent .cc-btn-ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.22);
}
#cookie-consent .cc-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
#cookie-consent .cc-btn-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}
#cookie-consent .cc-btn-primary:hover { transform: translateY(-1px); }
#cookie-consent .cc-btn:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Settings panel */
#cookie-consent .cc-settings { padding: 4px 0; }
#cookie-consent .cc-settings-header strong {
    display: block;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 4px;
    font-weight: 700;
}
#cookie-consent .cc-settings-header p {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}
#cookie-consent .cc-category {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 10px;
}
#cookie-consent .cc-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}
#cookie-consent .cc-switch input { position: absolute; opacity: 0; pointer-events: none; }
#cookie-consent .cc-slider {
    position: relative;
    width: 38px;
    height: 22px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    transition: background 0.2s;
    flex-shrink: 0;
}
#cookie-consent .cc-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
#cookie-consent .cc-switch input:checked + .cc-slider {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
}
#cookie-consent .cc-switch input:checked + .cc-slider::after { transform: translateX(16px); }
#cookie-consent .cc-slider.cc-disabled {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    opacity: 0.85;
}
#cookie-consent .cc-slider.cc-disabled::after { transform: translateX(16px); }
#cookie-consent .cc-cat-name {
    font-size: 0.92rem;
    color: #fff;
    font-weight: 600;
}
#cookie-consent .cc-cat-name em {
    font-style: normal;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
    font-size: 0.8rem;
}
#cookie-consent .cc-cat-desc {
    margin: 8px 0 0 50px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
}

@media (max-width: 768px) {
    #cookie-consent .cc-inner { padding: 16px; }
    #cookie-consent .cc-main { flex-direction: column; align-items: stretch; gap: 14px; }
    #cookie-consent .cc-buttons { justify-content: stretch; }
    #cookie-consent .cc-btn { flex: 1 1 auto; text-align: center; }
    #cookie-consent .cc-buttons-settings { justify-content: stretch; }
    #cookie-consent .cc-cat-desc { margin-left: 0; margin-top: 10px; }
}
