/* embedded_content.css — Static styles for the embedded chat page.
   Dynamic colour is supplied via --theme-text-input-bg CSS custom property. */

.input-group {
    border-radius: 25px;
    position: relative;
    display: flex;
}

.card-footer {
    width: 100%;
    margin: 0 auto;
    margin-top: 40px;
}

.card-body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.content-footer {
    margin: -20px;
}

@media (max-width: 1500px) {
    .content-footer {
        margin: -10px;
    }
    .card-footer {
        margin-top: 40px;
    }
}

.direct-chat-messages table {
    width: 100%;
    margin: 5px;
    padding: 5px;
    font-size: inherit;
    border-collapse: collapse;
}

.direct-chat-messages pre {
    margin: 0;
    padding: 0;
    overflow-x: auto;
}

.direct-chat-messages th {
    background-color: #f7f7f7;
    color: black;
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
}

.direct-chat-messages td {
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

.keyboard {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 0;
    transition: height 0.3s ease;
}

.keyboard-trigger {
    display: none;
}

.content-footer {
    display: none !important;
}

/* med screen (iPhone 12/14) */
@media (min-width: 400px) and (max-width: 500px) {
    .direct-chat-msg { width: 80%; }
}

/* Bigger screens (iPad / desktop) */
@media (min-width: 700px) {
    .direct-chat-msg { width: 100%; }
}

/* Older small devices (iPhone SE) */
@media (max-width: 390px) {
    .direct-chat-msg { width: 77%; }
}

/* Galaxy Z Fold */
@media (min-width: 340px) and (max-width: 370px) {
    .direct-chat-msg { width: 68%; }
    body, .direct-chat-messages { font-size: 15px; }
}

.direct-chat-messages {
    width: 100% !important;
    margin: 0 auto;
    min-width: 500px;
}

/* Uses CSS custom property set by the template */
.round-button, .input-group, .footer-message {
    background-color: var(--theme-text-input-bg) !important;
}

