html.iplo-has-privacy-settings #iplo-privacy-panel {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

html.iplo-needs-privacy-settings #iplo-privacy-panel[hidden] {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

#iplo-privacy-panel,
#iplo-privacy-panel * {
    box-sizing: border-box;
}

#iplo-privacy-panel[hidden] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.iplo-privacy-panel {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 999999;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    max-width: 1100px;
    margin: 0 auto;
    color: #1f2937;
    display: block;
    opacity: 1;
    visibility: visible;
}

.iplo-privacy-panel__inner {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
}

.iplo-privacy-panel__content {
    flex: 1 1 auto;
}

.iplo-privacy-panel__title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
}

.iplo-privacy-panel__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
}

.iplo-privacy-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 0 0 auto;
}

.iplo-privacy-btn {
    appearance: none;
    border: 0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.iplo-privacy-btn--primary {
    background: #635bff;
    color: #fff;
}

.iplo-privacy-btn--primary:hover {
    background: #544de6;
}

.iplo-privacy-btn--secondary {
    background: #111827;
    color: #fff;
}

.iplo-privacy-btn--secondary:hover {
    background: #000;
}

.iplo-privacy-btn--ghost {
    background: #f3f4f6;
    color: #111827;
}

.iplo-privacy-btn--ghost:hover {
    background: #e5e7eb;
}

.iplo-privacy-modal[hidden] {
    display: none !important;
}

.iplo-privacy-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
}

.iplo-privacy-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
}

.iplo-privacy-modal__dialog {
    position: relative;
    width: min(680px, calc(100% - 32px));
    margin: 60px auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.iplo-privacy-modal__header,
.iplo-privacy-modal__footer {
    padding: 18px 22px;
    border-bottom: 1px solid #e5e7eb;
}

.iplo-privacy-modal__footer {
    border-bottom: 0;
    border-top: 1px solid #e5e7eb;
}

.iplo-privacy-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.iplo-privacy-modal__header h3 {
    margin: 0;
    font-size: 20px;
}

.iplo-privacy-modal__close {
    appearance: none;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #374151;
}

.iplo-privacy-modal__body {
    padding: 22px;
}

.iplo-privacy-option {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

.iplo-privacy-option:last-child {
    border-bottom: 0;
}

.iplo-privacy-option strong {
    display: block;
    margin-bottom: 6px;
}

.iplo-privacy-option p {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
}

body.iplo-privacy-modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .iplo-privacy-panel {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .iplo-privacy-panel__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .iplo-privacy-panel__actions {
        width: 100%;
        flex-direction: column;
    }

    .iplo-privacy-btn {
        width: 100%;
    }
}