/* CKS Help Center — frontend */

.page-template-cks-help-center-template .button__post,
.page-template-cks-help-center-template .cks-nav-ephemeral {
    display: none !important;
}

body.cks-hc-page {
    background: var(--white, #fff);
}

.cks-hc {
    --cks-hc-red: var(--radical, #d83d32);
    --cks-hc-purple: var(--purple, #5b00f5);
    --cks-hc-white: var(--white, #fff);
    --cks-hc-black: var(--black, #171b23);
    color: var(--cks-hc-black);
    background: var(--cks-hc-white);
    width: 100%;
    min-height: min(850px, calc(100vh - 80px));
    box-sizing: border-box;
    padding: clamp(28px, 6vh, 72px) 20px 24px;
    font-family: inherit;
}

.cks-hc *,
.cks-hc *::before,
.cks-hc *::after {
    box-sizing: border-box;
}

.cks-hc-shell {
    width: 100%;
    max-width: 660px;
    margin: 0 auto;
}

.cks-hc-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin: 0 auto 34px;
}

.cks-hc-avatar,
.cks-hc-message-avatar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--cks-hc-purple);
    color: #fff;
}

.cks-hc-avatar {
    width: 52px;
    height: 52px;
    font-size: 22px;
}

.cks-hc-avatar-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cks-hc-avatar-placeholder {
    font-weight: 750;
}

.cks-hc-identity {
    text-align: left;
}

.cks-hc-name {
    color: var(--cks-hc-black);
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    font-family: var(--font-outfit);
}

.cks-hc-description {
    color: var(--Gris);
    font-size: 12px;
}

.cks-hc-online {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #687080;
    font-size: 11px;
    margin-top: 4px;
}

.cks-hc-online span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #21b66f;
    display: inline-block;
}

.cks-hc-conversation {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 90px;
}

.cks-hc-message {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    max-width: 100%;
    animation: cks-hc-in .24s ease both;
}

.cks-hc-assistant-message {
    justify-content: flex-start;
}

.cks-hc-user-message {
    justify-content: flex-end;
}

.cks-hc-message-avatar {
    width: 30px;
    height: 30px;
    margin-bottom: 2px;
}

.cks-hc-bubble {
    max-width: min(520px, calc(100% - 42px));
    padding: 15px 18px;
    border-radius: 15px 15px 15px 3px;
    background: #f3f4f7;
    color: var(--cks-hc-black);
    font-size: 15px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.cks-hc-bubble p {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.55;
}

.cks-hc-bubble p:last-child {
    margin-bottom: 0;
}

.cks-hc-bubble a:not(.cks-hc-action-button) {
    color: var(--cks-hc-red);
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.cks-hc-user-message .cks-hc-bubble {
    color: var(--white);
    background: var(--NeonBlue);
    border-radius: 15px 15px 3px 15px;
}

.cks-hc-options-wrap {
    margin: 32px 0 0 40px;
}

.cks-hc-options-label {
    color: var(--black);
    font-size: 14px;
    margin: 0 0 12px 3px;
}

.cks-hc-options {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
}

.cks-hc-option {
    appearance: none;
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-radius: 50px;
    padding: 12px 16px;
    background: var(--ShuttleGrey);
    color: var(--white);
    font: inherit;
    font-weight: inherit;
    font-size: inherit;
    font-size: 14px;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.cks-hc-option:hover {
    border-color: var(--cks-hc-red);
}

.cks-hc-option.is-selected {
    background: var(--ship);
    color: var(--white);
}

.cks-hc-option-arrow {
    color: var(--white);
    font-size: 23px;
    line-height: 15px;
    font-weight: 400;
}

.cks-hc-whatsapp-option {
    border-style: dashed;
    margin-top: 5px;
    background: #25d366;
}

.cks-hc-whatsapp-panel {
    margin: 20px 0 0 40px;
}

.cks-hc-whatsapp-panel[hidden] {
    display: none !important;
}

.cks-hc-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding: 11px 18px;
    border-radius: 6px;
    background: var(--radical);
    color: #fff !important;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none !important;
}

.cks-hc-action-button:hover {
    color: #fff !important;
    opacity: .92;
}

@keyframes cks-hc-in {
    from {
        opacity: 0;
        transform: translateY(7px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media(max-width:600px) {
    .cks-hc {
        min-height: calc(100vh - 60px);
        padding: 34px 16px 22px;
    }

    .cks-hc-header {
        margin-bottom: 28px;
    }

    .cks-hc-options-wrap,
    .cks-hc-whatsapp-panel {
        margin-left: 0;
    }

    .cks-hc-bubble {
        font-size: 14px;
        padding: 13px 15px;
    }
}

@media(prefers-reduced-motion:reduce) {

    .cks-hc *,
    .cks-hc *::before,
    .cks-hc *::after {
        animation: none !important;
        transition: none !important;
    }
}


/* Keep optional action buttons below the assistant's answer bubble */
.cks-hc-message-content {
    display: flex;
    flex: 0 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    min-width: 0;
    max-width: 100%;
}

.cks-hc-message-content .cks-hc-bubble {
    width: fit-content;
    max-width: min(520px, 100%);
}

.cks-hc-message-content .cks-hc-action-button {
    align-self: flex-start;
    margin: 12px 0 0;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 6px;
}