/* Prothom Alo comment overrides */

.bb-comment-wrapper {
    background-color: #fff5f6 !important;
    border-top: 3px solid #d60000 !important;
    font-family: 'Noto Serif Bengali', 'Noto Sans Bengali', sans-serif !important;
}

.bb-comment-wrapper .bb-dropdown-menu li {
    list-style: none;
}

/* ── Avatar: circular ───────────────────────────────────────── */
.bb-comment-wrapper .bb-comment .bb-avatar {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 50% !important;
    border: 1px solid #ddd !important;
    overflow: hidden !important;
    background: #e0e0e0 !important;
}
.bb-comment-wrapper .bb-comment .bb-avatar img {
    border-radius: 50% !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* ── Comment box gap ────────────────────────────────────────── */
.bb-comment-wrapper .bb-comment-box {
    gap: 12px !important;
    align-items: flex-start !important;
    margin-bottom: 0 !important;
}

/* ── Textarea: rounded pill, right-padding for emoji btn ────── */
.bb-comment-wrapper .bb-comment-box .bb-textarea textarea {
    border: 1px solid #bbb !important;
    padding: 12px 46px 12px 16px !important;
    font-size: 15px !important;
    min-height: 48px !important;
    resize: none !important;
    background: #fff !important;
    box-shadow: none !important;
    border-radius: 10px !important;
}

/* ── Emoji button: positioned inside textarea on the right ───── */
.bb-comment-wrapper .bb-comment-box .bb-textarea .bb-emoji-btn {
    position: absolute !important;
    right: 14px !important;
    top: 13px !important;
    background: none !important;
    border: none !important;
    font-size: 20px !important;
    line-height: 1 !important;
    color: #aaa !important;
    cursor: pointer !important;
    padding: 0 !important;
    z-index: 2 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* ── Footer: always visible, no background, flush right ─────── */
.bb-comment-wrapper .bb-comment-box .bb-textarea textarea + div,
.bb-comment-wrapper .bb-comment-box .bb-textarea .bb-textarea-footer {
    display: flex !important;
}
.bb-comment-wrapper .bb-comment-box .bb-textarea .bb-textarea-footer {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    justify-content: flex-end !important;
    padding: 8px 0 0 !important;
}

/* ── Post button: sky blue, rounded, with play icon ─────────── */
.bb-comment-wrapper .bb-comment-box .bb-textarea-footer .post-btn {
    background-color: #0091ff !important;
    border: none !important;
    border-radius: 6px !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    padding: 2px 10px !important;
    min-width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.bb-comment-wrapper .bb-comment-box .bb-textarea-footer .post-btn::before {
    content: "\25B6" !important;
    font-size: 12px !important;
}
.bb-comment-wrapper .bb-comment-box .bb-textarea-footer .post-btn.post-none {
    background-color: #aaa !important;
}
.bb-comment-wrapper .bb-comment-box .bb-textarea-footer .post-btn.cancel-btn {
    background: none !important;
    color: #888 !important;
}
.bb-comment-wrapper .bb-comment-box .bb-textarea-footer .post-btn.cancel-btn::before {
    content: none !important;
}

/* ════════════════════════════════════════════════════════════════
   LOGIN MODAL
   ════════════════════════════════════════════════════════════════ */

/* Overlay */
.bb-dialog-mask {
    background-color: rgba(0, 0, 0, 0.55) !important;
}

/* Dialog card */
.bb-dialog-wrapper .bb-dialog-container {
    width: 420px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18) !important;
    border-top: 4px solid #4ade80 !important;
}

/* Close button */
.bb-dialog-wrapper .bb-dialog-container .bb-dialog-close {
    position: absolute !important;
    right: 16px !important;
    top: 16px !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: #ffe4e6 !important;
    color: #be123c !important;
    text-decoration: none !important;
    font-size: 13px !important;
    z-index: 10 !important;
}
.bb-dialog-wrapper .bb-dialog-container .bb-dialog-close:hover {
    background: #fecdd3 !important;
    color: #9f1239 !important;
}

/* Header section */
.bb-dialog-wrapper .bb-dialog-container .bb-dialog-header {
    background: #fff0f0 !important;
    padding: 28px 28px 0 !important;
    text-align: left !important;
    border-bottom: 1px solid #fecdd3 !important;
}
.bb-dialog-wrapper .bb-dialog-container .bb-dialog-header h3 {
    color: #be123c !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    margin: 0 0 20px !important;
}

/* Tabs inside header */
.pa-login-header {
    width: 100% !important;
}
.pa-login-tabs {
    display: flex !important;
    gap: 0 !important;
    margin-top: 4px !important;
}
.pa-tab-btn {
    flex: 1 !important;
    background: rgba(190,18,60,0.07) !important;
    border: none !important;
    color: #be123c !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 10px 0 !important;
    cursor: pointer !important;
    border-radius: 0 !important;
    transition: background 0.2s, color 0.2s !important;
    text-transform: none !important;
    outline: none !important;
    box-shadow: none !important;
}
.pa-tab-btn.active {
    background: #f0fdf4 !important;
    color: #15803d !important;
    border-radius: 6px 6px 0 0 !important;
    border-top: 2px solid #4ade80 !important;
}
.pa-tab-btn:not(.active):hover {
    background: rgba(190,18,60,0.13) !important;
    color: #9f1239 !important;
}

/* Error messages */
.pa-login-error {
    background: #fff0f0 !important;
    border-left: 3px solid #f87171 !important;
    color: #be123c !important;
    font-size: 13px !important;
    padding: 8px 14px !important;
    margin: 12px 28px 0 !important;
    border-radius: 0 4px 4px 0 !important;
}

/* Body section */
.bb-dialog-wrapper .bb-dialog-container .bb-dialog-body {
    padding: 20px 28px 8px !important;
    margin: 0 !important;
}
.pa-login-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}
.pa-form-row {
    display: flex !important;
    gap: 12px !important;
}
.pa-form-row .pa-form-group {
    flex: 1 !important;
}
.pa-form-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
}
.pa-form-group label {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #555 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
}
.pa-input {
    width: 100% !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    color: #333 !important;
    background: #fafafa !important;
    outline: none !important;
    transition: border-color 0.2s !important;
    box-sizing: border-box !important;
}
.pa-input:focus {
    border-color: #4ade80 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(74,222,128,0.15) !important;
}

