/* Scoped, minimal. No "card" wrapper — you can wrap in a YOOtheme card yourself. */
.yca-chat__header {
    font-size: 14px;
    font-weight: 600;
    color: rgba(0,0,0,.72);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.yca-chat__reset {
    background: transparent;
    border: none;
    color: rgba(0,0,0,.6);
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
}

.yca-chat__messages {
    height: auto;
    overflow-y: auto;
}

.yca-chat__message {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    align-items: flex-end;
}

.yca-chat__message--user {
    justify-content: flex-end;
}

.yca-chat__message--bot {
    justify-content: flex-start;
}

.yca-chat__meta {
    font-size: 12px;
    color: rgba(0,0,0,.55);
    margin-bottom: 4px;
}

.yca-chat__bubble {
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.yca-chat__bubble.user {
    background: rgba(0, 124, 186, 1);
    color: #fff;
    border-bottom-right-radius: 8px;
}

.yca-chat__bubble.bot {
    background: #fff;
    color: rgba(0,0,0,.82);
    border: 1px solid rgba(0,0,0,.08);
    border-bottom-left-radius: 8px;
}

.yca-chat__timestamp {
    font-size: 12px;
    color: rgba(0,0,0,.5);
    margin-top: 4px;
}

.yca-chat__status {
    text-align: center;
    font-size: 12px;
    color: rgba(0,0,0,.6);
    margin: 8px 0;
    padding: 6px 10px;
    background: rgba(0,0,0,.05);
    border-radius: 999px;
}

.yca-chat__options {
    margin: 10px 0;
}

.yca-chat__fieldset {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    padding: 10px;
    margin: 10px 0 0;
}

.yca-chat__legend {
    font-size: 12px;
    color: rgba(0,0,0,.6);
    padding: 0 6px;
}

.yca-chat__option {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

.yca-chat__option-submit {
    margin-top: 10px;
}

.yca-chat__bubble.loading {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    background: transparent;
    border: none;
    color: rgba(0,0,0,.55);
    text-align: center;
    font-style: italic;
}

.yca-chat__form,
.yca-chat__name {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
}

.yca-chat__input,
.yca-chat__name-input {
    flex: 1;
    min-width: 0;
    height: 42px;
    border-radius: 12px;
}

.yca-chat__send,
.yca-chat__name-submit {
    height: 42px;
    border-radius: 12px;
    white-space: nowrap;
}

.yca-chat__error {
    border-radius: 12px;
    font-size: 13px;
    margin-top: 10px;
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .yca-chat__messages { height: 260px; }
    .yca-chat__bubble { max-width: 85%; }
}
