.cookie {
    position: fixed;
    width: 500rem;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: var(--radius);
}   

.cookie-inner {
    width: 100%;
    padding: var(--primary-padding);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cookie-title {
    margin-top: 30rem;
}

.cookie-img {
    width: 60rem;
}

.cookie-statement {
    align-self: flex-start;
    margin-top: 20rem;
}

.cookie-manage-wrapper {
    width: 100%;
    border: 0.5rem solid var(--separator-color);
    border-radius: 15rem;
    display: flex;
    flex-direction: column;
    padding: 0 20rem;
    gap: 20rem;
    margin-top: 20rem;
    max-height: 0;
    pointer-events: none;
    overflow: hidden;
}

.cookie-manage-wrapper.active {
    max-height: 1000px;
    border: 1rem solid var(--separator-color);
    pointer-events: all;
    overflow: visible;

}

.cookie-manage-switch-wrapper {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20rem;
    margin-bottom: 20rem;
}

.cookie-manage-title {
    margin-top: 20rem;
}

.cookie-manage-item {
    display: flex;
    align-items: center;
    gap: 10rem;
}

.cookie-btn-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20rem;
    margin-top: 20rem;
}

.cookie-btn-group {
    display: flex;
    align-items: center;
    gap: 10rem;
}

.cookie-btn {
    display: flex;
    align-items: center;
    gap: 5rem;
    padding: 16rem 18rem;
    border-radius: 999rem;
}

.cookie-custom-btn {
    padding: 0;
} 

.cookie-manage-item-necessary {
    position: relative;
    cursor: not-allowed;
}

.cookie-manage-item-necessary:hover .switch-necessary-notice {
    opacity: 1;
}

.cookie-manage-wrapper.active ~ .cookie-btn-wrapper .cookie-custom-btn {
    color: var(--primary-color);
    fill: var(--primary-color);
}