/* Footer section */
.bb-dialog-wrapper .bb-dialog-container .bb-dialog-footer {
    padding: 12px 28px 24px !important;
    overflow: visible !important;
}
.pa-login-footer {
    display: flex !important;
    justify-content: flex-end !important;
}
.pa-submit-btn {
    background: #16a34a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 11px 32px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-transform: none !important;
    transition: background 0.2s !important;
    outline: none !important;
}
.pa-submit-btn:hover {
    background: #15803d !important;
}

/* Loading overlay */
.bb-dialog-wrapper .bb-dialog-container .bb-dialog-loading {
    background-color: rgba(255,255,255,0.75) !important;
    border-radius: 10px !important;
}

/* Mobile */
@media (max-width: 480px) {
    .bb-dialog-wrapper .bb-dialog-container {
        width: 94vw !important;
    }
    .bb-dialog-wrapper .bb-dialog-container .bb-dialog-body {
        padding: 16px 18px 8px !important;
    }
    .bb-dialog-wrapper .bb-dialog-container .bb-dialog-footer {
        padding: 10px 18px 18px !important;
    }
    .pa-form-row {
        flex-direction: column !important;
    }
}

.bb-comment-wrapper .bb-dropdown-menu li {
    list-style: none;
}

/* ── Avatar: circular ───────────────────────────────────────── */
.bb-comment-wrapper .bb-comment .bb-avatar {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 50% !important;
    border: 1px solid #ddd !important;
    overflow: hidden !important;
    background: #e0e0e0 !important;
}
.bb-comment-wrapper .bb-comment .bb-avatar img {
    border-radius: 50% !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* ── Comment box gap ────────────────────────────────────────── */
.bb-comment-wrapper .bb-comment-box {
    gap: 12px !important;
    align-items: flex-start !important;
    margin-bottom: 0 !important;
}

/* ── Textarea: rounded pill, right-padding for emoji btn ────── */
.bb-comment-wrapper .bb-comment-box .bb-textarea textarea {
    border: 1px solid #bbb !important;
    padding: 12px 46px 12px 16px !important;
    font-size: 15px !important;
    min-height: 48px !important;
    resize: none !important;
    background: #fff !important;
    box-shadow: none !important;
    border-radius: 10px !important;
}

/* ── Emoji button: positioned inside textarea on the right ───── */
.bb-comment-wrapper .bb-comment-box .bb-textarea .bb-emoji-btn {
    position: absolute !important;
    right: 14px !important;
    top: 13px !important;
    background: none !important;
    border: none !important;
    font-size: 20px !important;
    line-height: 1 !important;
    color: #aaa !important;
    cursor: pointer !important;
    padding: 0 !important;
    z-index: 2 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* ── Footer: always visible, no background, flush right ─────── */
.bb-comment-wrapper .bb-comment-box .bb-textarea textarea + div,
.bb-comment-wrapper .bb-comment-box .bb-textarea .bb-textarea-footer {
    display: flex !important;
}
.bb-comment-wrapper .bb-comment-box .bb-textarea .bb-textarea-footer {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    justify-content: flex-end !important;
    padding: 8px 0 0 !important;
}

/* ── Post button: sky blue, rounded, with play icon ─────────── */
.bb-comment-wrapper .bb-comment-box .bb-textarea-footer .post-btn {
    background-color: #0091ff !important;
    border: none !important;
    border-radius: 6px !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    padding: 2px 10px !important;
    min-width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.bb-comment-wrapper .bb-comment-box .bb-textarea-footer .post-btn::before {
    content: "\25B6" !important;
    font-size: 12px !important;
}
.bb-comment-wrapper .bb-comment-box .bb-textarea-footer .post-btn.post-none {
    background-color: #aaa !important;
}
.bb-comment-wrapper .bb-comment-box .bb-textarea-footer .post-btn.cancel-btn {
    background: none !important;
    color: #888 !important;
}
.bb-comment-wrapper .bb-comment-box .bb-textarea-footer .post-btn.cancel-btn::before {
    content: none !important;
}
