/* Custom cookie consent banner + preferences modal (CZ).
   Visual parity target: CookieScript CMP banner previously used on this domain. */

#cookie-consent-bar,
#cookie-consent-modal-overlay,
#cookie-consent-modal-overlay * {
    box-sizing: border-box;
}

/* ---------- Compact bottom bar ---------- */

#cookie-consent-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    background: #1c1c1c;
    color: #fff;
    font-family: "Open Sans", Arial, "Trebuchet MS", "Segoe UI", Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    padding: 12px 60px 12px 50px;
}

#cookie-consent-bar a {
    color: #73b64d;
}

.cc-bar__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
}

.cc-bar__text {
    margin: 0 0 12px;
    max-width: 900px;
}

.cc-bar__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cc-bar__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
}

.cc-bar__category {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

.cc-bar__category input {
    position: absolute;
    opacity: 0;
    width: 18px;
    height: 18px;
    margin: 0;
}

.cc-bar__checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.cc-bar__category input:checked + .cc-bar__checkbox {
    background: #73b64d;
    border-color: #73b64d;
}

.cc-bar__category input:disabled + .cc-bar__checkbox {
    opacity: 0.9;
}

.cc-bar__checkbox::after {
    content: "";
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform .1s ease-in;
}

.cc-bar__category input:checked + .cc-bar__checkbox::after {
    transform: rotate(45deg) scale(1);
}

.cc-bar__actions {
    display: flex;
    gap: 12px;
    flex: none;
}

.cc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 17px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    text-transform: none;
    cursor: pointer;
    white-space: nowrap;
}

.cc-btn--accept {
    background: #73b64d;
    border: 1px solid #73b64d;
    color: #fff;
}

.cc-btn--reject {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}

.cc-btn--outline {
    background: #fff;
    border: 1px solid #4d4d4d;
    color: #4d4d4d;
}

.cc-btn--save {
    background: #73b64d;
    border: 1px solid #73b64d;
    color: #fff;
}

.cc-bar__details {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: #fff;
    text-decoration: underline;
    font-size: 13px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}

.cc-bar__close {
    position: absolute;
    top: 12px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
}

/* ---------- Preferences modal ---------- */

#cookie-consent-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    background: rgba(17, 17, 17, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: "Open Sans", Arial, "Trebuchet MS", "Segoe UI", Helvetica, sans-serif;
}

.cc-modal {
    position: relative;
    background: #f3f3f3;
    color: #1c1c1c;
    border-radius: 25px;
    box-shadow: 1px 2px 8px 0 rgba(0, 0, 0, 0.35);
    width: 100%;
    max-width: 950px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cc-modal__close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #1c1c1c;
}

.cc-modal__body {
    padding: 30px 35px 0;
    overflow-y: auto;
}

.cc-modal__title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px;
    padding-right: 30px;
}

.cc-modal__intro {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.6;
}

.cc-modal__intro a {
    color: #73b64d;
}

.cc-tabs {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid #d9d9d9;
    margin-bottom: 20px;
}

.cc-tabs__btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #6b6b6b;
    cursor: pointer;
    font-family: inherit;
}

.cc-tabs__btn.is-active {
    color: #73b64d;
    border-bottom-color: #73b64d;
}

.cc-tabpanel {
    display: none;
}

.cc-tabpanel.is-active {
    display: block;
}

.cc-category {
    padding: 18px 0;
    border-bottom: 1px solid #d9d9d9;
}

.cc-category:last-child {
    border-bottom: none;
}

.cc-category__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.cc-category__name {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px;
}

.cc-category__desc {
    font-size: 13px;
    color: #4d4d4d;
    margin: 0;
    max-width: 720px;
}

/* toggle switch */
.cc-switch {
    position: relative;
    width: 36px;
    height: 20px;
    flex: none;
    border-radius: 10px;
    background: #8a8a8a;
    cursor: pointer;
    transition: background .15s ease;
}

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

.cc-switch__handle {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: left .15s ease;
}

.cc-switch.is-on {
    background: #73b64d;
}

.cc-switch.is-on .cc-switch__handle {
    left: 18px;
}

.cc-switch.is-disabled {
    opacity: .6;
    cursor: default;
}

.cc-category__toggle-details {
    background: none;
    border: none;
    color: #4d4d4d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    cursor: pointer;
    padding: 10px 0 0;
    font-family: inherit;
}

.cc-cookie-table-wrap {
    display: none;
    overflow-x: auto;
    margin-top: 10px;
}

.cc-cookie-table-wrap.is-open {
    display: block;
}

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

.cc-cookie-table th {
    text-align: left;
    font-weight: 700;
    padding: 6px 10px;
    border-bottom: 1px solid #d9d9d9;
    white-space: nowrap;
}

.cc-cookie-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e6e6e6;
    vertical-align: top;
}

.cc-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 18px 35px;
    border-top: 1px solid #d9d9d9;
    background: #f3f3f3;
    flex: none;
}

@media (max-width: 700px) {
    #cookie-consent-bar {
        padding: 16px 45px 16px 16px;
    }

    .cc-bar__row {
        flex-direction: column;
        align-items: stretch;
    }

    .cc-modal__footer {
        flex-wrap: wrap;
    }

    .cc-modal__footer .cc-btn {
        flex: 1 1 auto;
    }
}
