/* Cookie lišta a nastavení souhlasu - SOJNEK Libor a syn, s.r.o. */

#cookie-consent, .cc-modal, #cc-reopen { font-family: 'Overpass', sans-serif;}

/* Spodní lišta */
#cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    background: #151515;
    border-top: 5px solid #e8bc0c;
    padding: 24px 30px;
    transform: translateY(110%);
    opacity: 0;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

#cookie-consent.cc-visible { transform: translateY(0); opacity: 1;}

.cc-banner-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cc-banner-title {
    font-weight: 900;
    font-size: 16px;
    letter-spacing: .5px;
    color: #e8bc0c;
    margin: 0 0 8px 0;
}

.cc-banner-desc {
    font-weight: 300;
    font-size: 14px;
    line-height: 1.6;
    color: #ffffff;
    margin: 0;
}

.cc-banner-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
}

/* Tlačítka */
.cc-btn {
    font-family: 'Overpass', sans-serif;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 12px 22px;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.35s ease-in-out;
}

.cc-btn-primary { background: #e8bc0c; border-color: #e8bc0c; color: #151515;}
.cc-btn-primary:hover { background: #fffaf7; border-color: #fffaf7; color: #151515;}

.cc-btn-outline { background: transparent; border-color: rgba(255,255,255,.4); color: #ffffff;}
.cc-btn-outline:hover { border-color: #e8bc0c; color: #e8bc0c;}

.cc-btn-ghost { background: transparent; border-color: transparent; color: rgba(255,255,255,.6); text-decoration: underline; padding: 12px 6px;}
.cc-btn-ghost:hover { color: #e8bc0c;}

/* Modální okna (nastavení cookies, zásady cookies) */
.cc-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.35s ease-in-out, visibility 0.35s ease-in-out;
}

.cc-modal.cc-visible { visibility: visible; opacity: 1;}

.cc-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(21, 21, 21, .85);
}

.cc-modal-dialog {
    position: relative;
    width: 92%;
    max-width: 560px;
    max-height: 86vh;
    overflow-y: auto;
    background: #151515;
    border: 5px solid #e8bc0c;
    padding: 40px;
    color: #ffffff;
}

.cc-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 100%;
    border: 1px solid rgba(255,255,255,.4);
    background: transparent;
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.35s ease-in-out;
}

.cc-modal-close:hover { border-color: #e8bc0c; color: #e8bc0c;}

.cc-modal-title {
    font-weight: 900;
    font-size: 24px;
    margin: 0 0 14px 0;
}

.cc-modal-desc {
    font-weight: 300;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,.75);
    margin: 0 0 24px 0;
}

.cc-modal-provider {
    font-weight: 300;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255,255,255,.45);
    margin: 26px 0 0 0;
    border-top: 1px solid rgba(255,255,255,.15);
    padding-top: 18px;
}

.cc-category {
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,.15);
}

.cc-category:last-of-type { border-bottom: 1px solid rgba(255,255,255,.15);}

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

.cc-category-name { font-weight: 900; font-size: 15px;}

.cc-category-desc {
    font-weight: 300;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255,255,255,.6);
    margin: 8px 0 0 0;
}

/* Přepínač */
.cc-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none;}
.cc-switch input { opacity: 0; width: 0; height: 0;}
.cc-switch-slider {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.2);
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.35s ease-in-out;
}
.cc-switch-slider:before {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 100%;
    transition: transform 0.35s ease-in-out;
}
.cc-switch input:checked + .cc-switch-slider { background: #e8bc0c;}
.cc-switch input:checked + .cc-switch-slider:before { transform: translateX(20px);}
.cc-switch-disabled .cc-switch-slider { cursor: not-allowed; opacity: .6;}

.cc-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
}

/* Trvalé tlačítko pro opětovné otevření nastavení */
#cc-reopen {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 9997;
    width: 46px;
    height: 46px;
    border-radius: 100%;
    border: 1px solid rgba(255,255,255,.4);
    background: #151515;
    cursor: pointer;
    transition: all 0.35s ease-in-out;
}

#cc-reopen:hover { border-color: #e8bc0c;}

#cc-reopen .cc-cookie-icon {
    position: relative;
    width: 22px;
    height: 22px;
    margin: 0 auto;
    border-radius: 100%;
    background: #e8bc0c;
    box-shadow:
        -5px -2px 0 -3px #151515,
        4px 5px 0 -3px #151515,
        -2px 6px 0 -4px #151515,
        6px -4px 0 -4px #151515;
}

/* Podnadpisy uvnitř modalu se zásadami cookies */
.cc-subheading {
    font-weight: 900;
    font-size: 16px;
    color: #e8bc0c;
    margin: 22px 0 8px 0;
}

.cc-subheading:first-child { margin-top: 0;}

.cc-policy-text {
    font-weight: 300;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255,255,255,.75);
    margin: 0 0 8px 0;
}

@media screen and (max-width: 766px) {
    #cookie-consent { padding: 20px;}
    .cc-banner-inner { flex-direction: column; align-items: flex-start; gap: 16px;}
    .cc-banner-actions { width: 100%; flex-wrap: wrap;}
    .cc-btn { flex: 1 1 auto; text-align: center;}
    .cc-modal-dialog { padding: 26px;}
    .cc-modal-title { font-size: 20px;}
}
