/* Click2Flow AI WhatsApp Assistant */
#ht-ctc-chat .c2f-ai-live {
    color: #cbd1dc;
    font: 14px/1.5 Inter, Arial, sans-serif;
}

#ht-ctc-chat .c2f-ai-live-intro {
    margin: 0 0 11px;
    padding: 13px;
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 12px;
    background:
        linear-gradient(145deg, rgba(0, 245, 255, 0.12), rgba(102, 129, 255, 0.09) 58%, rgba(124, 77, 255, 0.13));
}

#ht-ctc-chat .c2f-ai-live-eyebrow {
    color: #7ff8ff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

#ht-ctc-chat .c2f-ai-live-intro h3 {
    margin: 6px 0 5px !important;
    color: #fff !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
}

#ht-ctc-chat .c2f-ai-live-intro p {
    margin: 0 !important;
    color: #cbd1dc !important;
    font-size: 13px !important;
    line-height: 1.48 !important;
}

#ht-ctc-chat .c2f-ai-human-entry {
    display: grid;
    gap: 8px;
    margin: 0 0 10px;
    padding: 10px;
    border: 1px solid rgba(0, 245, 255, 0.32);
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(102, 129, 255, 0.08));
}

#ht-ctc-chat .c2f-ai-human-entry-title {
    color: #fff;
    font-size: 12.5px;
    font-weight: 850;
    line-height: 1.3;
}

#ht-ctc-chat .c2f-ai-human-entry-text {
    margin-top: 2px;
    color: #bfc9d8;
    font-size: 10.5px;
    line-height: 1.4;
}

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

#ht-ctc-chat .c2f-ai-human-entry-button {
    min-height: 42px;
    padding: 8px 9px;
    border: 1px solid #3a4964;
    border-radius: 8px;
    background: #101725;
    color: #e7faff;
    font: 800 10.5px/1.3 Inter, Arial, sans-serif;
    cursor: pointer;
}

#ht-ctc-chat .c2f-ai-human-entry-shane {
    border: 0;
    background: linear-gradient(110deg, #00e8f5, #6681ff 58%, #7c4dff);
    color: #061016;
}

#ht-ctc-chat .c2f-ai-human-entry-hook[hidden] {
    display: none;
}

#ht-ctc-chat .c2f-ai-human-entry-hook:not([hidden]) {
    margin-top: 2px;
}

#ht-ctc-chat .c2f-ai-voice-promo {
    display: grid;
    gap: 7px;
    margin: 0 0 10px;
    padding: 10px;
    border: 1px solid rgba(0, 245, 255, 0.28);
    border-radius: 11px;
    background: #0b111b;
}

#ht-ctc-chat .c2f-ai-voice-promo.is-active {
    border-color: rgba(0, 245, 255, 0.52);
    box-shadow: 0 0 0 2px rgba(0, 245, 255, 0.08);
}

#ht-ctc-chat .c2f-ai-voice-promo.has-started .c2f-ai-voice-heading,
#ht-ctc-chat .c2f-ai-voice-promo.has-started .c2f-ai-voice-copy {
    display: none;
}

#ht-ctc-chat .c2f-ai-voice-heading {
    display: flex;
    align-items: center;
    gap: 7px;
}

#ht-ctc-chat .c2f-ai-voice-badge {
    flex: 0 0 auto;
    padding: 3px 6px;
    border-radius: 999px;
    background: #70f6ff;
    color: #061016;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

#ht-ctc-chat .c2f-ai-voice-title {
    color: #fff;
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.3;
}

#ht-ctc-chat .c2f-ai-voice-copy {
    color: #b8c2d2;
    font-size: 10.5px;
    line-height: 1.4;
}

#ht-ctc-chat .c2f-ai-voice-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    align-items: stretch;
}

#ht-ctc-chat .c2f-ai-voice-button,
#ht-ctc-chat .c2f-ai-voice-finish,
#ht-ctc-chat .c2f-ai-voice-end {
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 8px;
    font: 800 11px/1.25 Inter, Arial, sans-serif;
    cursor: pointer;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto !important;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
}

