#gdpr {
    position: fixed;
    bottom: 3rem;
    left: 50%;
    z-index: 50;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 900px;
    max-width: 90%;
    padding: 20px 40px !important;
    background-color: #fff;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.01em;
    color: #202124;
    line-height: 1.5em;
    box-shadow: 0 4px 4px 0 rgba(55, 130, 249, 0.15);
}

/* Flex container inside the banner */
#gdpr .flex {
    display: flex;
    align-items: center; /* Align items vertically */
    width: 100%; /* Ensure the content spans the banner */
}

/* Content-left styling */
#gdpr .content-left {
    flex: 1; /* Take up available space */
    text-align: left; /* Align text to the left */
    display: flex;
    margin-left: 1rem;
    align-items: center; /* Vertically align content */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

/* Content-right styling (button) */
#gdpr .content-right {
    flex-shrink: 0; /* Prevent shrinking */
    text-align: right; /* Align text to the right */
    display: flex;
    align-items: center; /* Vertically align content */
    gap: 0.5rem;
}


#gdpr .content-right button, #gdpr .content-right .read-more {
    background-color: #7771f7 !important;
    color: #fff;
    box-shadow: 0 4px 4px 0 rgba(55, 130, 249, 0.15);
    padding: 0.5rem 1rem !important;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.4s ease;
    font-weight: normal;
}

#gdpr .content-right button:hover {
    background-color: #333;
}

#gdpr .content-right .read-more {
    color: #7771f7 !important;
    background-color:transparent !important;
    border: solid 2px #7771f7;
    text-decoration: none;
}

/* Hidden state */
#gdpr.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 640px) {
    /* Change the layout of the inner flex container to column */
    #gdpr .flex {
        flex-direction: column !important;
        align-items: center;  /* center the children horizontally */
        justify-content: center;
    }
    /* Ensure both content areas span full width and are centered */
    #gdpr .content-left,
    #gdpr .content-right {
        width: 100%;
        text-align: left;
    }
    /* Add a little margin on top of the buttons area */
    #gdpr .content-right {
        margin-top: 1rem;
    }
}
