/* =========================================================
   CUSTOM ENERGY - COOKIE CONSENT
   ========================================================= */


/* RESET / WRAPPER */

#redim-cookiehint-bottom,
#redim-cookiehint-top {
    box-sizing: border-box;
    width: 100%;
    z-index: 999999;
}

#redim-cookiehint-bottom *,
#redim-cookiehint-top * {
    box-sizing: border-box;
}

#redim-cookiehint-bottom {
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(20, 30, 40, 0.08);

    box-shadow:
        0 -10px 35px rgba(20, 30, 40, 0.10);

    text-align: left;
}

#redim-cookiehint-top {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(20, 30, 40, 0.08);

    box-shadow:
        0 10px 35px rgba(20, 30, 40, 0.10);

    text-align: left;
}


/* MAIN CONTAINER */

#redim-cookiehint {
    width: 100%;
    max-width: 1180px;

    margin: 0 auto;

    padding: 24px 30px;

    background: transparent;

    color: #303030;

    font-size: 15px;
    line-height: 1.55;

    font-family: inherit;
}


/* HIDDEN STATE USED BY PLUGIN */

#redim-cookiehint.hidden {
    display: none !important;
    visibility: hidden !important;
}


/* =========================================================
   INTRO VIEW
   ========================================================= */

.ce-cookie-intro {
    display: grid;

    grid-template-columns:
        minmax(220px, 0.75fr)
        minmax(300px, 1.6fr)
        minmax(300px, 1fr);

    gap: 28px;

    align-items: center;
}


/* =========================================================
   HEADER / BRAND
   ========================================================= */

.ce-cookie-header {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.ce-cookie-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}


/* LOGO */

#redim-cookiehint .ce-cookie-logo {
    display: block !important;

    width: 48px !important;
    height: 48px !important;

    min-width: 48px;
    min-height: 48px;

    max-width: 48px !important;
    max-height: 48px !important;

    object-fit: contain;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;

    flex: 0 0 48px;
}


/* TITLE */

.ce-cookie-title {
    color: #262626;

    font-size: 22px;
    line-height: 1.2;

    font-weight: 700;
}

.ce-cookie-subtitle {
    margin-top: 5px;

    color: #6b6b6b;

    font-size: 14px;
    line-height: 1.45;
}


/* =========================================================
   CONTENT
   ========================================================= */

.ce-cookie-content {
    color: #555555;
}

.ce-cookie-content p {
    margin: 0 0 7px;
}

.ce-cookie-content p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.ce-cookie-actions {
    display: flex;

    justify-content: flex-end;
    align-items: center;

    gap: 10px;
}

.ce-cookie-btn {
    display: inline-flex !important;

    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 11px 22px !important;

    border-radius: 999px !important;

    font-family: inherit;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;

    text-align: center;
    text-decoration: none !important;

    cursor: pointer;

    background-image: none !important;

    box-shadow: none;

    transition:
        background-color .22s ease,
        color .22s ease,
        border-color .22s ease,
        transform .18s ease,
        box-shadow .22s ease;
}


/* ACCEPT ALL */

.ce-cookie-btn-primary {
    border: 1px solid #F8421A !important;

    background: #F8421A !important;
    background-color: #F8421A !important;

    color: #ffffff !important;
}

.ce-cookie-btn-primary:hover,
.ce-cookie-btn-primary:focus {
    border-color: #00E66E !important;

    background: #00E66E !important;
    background-color: #00E66E !important;

    color: #ffffff !important;

    transform: translateY(-1px);

    box-shadow:
        0 7px 18px rgba(0, 230, 110, 0.18);
}


/* PREFERENCES / SECONDARY */

.ce-cookie-btn-secondary {
    border: 1px solid #D5D9D6 !important;

    background: #ffffff !important;
    background-color: #ffffff !important;

    color: #303030 !important;
}

.ce-cookie-btn-secondary:hover,
.ce-cookie-btn-secondary:focus {
    border-color: #00E66E !important;

    background: #F5FFF9 !important;
    background-color: #F5FFF9 !important;

    color: #252525 !important;

    transform: translateY(-1px);
}


/* BUTTON ELEMENT RESET */

button.ce-cookie-btn {
    appearance: none;
    -webkit-appearance: none;
}


/* =========================================================
   POLICY LINKS
   ========================================================= */

.ce-cookie-links {
    grid-column: 1 / -1;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: -10px;

    font-size: 12px;
    line-height: 1.4;
}

.ce-cookie-links a {
    color: #60676B !important;

    text-decoration: underline;
    text-underline-offset: 2px;
}

.ce-cookie-links a:hover {
    color: #00A950 !important;
}


/* =========================================================
   PREFERENCES VIEW
   ========================================================= */

.ce-cookie-preferences {
    max-width: 920px;

    margin: 0 auto;
}

.ce-cookie-preferences > .ce-cookie-header {
    position: relative;

    display: flex;
    align-items: center;

    padding-bottom: 18px;

    border-bottom: 1px solid #E6E8E6;

    margin-bottom: 14px;
}


/* BACK BUTTON */

