/* ==========================================================
   Cookie banner
   ========================================================== */

.klaro .cookie-notice:not(.cookie-modal-notice) {
    position: fixed !important;

    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;

    width: 100% !important;
    max-width: none !important;

    background: #ffffff !important;
    color: #333333 !important;

    border-radius: 0 !important;

    box-shadow:
        0 -2px 10px rgba(0, 0, 0, 0.08) !important;
}


/* ==========================================================
   Cookie banner - obsah
   ========================================================== */

.klaro .cookie-notice:not(.cookie-modal-notice) .cn-body {
    max-width: 1200px;

    margin: 0 auto !important;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    grid-template-areas:
        "title actions"
        "text actions";

    column-gap: 40px;
    row-gap: 6px;

    align-items: center;

    padding: 20px 25px !important;
}


/* ==========================================================
   Cookie banner - nadpis
   ========================================================== */

.klaro .cookie-notice .cookie-notice-title {
    grid-area: title;

    margin: 0 0 6px 0;

    color: #333333;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}


/* ==========================================================
   Cookie banner - text
   ========================================================== */

.klaro .cookie-notice #id-cookie-notice {
    grid-area: text;

    margin: 0;

    line-height: 1.5;
}

.klaro .cookie-notice:not(.cookie-modal-notice) p,
.klaro .cookie-notice:not(.cookie-modal-notice) strong {
    color: #333333 !important;
}


/* ==========================================================
   Cookie banner - pravá část
   ========================================================== */

.klaro .cookie-notice .cn-ok {
    grid-area: actions;

    display: flex;
    align-items: center;
    gap: 8px;
}

.klaro .cookie-notice .cn-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* ==========================================================
   Cookie banner - odkazy
   ========================================================== */

.klaro .cookie-notice:not(.cookie-modal-notice) a {
    color: #333333 !important;

    font-weight: 600;

    text-decoration: underline;

    white-space: nowrap;
}


/* ==========================================================
   Cookie banner - tlačítka
   ========================================================== */

.klaro .cookie-notice:not(.cookie-modal-notice) .cm-btn {
    padding: 12px 25px !important;

    border-radius: 5px !important;

    font-weight: 600 !important;

    text-transform: uppercase;

    white-space: nowrap;
}


/* Povolit cookies */
.klaro .cookie-notice:not(.cookie-modal-notice) .cm-btn-success {
    background: #39a10c !important;
}


/* ==========================================================
   Cookie settings button
   ========================================================== */

.cookie-settings-button {
    position: fixed;

    right: 20px;
    bottom: 20px;

    width: 56px;
    height: 56px;

    padding: 0;

    border: none;
    background: transparent;

    cursor: pointer;

    z-index: 9999;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease;
}

.cookie-settings-button.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cookie-settings-button:hover {
    transform: scale(1.08);
}

.cookie-settings-button svg {
    position: relative;
    z-index: 2;

    display: block;

    width: 100%;
    height: 100%;
}

.cookie-settings-button img,
.cookie-settings-button svg {
    position: relative;
    z-index: 2;

    display: block;

    width: 100%;
    height: 100%;
}


/* text po najetí myší */
.hover-info {
    position: absolute;

    top: 50%;
    right: 28px;
	height: 30px;
	

    padding: 0;

    overflow: hidden;
    white-space: nowrap;

    background: #507744;
    color: #fff;

    opacity: 0;
	
	border-radius: 25px 0 0 25px;

    transform: translateY(-50%);

    transition:
        width .3s ease,
        padding .3s ease,
        opacity .2s ease;

    z-index: 1;
}


/* po najetí */
.cookie-settings-button:hover .hover-info {
    width: 180px;
    height: 30px;
    padding: 5px;

    border-radius: 25px 0 0 25px;

    opacity: 1;
}

/* ==========================================================
   Mobile
   ========================================================== */

@media (max-width: 768px) {

    .klaro .cookie-notice:not(.cookie-modal-notice) .cn-body {
        grid-template-columns: 1fr;

        grid-template-areas:
            "title"
            "text"
            "actions";

        row-gap: 15px;

        padding: 18px !important;
    }

    .klaro .cookie-notice .cn-ok {
        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 10px;
    }

    .klaro .cookie-notice .cn-buttons {
        display: flex;

        flex-direction: column;

        gap: 10px;

        width: 100%;
    }

    .klaro .cookie-notice:not(.cookie-modal-notice) a {
        text-align: center;
    }

    .klaro .cookie-notice:not(.cookie-modal-notice) .cm-btn {
        width: 100%;

        margin: 0 !important;
    }

    .cookie-settings-button {
        right: 16px;
        bottom: 16px;

        width: 46px;
        height: 46px;
    }
}

/* ==========================================================
   Cookie policy modal
   ========================================================== */

.cookie-policy-modal {
    position: fixed;

    inset: 0;

    z-index: 10050;
}


/* Pozadí */

.cookie-policy-modal-backdrop {
    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, 0.55);
}


/* Okno */

.cookie-policy-modal-window {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: calc(100% - 40px);
    max-width: 900px;

    height: 80vh;
    max-height: 800px;

    display: flex;
    flex-direction: column;

    background: #ffffff;

    border-radius: 8px;

    overflow: hidden;

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.25);
}


/* Hlavička */

.cookie-policy-modal-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 15px 20px;

    border-bottom: 1px solid #dddddd;

    font-size: 18px;
}


/* Zavírací tlačítko */

.cookie-policy-modal-close {
    padding: 0;

    border: 0;

    background: transparent;

    font-size: 30px;
    line-height: 1;

    cursor: pointer;
}


/* Obsah */

.cookie-policy-modal-content {
    flex: 1;

    min-height: 0;
}


/* Iframe */

.cookie-policy-modal-content iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;
}


/* ==========================================================
   Mobile
   ========================================================== */

@media (max-width: 768px) {

    .cookie-policy-modal-window {
        width: calc(100% - 20px);

        height: 90vh;
    }

    .cookie-policy-modal-header {
        padding: 12px 15px;

        font-size: 16px;
    }
}