/* Report and block (public profile "..." menu, sheets, Settings list).
   Own file because the site's Tailwind build is precompiled and purged. */

.rb-safety-menu { position: relative; display: inline-flex; }

.rb-safety-menu__button {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 9999px;
    border: 1px solid rgb(229, 231, 235); background: rgb(255, 255, 255);
    color: rgb(55, 65, 81); cursor: pointer;
}
.rb-safety-menu__button:hover { background: rgb(243, 244, 246); }
.rb-safety-menu__button:focus-visible { outline: 2px solid rgb(215, 94, 0); outline-offset: 2px; }

.rb-safety-menu__list {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 60;
    min-width: 190px; padding: 4px 0; margin: 0; list-style: none;
    background: rgb(255, 255, 255); border: 1px solid rgb(229, 231, 235);
    border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.rb-safety-menu__list[hidden] { display: none; }
.rb-safety-menu__item {
    display: flex; align-items: center; gap: 8px; width: 100%;
    padding: 10px 14px; border: 0; background: none; text-align: left;
    font-size: 14px; color: rgb(55, 65, 81); cursor: pointer;
}
.rb-safety-menu__item:hover { background: rgb(243, 244, 246); }
.rb-safety-menu__item--danger { color: rgb(220, 38, 38); }

/* Sheet: bottom sheet on phones, centered dialog from 640px */
.rb-sheet-backdrop {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(0, 0, 0, 0.45);
    display: flex; align-items: flex-end; justify-content: center;
}
.rb-sheet {
    width: 100%; max-height: 90vh; overflow-y: auto;
    background: rgb(255, 255, 255); color: rgb(31, 41, 55);
    border-radius: 16px 16px 0 0; padding: 20px 16px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    font-size: 14px; line-height: 1.5; text-align: left;
}
@media (min-width: 640px) {
    .rb-sheet-backdrop { align-items: center; }
    .rb-sheet { max-width: 440px; border-radius: 16px; padding: 24px; }
}
.rb-sheet__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.rb-sheet__title { font-size: 18px; font-weight: 600; margin: 0; }
.rb-sheet__close { border: 0; background: none; padding: 4px; margin: -4px; color: rgb(107, 114, 128); cursor: pointer; }
.rb-sheet__muted { color: rgb(75, 85, 99); margin: 0 0 10px; }
.rb-sheet__option {
    display: flex; align-items: center; gap: 10px; padding: 10px 0;
    border-bottom: 1px solid rgb(243, 244, 246); cursor: pointer;
}
.rb-sheet__label { display: block; margin: 12px 0 4px; }
.rb-sheet__input, .rb-sheet__textarea {
    width: 100%; box-sizing: border-box; border: 1px solid rgb(209, 213, 219);
    border-radius: 12px; padding: 8px 12px; font-size: 14px; font-family: inherit;
}
.rb-sheet__check { display: flex; align-items: center; gap: 8px; margin-top: 12px; cursor: pointer; }
.rb-sheet__list { margin: 0 0 16px; padding-left: 20px; color: rgb(75, 85, 99); }
.rb-sheet__list li { margin: 2px 0; }
.rb-sheet__error { color: rgb(220, 38, 38); margin: 10px 0 0; }
.rb-sheet__btn {
    display: block; width: 100%; margin-top: 16px; padding: 10px;
    border-radius: 12px; border: 0; font-size: 15px; font-weight: 600; cursor: pointer;
}
.rb-sheet__btn--primary { background: rgb(215, 94, 0); color: rgb(255, 255, 255); }
.rb-sheet__btn--danger { background: rgb(220, 38, 38); color: rgb(255, 255, 255); }
.rb-sheet__btn--secondary { margin-top: 8px; background: rgb(255, 255, 255); border: 1px solid rgb(209, 213, 219); color: rgb(55, 65, 81); }
.rb-sheet__btn[disabled] { opacity: 0.7; cursor: default; }

/* Settings: blocked users list */
.rb-blocked-list { list-style: none; margin: 0; padding: 0; }
.rb-blocked-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgb(243, 244, 246); }
.rb-blocked-row__avatar { width: 40px; height: 40px; border-radius: 9999px; object-fit: cover; background: rgb(243, 244, 246); flex-shrink: 0; }
.rb-blocked-row__name { font-weight: 500; }
.rb-blocked-row__date { font-size: 12px; color: rgb(107, 114, 128); }
.rb-blocked-row__body { flex: 1; min-width: 0; }
.rb-blocked-row__btn {
    border: 1px solid rgb(209, 213, 219); background: rgb(255, 255, 255); color: rgb(55, 65, 81);
    border-radius: 9999px; padding: 6px 14px; font-size: 13px; cursor: pointer; flex-shrink: 0;
}

