/* Native in-frame Click2Flow visitor chat. */
#ht-ctc-chat .c2f-human-chat-hook,
#ht-ctc-chat .c2f-human-resume-hook {
    min-width: 0;
}

#ht-ctc-chat .c2f-human-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(0, 245, 255, 0.38);
    border-radius: 11px;
    background: linear-gradient(145deg, #07121a, #111425 62%, #151131);
    color: #dce4ef;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

#ht-ctc-chat .c2f-human-card h4 {
    margin: 0 !important;
    color: #fff !important;
    font: 800 15px/1.3 Inter, Arial, sans-serif !important;
}

#ht-ctc-chat .c2f-human-eyebrow {
    color: #70f6ff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.11em;
}

#ht-ctc-chat .c2f-human-copy,
#ht-ctc-chat .c2f-human-contact-note {
    margin: 0 !important;
    color: #bcc7d7 !important;
    font-size: 11px !important;
    line-height: 1.48 !important;
}

#ht-ctc-chat .c2f-human-lead-form,
#ht-ctc-chat .c2f-human-fields {
    display: grid;
    gap: 8px;
}

#ht-ctc-chat .c2f-human-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#ht-ctc-chat .c2f-human-field {
    display: grid;
    gap: 4px;
    min-width: 0;
    color: #d5deea;
    font-size: 10px;
    font-weight: 750;
}

#ht-ctc-chat .c2f-human-input,
#ht-ctc-chat .c2f-human-message-input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid #344057;
    border-radius: 8px;
    outline: 0;
    background: #05090f;
    color: #fff;
    font: 12px/1.4 Inter, Arial, sans-serif;
}

#ht-ctc-chat .c2f-human-input {
    min-height: 42px;
    padding: 8px 9px;
}

#ht-ctc-chat .c2f-human-input::placeholder,
#ht-ctc-chat .c2f-human-message-input::placeholder {
    color: #7f8a9d;
}

#ht-ctc-chat .c2f-human-input:focus,
#ht-ctc-chat .c2f-human-message-input:focus {
    border-color: #00f5ff;
    box-shadow: 0 0 0 2px rgba(0, 245, 255, 0.13);
}

#ht-ctc-chat .c2f-human-consent {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 7px;
    align-items: start;
    color: #aeb9c9;
    font-size: 9.5px;
    line-height: 1.45;
}

#ht-ctc-chat .c2f-human-consent input {
    width: 15px;
    height: 15px;
    margin: 1px 0 0;
    accent-color: #00e8f5;
}

#ht-ctc-chat .c2f-human-consent a {
    display: inline !important;
    min-height: 0 !important;
    padding: 0 !important;
    color: #70f6ff !important;
    text-decoration: underline !important;
}

#ht-ctc-chat .c2f-human-start,
#ht-ctc-chat .c2f-human-send {
    width: 100%;
    min-height: 45px;
    padding: 9px 11px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(110deg, #00e8f5, #6681ff 58%, #7c4dff);
    color: #061016;
    font: 850 12px/1.3 Inter, Arial, sans-serif;
    cursor: pointer;
}

#ht-ctc-chat .c2f-human-start:disabled,
#ht-ctc-chat .c2f-human-send:disabled {
    cursor: wait;
    opacity: 0.72;
}

#ht-ctc-chat .c2f-human-form-status,
#ht-ctc-chat .c2f-human-live-status {
    color: #93a0b4;
    font-size: 9.5px;
    line-height: 1.42;
}

#ht-ctc-chat .c2f-human-chat-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    align-items: start;
}

#ht-ctc-chat .c2f-human-status {
    max-width: 96px;
    padding: 4px 7px;
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 999px;
    background: rgba(0, 245, 255, 0.08);
    color: #bffbff;
    font-size: 8.5px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}

#ht-ctc-chat .c2f-human-messages {
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 190px;
    max-height: min(42vh, 320px);
    padding: 9px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #263147;
    border-radius: 9px;
    background: rgba(2, 6, 12, 0.72);
    scrollbar-gutter: stable;
}

#ht-ctc-chat .c2f-human-message {
    display: grid;
    gap: 3px;
    max-width: 90%;
    padding: 8px 9px;
    border: 1px solid #273145;
    border-radius: 10px;
    background: #121722;
}

#ht-ctc-chat .c2f-human-message-visitor {
    justify-self: end;
    border-color: rgba(107, 130, 255, 0.45);
    background: rgba(83, 101, 217, 0.2);
}

#ht-ctc-chat .c2f-human-message-staff {
    justify-self: start;
    border-color: rgba(0, 245, 255, 0.38);
    background: rgba(0, 212, 224, 0.1);
}

#ht-ctc-chat .c2f-human-message-system {
    justify-self: stretch;
    max-width: none;
    border-style: dashed;
    background: rgba(255, 255, 255, 0.03);
}

#ht-ctc-chat .c2f-human-message-label {
    color: #70f6ff;
    font-size: 8.5px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#ht-ctc-chat .c2f-human-message-text {
    color: #e7ecf3;
    font-size: 12px;
    line-height: 1.48;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

#ht-ctc-chat .c2f-human-message-form {
    display: grid;
    gap: 7px;
}

#ht-ctc-chat .c2f-human-message-input {
    min-height: 60px;
    max-height: 128px;
    padding: 9px 10px;
    resize: vertical;
}

#ht-ctc-chat .c2f-human-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

#ht-ctc-chat .c2f-human-voice,
#ht-ctc-chat .c2f-human-close {
    min-height: 40px;
    padding: 8px 9px;
    border: 1px solid #364258;
    border-radius: 8px;
    background: #0b111a;
    color: #d9e2ed;
    font: 750 10.5px/1.3 Inter, Arial, sans-serif;
    cursor: pointer;
}

#ht-ctc-chat .c2f-human-voice {
    border-color: rgba(0, 245, 255, 0.38);
    color: #aefbff;
}

#ht-ctc-chat .c2f-human-close:hover,
#ht-ctc-chat .c2f-human-voice:hover {
    border-color: #00e8f5;
    background: #141b28;
}

@media (max-width: 420px) {
    #ht-ctc-chat .c2f-human-fields {
        grid-template-columns: 1fr;
    }

    #ht-ctc-chat .c2f-human-card {
        padding: 10px;
    }

    #ht-ctc-chat .c2f-human-messages {
        min-height: 170px;
        max-height: min(36vh, 270px);
    }
}

@media (prefers-reduced-motion: reduce) {
    #ht-ctc-chat .c2f-human-card,
    #ht-ctc-chat .c2f-human-message {
        scroll-behavior: auto;
    }
}
