/* Global reset / typografi */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Rutt-bild ovanför chatten */
.route-image {
    margin-top: 1rem;
    text-align: center;
}

    .route-image img {
        max-width: 100%;
        height: auto;
    }

/* Chat-knapp i hörnet */
.chat-toggle {
    position: fixed;
    bottom: 1.5rem;
    right: 5%;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #00A9E0;
    color: #111;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
}

@media (min-width: 1440px) {
    .chat-toggle {
        right: calc((100% - 1440px)/2 + 1rem);
    }
}

/* Själva chat-widgeten */
.chat-widget {
    position: fixed;
    bottom: calc(1.5rem + 48px + 0.5rem);
    right: 5%;
    width: 300px;
    max-height: 100vh;
    background: white;
    border: 1px solid #A4D4AE;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
}

@media (min-width: 1440px) {
    .chat-widget {
        right: calc((100% - 1440px)/2 + 1rem);
    }
}

/* Header */
.chat-header {
    background: #E8F5E9;
    padding: 0.75rem 1rem;
    font-weight: bold;
    color: #2E7D32;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-icon {
    cursor: pointer;
    font-size: 0.8rem;
    transform: rotate(180deg);
}

/* Meddelandelista */
.chat-body {
    overflow-y:auto
    flex: 1;
    padding: 0.75rem 1rem;
    overflow-y: auto;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #333;
}

.response {
    background: #e0e0e0;
    color: #111;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
}

.question {
    background: #00557F;
    color: #fff;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    text-align: right;
}

/* Input-fält och knapp */
.chat-input {
    display: flex;
    border-top: 1px solid #ddd;
}

    .chat-input input {
        flex: 1;
        border: none;
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
        outline: none;
        background: #fff;
        color: #333;
    }

    .chat-input button {
        border: none;
        background: #00557F;
        color: #fff;
        padding: 0 1rem;
        cursor: pointer;
        font-size: 0.9rem;
    }

