/* Base styles for the cookie consent popup */
#cookieConsentPopup {
    position: fixed;
    background-color: #fff;
    padding: 20px;
    box-shadow: var(--popup-shadow, 0 0 10px rgba(0, 0, 0, 0.3));
    z-index: var(--popup-zindex, 9999); /* Customizable z-index */
    width: 90%;
    max-width: 1200px;
    border-radius: var(--border-top-left-radius, 10px) var(--border-top-right-radius, 10px) var(--border-bottom-right-radius, 10px) var(--border-bottom-left-radius, 10px); /* Customizable individual border radiuses */
    border: var(--popup-border-width, 1px) var(--popup-border-style, solid) var(--popup-border-color, #ddd); /* Customizable border */
    transition: all 0.3s ease-in-out;
}

/* Classic style (centered on the screen) */
#cookieConsentPopup.classic {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Side-in left style (slides in from the left) */
#cookieConsentPopup.side-in-left {
    top: 0;
    left: -100%;
    width: 300px;
    height: 100%;
    transition: left 0.3s ease-in-out;
}
#cookieConsentPopup.side-in-left.active {
    left: 0;
}

/* Side-in right style (slides in from the right) */
#cookieConsentPopup.side-in-right {
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    transition: right 0.3s ease-in-out;
}
#cookieConsentPopup.side-in-right.active {
    right: 0;
}

/* Bottom-up style (scrolls up from the bottom) */
#cookieConsentPopup.bottom-up {
    bottom: -100%;
    left: 0;
    width: 100%;
    transition: bottom 0.3s ease-in-out;
}
#cookieConsentPopup.bottom-up.active {
    bottom: 0;
}

/* Button styles */
#cookieConsentPopup button {
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    margin: 5px;
    transition: background-color 0.2s ease;
}

#cookieConsentPopup .accept {
    background-color: var(--accept-button-color, #00cc00); /* Customizable in Elementor */
}

#cookieConsentPopup .reject {
    background-color: var(--reject-button-color, #cc0000); /* Customizable in Elementor */
}

#dropdownToggle {
    background-color: var(--customize-button-color, #000); /* Customizable in Elementor */
    color: var(--customize-button-text-color, #fff); /* Customizable text color */
    border: none;
}

#dropdownButtons {
    display: none;
}

/* 3 columns for dropdown buttons */
#dropdownButtons .cookie-option {
    flex: 1;
    margin-top: 10px;
    min-width: 30%; /* Ensure 3 buttons per row */
}

#cookieConsentPopup .cookie-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}

@media (max-width: 600px) {
    #cookieConsentPopup {
        width: 100%;
        height: auto;
        border-radius: 0; /* Remove border-radius on smaller screens */
    }

    #cookieConsentPopup .cookie-options {
        flex-direction: column;
    }

    #cookieConsentPopup .cookie-option {
        width: 100%;
        text-align: center;
    }
}