.dark .rb-safety-menu__button, .dark .rb-safety-menu__list, .dark .rb-sheet, .dark .rb-blocked-row__btn {
    background: rgb(31, 41, 55); color: rgb(229, 231, 235); border-color: rgb(55, 65, 81);
}
.dark .rb-safety-menu__item { color: rgb(229, 231, 235); }
.dark .rb-safety-menu__item:hover { background: rgb(55, 65, 81); }
.dark .rb-sheet__muted, .dark .rb-sheet__list { color: rgb(156, 163, 175); }
.dark .rb-sheet__input, .dark .rb-sheet__textarea { background: rgb(55, 65, 81); color: rgb(255, 255, 255); border-color: rgb(75, 85, 99); }

/* Chat icon next to the client's edit icon (project page) */
.rb-chat-icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; padding: 0; border: 0; background: none;
    color: rgb(156, 163, 175); cursor: pointer; text-decoration: none;
    transition: color 150ms;
}
.rb-chat-icon-btn:hover { color: rgb(37, 99, 235); }
.rb-chat-icon-btn:focus-visible { outline: 2px solid rgb(37, 99, 235); outline-offset: 2px; border-radius: 4px; }
.rb-client-actions { display: inline-flex; align-items: center; gap: 10px; justify-self: end; }
@media (max-width: 767px) {
    /* Bigger tap targets on phones */
    .rb-chat-icon-btn { width: 32px; height: 32px; }
}

/* First-message chat window: same look as the Meet Local Pros chat window (dashboard.css #floating-chatbox) */
.rb-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rb-chatbox {
    position: fixed; width: 360px; bottom: 24px; right: 32px;
    max-height: calc(100vh - 110px); overflow-y: auto;
    border-radius: 16px !important; z-index: 10000;
}
.rb-chatbox.hidden { display: none; }
/* Compact spacing (overrides the Local Pros utility classes in the markup) */
.rb-chatbox #rb-chatbox-compose > div:first-child { padding: 12px 14px !important; gap: 10px !important; }
.rb-chatbox #rb-chatbox-compose > div:first-child > div { gap: 10px !important; }
.rb-chatbox #rb-chatbox-compose > div:first-child .me-8 { margin-inline-end: 0 !important; }
.rb-chatbox #rb-chatbox-title { font-size: 15px !important; line-height: 1.3; }
.rb-chatbox #rb-chatbox-compose > div:first-child p { font-size: 13px; }
.rb-chatbox__message {
    width: 100%; height: 96px; overflow-y: auto; resize: vertical;
    border: none !important; font-family: inherit; font-size: 14px; padding: 10px 14px !important;
}
.rb-chatbox__message:focus { box-shadow: none !important; border: none !important; outline: none; }
.rb-chatbox #rb-chatbox-error:empty { display: none; }
.rb-chatbox #rb-chatbox-error { padding: 4px 14px 0 !important; font-size: 13px; }
.rb-chatbox__suggestions { padding: 10px 14px !important; gap: 6px !important; }
.rb-chatbox__suggestion { font-size: 12.5px !important; line-height: 1.35; padding: 6px 12px !important; }
.rb-chatbox #rb-chatbox-compose > div:last-child { padding: 10px 14px !important; }
.rb-chatbox #rb-chatbox-compose > div:last-child p { font-size: 12.5px; }
.rb-chatbox #rb-chatbox-send { padding: 8px 20px !important; }
.rb-chatbox #rb-chatbox-sent { padding: 18px !important; }
.rb-chatbox #rb-chatbox-sent svg { width: 56px; height: 56px; margin-bottom: 10px !important; }
.rb-chatbox #rb-chatbox-sent h3 { font-size: 18px !important; }
.rb-chatbox #rb-chatbox-sent p { font-size: 13px; }
.rb-chatbox #rb-chatbox-sent .mt-8 { margin-top: 16px !important; }
.rb-chatbox #rb-chatbox-gotit, .rb-chatbox #rb-chatbox-view { padding-top: 8px !important; padding-bottom: 8px !important; font-size: 14px; }
.rb-chatbox__close { border: 0; background: none; padding: 0; color: rgb(17, 24, 39); cursor: pointer; }
.rb-chatbox__close svg { width: 22px; height: 22px; }
.dark .rb-chatbox__close { color: rgb(255, 255, 255); }
.rb-chatbox__suggestion { background: none; text-align: left; cursor: pointer; font-family: inherit; }
.rb-chatbox__suggestion:hover { background: rgb(249, 250, 251); }
.rb-chatbox__avatar { width: 40px !important; height: 40px !important; object-fit: cover; }
@media (max-width: 767px) {
    .rb-chatbox {
        left: 8px !important; right: 8px !important; top: auto !important;
        bottom: calc(8px + env(safe-area-inset-bottom)) !important;
        width: auto !important; max-width: none !important;
        max-height: calc(100dvh - 85px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
        overflow-x: hidden !important; overflow-y: auto !important;
        border-radius: 16px !important; z-index: 99999 !important;
    }
    .rb-chatbox__message { min-height: 80px !important; height: 96px; resize: none; }
    .rb-chatbox__suggestions { padding: 10px 14px !important; gap: 6px !important; }
    .rb-chatbox__suggestion { width: 100%; padding: 8px 12px !important; }
}
