:root{
    --font-family: 'Public Sans', sans-serif;
    --text-color: #27342C;
    --url-color: inherit;
    --url-decoration: underline;
    --headline-weight: 400;

    --background-color: white;
    --on-background-color: #27342C;
    
    --primary-color: #E5D6C8;
    --on-primary-color: #27342C;

    --accent-color: #27342C;
    --on-accent-color: #D1B89E;

    --argonium-logo-color: #221D23;

    --border-color: inherit
    --border-radius: 0px;

    --shadow: 0px 8px 25px 0px rgba(0, 0, 0, 0.1);
    --margin: 1rem;
}

/* CTA Button styles */
.modal-cookies-allow-all {
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-family: var(--font-family);
    padding: 10px 24px;
    background: linear-gradient(to left, #27342C 50%, transparent 50%) right;
    border: 2px solid #27342C;
    background-size: 200%;
    color: white;
    transition: .3s ease-out;
}
.modal-cookies-allow-all:hover{
    background-position: left;
    color: #27342C;
}

/* Primary Button styles */
.modal-cookies-allow-chosen {
    height: 44px;
    font-size: 16px;
    border: 2px solid #27342C;
    background: linear-gradient(to left, transparent 50%, #27342C 50%) right;
    background-size: calc(200% + 2px);
    color: #27342C;
    transition: .3s ease-out;
}
.modal-cookies-allow-chosen:hover{
    background-position: left;
    border-color: #27342C;
    color: white;
}

.modal-cookies {
    width: 90%;
    max-width: 650px;
    position: fixed;
    z-index: 100;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.4;
    background: var(--background-color);
    border-top-left-radius: var(--border-radius);
    box-shadow: 0px 0px 0px calc(100vh + 100vw) rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
}
.modal-cookies a {
    color: var(--url-color);
    text-decoration: var(--url-decoration);
}
.modal-cookies-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.modal-cookies-nav-item {
    padding: 8px 4px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    font-weight: var(--headline-weight);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}
.modal-cookies-nav-item.active {
    color: var(--on-primary-color);
    background: var(--primary-color);
}
.modal-cookies-content-container {
    padding: 2rem;
    max-height: 500px;
    overflow-y: auto;
}
.modal-cookies-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: .25rem;
}
.modal-cookies-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
}
.modal-cookies-option {
    padding: 0 .5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-size: 16px;
    font-weight: var(--headline-weight);
    height: 82px;
}
.modal-cookies-option-empty {
    color: var(--text-color);
    opacity: .5;
}
.modal-cookies-option:not(:last-child) {
    border-right: 1px solid var(--border-color);
}
.modal-cookies-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.modal-cookies-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.modal-cookies-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--primary-color);
    transition: 0.4s;
    border-radius: 100px;
}
.modal-cookies-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: var(--background-color);
    transition: 0.4s;
    border-radius: 50%;
}
input:checked + .modal-cookies-slider {
    background-color: var(--accent-color);
}
input:checked:disabled + .modal-cookies-slider {
    opacity: .5;
}
input:focus + .modal-cookies-slider {
    box-shadow: 0 0 1px var(--accent-color);
}
input:checked + .modal-cookies-slider:before {
    transform: translateX(20px);
}
.modal-cookies-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 16px;
}
.modal-cookies-buttons {
    display: flex;
    width: 100%;
    gap: 8px;
    justify-content: center;
    padding: 16px;
}
.modal-cookies-buttons button {
    min-width: 195px;
}
.cookies-widget {
    position: absolute;
    z-index: 100;
    right: 0;
    bottom: 0;
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.4;
    background: var(--background-color);
    border-top-left-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s;
    width: fit-content;
    margin: var(--margin);
}
.cookies-widget-title {
    /* padding: 12px 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1; */
    cursor: pointer;
}
.cookies-widget-status {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 12px;
}
.cookies-widget-content-title {
    font-weight: 600;
    margin-bottom: 8px;
}
.cookies-widget-list-item {
    display: flex;
    gap: 2px;
    align-items: center;
}
.cookies-widget-list-icon {
    opacity: .5;
}
.cookies-widget-list-icon.true {
    opacity: 1;
    color: var(--accent-color);
}
.cookies-widget-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 12px;
    margin-top: 12px;
}
.cookies-widget-details-title {
    font-weight: 700;
}
.cookies-widget-buttons {
    padding: 12px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.cookies-widget-cancel {
    padding: 10px 20px;
    color: black;
    font-weight: 700;
    border: none;
    background: transparent;
    font-size: 16px;
}
.cookies-widget-change {
    padding: 10px 20px;
    background: var(--primary-color);
    font-weight: 700;
    border: none;
    font-size: 16px;
    color: var(--on-primary-color);
}
.modal-cookies-argonium svg{
    height: 18px;
    width: auto;
    margin-top: 8px;
    color: var(--argonium-logo-color);
}

@media screen and (max-width: 600px) {
    .modal-cookies {
        width: calc(100% - 20px);
    }
    .modal-cookies-options {
        grid-template-columns: 1fr;
    }
    .modal-cookies-option {
        flex-direction: row;
        justify-content: space-between;
        padding: 16px;
    }
    .modal-cookies-option {
        height: auto;
    }
    .modal-cookies-option:not(:last-child) {
        border: none;
    }
    .modal-cookies-content-container {
        max-height: 160px;
        overflow-y: auto;
    }
    .modal-cookies-buttons{
        flex-direction: column-reverse;
        width: 100%;
    }
    .modal-cookies-bottom {
        flex-direction: column-reverse;
        padding: 0 0 16px 0;
    }
    .modal-cookies-argonium {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}