.cookies-customize {
    position: fixed;
    inset: 0;
    z-index: 150;
}
.cookies-customize {
    display: none;
    align-items: center;
    justify-content: center;
}
.cookies-customize {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    padding: 1.5em;
}
.cookies-customize * {
    box-sizing: border-box;
}
.cookies-customize .inner {
    width: 100%;
    max-width: 760px;
    max-height: 90vh;
    overflow-y: auto;
}
.cookies-customize .inner {
    background: linear-gradient(220deg, rgb(255 255 255) 0%, #f3f3f3 100%);
    border-radius: 24px;
    border: 1px solid #ddd;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
    padding: 1.8em;
}
.cookies-customize .inner {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

/**** Scrollbar ****/

/* Scrollbar moderne style iOS */
.cookies-customize .inner {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(0, 0, 0, 0.22) transparent;
    -webkit-overflow-scrolling: touch;
}
/* Chrome / Safari / Edge */
.cookies-customize .inner::-webkit-scrollbar {
    width: 6px;
}
.cookies-customize .inner::-webkit-scrollbar-track {
    background: transparent;
    margin: 6px 0;
}
.cookies-customize .inner::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 999px;
    border: 1px solid transparent;
    background-clip: padding-box;
    transition: background 0.2s ease;
}
.cookies-customize .inner::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.28);
}
.cookies-customize .inner::-webkit-scrollbar-thumb:active {
    background: rgba(0, 0, 0, 0.38);
}

