/* Car Rent Pe AI Chat Bot widget */
#zipcar-bot {
    --zbot-accent: #0f9d6e;
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
    font-family: inherit;
}

.zbot-launcher {
    align-items: center;
    background: var(--zbot-accent);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 14px 38px rgba(29, 78, 216, .34);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 15px;
    font-weight: 800;
    gap: 8px;
    padding: 13px 20px;
    transition: transform .16s ease, box-shadow .16s ease;
}

.zbot-launcher:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 46px rgba(29, 78, 216, .42);
}

.zbot-launcher-icon {
    font-size: 18px;
    line-height: 1;
}

.zbot-panel {
    background: #fff;
    border: 1px solid #dcefe4;
    border-radius: 18px;
    bottom: 0;
    box-shadow: 0 30px 90px rgba(15, 23, 42, .28);
    display: flex;
    flex-direction: column;
    height: min(560px, 78vh);
    overflow: hidden;
    position: absolute;
    right: 0;
    width: min(380px, calc(100vw - 32px));
}

.zbot-head {
    align-items: center;
    background: var(--zbot-accent);
    color: #fff;
    display: flex;
    justify-content: space-between;
    padding: 14px 16px;
}

.zbot-head strong {
    font-size: 15px;
}

.zbot-close {
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    opacity: .9;
}

.zbot-messages {
    background: #f3faf6;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding: 16px;
}

.zbot-msg {
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
    max-width: 85%;
    padding: 10px 13px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.zbot-msg a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

.zbot-msg-bot {
    align-self: flex-start;
    background: #fff;
    border: 1px solid #dcefe4;
    color: #0d2019;
}

.zbot-msg-user {
    align-self: flex-end;
    background: var(--zbot-accent);
    color: #fff;
}

.zbot-typing {
    align-self: flex-start;
    color: #5a6b62;
    font-size: 13px;
    font-style: italic;
    padding: 4px 6px;
}

.zbot-input {
    border-top: 1px solid #e9f6ef;
    display: flex;
    gap: 8px;
    padding: 12px;
}

.zbot-input input {
    background: #f2faf6;
    border: 1px solid #d4ecdf;
    border-radius: 10px;
    flex: 1;
    font-size: 15px;
    min-width: 0;
    padding: 11px 13px;
}

.zbot-input input:focus {
    border-color: var(--zbot-accent);
    outline: none;
}

.zbot-input button {
    background: var(--zbot-accent);
    border: 0;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    padding: 0 16px;
}

@media (max-width: 480px) {
    #zipcar-bot {
        right: 14px;
        bottom: 14px;
    }
    .zbot-panel {
        height: min(520px, 74vh);
    }
}

/* Quick-reply suggestion chips */
.zbot-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px 0;
}

.zbot-chip {
    background: #e7f7f0;
    border: 1px solid #cbe9d7;
    border-radius: 999px;
    color: var(--zbot-accent);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 13px;
    transition: background .15s ease;
}

.zbot-chip:hover {
    background: #d6f0e2;
}

/* Booking / link buttons inside bot messages */
.zbot-book {
    background: var(--zbot-accent);
    border-radius: 8px;
    color: #fff !important;
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    margin: 4px 4px 0 0;
    padding: 6px 12px;
    text-decoration: none !important;
}

.zbot-book:hover {
    opacity: .9;
}

/* Visual car cards inside the chat */
.zbot-cars {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 2px 0 4px;
}

.zbot-car {
    align-items: stretch;
    background: #fff;
    border: 1px solid #dcefe4;
    border-radius: 14px;
    display: flex;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow .15s ease, transform .15s ease;
}

.zbot-car:hover {
    box-shadow: 0 12px 30px rgba(15, 23, 42, .14);
    transform: translateY(-2px);
}

.zbot-car-img {
    background-color: #e9f6ef;
    background-position: center;
    background-size: cover;
    flex: 0 0 96px;
    min-height: 96px;
}

.zbot-car-img-empty {
    align-items: center;
    display: flex;
    font-size: 32px;
    justify-content: center;
}

.zbot-car-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
}

.zbot-car-name {
    color: #0d2019;
    font-size: 14px;
    font-weight: 800;
}

.zbot-car-meta {
    color: #5a6b62;
    font-size: 12px;
}

.zbot-car-price {
    color: #0d2019;
    font-size: 14px;
    font-weight: 800;
    margin-top: 2px;
}

.zbot-car-cta {
    color: var(--zbot-accent);
    font-size: 13px;
    font-weight: 800;
    margin-top: auto;
}

/* Language selector bar */
.zbot-lang {
    align-items: center;
    background: #f2faf6;
    border-bottom: 1px solid #dcefe4;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px;
}

.zbot-lang-label {
    color: #5a6b62;
    font-size: 12px;
    font-weight: 700;
    margin-right: 2px;
}

.zbot-lang-btn {
    background: #fff;
    border: 1px solid #cbe9d7;
    border-radius: 999px;
    color: #46564d;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 11px;
}

.zbot-lang-btn.is-active {
    background: var(--zbot-accent);
    border-color: var(--zbot-accent);
    color: #fff;
}

/* Attach (screenshot) button */
.zbot-attach {
    align-items: center;
    background: #f2faf6;
    border: 1px solid #d4ecdf;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    font-size: 18px;
    justify-content: center;
    width: 44px;
}

.zbot-attach:hover {
    background: #dcf0e6;
}
