/* ==========================================================
   TT Comp – cookie lišta (vlastná, bez externých služieb)
   Farby a písma podľa asset/css/style.css
   ========================================================== */

.ttc-cc,
.ttc-cc * {
    box-sizing: border-box;
}

.ttc-cc {
    --cc-red: #cc080d;
    --cc-dark: #222222;
    --cc-darker: #1d1d1d;
    --cc-text: #cfcfcf;
    font-family: 'PT Sans Narrow', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.45;
}

.ttc-cc [hidden] {
    display: none !important;
}

/* ---------- Spodná lišta ---------- */
.ttc-cc-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2147483000;
    background: var(--cc-dark);
    color: var(--cc-text);
    border-top: 4px solid var(--cc-red);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, .35);
    animation: ttc-cc-up .35s ease-out;
}

@keyframes ttc-cc-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.ttc-cc-banner__inner {
    position: relative;
    max-width: 1170px;
    margin: 0 auto;
    padding: 20px 56px 20px 15px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.ttc-cc-banner__text {
    flex: 1 1 auto;
}

.ttc-cc-title {
    font-family: 'Oswald', Arial, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #fff;
    margin: 0 0 6px;
    font-size: 20px;
    line-height: 1.2;
}

.ttc-cc-title i {
    color: var(--cc-red);
    margin-right: 6px;
}

.ttc-cc-banner p {
    margin: 0;
    color: var(--cc-text);
}

.ttc-cc a {
    color: #fff;
    text-decoration: underline;
}

.ttc-cc a:hover,
.ttc-cc a:focus {
    color: var(--cc-red);
}

.ttc-cc-banner__actions {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* ---------- Tlačidlá (všetky rovnakej farby – požiadavka regulátora) ---------- */
.ttc-cc-btn {
    display: inline-block;
    min-width: 150px;
    padding: 9px 18px;
    margin: 0;
    font-family: 'PT Sans Narrow', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
    color: #fff;
    background: var(--cc-red);
    border: 2px solid var(--cc-red);
    border-radius: 0;
    cursor: pointer;
    transition: all .3s;
}

.ttc-cc-btn:hover {
    background: transparent;
    color: var(--cc-red);
}

.ttc-cc-banner .ttc-cc-btn:hover {
    color: #fff;
}

.ttc-cc-btn:focus-visible,
.ttc-cc-close:focus-visible,
.ttc-cc-switch input:focus-visible + .ttc-cc-switch__slider,
.ttc-cc-details summary:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px var(--cc-red);
}

/* ---------- Zavrieť (X) = odmietnutie ---------- */
.ttc-cc-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    padding: 0;
    background: transparent;
    border: 0;
    color: #999;
    font-size: 26px;
    line-height: 34px;
    cursor: pointer;
    transition: color .3s;
}

.ttc-cc-close:hover {
    color: var(--cc-red);
}

/* ---------- Modálne okno nastavení ---------- */
.ttc-cc-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483001;
    background: rgba(0, 0, 0, .65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    animation: ttc-cc-fade .25s ease-out;
}

@keyframes ttc-cc-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.ttc-cc-modal {
    position: relative;
    background: #fff;
    color: #444;
    width: 100%;
    max-width: 760px;
    max-height: calc(100vh - 30px);
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--cc-red);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .4);
}

.ttc-cc-modal__head {
    padding: 20px 60px 14px 24px;
    border-bottom: 1px solid #e5e5e5;
}

.ttc-cc-modal .ttc-cc-title {
    color: #111;
    font-size: 24px;
    margin: 0;
}

.ttc-cc-modal .ttc-cc-close {
    top: 14px;
    right: 14px;
    color: #888;
}

.ttc-cc-modal__body {
    padding: 18px 24px;
    overflow-y: auto;
}

.ttc-cc-modal__body p {
    margin: 0 0 12px;
}

.ttc-cc-modal a {
    color: var(--cc-red);
}

.ttc-cc-modal a:hover {
    color: #444;
}

.ttc-cc-modal__foot {
    padding: 14px 24px 18px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    background: #f7f7f7;
}

/* Kategórie */
.ttc-cc-cat {
    border: 1px solid #e5e5e5;
    margin: 0 0 12px;
}

.ttc-cc-cat__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    background: #fafafa;
}

.ttc-cc-cat__name {
    font-family: 'Oswald', Arial, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 17px;
    color: #111;
    margin: 0;
}

.ttc-cc-cat__always {
    font-size: 14px;
    color: var(--cc-red);
    white-space: nowrap;
}

.ttc-cc-cat__body {
    padding: 10px 16px 12px;
}

.ttc-cc-cat__body p {
    margin: 0 0 8px;
}

/* Prepínač */
.ttc-cc-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex: 0 0 auto;
    margin: 0;
}

.ttc-cc-switch input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 1;
}

.ttc-cc-switch__slider {
    position: absolute;
    inset: 0;
    background: #bbb;
    transition: background .25s;
}

.ttc-cc-switch__slider::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 4px;
    width: 20px;
    height: 20px;
    background: #fff;
    transition: transform .25s;
}

.ttc-cc-switch input:checked + .ttc-cc-switch__slider {
    background: var(--cc-red);
}

.ttc-cc-switch input:checked + .ttc-cc-switch__slider::before {
    transform: translateX(24px);
}

/* Detaily (služby a cookies) */
.ttc-cc-details summary {
    cursor: pointer;
    color: var(--cc-red);
    font-size: 15px;
}

.ttc-cc-table-wrap {
    overflow-x: auto;
    margin-top: 8px;
}

.ttc-cc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ttc-cc-table th,
.ttc-cc-table td {
    text-align: left;
    vertical-align: top;
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
}

.ttc-cc-table th {
    font-weight: 700;
    color: #111;
    background: #f4f4f4;
}

.ttc-cc-empty {
    font-size: 14px;
    color: #888;
    font-style: italic;
}

.ttc-cc-info h4 {
    font-family: 'Oswald', Arial, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 16px;
    color: #111;
    margin: 16px 0 6px;
}

.ttc-cc-info ul {
    margin: 0 0 10px;
    padding-left: 20px;
}

.ttc-cc-meta {
    font-size: 13px;
    color: #888;
    margin-top: 14px !important;
}

body.ttc-cc-lock {
    overflow: hidden;
}

/* ---------- Responzivita ---------- */
@media (max-width: 991px) {
    .ttc-cc-banner__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .ttc-cc-banner__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .ttc-cc-banner__inner {
        padding: 16px 15px;
    }

    .ttc-cc-banner .ttc-cc-title {
        padding-right: 36px;
    }

    .ttc-cc-banner__actions,
    .ttc-cc-modal__foot {
        flex-direction: column;
    }

    .ttc-cc-btn {
        width: 100%;
    }

    .ttc-cc-modal__head,
    .ttc-cc-modal__body,
    .ttc-cc-modal__foot {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ttc-cc-banner,
    .ttc-cc-overlay {
        animation: none;
    }
}
