/* Mini Banner Design */
.wp-custom-gdpr-mini-banner {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 650px;
    background-color: #fcfcfc;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    padding: 15px 20px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    opacity: 0;
}

.wp-custom-gdpr-mini-banner.show {
    animation: wpGdprFadeSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wp-custom-gdpr-mini-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.wp-custom-gdpr-mini-content p {
    margin: 0;
    font-size: 14px;
    color: #333;
    flex: 1 1 200px;
}

.wp-custom-gdpr-mini-actions {
    display: flex;
    gap: 10px;
}

/* Detailed Modal Backdrop & Modal */
.wp-custom-gdpr-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
}

.wp-custom-gdpr-backdrop.show {
    animation: wpGdprFadeIn 0.3s ease forwards;
}

.wp-custom-gdpr-centered-modal {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    background-color: #fcfcfc;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    padding: 25px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
}

.wp-custom-gdpr-backdrop.show .wp-custom-gdpr-centered-modal {
    animation: wpGdprPopIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Close Button */
.wp-custom-gdpr-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.wp-custom-gdpr-close-btn:hover {
    color: #333;
}

/* Modal Content Styles (reused from previous design) */
.wp-custom-gdpr-card-header {
    margin-bottom: 20px;
    padding-right: 20px; /* Space for close button */
}

.wp-custom-gdpr-card-header h3 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #222;
    font-weight: 600;
}

.wp-custom-gdpr-card-header p {
    margin: 0;
    font-size: 13.5px;
    color: #555;
    line-height: 1.5;
}

.wp-custom-gdpr-card-header .wp-custom-gdpr-policy-links {
    margin-top: 8px;
    font-size: 12.5px;
    color: #666;
}

.wp-custom-gdpr-card-header .wp-custom-gdpr-policy-links a {
    color: #666;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.wp-custom-gdpr-card-header .wp-custom-gdpr-policy-links a:hover {
    color: #008080;
}

.wp-custom-gdpr-categories {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wp-custom-gdpr-categories li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
}

.category-info strong {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 2px;
}

.category-info span {
    display: block;
    font-size: 12px;
    color: #777;
}

/* Pure CSS Toggles */
.wp-custom-gdpr-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    margin: 0;
}

.wp-custom-gdpr-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.wp-custom-gdpr-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ddd;
    transition: .3s;
    border-radius: 24px;
}

.wp-custom-gdpr-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .wp-custom-gdpr-slider {
    background-color: #008080; /* Teal Accent */
}

input:disabled + .wp-custom-gdpr-slider {
    cursor: not-allowed;
    opacity: 0.6;
}

input:checked + .wp-custom-gdpr-slider:before {
    transform: translateX(20px);
}

/* Buttons */
.wp-custom-gdpr-card-actions {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.wp-custom-gdpr-btn {
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
}

.wp-custom-gdpr-card-actions .wp-custom-gdpr-btn {
    padding: 12px 20px;
    width: 100%;
}

.btn-primary {
    background-color: #008080;
    color: #ffffff;
    border: 1px solid #008080;
}

.btn-primary:hover {
    background-color: #006666;
    border-color: #006666;
}

.btn-secondary {
    background-color: transparent;
    color: #555;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background-color: #f5f5f5;
    color: #333;
}

@media (max-width: 480px) {
    .wp-custom-gdpr-mini-actions {
        width: 100%;
        flex-direction: column;
    }
    .wp-custom-gdpr-mini-actions .wp-custom-gdpr-btn {
        width: 100%;
    }
    .wp-custom-gdpr-mini-banner {
        bottom: 10px;
        width: calc(100% - 20px);
    }
}

/* Animations */
@keyframes wpGdprFadeSlideUp {
    0% { opacity: 0; transform: translate(-50%, 20px); }
    100% { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes wpGdprFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes wpGdprPopIn {
    0% { opacity: 0; transform: translateY(20px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