#ht-ctc-chat .c2f-ai-voice-button {
    grid-column: 1 / -1;
    border: 0;
    background: linear-gradient(110deg, #00e8f5, #6681ff 58%, #7c4dff);
    color: #061016;
}

#ht-ctc-chat .c2f-ai-voice-finish {
    border: 1px solid rgba(112, 246, 255, 0.62);
    background: rgba(0, 245, 255, 0.12);
    color: #dffcff;
}

#ht-ctc-chat .c2f-ai-voice-end {
    border: 1px solid #334058;
    background: #111722;
    color: #dce3ef;
}

#ht-ctc-chat .c2f-ai-voice-finish[hidden],
#ht-ctc-chat .c2f-ai-voice-end[hidden] {
    display: none;
}

#ht-ctc-chat .c2f-ai-voice-button:disabled,
#ht-ctc-chat .c2f-ai-voice-finish:disabled {
    cursor: wait;
    opacity: 0.72;
}

#ht-ctc-chat .c2f-ai-voice-promo.is-listening .c2f-ai-voice-button {
    box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.15), 0 0 18px rgba(0, 245, 255, 0.2);
    animation: c2f-ai-voice-pulse 1.4s infinite ease-in-out;
}

#ht-ctc-chat .c2f-ai-voice-status {
    color: #8f9bad;
    font-size: 9.5px;
    line-height: 1.4;
}

#ht-ctc-chat .c2f-ai-voice-metrics {
    width: fit-content;
    padding: 4px 7px;
    border: 1px solid rgba(112, 246, 255, 0.2);
    border-radius: 999px;
    background: rgba(0, 245, 255, 0.06);
    color: #9eeff4;
    font: 750 8.5px/1.3 Inter, Arial, sans-serif;
    letter-spacing: 0.02em;
}

#ht-ctc-chat .c2f-ai-voice-metrics[hidden] {
    display: none;
}

@keyframes c2f-ai-voice-pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.985);
    }
}

#ht-ctc-chat .c2f-ai-messages {
    display: grid;
    gap: 9px;
    max-height: 300px;
    padding: 2px 2px 7px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

#ht-ctc-chat .c2f-ai-message {
    max-width: 92%;
    padding: 9px 10px;
    border: 1px solid #222a39;
    border-radius: 11px;
}

#ht-ctc-chat .c2f-ai-message-assistant {
    justify-self: start;
    background: #11151e;
}

#ht-ctc-chat .c2f-ai-message-user {
    justify-self: end;
    border-color: rgba(0, 245, 255, 0.25);
    background: rgba(0, 245, 255, 0.1);
}

#ht-ctc-chat .c2f-ai-realtime-pending {
    opacity: 0.72;
}

#ht-ctc-chat .c2f-ai-message-label {
    margin-bottom: 3px;
    color: #70f6ff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

#ht-ctc-chat .c2f-ai-message-user .c2f-ai-message-label {
    color: #b8c6ff;
}

#ht-ctc-chat .c2f-ai-message-text {
    color: #e2e6ee;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

#ht-ctc-chat .c2f-ai-starters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin: 7px 0 9px;
}

#ht-ctc-chat .c2f-ai-starters-title {
    grid-column: 1 / -1;
    color: #70f6ff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

#ht-ctc-chat .c2f-ai-starter,
#ht-ctc-chat .c2f-ai-followup,
#ht-ctc-chat .c2f-ai-fallback-toggle {
    min-height: 44px;
    padding: 8px 9px;
    border: 1px solid #273246;
    border-radius: 8px;
    background: #0b1018;
    color: #dffcff;
    font: 650 12px/1.35 Inter, Arial, sans-serif;
    text-align: left;
    cursor: pointer;
}

#ht-ctc-chat .c2f-ai-starter {
    min-height: 36px !important;
    padding: 7px 8px !important;
    border: 1px solid #273246 !important;
    border-radius: 8px !important;
    background: #0b1018 !important;
    color: #dffcff !important;
    font: 650 11px/1.3 Inter, Arial, sans-serif !important;
    text-align: left !important;
}

