/* Cookie Consent Bar - trilu.cz */
#cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 12px rgba(0,0,0,.12);
    z-index: 99999;
    padding: 14px 24px;
    display: none;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 14px;
    color: #333;
}
#cookie-bar .cookie-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
#cookie-bar .cookie-bar-text {
    flex: 1;
    min-width: 200px;
    line-height: 1.5;
}
#cookie-bar .cookie-bar-text a {
    color: #f78c00;
    text-decoration: underline;
}
#cookie-bar .cookie-bar-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
#cookie-bar .btn-accept {
    background: #f78c00;
    color: #fff;
    border: none;
    padding: 9px 20px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
#cookie-bar .btn-accept:hover { background: #e07a00; }
#cookie-bar .btn-settings {
    background: #444;
    color: #fff;
    border: none;
    padding: 9px 20px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
#cookie-bar .btn-settings:hover { background: #222; }

/* Settings panel */
#cookie-settings {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
}
#cookie-settings.open { display: flex; }
#cookie-settings-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.5);
}
#cookie-settings-box {
    position: relative;
    background: #fff;
    border-radius: 6px;
    padding: 28px 32px;
    max-width: 520px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 32px rgba(0,0,0,.2);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 14px;
    color: #333;
}
#cookie-settings-box h3 {
    margin: 0 0 12px;
    font-size: 18px;
    color: #222;
}
#cookie-settings-box p {
    margin: 0 0 20px;
    line-height: 1.6;
    color: #555;
}
.cookie-close {
    position: absolute;
    top: 12px; right: 14px;
    background: #f78c00;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    color: #fff;
    line-height: 1;
}
.cookie-close:hover { background: #e07a00; color: #fff; }
.cookie-category {
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 10px;
}
.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    margin-bottom: 4px;
}
.cookie-category p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #666;
}
.cookie-toggle {
    position: relative;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}
.cookie-toggle input { display: none; }
.cookie-toggle-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #ccc;
    border-radius: 22px;
    cursor: pointer;
    transition: .3s;
}
.cookie-toggle-slider:before {
    content: '';
    position: absolute;
    width: 16px; height: 16px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: .3s;
}
.cookie-toggle input:checked + .cookie-toggle-slider { background: #f78c00; }
.cookie-toggle input:checked + .cookie-toggle-slider:before { transform: translateX(18px); }
.cookie-toggle input:disabled + .cookie-toggle-slider { opacity: .6; cursor: default; }
.cookie-settings-footer {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}
.cookie-settings-footer .btn-accept { background: #f78c00; color: #fff; border: none; padding: 9px 20px; border-radius: 3px; cursor: pointer; font-size: 13px; font-weight: 600; }
.cookie-settings-footer .btn-save { background: #555; color: #fff; border: none; padding: 9px 20px; border-radius: 3px; cursor: pointer; font-size: 13px; }

/* Again button */
#cookie-again {
    display: none;
    position: fixed;
    bottom: 16px;
    right: 16px;
    background: #333;
    color: #fff;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    z-index: 99998;
    font-family: "Open Sans", Arial, sans-serif;
}
#cookie-again:hover { background: #555; }

@media (max-width: 600px) {
    #cookie-bar { padding: 12px 16px; }
    #cookie-bar .cookie-bar-inner { gap: 10px; }
    #cookie-settings-box { padding: 20px; }
}