/**** Header ****/
.cookies-customize header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1em;
}
.cookies-customize header .title {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cookies-customize header .title {
    min-width: 0;
}
.cookies-customize header .title img {
    width: auto;
    height: 2.1em;
}
.cookies-customize header .title img {
    flex-shrink: 0;
}
.cookies-customize header .title h4 {
    margin: 0 0 4px 0;
}
.cookies-customize header .title h4 {
    font-family: 'bold-font';
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    color: #111;
}
.cookies-customize header .title p {
    margin: 0;
}
.cookies-customize header .title p {
    font-family: 'content-font';
    font-size: 13px;
    line-height: 1.5;
    color: #666;
}
.cookies-customize header .title p a {
    color: var(--color__2)
}
.cookies-customize header .title p a:hover {
    text-decoration: underline !important;
}
.cookies-customize header .close {
    flex-shrink: 0;
}
.cookies-customize header .close {
    width: 42px;
    height: 42px;
    min-width: 42px;
}
.cookies-customize header .close {
    background-color: #fff;
    border-radius: 50%;
    border: 1px solid #ccc;
}
.cookies-customize header .close {
    display: flex;
    align-items: center;
    justify-content: center;
}
.cookies-customize header .close {
    text-decoration: none;
    font-family: 'content-font';
    font-size: 18px;
    line-height: 1;
    color: #111;
}
.cookies-customize header .close:hover {
    background-color: #111;
    border-color: #111;
}
.cookies-customize header .close:hover {
    color: #fff;
}
.cookies-customize header .close:hover {
    transition: all .3s ease-in-out;
}

/**** Content ****/
.cookies-customize .content {
    display: flex;
    flex-direction: column;
    gap: 1em;
}
.cookies-customize .cookie-type {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5em;
}
.cookies-customize .cookie-type {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #ddd;
    border-radius: 18px;
    padding: 1.1em 1.2em;
}
.cookies-customize .cookie-type {
    overflow: hidden;
}
.cookies-customize .cookie-type.required {
    background: rgba(255, 255, 255, 0.92);
    border-color: #ead6d6;
}
.cookies-customize .cookie-type .infos {
    flex: 1 1 auto;
    min-width: 0;
}
.cookies-customize .cookie-type .infos h5 {
    margin: 0 0 8px 0;
}
.cookies-customize .cookie-type .infos h5 {
    font-family: 'bold-font';
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    color: #111;
}
.cookies-customize .cookie-type .infos p {
    margin: 0;
}
.cookies-customize .cookie-type .infos p {
    font-family: 'content-font';
    font-size: 13px;
    line-height: 1.6;
    color: #555;
}

/**** Action area ****/
.cookies-customize .cookie-type .action {
    flex-shrink: 0;
}
.cookies-customize .cookie-type .action {
    width: 70px;
    min-width: 70px;
}
.cookies-customize .cookie-type .action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.cookies-customize .cookie-type .status.on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cookies-customize .cookie-type .status.on {
    min-width: 130px;
    white-space: nowrap;
}
.cookies-customize .cookie-type .status.on {
    background-color: #f3f3f3;
    border-radius: 50px;
    border: 1px solid #cfcfcf;
    padding: 10px 14px;
}
.cookies-customize .cookie-type .status.on {
    font-family: 'content-font';
    font-size: 13px;
    line-height: 1.2;
    color: #444;
}

/*** Switch ***/
.cookies-customize .switch {
    position: relative;
}
.cookies-customize .switch {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}
.cookies-customize .switch {
    width: 58px;
    height: 32px;
    min-width: 58px;
    max-width: 58px;
    min-height: 32px;
    max-height: 32px;
}
.cookies-customize .switch input {
    position: absolute;
    pointer-events: none;
    opacity: 0;
}
.cookies-customize .switch input {
    width: 1px;
    height: 1px;
}
.cookies-customize .switch input {
    margin: 0;
    padding: 0;
}
.cookies-customize .switch .slider {
    position: absolute;
    top: 0;
    left: 0;
}
.cookies-customize .switch .slider {
    display: block;
    cursor: pointer;
}
.cookies-customize .switch .slider {
    width: 58px;
    height: 32px;
}
.cookies-customize .switch .slider {
    background-color: #cfcfcf;
    border-radius: 50px;
    transition: background-color .3s ease-in-out;
}
.cookies-customize .switch .slider::before {
    content: "";
}
.cookies-customize .switch .slider::before {
    position: absolute;
    top: 4px;
    left: 4px;
}
.cookies-customize .switch .slider::before {
    width: 24px;
    height: 24px;
}
.cookies-customize .switch .slider::before {
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform .3s ease-in-out;
}
.cookies-customize .switch input:checked + .slider {
    background-color: var(--color__2);
}
.cookies-customize .switch input:checked + .slider::before {
    transform: translateX(26px);
}
.cookies-customize .switch input:focus + .slider {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

/**** Footer buttons ****/
.cookies-customize .buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}
.cookies-customize .buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cookies-customize .buttons a {
    border-radius: 50px;
    padding: 10px 20px;
    white-space: nowrap;
}
.cookies-customize .buttons a {
    font-family: 'content-font';
    font-size: 14px;
    text-decoration: none;
    line-height: 1.2;
    transition: all .3s ease-in-out;
}
.cookies-customize .buttons a {
    transition: all .3s ease-in-out;
}
.cookies-customize .buttons .decline {
    background: transparent;
    border: 1px solid var(--color__2);
    color: var(--color__2);
}
.cookies-customize .buttons .decline:hover {
    background: var(--color__2);
    color: #fff;
}
.cookies-customize .buttons .save {
    background: transparent;
    border: 1px solid #777;
    color: #555;
}
.cookies-customize .buttons .save:hover {
    background: #777;
    color: #fff;
}
.cookies-customize .buttons .accept {
    background: var(--color__2);
    border: 1px solid var(--color__2);
}
.cookies-customize .buttons .accept {
    padding-left: 26px;
    padding-right: 26px;
}
.cookies-customize .buttons .accept {
    color: #fff;
}
.cookies-customize .buttons .accept:hover {
    background: #111;
    border-color: #111;
}

/*** Tablet ***/
@media screen and (max-width: 1024px) {
    .cookies-customize {
        padding: 1em;
        justify-content: center;
    }

    .cookies-customize .inner {
        max-width: 100%;
        max-height: 80vh;
        border-radius: 20px;
        padding: 1.2em;
        gap: 1.2em;
    }

    .cookies-customize header {
        gap: 0.8em;
    }

    .cookies-customize header .title h4 {
        font-size: 18px;
    }

    .cookies-customize .cookie-type {
        display: grid;
        grid-template-columns: auto auto;
        gap: 1em;
    }

    .cookies-customize .cookie-type .action {
        width: 100%;
        min-width: 100%;
        justify-content: flex-end;
    }

    .cookies-customize .cookie-type .status.on {
        min-width: auto;
    }

    .cookies-customize .buttons {
        justify-content: stretch;
    }

    .cookies-customize .buttons a {
        width: 100%;
        text-align: center;
    }
}

/*** Mobile ***/
@media screen and (max-width: 480px) {
    .cookies-customize {
        padding: 0.7em;
    }

    .cookies-customize .inner {
        padding: 1em;
        border-radius: 18px;
    }

    .cookies-customize header .title {
        align-items: flex-start;
    }

    .cookies-customize header .title img {
        height: 1.8em;
    }

    .cookies-customize header .title h4 {
        font-size: 17px;
    }

    .cookies-customize header .title p,
    .cookies-customize .cookie-type .infos p {
        font-size: 12px;
    }

    .cookies-customize .cookie-type .infos h5 {
        font-size: 15px;
    }

    .cookies-customize .buttons a {
        font-size: 13px;
        padding: 11px 18px;
    }
}