:root {
    --bg-color: #f5f5f7;
    --card-bg: #ffffff;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
    --header-height: 50px;
    /* Reduced height slightly */
}

* {
    box-sizing: border_box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: #1d1d1f;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.chat-container {
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    background-color: var(--card-bg);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.chat-header {
    height: var(--header-height);
    /* Center content horizontally and vertically */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Align to top to allow padding-top */
    padding-top: 10px;
    /* "10 px ned fra toppen" */
    background-color: #fff;
    z-index: 10;
    /* Optional: remove border if you want it cleaner, keeping it for separation */
    /* border-bottom: 1px solid #f0f0f0; */
}

.chat-header h1 {
    font-size: 14px;
    /* "Litt mindre" (was 18px) */
    font-weight: 500;
    /* Slightly lighter weight */
    color: #1d1d1f;
    margin: 0;
    text-align: center;
}

#my-chat {
    flex: 1;
    width: 100%;
    height: calc(100% - var(--header-height));
    overflow: hidden;
}

@media (max-width: 768px) {
    .chat-container {
        width: 100%;
        height: 100%;
        border-radius: 0;
        max-width: none;
    }
}

openai-chatkit {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}