/* Cookie lišta a nastavení souhlasu - vizuálně navazuje na design webu (zlatá #960, tmavé plochy, písmo Play) */

#cookie-banner, #cookie-modal-overlay, #cookie-reopen { font-family: 'Play', sans-serif;}

/* ---------------------------------------------------- */
/* Spodní lišta se souhlasem                             */
/* ---------------------------------------------------- */
#cookie-banner {
    width: 100%;
    max-width: 980px;
    position: fixed;
    left: 50%;
    bottom: 20px;
    z-index: 99990;
    padding: 22px 26px;
    border-radius: 10px;
    border-top: 2px solid #960;
    background: #000;
    background: linear-gradient(180deg, rgba(20,15,5,.98), rgba(0,0,0,.98));
    box-shadow: 0 10px 40px rgba(0,0,0,.55);
    color: #efefef;
    transform: translate(-50%, 140%);
    opacity: 0;
    transition: transform .5s cubic-bezier(.22,1,.36,1), opacity .5s ease;
}

#cookie-banner.is-visible {
    transform: translate(-50%, 0);
    opacity: 1;
}

.cookie-banner-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-banner-text { flex: 1 1 auto; text-align: left;}

.cookie-banner-title {
    margin: 0 0 6px 0;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #d4a941;
}

.cookie-banner-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(239,239,239,.75);
}

