html.pb-overlay-mode {
    margin-right: 15px;
}

body.pb-overlay-mode {
    overflow: hidden;
}

.pb-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-x: auto;
    overflow-y: scroll;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px 60px;
}

.pb-box {
    border-radius: 12px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border: 1px solid #e9ecef;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.pb-content {
    padding: 1.5rem 1.5rem 1.75rem;
}

.pb-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    opacity: 0.6;
    padding: 4px;
    line-height: 0;
}
.pb-close-btn:hover {
    opacity: 1;
}
.pb-close-btn img {
    display: block;
}

@media screen and (max-width: 600px) {
    .pb-overlay {
        padding: 20px 12px 40px;
    }
    .pb-box {
        max-width: 100%;
    }
    .pb-content {
        padding: 1.25rem 1rem 1.5rem;
    }
}

/* Content inside popup – unified layout */
.pb-content .popup-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0d1b2a;
    margin: 0 0 0.5rem;
    padding-right: 36px;
}
.pb-content .popup-desc {
    font-size: 0.95rem;
    color: #495057;
    line-height: 1.5;
    margin: 0 0 1.25rem;
}
.pb-content .popup-section {
    margin: 1.25rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid #e9ecef;
}
.pb-content .popup-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 0.75rem;
}
.pb-content .popup-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.35rem;
}
.pb-content .popup-form input[type="text"],
.pb-content .popup-form textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    box-sizing: border-box;
}
.pb-content .popup-form textarea {
    min-height: 80px;
    resize: vertical;
}
.pb-content .popup-form .btn-submit {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: #0d1b2a;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
.pb-content .popup-form .btn-submit:hover {
    background: #1b263b;
}
.pb-content .comments-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pb-content .comments-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f5;
    font-size: 0.9rem;
}
.pb-content .comments-list li:last-child {
    border-bottom: none;
}
.pb-content .comment-author {
    font-weight: 600;
    color: #212529;
}
.pb-content .comment-date {
    font-size: 0.8rem;
    color: #868e96;
    margin-left: 0.5rem;
}
.pb-content .comment-text {
    margin: 0.25rem 0 0;
    color: #495057;
    line-height: 1.45;
}
.pb-content .popup-actions {
    margin-top: 0.75rem;
}
.pb-content .popup-actions a {
    font-size: 0.85rem;
    color: #0d1b2a;
    text-decoration: none;
}
.pb-content .popup-actions a:hover {
    text-decoration: underline;
}
.pb-content .popup-actions a.pb-loading {
    opacity: 0.6;
    pointer-events: none;
}
