/* =========================================================
   KALITE GAZ COOKIE CONSENT
   ========================================================= */

.kg-cookie-banner,
.kg-cookie-modal {
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

.kg-cookie-banner *,
.kg-cookie-modal * {
    box-sizing: border-box;
}


/* =========================================================
   BANNER
   ========================================================= */

.kg-cookie-banner {
    position: fixed;

    left: 14px;
    right: 14px;
    bottom: 22px;

    z-index: 999990;

    max-width: 1296px;

    margin: 0 auto;

    background: #ffffff;
    color: #222222;

    border: 1px solid #e2e2e2;

    border-radius: 16px;

    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.15);

    opacity: 0;
    visibility: hidden;

    transform: translateY(20px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;
}


.kg-cookie-banner.kg-show {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


.kg-cookie-content {
    position: relative;

    padding: 23px 25px;
}


.kg-cookie-title {
    margin-bottom: 10px;

    font-size: 23px;
    line-height: 1.3;

    font-weight: 700;

    color: #202020;
}


.kg-cookie-text {
    max-width: 930px;

    font-size: 15px;
    line-height: 1.65;

    color: #606060;
}


/* =========================================================
   POLICY LINK
   ========================================================= */

.kg-cookie-policy-link {
    color: #222222;

    font-weight: 600;

    text-decoration: underline;

    text-underline-offset: 2px;
}


.kg-cookie-policy-link:hover {
    color: #000000;

    text-decoration: underline;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.kg-cookie-actions {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 10px;

    margin-top: 18px;

    padding-right: 190px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.kg-cookie-btn {
    appearance: none;
    -webkit-appearance: none;

    min-height: 49px;

    padding: 12px 21px;

    border: 0;

    border-radius: 8px;

    font-family: inherit;

    font-size: 14px;

    line-height: 1;

    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.1s ease;
}


.kg-cookie-btn:active {
    transform: translateY(1px);
}


.kg-cookie-btn:focus-visible {
    outline:
        3px solid rgba(0, 0, 0, 0.16);

    outline-offset: 2px;
}


.kg-cookie-primary {
    background: #1f1f1f;

    color: #ffffff;
}


.kg-cookie-primary:hover {
    background: #000000;
}


.kg-cookie-secondary {
    background: #ffffff;

    color: #292929;

    border: 1px solid #d0d0d0;
}


.kg-cookie-secondary:hover {
    background: #f5f5f5;
}


/* =========================================================
   DIGIBEE
   ========================================================= */

.kg-digibee-brand {
    display: flex;

    align-items: center;

    gap: 7px;
}


.kg-digibee-brand span {
    display: block;

    margin: 0;

    font-size: 10px;

    line-height: 1;

    font-weight: 400;

    color: #9a9a9a;

    white-space: nowrap;
}


.kg-digibee-brand img {
    display: block;

    width: auto;
    height: auto;

    max-width: 120px;
    max-height: 30px;

    object-fit: contain;
}


.kg-digibee-banner {
    position: absolute;

    right: 27px;
    bottom: 28px;

    min-height: 30px;
}


/* =========================================================
   MODAL
   ========================================================= */

.kg-cookie-modal {
    position: fixed;

    inset: 0;

    z-index: 999999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}


.kg-cookie-modal.kg-show {
    opacity: 1;
    visibility: visible;
}


.kg-cookie-overlay {
    position: absolute;

    inset: 0;

    background:
        rgba(0, 0, 0, 0.55);
}


.kg-cookie-dialog {
    position: relative;

    z-index: 1;

    width: 100%;
    max-width: 682px;

    max-height:
        calc(100vh - 40px);

    overflow-y: auto;

    padding:
        30px
        30px
        29px;

    background: #ffffff;

    color: #222222;

    border-radius: 16px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.28);

    transform:
        translateY(14px)
        scale(0.985);

    transition:
        transform 0.2s ease;
}


.kg-cookie-modal.kg-show
.kg-cookie-dialog {
    transform:
        translateY(0)
        scale(1);
}


.kg-cookie-dialog h2 {
    margin:
        0
        50px
        7px
        0;

    padding: 0;

    font-size: 25px;

    line-height: 1.3;

    font-weight: 700;

    color: #202020;
}


.kg-cookie-description {
    margin:
        0
        0
        25px
        0;

    font-size: 15px;

    line-height: 1.6;

    color: #717171;
}


/* =========================================================
   CLOSE
   ========================================================= */

.kg-cookie-close {
    position: absolute;

    top: 19px;
    right: 20px;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: #f3f3f3;

    color: #333333;

    font-size: 27px;

    line-height: 40px;

    text-align: center;

    cursor: pointer;
}


.kg-cookie-close:hover {
    background: #e9e9e9;
}


/* =========================================================
   CATEGORIES
   ========================================================= */

.kg-cookie-category {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 24px;

    padding: 20px 0;

    border-top:
        1px solid #ececec;
}


.kg-cookie-category:last-of-type {
    border-bottom:
        1px solid #ececec;
}


.kg-cookie-category strong {
    display: block;

    margin-bottom: 6px;

    font-size: 16px;

    line-height: 1.4;

    font-weight: 400;

    color: #282828;
}


.kg-cookie-category p {
    margin: 0;

    max-width: 470px;

    font-size: 14px;

    line-height: 1.5;

    color: #777777;
}


/* =========================================================
   SWITCH
   ========================================================= */

.kg-switch {
    position: relative;

    display: inline-block;

    flex: 0 0 auto;

    width: 53px;
    height: 29px;
}


.kg-switch input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
}


.kg-slider {
    position: absolute;

    inset: 0;

    background: #cccccc;

    border-radius: 30px;

    cursor: pointer;

    transition:
        background-color 0.2s ease;
}


.kg-slider::before {
    content: "";

    position: absolute;

    width: 23px;
    height: 23px;

    left: 3px;
    top: 3px;

    background: #ffffff;

    border-radius: 50%;

    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.2s ease;
}


.kg-switch
input:checked
+ .kg-slider {
    background: #737373;
}


.kg-switch
input:checked
+ .kg-slider::before {
    transform:
        translateX(24px);
}


.kg-switch
input:disabled
+ .kg-slider {
    background: #737373;

    cursor: not-allowed;
}


.kg-switch
input:focus-visible
+ .kg-slider {
    box-shadow:
        0 0 0 3px rgba(0, 0, 0, 0.13);
}


/* =========================================================
   MODAL BOTTOM
   ========================================================= */

.kg-cookie-modal-actions {
    display: flex;

    justify-content: flex-end;

    align-items: center;

    min-height: 54px;

    padding-top: 25px;

    padding-left: 175px;
}


.kg-digibee-modal {
    position: absolute;

    left: 30px;
    bottom: 31px;

    min-height: 30px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .kg-cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;

        border-radius: 12px;
    }


    .kg-cookie-content {
        padding: 19px;
    }


    .kg-cookie-title {
        font-size: 19px;
    }


    .kg-cookie-text {
        font-size: 13px;

        line-height: 1.55;
    }


    .kg-cookie-actions {
        display: grid;

        grid-template-columns: 1fr;

        gap: 8px;

        padding-right: 0;
    }


    .kg-cookie-btn {
        width: 100%;

        min-height: 46px;
    }


    .kg-digibee-banner {
        position: static;

        margin-top: 16px;

        justify-content: center;
    }


    .kg-cookie-modal {
        padding: 10px;

        align-items: flex-end;
    }


    .kg-cookie-dialog {
        max-height:
            calc(100vh - 20px);

        padding:
            24px
            19px
            20px;

        border-radius:
            15px
            15px
            8px
            8px;
    }


    .kg-cookie-dialog h2 {
        font-size: 21px;
    }


    .kg-cookie-description {
        font-size: 13px;
    }


    .kg-cookie-category {
        gap: 15px;

        padding: 17px 0;
    }


    .kg-cookie-category strong {
        font-size: 14px;
    }


    .kg-cookie-category p {
        font-size: 12px;
    }


    .kg-cookie-modal-actions {
        display: block;

        padding-left: 0;

        padding-top: 20px;
    }


    .kg-digibee-modal {
        position: static;

        margin-top: 16px;

        justify-content: center;
    }


    .kg-digibee-brand img {
        max-width: 100px;

        max-height: 27px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .kg-cookie-banner,
    .kg-cookie-modal,
    .kg-cookie-dialog,
    .kg-cookie-btn,
    .kg-slider,
    .kg-slider::before {

        transition: none !important;

    }

}