.ce-cookie-back {
    flex: 0 0 auto;

    width: 42px;
    height: 42px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border: 1px solid #DFE2DF !important;
    border-radius: 50% !important;

    background: #ffffff !important;

    color: #303030 !important;

    font-size: 22px;
    line-height: 1;

    cursor: pointer;

    transition:
        border-color .2s ease,
        background-color .2s ease,
        transform .2s ease;
}

.ce-cookie-back:hover {
    border-color: #00E66E !important;

    background: #F5FFF9 !important;

    transform: translateX(-2px);
}


/* =========================================================
   COOKIE CATEGORIES
   ========================================================= */

.ce-cookie-category {
    padding: 17px 18px;

    margin-bottom: 10px;

    border: 1px solid #E7E9E7;
    border-radius: 14px;

    background: #FAFBFA;
}

.ce-cookie-category-head {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.ce-cookie-category-head > div {
    display: flex;

    align-items: center;
    gap: 10px;

    min-width: 0;
}

.ce-cookie-category strong {
    color: #292929;

    font-size: 16px;
    font-weight: 700;
}

.ce-cookie-required {
    display: inline-flex;

    align-items: center;

    padding: 4px 9px;

    border-radius: 999px;

    background: #EBF9EF;

    color: #16883F;

    font-size: 11px;
    line-height: 1;
    font-weight: 700;
}

.ce-cookie-category-text {
    max-width: 760px;

    margin-top: 9px;

    color: #666666;

    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   TOGGLE SWITCH
   ========================================================= */

.ce-cookie-switch {
    position: relative;

    display: inline-block;

    flex: 0 0 auto;

    width: 46px;
    height: 26px;
}

.ce-cookie-switch input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
}

.ce-cookie-slider {
    position: absolute;

    inset: 0;

    border-radius: 999px;

    background: #C8CDCA;

    cursor: pointer;

    transition: background-color .2s ease;
}

.ce-cookie-slider::before {
    content: "";

    position: absolute;

    width: 20px;
    height: 20px;

    left: 3px;
    top: 3px;

    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        0 1px 4px rgba(0, 0, 0, .20);

    transition: transform .2s ease;
}

.ce-cookie-switch input:checked + .ce-cookie-slider {
    background: #00E66E;
}

.ce-cookie-switch input:checked + .ce-cookie-slider::before {
    transform: translateX(20px);
}


/* NECESSARY SWITCH */

.ce-cookie-switch-disabled .ce-cookie-slider {
    background: #00E66E;

    cursor: default;
}

.ce-cookie-switch-disabled {
    opacity: .78;
}


/* =========================================================
   PREFERENCES ACTIONS
   ========================================================= */

.ce-cookie-preferences .ce-cookie-actions {
    justify-content: flex-end;

    margin-top: 20px;
}

.ce-cookie-preferences .ce-cookie-links {
    margin-top: 16px;
}


/* =========================================================
   CLEARFIX / LEGACY
   ========================================================= */

#redim-cookiehint .clr {
    clear: both;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {

    #redim-cookiehint {
        padding: 22px 24px;
    }

    .ce-cookie-intro {
        grid-template-columns: 1fr 1.5fr;
        gap: 20px;
    }

    .ce-cookie-actions {
        grid-column: 1 / -1;

        justify-content: flex-start;
    }

    .ce-cookie-links {
        justify-content: flex-start;

        margin-top: -4px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

    #redim-cookiehint {
        max-height: 85vh;

        overflow-y: auto;

        padding: 18px 18px 20px;
    }

    .ce-cookie-intro {
        display: block;
    }

    .ce-cookie-header {
        margin-bottom: 16px;
    }

    .ce-cookie-brand {
        gap: 12px;
    }

    .ce-cookie-title {
        font-size: 19px;
    }

    .ce-cookie-content {
        margin-bottom: 18px;

        font-size: 14px;
        line-height: 1.5;
    }

    .ce-cookie-actions {
        display: grid;

        grid-template-columns: 1fr;

        gap: 9px;
    }

    .ce-cookie-btn {
        width: 100%;

        min-height: 48px;

        padding: 11px 16px !important;
    }

    .ce-cookie-links {
        display: flex;

        justify-content: center;

        margin-top: 14px;

        text-align: center;
    }


    /* Preferences */

    .ce-cookie-preferences > .ce-cookie-header {
        align-items: flex-start;
    }

    .ce-cookie-preferences .ce-cookie-title {
        font-size: 19px;
    }

    .ce-cookie-category {
        padding: 15px;
    }

    .ce-cookie-category-head {
        gap: 12px;
    }

    .ce-cookie-category-head > div {
        display: block;
    }

    .ce-cookie-required {
        margin-top: 5px;
    }

    .ce-cookie-category-text {
        font-size: 12px;
    }

    .ce-cookie-preferences .ce-cookie-actions {
        display: grid;

        grid-template-columns: 1fr;

        margin-top: 18px;
    }

}


/* =========================================================
   VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 380px) {

    #redim-cookiehint {
        padding-left: 14px;
        padding-right: 14px;
    }

    .ce-cookie-title {
        font-size: 18px;
    }

}