.cookie-banner {
    position: fixed;
    left: 0;
    top: 0;
    min-width: 360px;
    width: 100vw;
    height: 100vh;
    z-index: 500;
    background: rgba(0, 0, 0, 0.5);
    padding: 100px 16px 129px 16px;
    overflow-y: auto;
}

.cookie-dialog {
    position: relative;
    margin: auto;
    padding: 24px 0;
    max-width: 600px;
    background: rgba(255, 255, 255, 1);
    border-radius: 8px;
    transition: height ease-in-out 2s;
}

.primary-button {
    background: #e60000;
    color: #ffffff;
    height: 44px;
    min-width: 152px;
    padding: 9px 32px;
    border-radius: 6px;
    text-align: center;
    font-size: 18px;
    line-height: 26px;
    font-weight: 400;
    cursor: pointer;
    user-select: none;
    font-family: "VodafoneRegular";
}

/* COOKIE SUMMARY  */

.cookie-summary {
    padding: 0 24px;
}

.cookie-summary__title {
    font-size: 18px;
    line-height: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #262626;
}

.cookie-summary__message {
    font-size: 14px;
    line-height: 18px;
    margin-bottom: 32px;
    color: #7e7e7e;
    font-weight: 400;
}

.cookie-summary__message a {
    color: #262626;
    text-decoration: underline;
    font-weight: 700;
}

.cookie-summary__actions {
    display: flex;
}

.cookie-summary__actions .button:not(:nth-last-of-type(3)) {
    margin-right: 8px;
}

.cookie-summary__actions .button:nth-last-of-type(2) {
    margin-left: auto;
}

@media screen and (max-width: 767px) {
    .cookie-summary__title {
        font-size: 18px;
        line-height: 26px;
    }

    .cookie-summary__actions {
        flex-direction: column;
    }

    .cookie-summary__actions .button {
        margin: 0;
        font-size: 18px;
        width: 100%;
    }

    .cookie-summary__actions .button:not(:last-of-type) {
        margin-bottom: 8px;
    }

    .cookie-summary__actions .button:first-of-type {
        margin-bottom: 32px;
    }
}

/* COOKIE MANAGEMENT */

.cookie-management__header {
    height: 48px;
    padding: 0 24px;
    margin-bottom: 32px;
    border-bottom: 0.5px solid #f2f2f2;
}

.cookie-management__header>img {
    width: 32px;
    height: 32px;
}

.cookie-management__scrollable-area {
    padding: 0 18px;
    margin: 0 6px;
    min-height: 200px;
    max-height: calc(calc(100vh - 232px) - 236px);
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #d1d1d1 lightgray;
}

.cookie-management__scrollable-area::-webkit-scrollbar {
    width: 6px;
}

.cookie-management__scrollable-area::-webkit-scrollbar-track {
    border-radius: 2px;
}

.cookie-management__scrollable-area::-webkit-scrollbar-thumb {
    background: #d1d1d1;
    border-radius: 2px;
}

.cookie-management__title {
    font-size: 18px;
    line-height: 26px;
    font-weight: 700;
    font-family: "VodafoneRegular";
    margin-bottom: 8px;
    color: #262626;
}

.cookie-management__message {
    padding-bottom: 32px;
    border-bottom: 0.5px solid #f2f2f2;
    margin-bottom: 32px;
    font-size: 14px;
    line-height: 18px;
    color: #7e7e7e;
}

.cookie-management__message a {
    text-decoration: underline;
    font-weight: 700;
    font-family: "VodafoneRegular";
}

.cookie-management__list {
    margin-top: 32px;
}

.cookie-management__actions {
    display: flex;
    border-top: 0.5px solid #f2f2f2;
    margin-top: 32px;
    padding: 0 24px;
    padding-top: 16px;
}

.cookie-management__actions .button:first-of-type {
    margin-left: auto;
}

.cookie-management__actions .button:not(:last-of-type) {
    margin-right: 8px;
}