#ht-ctc-chat .c2f-ai-starter:hover,
#ht-ctc-chat .c2f-ai-followup:hover,
#ht-ctc-chat .c2f-ai-fallback-toggle:hover {
    border-color: rgba(0, 245, 255, 0.48);
    background: #151c28;
    color: #fff;
}

#ht-ctc-chat .c2f-ai-starter:hover {
    border-color: rgba(0, 245, 255, 0.48) !important;
    background: #151c28 !important;
    color: #fff !important;
}

#ht-ctc-chat .c2f-ai-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    margin-top: 9px;
}

#ht-ctc-chat .c2f-ai-input {
    width: 100%;
    min-height: 52px;
    max-height: 118px;
    box-sizing: border-box;
    resize: vertical;
    padding: 9px 10px;
    border: 1px solid #303a4e;
    border-radius: 9px;
    outline: 0;
    background: #070a10;
    color: #fff;
    font: 13px/1.4 Inter, Arial, sans-serif;
}

#ht-ctc-chat .c2f-ai-input::placeholder {
    color: #8791a4;
}

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

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

#ht-ctc-chat .c2f-ai-send:disabled {
    cursor: wait;
    filter: grayscale(0.25);
    opacity: 0.75;
}

#ht-ctc-chat .c2f-ai-helper {
    margin: 7px 2px 0;
    color: #8993a5;
    font-size: 10.5px;
    line-height: 1.4;
}

#ht-ctc-chat .c2f-ai-helper a {
    color: #70f6ff !important;
}

#ht-ctc-chat .c2f-ai-cta {
    display: grid;
    gap: 7px;
    margin: 4px 0;
    padding: 10px;
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 10px;
    background: #111722;
}

#ht-ctc-chat .c2f-ai-cta-title,
#ht-ctc-chat .c2f-ai-followups-title {
    color: #70f6ff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

#ht-ctc-chat .c2f-ai-cta a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 9px 10px;
    border-radius: 8px;
    text-decoration: none !important;
}

#ht-ctc-chat .c2f-ai-service-link {
    border: 1px solid #29354a;
    background: #090d14;
    color: #7ff8ff !important;
    font-size: 12.5px;
    font-weight: 700;
}

#ht-ctc-chat .c2f-ai-whatsapp-fallback {
    display: grid;
    gap: 7px;
    border: 1px dashed #344058;
    border-radius: 8px;
    background: #090d14;
}

#ht-ctc-chat .c2f-ai-whatsapp-fallback summary {
    padding: 10px;
    color: #b8c3d4;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.35;
    cursor: pointer;
}

#ht-ctc-chat .c2f-ai-whatsapp-fallback[open] {
    padding: 0 8px 8px;
}

#ht-ctc-chat .c2f-ai-whatsapp-fallback[open] summary {
    margin: 0 -8px;
    border-bottom: 1px solid #29354a;
}

#ht-ctc-chat .c2f-ai-lead-details {
    display: grid;
    gap: 6px;
    padding: 9px;
    border: 1px solid #29354a;
    border-radius: 8px;
    background: #090d14;
}

#ht-ctc-chat .c2f-ai-lead-details-title {
    color: #e8fbff;
    font-size: 11.5px;
    font-weight: 800;
}

#ht-ctc-chat .c2f-ai-lead-details-copy {
    color: #9ea9bb;
    font-size: 10.5px;
    line-height: 1.4;
}

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

#ht-ctc-chat .c2f-ai-lead-field {
    display: grid;
    gap: 4px;
    min-width: 0;
    color: #cbd1dc;
    font-size: 10px;
    font-weight: 700;
}

#ht-ctc-chat .c2f-ai-lead-input {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    box-sizing: border-box;
    padding: 8px 9px;
    border: 1px solid #303a4e;
    border-radius: 7px;
    outline: 0;
    background: #070a10;
    color: #fff;
    font: 12px/1.35 Inter, Arial, sans-serif;
}

