.pc-snackbar-popup {
    /* Layout & Sizing - Resetting likely theme conflicts */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 50px;
    height: auto;
    margin: 0;

    /* Aesthetics */
    background-color: #333;
    color: white;
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    /* Extremely high to sit above sticky headers/modals */
    box-sizing: border-box;

    /* Content Alignment */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Typography Logic */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;

    /* Hidden by default for JS handling */
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.pc-snackbar-popup * {
    box-sizing: border-box;
}

.pc-snackbar-popup.show {
    display: flex;
    opacity: 1;
}

/* Close Button Reset */
.pc-close-btn {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #aaa !important;
    font-size: 24px !important;
    line-height: 1 !important;
    cursor: pointer;
    padding: 4px !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    min-width: unset !important;
    min-height: unset !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.2s;
}

.pc-close-btn:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Message Reset */
#pc-snackbar-message {
    margin: 0 !important;
    padding: 0 !important;
    flex-grow: 1;
    text-align: center;
    color: white !important;
    font-size: inherit;
    line-height: inherit;
    max-width: 90%;
    /* Ensure text doesn't overlap close button on small screens */
}

/* Adjust for Admin Bar */
body.admin-bar .pc-snackbar-popup {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .pc-snackbar-popup {
        top: 46px;
    }

    .pc-snackbar-popup {
        padding-right: 40px;
        /* Make space for close button */
    }
}