/* Disclaimer Popup Overlay */
.cdp-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00000080; /* Semi-transparent black */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* Ensure it's on top */
}

/* Popup Content */
.cdp-popup-content {
    background-color: #ffffff; /* Popup background color */
    padding: 30px;
    border-radius: 10px; /* Overridden by inline styles for customization */
    text-align: center;
    max-width: 900px;
    min-height: 400px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    color: #333333; /* Text color */
}

/* Popup Heading */
.cdp-popup-content h2 {
    margin-bottom: 15px;
    font-size: 30px;
    /* Text color is set in .cdp-popup-content */
}

/* Popup Description */
.cdp-popup-content p {
    /* Text color is set in .cdp-popup-content */
    margin-bottom: 20px;
}

/* Popup Logos Grid */
.cdp-popup-logos-grid {
    display: grid;
    align-items: center;
    justify-content: center;
    justify-items: center;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
}

.cdp-popup-logos-grid a {
    display: block;
    overflow: hidden;
}

.cdp-popup-logos-grid img {
    width: 150px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.cdp-popup-logos-grid img:hover {
    transform: scale(1.05);
}

/* Popup Buttons Container */
.cdp-popup-buttons {
    display: flex;
    gap: 15px;
    width: 100%;
    justify-content: center;
    margin-top: 20px;
}

/* Confirmation Buttons */
.cdp-popup-button {
    font-weight: 600;
    padding: 10px 30px;
    background-color: #e65437; /* Button background color */
    color: #ffffff; /* Button text color */
    border: none;
    border-radius: 5px; /* Overridden by inline styles for customization */
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    width: 45%; /* Adjusted width to accommodate two buttons */
}

.cdp-popup-button:hover {
    opacity: 0.9;
}

/* Specific Styling for "I Disagree" Button */
.cdp-popup-decline-button {
    background-color: #6d727e; /* Gray color */
}

/* Responsive Design */
@media (max-width: 600px) {
    .cdp-popup-content {
        padding: 20px;
    }

    .cdp-popup-button {
        padding: 10px 16px;
        width: 100%; /* Make buttons full width on small screens */
    }

    .cdp-popup-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .cdp-popup-logos-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
}