#ht-ctc-chat .c2f-ai-lead-input::placeholder {
    color: #758094;
}

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

#ht-ctc-chat .c2f-ai-whatsapp-link {
    justify-content: center;
    background: linear-gradient(110deg, #00e8f5, #6681ff 58%, #7c4dff);
    color: #061016 !important;
    font-size: 12.5px;
    font-weight: 800;
    text-align: center;
}

#ht-ctc-chat .c2f-ai-whatsapp-note {
    color: #9ea9bb;
    font-size: 10.5px;
    line-height: 1.45;
    text-align: center;
}

#ht-ctc-chat .c2f-ai-followups {
    display: grid;
    gap: 6px;
    margin: 4px 0 2px;
}

#ht-ctc-chat .c2f-ai-followup {
    min-height: 40px;
}

#ht-ctc-chat .c2f-ai-fallback-toggle {
    width: 100%;
    margin-top: 10px;
    border-style: dashed;
    color: #aeb8c9;
    text-align: center;
}

#ht-ctc-chat .c2f-wa-assistant.c2f-ai-active > .c2f-wa-assistant-intro,
#ht-ctc-chat .c2f-wa-assistant.c2f-ai-active > .c2f-wa-question,
#ht-ctc-chat .c2f-wa-assistant.c2f-ai-active > .c2f-wa-paths,
#ht-ctc-chat .c2f-wa-assistant.c2f-ai-active > .c2f-wa-faq,
#ht-ctc-chat .c2f-wa-assistant.c2f-ai-active > .c2f-wa-resources {
    display: none;
}

#ht-ctc-chat .c2f-wa-assistant.c2f-ai-active.c2f-ai-fallback-open > .c2f-ai-live > :not(.c2f-ai-fallback-toggle),
#ht-ctc-chat .c2f-wa-assistant.c2f-ai-active.c2f-ai-fallback-open > .c2f-wa-assistant-intro {
    display: none;
}

#ht-ctc-chat .c2f-wa-assistant.c2f-ai-active.c2f-ai-fallback-open > .c2f-wa-question,
#ht-ctc-chat .c2f-wa-assistant.c2f-ai-active.c2f-ai-fallback-open > .c2f-wa-paths,
#ht-ctc-chat .c2f-wa-assistant.c2f-ai-active.c2f-ai-fallback-open > .c2f-wa-faq,
#ht-ctc-chat .c2f-wa-assistant.c2f-ai-active.c2f-ai-fallback-open > .c2f-wa-resources {
    display: block;
}

#ht-ctc-chat .c2f-ai-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

#ht-ctc-chat .c2f-ai-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 34px;
}

#ht-ctc-chat .c2f-ai-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #70f6ff;
    animation: c2f-ai-pulse 1s infinite ease-in-out;
}

#ht-ctc-chat .c2f-ai-typing span:nth-child(2) {
    animation-delay: 0.15s;
}

#ht-ctc-chat .c2f-ai-typing span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes c2f-ai-pulse {
    0%,
    80%,
    100% {
        opacity: 0.35;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

#ht-ctc-chat .c2f-ai-live button:focus-visible,
#ht-ctc-chat .c2f-ai-live a:focus-visible,
#ht-ctc-chat .c2f-ai-live textarea:focus-visible,
#ht-ctc-chat .c2f-ai-live input:focus-visible {
    outline: 2px solid #00f5ff !important;
    outline-offset: 2px !important;
}

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

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

    #ht-ctc-chat .c2f-ai-lead-fields {
        grid-template-columns: 1fr;
    }

    #ht-ctc-chat .c2f-ai-send {
        min-height: 46px;
    }

    #ht-ctc-chat .c2f-ai-messages {
        max-height: 280px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #ht-ctc-chat .c2f-ai-voice-promo.is-listening .c2f-ai-voice-button,
    #ht-ctc-chat .c2f-ai-typing span {
        animation: none;
    }
}
