.pm-placeholder-warning {
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    border-radius: 4px;
    text-align: center;
}
.pm-placeholder-success {
    padding: 15px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    border-radius: 4px;
    text-align: center;
}
.pm-modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
body.admin-bar .pm-modal-wrapper {
    top: var(--wp-admin--admin-bar--height, 32px);
    height: calc(100% - var(--wp-admin--admin-bar--height, 32px));
}
@media screen and (max-width: 782px) {
    body.admin-bar .pm-modal-wrapper {
        top: 46px;
        height: calc(100% - 46px);
    }
}
.pm-modal-wrapper.pm-active {
    opacity: 1;
    visibility: visible;
}
.pm-hidden {
    display: none;
}
.pm-modal-wrapper.pm-active.pm-hidden {
    display: flex;
}
.pm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.pm-modal-content {
    position: relative;
    z-index: 2;
    background: #ffffff;
    width: 90%;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    overflow-y: auto;
    max-height: 90vh;
    animation-fill-mode: both;
}
.pm-close-btn {
    position: absolute;
    font-weight: bold;
    color: #333333;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}
.pm-close-btn:hover {
    color: #ff0000;
}
.pm-modal-inner {
    width: 100%;
    height: 100%;
}

/* --- Entrance Animations --- */
@keyframes pmFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.pm-fade-in {
    animation-name: pmFadeIn;
}

@keyframes pmSlideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.pm-slide-up {
    animation-name: pmSlideUp;
}

@keyframes pmSlideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.pm-slide-down {
    animation-name: pmSlideDown;
}

@keyframes pmZoomIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.pm-zoom-in {
    animation-name: pmZoomIn;
}

@keyframes pmBounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); opacity: 0.8; }
    70% { transform: scale(0.9); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}
.pm-bounce-in {
    animation-name: pmBounceIn;
}

/* --- Exit Animations --- */
@keyframes pmFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
.pm-fade-out {
    animation-name: pmFadeOut;
}

@keyframes pmSlideUpOut {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-50px); opacity: 0; }
}
.pm-slide-up-out {
    animation-name: pmSlideUpOut;
}

@keyframes pmSlideDownOut {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(50px); opacity: 0; }
}
.pm-slide-down-out {
    animation-name: pmSlideDownOut;
}

@keyframes pmZoomOut {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(0.85); opacity: 0; }
}
.pm-zoom-out {
    animation-name: pmZoomOut;
}

@keyframes pmBounceOut {
    20% { transform: scale(0.9); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(0.3); opacity: 0; }
}
.pm-bounce-out {
    animation-name: pmBounceOut;
}
