/* Grundlayout Container */
#pdcm-banner {
    position: fixed;
    z-index: 9999;
    box-sizing: border-box;
    padding: 16px;
}

/* Unten/oben – volle Breite */
.pdcm-position-bottom {
    left: 0;
    right: 0;
    bottom: 0;
}

.pdcm-position-top {
    left: 0;
    right: 0;
    top: 0;
}

/* Unten links – kompakte Box */
.pdcm-position-bottom_left {
    bottom: 16px;
    left: 16px;
    right: auto;
}

/* Unten Mitte – kompakte Box */
.pdcm-position-bottom_center {
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
}

/* Overlay – zentriert mit dunklem Hintergrund über die Seite */
.pdcm-position-overlay {
    inset: 0;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.65); /* dunkler Seiten-Hintergrund */
}

/* Banner-Box (Card) */
.pdcm-banner-inner {
    max-width: 680px;
    margin: 0 auto;
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
    background: white;
    text-align: center;
}

/* Kompakte Box-Größen */
.pdcm-position-bottom_left .pdcm-banner-inner,
.pdcm-position-bottom_center .pdcm-banner-inner,
.pdcm-position-overlay .pdcm-banner-inner {
    max-width: 420px;
    width: 100%;
}

/* Overlay-Box etwas größer auf Desktop */
@media (min-width: 768px) {
    .pdcm-position-overlay .pdcm-banner-inner {
        max-width: 520px;
    }
}

/* Themes – Karten-Hintergrund */
.pdcm-theme-light #pdcm-banner .pdcm-banner-inner {
    background: #ffffff;
    color: #111827;
}

.pdcm-theme-dark #pdcm-banner .pdcm-banner-inner {
    background: #111827;
    color: #f9fafb;
}

/* Text */
.pdcm-banner-title {
    margin: 0 0 4px;
    font-size: 1.1rem;
    font-weight: 600;
    color: black;
}

.pdcm-banner-description {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.pdcm-banner-privacy-link {
    margin-top: 8px;
    font-size: 0.9rem;
}

.pdcm-banner-privacy-link a {
    text-decoration: underline;
}

/* Buttons */
.pdcm-banner-buttons,
.pdcm-modal-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin: 0 auto;
}

.pdcm-btn {
    border-radius: 9999px;
    font-size: 0.9rem;
    padding: 8px 18px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.pdcm-btn-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.pdcm-btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.pdcm-btn-secondary {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #111827;
}

.pdcm-btn-secondary:hover {
    background: #d1d5db;
}

.pdcm-btn-outline {
    background: transparent;
    border-color: #9ca3af;
    color: inherit;
}

.pdcm-btn-outline:hover {
    background: rgba(156, 163, 175, 0.1);
}

/* Shortcode-Button */
.pdcm-settings-shortcode-btn {
    font-size: 0.9rem;
}

/* Floating Cookie Icon unten links (nach Consent) */
.pdcm-floating-settings {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 9998;
    width: 46px;
    height: 46px;
    border-radius: 9999px;
    border: none;
    background: #111827;
    color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.pdcm-floating-settings .pdcm-floating-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.pdcm-floating-settings:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.45);
    background: #1f2937;
}

/* Modal */
.pdcm-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
}

.pdcm-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
}

.pdcm-modal-dialog {
    position: relative;
    max-width: 560px;
    margin: 60px auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 20px 16px;
    z-index: 1;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.4);
}

.pdcm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.pdcm-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.pdcm-modal-close {
    border: none;
    background: transparent;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}

.pdcm-modal-body {
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 12px;
}

.pdcm-category {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
    margin-bottom: 8px;
}

.pdcm-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.pdcm-category-desc {
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
}

/* Switch */
.pdcm-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.pdcm-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.pdcm-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #d1d5db;
    transition: .4s;
    border-radius: 9999px;
}

.pdcm-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 9999px;
}

.pdcm-switch input:checked + .pdcm-slider {
    background-color: #2563eb;
}

.pdcm-switch input:checked + .pdcm-slider:before {
    transform: translateX(22px);
}

/* Responsive */
@media (max-width: 768px) {
    .pdcm-banner-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .pdcm-banner-buttons {
        width: 100%;
        justify-content: flex-start;
    }

    .pdcm-modal-dialog {
        margin: 30px 12px;
        max-width: none;
    }
}