.messages-area {
    height: 88vh;
    overflow-y: scroll;
    scroll-behavior: smooth;
    padding-bottom: 50px;  /* needed to avoid superimpose with lower navbar */
}

/* message area style specifically for screens 600px or smaller, so taht the scrolling ends exactly at the navbar */
@media (max-width: 600px) {
    .messages-area {
      height: 75vh; /* Adjust height for small screens */
      /* Additional styling adjustments for small screens */
      padding-bottom: 50px;  /* needed to avoid superimpose with lower navbar */
    }
  }

.initial-message-area {
    margin-top: 70px; /* Adjust this value based on your navbar's height or desired distance */
    padding-bottom: 70px;  /* needed to avoid superimpose with lower navbar */
}

.suggestion-message-box {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f8f9fa;
    cursor: pointer;
    text-align: center;
    margin-bottom: 10px; /* Space between boxes */
}

.chat-inline-image-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    max-width: 100%;
    margin: 8px 0 12px;
}

.chat-inline-image {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
    flex: 0 1 320px;
}

.chat-inline-image-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid #343a40;
    background: #212529;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
    text-decoration: none;
}

.chat-inline-image-download:hover,
.chat-inline-image-download:focus {
    transform: translateY(-1px);
    background: #111418;
    box-shadow: 0 8px 16px rgba(17, 24, 39, 0.35);
}

.chat-inline-image-download-icon {
    width: 18px;
    height: 18px;
    filter: invert(1);
    display: block;
}

.chat-inline-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 320px;
    min-height: 200px;
    border-radius: 10px;
    border: 1px dashed #cbd5e1;
    background: #e5e7eb;
    color: #4b5563;
    text-align: center;
    padding: 16px;
    flex: 0 1 320px;
}

.chat-inline-image-placeholder__label {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
}

.chat-inline-image-restore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #343a40;
    background: #212529;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.chat-inline-image-restore:hover,
.chat-inline-image-restore:focus {
    transform: translateY(-1px);
    background: #111418;
    box-shadow: 0 8px 16px rgba(17, 24, 39, 0.35);
}

.chat-inline-image-restore:disabled {
    cursor: default;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

@media (max-width: 600px) {
    .chat-inline-image-wrap {
        width: 100%;
    }

    .chat-inline-image {
        max-width: calc(100% - 46px);
        flex-basis: calc(100% - 46px);
    }

    .chat-inline-image-placeholder {
        max-width: calc(100% - 46px);
        flex-basis: calc(100% - 46px);
    }
}

.chat-quick-reply-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 6px 6px 0 0;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #343a40;
    background: #212529;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
    text-decoration: none;
}

.chat-quick-reply-link:hover,
.chat-quick-reply-link:focus {
    transform: translateY(-1px);
    background: #111418;
    box-shadow: 0 8px 16px rgba(17, 24, 39, 0.35);
    color: #ffffff;
    text-decoration: none;
}
