/* Cookie lišta (TEN-289) – vzhľad prevzatý z pôvodného bannera CookieScript „TR“ (typ Centered):
   zošednutá stránka rgba(17,17,17,.5), okno 90 % / max 800 px v strede, #1C1C1C, modré #22b8f0,
   Open Sans/Arial. Kým nie je súhlas, stránka sa neposúva (pôvodne .cookiescript_overlay). */

html.tr-cc-open, html.tr-cc-open body {
    overflow: hidden;
    height: 100vh;
}

.tr-cc {
    position: fixed;
    inset: 0;
    z-index: 999996;
    background-color: rgba(17, 17, 17, 0.5);
}

.tr-cc[hidden], .tr-cc-badge[hidden], .tr-cc [hidden] {
    display: none !important;
}

.tr-cc *, .tr-cc *::before, .tr-cc *::after {
    box-sizing: border-box;
}

.tr-cc__dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 80%;
    overflow-y: auto;
    padding: 26px 55px 15px;
    z-index: 999997;
    background-color: #1C1C1C;
    color: #FFFFFF;
    font-family: 'Open Sans', Arial, 'Trebuchet MS', 'Segoe UI', 'Helvetica', sans-serif;
    font-size: 15px;
    font-weight: normal;
    line-height: 18px;
    letter-spacing: normal;
    text-align: left;
    box-shadow: 1px 2px 8px 0 rgba(0, 0, 0, 0.35);
    outline: none;
}

.tr-cc__title {
    margin: 10px 0 6px;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;
}

.tr-cc__desc {
    margin: 0 0 15px;
    font-size: 15px;
    line-height: 1.65;
    color: #FFFFFF;
}

.tr-cc a {
    color: #22b8f0;
    text-decoration: underline;
}

.tr-cc a.tr-cc__more {
    text-decoration: none;
}

.tr-cc a:hover {
    text-decoration: underline;
}

.tr-cc__buttons {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 15px;
}

.tr-cc__accept {
    appearance: none;
    border: 0;
    border-radius: 30px;
    background-color: #22b8f0;
    color: #FFFFFF;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 3.2;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 0 38px;
    cursor: pointer;
    transition: all 0.25s ease 0s;
}

.tr-cc__accept:hover {
    opacity: 0.85;
}

.tr-cc__manage {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: auto;
    border: 0;
    background: none;
    color: #FFFFFF;
    opacity: 0.85;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 4px 0;
    cursor: pointer;
}

.tr-cc__manage:hover {
    opacity: 1;
}

.tr-cc__accept:focus-visible, .tr-cc__manage:focus-visible, .tr-cc__tab:focus-visible, .tr-cc-badge:focus-visible {
    outline: 2px solid #22b8f0;
    outline-offset: 2px;
}

.tr-cc__details {
    border-top: 1px solid #4d4d4d;
    padding-top: 10px;
    margin-bottom: 10px;
}

.tr-cc__tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
}

.tr-cc__tab {
    appearance: none;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: #FFFFFF;
    opacity: 0.7;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 6px 10px;
    cursor: pointer;
}

.tr-cc__tab.is-active {
    opacity: 1;
    border-bottom-color: #22b8f0;
}

.tr-cc__panel {
    font-size: 12px;
    line-height: 1.5;
}

.tr-cc__panel p {
    margin: 0 0 8px;
}

.tr-cc__cat {
    background: transparent;
    color: #FFFFFF;
    padding: 8px 0;
    border-bottom: 1px solid #4d4d4d;
}

.tr-cc__catname {
    font-size: 13px;
    font-weight: 600;
}

.tr-cc__catdesc {
    color: #BDBDBD;
    font-size: 11px;
    margin: 4px 0 0 !important;
}

.tr-cc__tablewrap {
    overflow-x: auto;
    margin-top: 8px;
}

.tr-cc__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.tr-cc__table th, .tr-cc__table td {
    background: transparent;
    color: #FFFFFF;
    text-align: left;
    vertical-align: top;
    padding: 4px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tr-cc__table th {
    color: #BDBDBD;
    font-weight: 600;
    white-space: nowrap;
}

.tr-cc__table td:first-child {
    white-space: nowrap;
}

/* Ikonka na opätovné otvorenie (pôvodný „cookie badge“). Na detaile inzerátu na mobile
   sedí nad kontaktnou lištou (--prop-bottom-stack z property.css, TEN-288). */
.tr-cc-badge {
    position: fixed;
    left: 10px;
    bottom: calc(10px + var(--prop-bottom-stack, 0px));
    z-index: 99999;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #1C1C1C;
    color: #FFFFFF;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    opacity: 0.85;
}

.tr-cc-badge:hover {
    opacity: 1;
}

@media (max-width: 600px) {
    .tr-cc__dialog {
        padding: 20px 22px 10px;
    }

    .tr-cc__title {
        font-size: 18px;
        margin: 0 0 10px;
    }

    .tr-cc__desc {
        font-size: 14px;
    }

    .tr-cc__buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .tr-cc__manage {
        margin: 0 auto;
        font-size: 14px;
    }
}