@media screen and (max-width: 767px) {
    .cookie-management__header {
        margin-bottom: 8px;
    }

    .cookie-management__title {
        font-size: 18px;
        line-height: 26px;
    }

    .cookie-management__actions {
        flex-direction: column;
    }

    .cookie-management__actions .button {
        margin: 0;
        width: 100%;
    }

    .cookie-management__actions .button:not(:last-of-type) {
        margin-bottom: 8px;
    }
}

/* COOKIE CATEGORY  */

.cookie-category:not(:first-of-type) {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f2f2f2;
}

.cookie-category__header {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.cookie-category__header-icon {
    margin-right: 8px;
    width: 24px;
    height: 24px;
}

.cookie-category__header-icon svg {
    width: inherit;
    height: inherit;
}

.cookie-category__header-name {
    font-size: 14px;
    line-height: 18px;
    font-weight: 700;
    font-family: "VodafoneRegular";
    color: #262626;
    background-color: white;
}

.cookie-category__header-toggle {
    margin-left: auto;
}

.cookie-category__header-toggle .toggle {
    transition: background-color 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    border-radius: 13px;
    background-color: #7E7E7E;
    cursor: pointer;
    width: 40px;
    height: 24px;
    display: inline-flex;
    padding: 0;
    z-index: 0;
    overflow: hidden;
    position: relative;
}

.cookie-category__header-toggle .toggle.active {
    background-color: #00697C;
}

.cookie-category__header-toggle .toggle input {
    visibility: hidden;
}

.cookie-category__header-toggle .toggle .thumb {
    width: 20px;
    height: 20px;
    box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #7E7E7E;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
}

.cookie-category__header-toggle .toggle.active .thumb{
    right: 2px;
    transform: translateX(16px);
}

.cookie-category__header-toggle .always-active {
    color: #008a00;
    font-size: 14px;
    line-height: 18px;
    font-weight: 700;
    font-family: "VodafoneRegular";
}

.cookie-category__body-description {
    margin-top: 24px;
    margin-bottom: 24px;
    color: #7e7e7e;
    font-size: 14px;
    line-height: 18px;
}

.cookie-category__body table {
    table-layout: fixed;
    width: 100%;
    border: #bebebe 1px solid;
    border-collapse: collapse;
}

.cookie-category__body table tr {
    border: #bebebe 1px solid;
}

.cookie-category__body table th {
    padding: 8px;
    background-color: #bebebe;
    color: #fff;
    font-weight: 700;
    font-family: "VodafoneRegular";
    font-size: 14px;
    line-height: 18px;
    text-align: left;
}

.cookie-category__body table th:first-of-type {
    width: 205px;
    padding-right: 16px;
}

.cookie-category__body table th:last-of-type {
    padding-left: 0;
}

.cookie-category__body table td {
    padding: 4px 8px;
    color: #7e7e7e;
    vertical-align: middle;
}

.cookie-category__body table td:first-child {
    width: 205px;
    padding-right: 16px;
    word-break: break-word;
    font-weight: 700;
    font-family: "VodafoneRegular";
    font-size: 14px;
    line-height: 18px;
}

.cookie-category__body table td:last-child {
    padding-left: 0;
    font-weight: 400;
    font-family: "VodafoneLight", sans-serif;
    font-size: 14px;
    line-height: 18px;
}

.cookie-category__body table td:last-child b {
    font-weight: 400;
}

@media screen and (max-width: 767px) {
    .cookie-category__body table th:first-of-type {
        width: 124px;
    }
}

/* ANIMATIONS */

.in {
    animation: enterAnimation 200ms ease-in;
}
.out {
    animation: leaveAnimation 175ms ease-out;
}

@keyframes enterAnimation {
    0% {
        display: block;
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes leaveAnimation {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        display: none;
    }
}

.expanded {
    animation: expandAnimation 200ms ease-in;
    overflow: hidden;
}
.not-expanded {
    animation: retractAnimation 175ms ease-out;
    overflow: hidden;
}

@keyframes expandAnimation {
    0% {
        display: block;
        opacity: 0;
        height: 0px;
    }
    100% {
        opacity: 1;
        height: 200px;
    }
}

@keyframes retractAnimation {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        height: 0;
        display: none;
    }
}