.cookie-banner-desc a { color: #960; text-decoration: underline; transition: color .25s ease;}
.cookie-banner-desc a:hover { color: #d4a941;}

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

/* ---------------------------------------------------- */
/* Sdílené styly tlačítek                                 */
/* ---------------------------------------------------- */
.cookie-btn {
    display: inline-block;
    padding: 11px 20px;
    border-radius: 6px;
    border: 1px solid #960;
    font-family: 'Play', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    background: transparent;
    color: #efefef;
    transition: all .3s ease-in-out;
}

.cookie-btn:hover { background: rgba(153,102,0,.18);}

.cookie-btn-primary { background: #960; color: #efefef; border-color: #960;}
.cookie-btn-primary:hover { background: #b47b00;}

.cookie-btn-text {
    border: none;
    padding: 11px 4px;
    background: none;
    text-decoration: underline;
    text-underline-offset: 3px;
    color: rgba(239,239,239,.75);
}
.cookie-btn-text:hover { background: none; color: #d4a941;}

/* ---------------------------------------------------- */
/* Modální okno s podrobným nastavením                    */
/* ---------------------------------------------------- */
#cookie-modal-overlay {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99995;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0,0,0,.72);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
}

#cookie-modal-overlay.is-visible { opacity: 1; visibility: visible;}

#cookie-modal {
    width: 100%;
    max-width: 560px;
    max-height: 86vh;
    overflow-y: auto;
    position: relative;
    border-radius: 10px;
    border-top: 2px solid #960;
    background: #0c0c0c;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
    color: #efefef;
    text-align: left;
    transform: translateY(18px) scale(.98);
    transition: transform .35s ease;
}

#cookie-modal-overlay.is-visible #cookie-modal { transform: translateY(0) scale(1);}

.cookie-modal-head {
    padding: 26px 30px 14px 30px;
    border-bottom: 1px solid rgba(153,102,0,.25);
}

.cookie-modal-title {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 700;
    color: #d4a941;
}

.cookie-modal-lead {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(239,239,239,.7);
}

.cookie-modal-close {
    width: 34px;
    height: 34px;
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    border: 1px solid rgba(153,102,0,.4);
    background: transparent;
    color: #efefef;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: all .25s ease;
}
.cookie-modal-close:hover { background: #960; border-color: #960;}

.cookie-modal-body { padding: 10px 30px 6px 30px;}

.cookie-category {
    padding: 18px 0;
    border-bottom: 1px solid rgba(239,239,239,.08);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}
.cookie-category:last-child { border-bottom: none;}

.cookie-category-text { flex: 1 1 auto;}

.cookie-category-title {
    margin: 0 0 5px 0;
    font-size: 15px;
    font-weight: 700;
    color: #efefef;
}

.cookie-category-title small {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(153,102,0,.9);
}

.cookie-category-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(239,239,239,.6);
}

/* Přepínač kategorie */
.cookie-toggle { flex: none; position: relative; width: 46px; height: 26px; margin-top: 3px;}
.cookie-toggle input { position: absolute; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer;}
.cookie-toggle-track {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 20px;
    background: rgba(239,239,239,.18);
    border: 1px solid rgba(239,239,239,.22);
    transition: background .25s ease, border-color .25s ease;
}
.cookie-toggle-track::after {
    content: '';
    width: 18px;
    height: 18px;
    position: absolute;
    top: 3px;
    left: 3px;
    border-radius: 100%;
    background: #efefef;
    transition: transform .25s ease;
}
.cookie-toggle input:checked ~ .cookie-toggle-track { background: #960; border-color: #960;}
.cookie-toggle input:checked ~ .cookie-toggle-track::after { transform: translateX(20px);}
.cookie-toggle input:disabled ~ .cookie-toggle-track { background: rgba(153,102,0,.45); border-color: rgba(153,102,0,.45); cursor: not-allowed;}
.cookie-toggle input:focus-visible ~ .cookie-toggle-track { outline: 2px solid #d4a941; outline-offset: 2px;}

.cookie-modal-foot {
    padding: 20px 30px 28px 30px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

/* ---------------------------------------------------- */
/* Plovoucí tlačítko pro opětovné otevření nastavení      */
/* ---------------------------------------------------- */
#cookie-reopen {
    width: 46px;
    height: 46px;
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 99980;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    border: 1px solid #960;
    background: #000;
    color: #d4a941;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,.45);
    transition: all .3s ease-in-out;
}
#cookie-reopen.is-visible { display: flex;}
#cookie-reopen:hover { background: #960; color: #efefef;}
#cookie-reopen svg { width: 22px; height: 22px;}

@media screen and (max-width: 767px) {
    #cookie-banner { max-width: calc(100% - 24px); left: 12px; right: 12px; bottom: 12px; transform: translateY(140%); padding: 20px;}
    #cookie-banner.is-visible { transform: translateY(0);}
    .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 16px;}
    .cookie-banner-actions { justify-content: flex-start;}
    .cookie-btn { flex: 1 1 auto;}
    .cookie-modal-head, .cookie-modal-body, .cookie-modal-foot { padding-left: 20px; padding-right: 20px;}
    .cookie-modal-foot { justify-content: stretch;}
    .cookie-modal-foot .cookie-btn { flex: 1 1 auto;}
}

/* ---------------------------------------------------- */
/* Tabulka přehledu cookies na stránce zásad              */
/* ---------------------------------------------------- */
.cookie-policy-table {
    width: 100%;
    margin: 20px 0 0 0;
    border: 1px solid rgba(153,102,0,.3);
    border-radius: 8px;
    overflow: hidden;
}

.cookie-policy-row {
    display: grid;
    grid-template-columns: 110px 220px 1fr 110px;
}

.cookie-policy-row + .cookie-policy-row { border-top: 1px solid rgba(153,102,0,.18);}

.cookie-policy-row-head {
    background: #960;
    color: #efefef;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.cookie-policy-cell {
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.5;
    color: #000;
}

.cookie-policy-row-head .cookie-policy-cell { color: #efefef;}
.cookie-policy-row:nth-child(even):not(.cookie-policy-row-head) { background: rgba(153,102,0,.06);}

@media screen and (max-width: 1099px) {
    .cookie-policy-row { grid-template-columns: 90px 160px 1fr 90px;}
}

@media screen and (max-width: 767px) {
    .cookie-policy-row-head { display: none;}
    .cookie-policy-row { grid-template-columns: 1fr; padding: 12px 14px;}
    .cookie-policy-cell { padding: 4px 0;}
    .cookie-policy-cell::before { content: attr(data-label) ': '; font-weight: 700; color: #960;}
    .cookie-policy-cell:first-child::before { content: '';}
    .cookie-policy-cell:first-child { font-weight: 700; color: #960; font-size: 15px;}
}
