/* === Base === */
*, *::before, *::after { box-sizing: border-box; }

.ccc {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 2147483647;
    font-family: system-ui, Arial, sans-serif;
}

#ccc-open { display: inline-block; }

/* === Window === */
.ccc-win {
    width: 360px;
    max-width: 92vw;
    height: 520px;
    max-height: 70vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
    display: none;
    overflow: hidden;

    display: flex;
    flex-direction: column;
}

.ccc-head {
    padding: 12px 14px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0e9eee;
    color: #fff;
}

.ccc-body {
    flex: 1;
    overflow: auto;
    background: #fafafa;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
}

/* === Message bubble === */
.ccc-msg {
    display: flex;
    flex-direction: column;
    max-width: 88%;
    margin: 6px 0;
    padding: 10px 12px;
    border-radius: 12px;
    line-height: 1.35;
    font-size: 14px;
    background: #f5f5f5;
    color: #222;
    clear: both; /* на всякий случай, если где-то встречался float */
}

.ccc-msg span{
    overflow: auto;
}

.ccc-msg.assistant {
    align-self: flex-start;
    background: rgba(241,241,241,.9);
    color: #222;
}

.ccc-msg.user {
    align-self: flex-end;
    background: #0e9eee;
    color: #fff;
}

/* контролируемый вертикальный ритм внутри сообщения */
.ccc-msg > * { margin: 0 !important; }
.ccc-msg > * + * { margin-top: 8px !important; }

/* time label */
.ccc-time {
    align-self: flex-end;
    font-size: .75rem;
    color: #777;
    margin-top: 2px;
}
.ccc-msg.user .ccc-time { color: #d1e7ff; }

/* === Input === */
.ccc-input {
    border-top: 1px solid #eee;
    padding: 8px;
    display: flex;
    gap: 8px;
    background: #fff;
}
.ccc-input input {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
}
.ccc-input button {
    padding: 10px 14px;
    border-radius: 10px;
    border: 0;
    background: #0e9eee;
    color: #fff;
    cursor: pointer;
}

/* === Buttons (links) === */
.ccc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #007bff;
    color: #fff !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border: 0;
    box-shadow: none;
    white-space: normal;
    transition: background .2s ease;
}
.ccc-btn:hover { background: #0056b3; }

/* Кнопка-инициатор (если используешь) */
.ccc > .ccc-btn {
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
    background: #0e9eee;
}

/* === Boats (если выводятся) === */
.ccc-boats__list { width: 100%; }
.ccc-boat { max-width: 100%; }
.ccc-boat__img { max-width: 100%; height: auto; display: block; }

/* === Specials block (offers) === */
.ccc-specials { margin: 0 !important; padding: 0 !important; }

.ccc-specials-list {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ccc-special-item {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.ccc-special-title {
    font-weight: 600;
    font-size: 15px;
    margin: 0 0 4px;
}

.ccc-special-desc {
    color: #444;
    line-height: 1.35;
    margin: 0 0 6px;
}

.ccc-special-details {
    list-style: disc;
    margin: 0;
    padding: 0 0 0 16px;
    color: #555;
    font-size: 13px;
    line-height: 1.35;
}
.ccc-special-details li { margin: 2px 0; }

.ccc-specials-footer {
    margin-top: 8px;
}
.ccc-btn-all {
    margin: 10px auto 0;
}

/* === Responsive === */
@media (max-width: 420px) {
    .ccc-msg { max-width: 92%; }
}
.ccc-special-details a{
    color: #0a73bb;
    font-weight: bold;
}

/* === Gallery preview === */
.ccc-gallery { display: flex; flex-direction: column; gap: 8px; }
.ccc-gallery-title { font-weight: 600; margin-bottom: 4px; font-size: 15px; }
.ccc-gallery-images {
    display: grid;
    gap: 6px;
}
.ccc-gallery-images img {
    width: 100%;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.2s ease;
}
.ccc-gallery-images img:hover {
    transform: scale(1.03);
}

.ccc-card{
    border: 1px solid #cccccc6e;
    border-radius: 5px;
    padding: 10px;
    margin: 10px 0;
}
.ccc-card-img img{
    width: 100%;
    margin-bottom: 10px;
}
.ccc-card-desc{
    margin-bottom: 10px;
}
.ccc-card-title{
    font-weight: 600;
    margin-bottom: 5px;
}
.ccc-card .ccc-card-desc{
    font-size: 12px;
}
.ccc-card-boats{
    font-size: 12px;
    margin: 10px 0;
}