/* Bloc Space direct conversation
   Kept separate from the inbox so the full-screen chat can evolve independently. */

#fullscreen-chat-modal {
    background: #fff !important;
    color: #111 !important;
}

#fullscreen-chat-modal > div {
    background: #fff !important;
}

#fullscreen-chat-modal .chat-header {
    min-height: 66px !important;
    padding: calc(env(safe-area-inset-top, 0px) + 7px) 16px 8px !important;
    grid-template-columns: 38px minmax(0, 1fr) 38px !important;
    gap: 8px !important;
    background: rgba(255, 255, 255, .96) !important;
    border-bottom: 1px solid #ededed !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

#fullscreen-chat-modal .chat-header > button {
    width: 38px !important;
    height: 38px !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
    box-shadow: none !important;
    font-size: 16px !important;
}

#fullscreen-chat-modal .chat-recipient-info {
    justify-content: center;
    gap: 9px !important;
}

#fullscreen-chat-modal .recipient-avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #efefef !important;
    color: #111 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

#fullscreen-chat-modal .recipient-avatar img {
    border-radius: 50% !important;
}

#fullscreen-chat-modal .recipient-name {
    max-width: 170px !important;
    color: #111 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    letter-spacing: -.01em !important;
}

#fullscreen-chat-modal .recipient-subtitle {
    color: #858585 !important;
    font-size: 10px !important;
    font-weight: 650 !important;
    letter-spacing: .02em !important;
    text-transform: none !important;
}

#fullscreen-chat-modal .chat-messages {
    gap: 7px !important;
    padding: calc(env(safe-area-inset-top, 0px) + 84px) 16px 92px !important;
    background: #fff !important;
}

#fullscreen-chat-modal .chat-day-separator {
    align-self: center;
    margin: 8px 0 10px;
    color: #999;
    font-size: 10px;
    font-weight: 700;
}

#fullscreen-chat-modal .chat-messages .message {
    gap: 3px !important;
    max-width: min(79%, 310px) !important;
}

#fullscreen-chat-modal .chat-messages .message.is-group-continuation {
    margin-top: -4px;
}

#fullscreen-chat-modal .chat-messages .message > .chat-message-bubble {
    padding: 10px 13px !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: #f1f1f1 !important;
    color: #151515 !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 560 !important;
    line-height: 1.38 !important;
    overflow-wrap: break-word !important;
}

html body #fullscreen-chat-modal .chat-messages .message.sent > .chat-message-bubble,
html body #fullscreen-chat-modal .chat-messages .message > .chat-message-bubble.is-sent {
    border-radius: 18px 18px 5px 18px !important;
    background: #111 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

html body #fullscreen-chat-modal .chat-messages .message.sent > .chat-message-bubble,
html body #fullscreen-chat-modal .chat-messages .message.sent > .chat-message-bubble *,
html body #fullscreen-chat-modal .chat-messages .message > .chat-message-bubble.is-sent,
html body #fullscreen-chat-modal .chat-messages .message > .chat-message-bubble.is-sent * {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

#fullscreen-chat-modal .chat-messages .message.received > .chat-message-bubble,
#fullscreen-chat-modal .chat-messages .message > .chat-message-bubble.is-received {
    border-radius: 18px 18px 18px 5px !important;
}

#fullscreen-chat-modal .chat-messages .message > .chat-message-meta {
    padding: 0 4px !important;
    color: #999 !important;
    font-size: 9px !important;
    font-weight: 600 !important;
}

#fullscreen-chat-modal .chat-messages .message.is-optimistic {
    align-self: flex-end;
    max-width: min(79%, 310px);
    align-items: flex-end;
}

#fullscreen-chat-modal .chat-message-delivery {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: auto !important;
    min-width: 0 !important;
    height: 18px !important;
    margin: 1px 3px 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #999 !important;
    -webkit-text-fill-color: #999 !important;
    box-shadow: none !important;
    font-size: 9px !important;
    font-weight: 650 !important;
}

#fullscreen-chat-modal .chat-message-delivery i {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    font-size: 8px !important;
}

#fullscreen-chat-modal .message.is-failed .chat-message-delivery {
    color: #c23b3b !important;
    -webkit-text-fill-color: #c23b3b !important;
    cursor: pointer;
}

#fullscreen-chat-modal .message.is-failed > .chat-message-bubble {
    background: #2a2a2a !important;
}

#fullscreen-chat-modal .chat-messages .message.sent:not(.is-group-end) > .chat-message-bubble,
#fullscreen-chat-modal .chat-messages .message.sent.is-group-continuation > .chat-message-bubble {
    border-bottom-right-radius: 5px !important;
}

#fullscreen-chat-modal .chat-messages .message.received:not(.is-group-end) > .chat-message-bubble,
#fullscreen-chat-modal .chat-messages .message.received.is-group-continuation > .chat-message-bubble {
    border-bottom-left-radius: 5px !important;
}

#fullscreen-chat-modal .chat-input-area {
    padding: 8px 14px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    background: rgba(255, 255, 255, .96) !important;
    border-top: 0 !important;
    box-shadow: none !important;
}

#fullscreen-chat-modal .chat-input-area > div {
    min-height: 48px !important;
    padding: 5px 5px 5px 15px !important;
    border: 1px solid #dedede !important;
    border-radius: 24px !important;
    background: #fff !important;
    box-shadow: none !important;
}

#fullscreen-chat-modal #chat-message-input {
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
}

#fullscreen-chat-modal #chat-message-input::placeholder {
    color: #8c8c8c !important;
    -webkit-text-fill-color: #8c8c8c !important;
}

html body #fullscreen-chat-modal .chat-input-area button {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #111 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    box-shadow: none !important;
}

html body #fullscreen-chat-modal .chat-input-area button i,
html body #fullscreen-chat-modal .chat-input-area button i::before {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

#blocspace-section-dms .mobile-blocspace-message-contact-row {
    min-height: 64px;
    padding: 10px 0;
    border-bottom: 1px solid #ededed;
    background: #fff !important;
    cursor: pointer;
}

#blocspace-section-dms .mobile-blocspace-message-contact-row button {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #f2f2f2 !important;
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
    box-shadow: none !important;
    font-size: 11px !important;
}
