/* Cookie lišta a nastavení - vizuálně navazuje na ../styly/style.css (#F6F3EE, #050505, #9AC21D, #C2C9CD, font Inter) */

.cookie-hidden { display: none !important;}

html.cookie-modal-open, html.cookie-modal-open body { overflow: hidden; height: 100%;}

/* --- Spodní lišta --- */
#cookie-consent {
    width: 100%;
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 9600;
    display: flex;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: cookie-slide-up 0.5s ease-in-out;
}

.cookie-banner {
    width: 100%;
    max-width: 980px;
    position: relative;
    padding: 26px 30px 24px;
    box-sizing: border-box;
    border-radius: 14px;
    background: #F6F3EE;
    border: 1px solid #E0E0E0;
    box-shadow: 0 10px 40px rgba(5, 5, 5, 0.18);
    overflow: hidden;
}

.cookie-banner-linea {
    width: 100%;
    height: 5px;
    position: absolute;
    top: 0;
    left: 0;
    background: #9AC21D;
}

.cookie-banner-content { display: flex; align-items: center; gap: 30px; flex-wrap: wrap;}

.cookie-banner-text { flex: 1 1 460px;}

.cookie-title { margin: 0 0 6px 0; font-family: 'Inter', sans-serif; font-size: 19px; font-weight: 900; color: #050505;}

.cookie-desc { margin: 0; font-family: 'Inter', sans-serif; font-size: 14.5px; font-weight: 300; line-height: 1.5; color: #050505;}

.cookie-desc a { color: #050505; font-weight: 600; text-decoration: underline;}
.cookie-desc a:hover { color: #9AC21D;}

.cookie-banner-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 0 0 auto;}

/* --- Tlačítka (shodná velikost = rovnocenná prominence "Přijmout" / "Odmítnout") --- */
.cookie-btn {
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    font-weight: 900;
    padding: 13px 22px;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.35s ease-in-out;
}

.cookie-btn-accept { background: #9AC21D; color: #050505;}
.cookie-btn-accept:hover { background: #050505; color: #F6F3EE;}

.cookie-btn-reject { background: #050505; color: #F6F3EE;}
.cookie-btn-reject:hover { background: #9AC21D; color: #050505;}

.cookie-btn-outline { background: transparent; color: #050505; border-color: #C2C9CD;}
.cookie-btn-outline:hover { border-color: #9AC21D; color: #9AC21D;}

/* --- Plovoucí tlačítko pro opětovné otevření nastavení --- */
#cookie-reopen {
    width: 52px;
    height: 52px;
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    border: none;
    border-radius: 100%;
    background: #050505;
    color: #F6F3EE;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(5, 5, 5, 0.25);
    transition: all 0.35s ease-in-out;
}

#cookie-reopen:hover { background: #9AC21D; color: #050505;}

/* --- Modální okno s nastavením --- */
#cookie-modal { position: fixed; inset: 0; z-index: 9700; display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box;}

.cookie-modal-overlay { position: absolute; inset: 0; background: rgba(5, 5, 5, 0.6);}

.cookie-modal-panel {
    width: 100%;
    max-width: 620px;
    max-height: 88vh;
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    background: #F6F3EE;
    box-shadow: 0 20px 60px rgba(5, 5, 5, 0.3);
    overflow: hidden;
    animation: cookie-pop-in 0.35s ease-in-out;
}

.cookie-modal-linea { width: 100%; height: 5px; position: absolute; top: 0; left: 0; background: #9AC21D;}

.cookie-modal-close {
    width: 34px;
    height: 34px;
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    border: none;
    border-radius: 100%;
    background: transparent;
    color: #050505;
    cursor: pointer;
    transition: all 0.35s ease-in-out;
}

.cookie-modal-close:hover { background: #C2C9CD;}

.cookie-modal-header { padding: 34px 30px 16px;}

.cookie-modal-title { margin: 0 0 8px 0; font-family: 'Inter', sans-serif; font-size: 24px; font-weight: 900; color: #050505;}

.cookie-modal-intro { margin: 0; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 300; line-height: 1.55; color: #050505;}

.cookie-modal-body { padding: 4px 30px; overflow-y: auto;}

.cookie-category { padding: 16px 0; border-top: 1px solid #E0E0E0;}
.cookie-category:first-child { border-top: none;}

.cookie-category-head { display: flex; align-items: center; justify-content: space-between; gap: 16px;}

.cookie-category-name { font-family: 'Inter', sans-serif; font-size: 15.5px; font-weight: 900; color: #050505;}

.cookie-category-tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 20px; background: #C2C9CD; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #050505; vertical-align: middle;}

.cookie-category-desc { margin: 8px 0 0 0; font-family: 'Inter', sans-serif; font-size: 13.5px; font-weight: 300; line-height: 1.55; color: #050505;}

.cookie-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    padding: 20px 30px 28px;
    border-top: 1px solid #E0E0E0;
}

.cookie-modal-footnote { margin: 0 0 14px 0; font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 300; line-height: 1.5; color: #636363; padding: 0 30px;}

/* --- Přepínač --- */
.cookie-switch { width: 46px; height: 26px; position: relative; display: inline-block; flex: 0 0 auto;}
.cookie-switch input { width: 0; height: 0; opacity: 0;}
.cookie-switch-slider { position: absolute; inset: 0; background: #C2C9CD; border-radius: 999px; cursor: pointer; transition: background 0.3s ease-in-out;}
.cookie-switch-slider::before { content: ""; width: 20px; height: 20px; position: absolute; left: 3px; top: 3px; background: #F6F3EE; border-radius: 100%; transition: transform 0.3s ease-in-out;}
.cookie-switch input:checked + .cookie-switch-slider { background: #9AC21D;}
.cookie-switch input:checked + .cookie-switch-slider::before { transform: translateX(20px);}
.cookie-switch input:focus-visible + .cookie-switch-slider { outline: 2px solid #050505; outline-offset: 2px;}
.cookie-switch-disabled .cookie-switch-slider { opacity: 0.55; cursor: not-allowed;}

@keyframes cookie-slide-up { from { transform: translateY(30px); opacity: 0;} to { transform: translateY(0); opacity: 1;} }
@keyframes cookie-pop-in { from { transform: scale(0.96); opacity: 0;} to { transform: scale(1); opacity: 1;} }

@media screen and (max-width: 767px) {
    #cookie-consent { padding: 12px;}
    .cookie-banner { padding: 22px 18px 20px;}
    .cookie-banner-content { gap: 18px;}
    .cookie-banner-actions { width: 100%;}
    .cookie-btn { flex: 1 1 auto; text-align: center;}
    .cookie-modal-header, .cookie-modal-body, .cookie-modal-footnote { padding-left: 20px; padding-right: 20px;}
    .cookie-modal-footer { padding: 18px 20px 22px; justify-content: stretch;}
    .cookie-modal-footer .cookie-btn { flex: 1 1 auto; text-align: center;}
    #cookie-reopen { left: 14px; bottom: 14px; width: 46px; height: 46px; font-size: 20px;}
}
