:root {
    --color-secondary: #F2A900;
    --color-light-grey: #D9E1E2;
    --color-dark: #702082;
}

/* Banner Container */
.ukds-cookies {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 37.5rem;
    padding: 2.5rem 0;
    background-color: var(--color-light-grey);
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
    z-index: 1300;
    border-radius: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.6s ease, opacity 0.6s ease;
    pointer-events: none;
    /* Prevent clicks when hidden */
}

/* When visible */
.ukds-cookies.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.ukds-cookies__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0px 8px;
    font-weight: 700;
}

.ukds-cookies__close:hover {
    opacity: 0.7;
}

.ukds-cookies__wrap {
    padding: 0 1.25rem;
    margin: auto;
    max-width: calc(100% - 2.5rem);
}

.ukds-cookies__heading {
    margin: 1.25rem 0;
    font-size: 1.17rem;
    font-weight: 700;
    line-height: 1.625rem;
}

.ukds-cookies__p {
    margin: 1.25rem 0;
    line-height: 1.625rem;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0px;
}

.ukds-cookies__p a {
    color: var(--color-dark);
    text-decoration: underline;
}

.ukds-divider {
    border-color: black;
    margin: 1.25rem 0;
    color: black
}

/* Floating Toggle Button */
.ukds-cookies__toggle {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
    z-index: 1400;
    background-color: var(--color-secondary);
    border: none;
    cursor: pointer;
}

.ukds-cookies__toggle svg {
    width: 25px;
    height: 25px;
    fill: #201d5a;
}

/* Responsive */
@media (max-width: 768px) {
    .ukds-cookies {
        width: 100%;
        padding: 2rem;
        box-shadow: none;
    }

    .ukds-cookies__wrap {
        padding: 0;
    }

    .ukds-cookies__heading {
        font-size: 1.5rem;
    }

    .ukds-cookies__p {
        font-size: 1.3rem;
    }
}