.csp-pop {
    position: fixed;
    z-index: 9999;
    bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-sizing: border-box;
    width: min(360px, calc(100vw - 40px));
    padding: 14px 16px;
    color: #fff;
    background: #20252b;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .22);
    font: 500 15px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

.csp-pop--visible {
    opacity: 1;
    pointer-events: auto;
}

.csp-pop[hidden] {
    display: none;
}

.csp-pop--left {
    left: 20px;
}

.csp-pop--center {
    left: 50%;
    transform: translateX(-50%);
}

.csp-pop--right {
    right: 20px;
}

.csp-pop__message {
    flex: 1 1 auto;
    overflow-wrap: anywhere;
}

.csp-pop__time {
    display: block;
    margin-top: 5px;
    color: #d4d8dc;
    font-size: 12px;
    font-weight: 400;
}

.csp-pop__time[hidden] { display: none; }
.csp-pop__item { font-family: inherit; font-weight: 700; }
.csp-pop[data-item-font="system"] .csp-pop__item { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.csp-pop[data-item-font="serif"] .csp-pop__item { font-family: Georgia, "Times New Roman", serif; }
.csp-pop[data-item-weight="normal"] .csp-pop__item { font-weight: 400; }
.csp-pop[data-item-weight="medium"] .csp-pop__item { font-weight: 500; }

.csp-pop__dismiss {
    flex: 0 0 auto;
    margin: -5px -7px 0 0;
    padding: 2px 6px;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: 4px;
    font: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.csp-pop__dismiss:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .csp-pop {
        right: 12px;
        bottom: 12px;
        left: 12px;
        width: auto;
        max-width: 420px;
        margin-right: auto;
        margin-left: auto;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .csp-pop {
        transition: none;
    }
}
