.hr-ai-chat {
    max-width: 100%;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.5;
    box-sizing: border-box;
}

.hr-ai-chat *,
.hr-ai-chat *::before,
.hr-ai-chat *::after {
    box-sizing: inherit;
}

.hr-ai-chat__window {
    height: 380px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hr-ai-chat__placeholder {
    color: #6b7280;
    text-align: center;
    padding: 24px 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.hr-ai-chat__placeholder p {
    color: rgb(18, 18, 18);
    display: block;
    font-family: "Zalando Sans Expanded";
    font-size: 56px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
}

.hr-ai-chat__placeholder.is-hidden {
    display: none;
}

.hr-ai-chat__messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hr-ai-chat__message-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.hr-ai-chat__message-row--user {
    flex-direction: row-reverse;
}

.hr-ai-chat__assistant-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    align-self: flex-end;
    margin-top: 4px;
    background-image: url('img/icon.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.hr-ai-chat__message {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    max-width: calc(85% - 42px - 8px);
    font-family: 'Inter';
    font-weight: 400;
    font-size: 18px;
    line-height: 140%;
    padding: 16px;
    border-radius: 14px;
    color: #121826;
}

.hr-ai-chat__message-text {
    text-align: left;
}

.hr-ai-chat__message-time {
    font-size: 0.75em;
    line-height: 1;
    color: inherit;
    opacity: 0.55;
    align-self: flex-end;
}

.hr-ai-chat__message--user {
    align-self: flex-end;
    align-items: flex-end;
    background: #DDD6FF;
}

.hr-ai-chat__message--assistant {
    align-self: flex-start;
    background: #F8F6FF;
}

.hr-ai-chat__message--error {
    align-self: flex-start;
}

.hr-ai-chat__message--assistant .hr-ai-chat__message-text p {
    margin: 0 0 10px;
}

.hr-ai-chat__message--assistant .hr-ai-chat__message-text p:last-child {
    margin-bottom: 0;
}

.hr-ai-chat__message--assistant .hr-ai-chat__message-text ul,
.hr-ai-chat__message--assistant .hr-ai-chat__message-text ol {
    margin: 6px 0 6px 20px;
    padding: 0;
}

.hr-ai-chat__message--assistant .hr-ai-chat__message-text li {
    margin-bottom: 4px;
}

.hr-ai-chat__message--assistant .hr-ai-chat__message-text a {
    color: inherit;
    text-decoration: underline;
}

.hr-ai-chat__message--assistant .hr-ai-chat__message-text a:hover {
    opacity: 0.75;
}

.hr-ai-chat__message--assistant .hr-ai-chat__message-text code {
    font-family: monospace;
    font-size: 0.9em;
    background: rgba(0, 0, 0, 0.06);
    padding: 1px 4px;
    border-radius: 4px;
}

.hr-ai-chat__message--assistant .hr-ai-chat__message-text pre {
    background: rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    padding: 10px 12px;
    overflow-x: auto;
    margin: 8px 0;
}

.hr-ai-chat__message--assistant .hr-ai-chat__message-text pre code {
    background: none;
    padding: 0;
    font-size: 0.88em;
}

.hr-ai-chat__message--assistant .hr-ai-chat__message-text blockquote {
    margin: 8px 0;
    padding-left: 12px;
    border-left: 3px solid rgba(0, 0, 0, 0.2);
    opacity: 0.8;
}

.hr-ai-chat__message--assistant .hr-ai-chat__message-text h1,
.hr-ai-chat__message--assistant .hr-ai-chat__message-text h2,
.hr-ai-chat__message--assistant .hr-ai-chat__message-text h3,
.hr-ai-chat__message--assistant .hr-ai-chat__message-text h4,
.hr-ai-chat__message--assistant .hr-ai-chat__message-text h5,
.hr-ai-chat__message--assistant .hr-ai-chat__message-text h6 {
    margin: 10px 0 4px;
    font-weight: 700;
    line-height: 1.3;
}

.hr-ai-chat__message--assistant .hr-ai-chat__message-text h1:first-child,
.hr-ai-chat__message--assistant .hr-ai-chat__message-text h2:first-child,
.hr-ai-chat__message--assistant .hr-ai-chat__message-text h3:first-child {
    margin-top: 0;
}

.hr-ai-chat__message--loading .hr-ai-chat__message-text::after {
    content: '\2026';
    display: inline-block;
    animation: hr-ai-chat-loading-dots 1.2s steps(4, end) infinite;
    overflow: hidden;
    vertical-align: bottom;
    width: 0;
}

@keyframes hr-ai-chat-loading-dots {
    0%   { width: 0; }
    100% { width: 1.2em; }
}

.hr-ai-chat__limit-cta {
    align-self: stretch;
    margin-top: 4px;
    padding: 12px 13px;
    border-radius: 16px;
    background-color: #7C3EFF;
    border: 1px solid #bfdbfe;
    background-image: url('img/crown.svg');
    background-size: 30px;
    background-repeat: no-repeat;
    background-position: left 13px center;
}

.hr-ai-chat__limit-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
}

.hr-ai-chat__limit-cta-text {
    font-weight: 700;
    font-size: 19px;
    line-height: 140%;
    padding-left: 38px;
    color: #fff;
}

.hr-ai-chat__limit-cta-button {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    line-height: 120%;
    border-radius: 16px;
    flex-shrink: 0;
}

.hr-ai-chat__input-form {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    position: relative;
}

.hr-ai-chat__input {
    flex: 1 1 auto;
    border-radius: 999px;
    font-weight: 400;
    font-size: 20px !important;
    line-height: 150% !important;
    padding: 15px 24px !important;
    border: 2px solid #7C3EFF !important;
    transition: 0.25s all linear;
    background:#fff !important;
}

.hr-ai-chat__input:focus {
    box-shadow: 0px 0px 0px 4px #D8C5FF !important;
}

.hr-ai-chat__input:disabled {
    background: #f3f4f6;
    cursor: not-allowed;
}

.hr-ai-chat__submit {
    flex: 0 0 auto;
    border: none;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    position: absolute !important;
    padding: 0 !important;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}

.hr-ai-chat__submit:hover:not(:disabled),
.hr-ai-chat__submit:focus:not(:disabled) {
    background: #1d4ed8;
}

.hr-ai-chat__submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.hr-ai-chat__suggestions {
    margin-top: 12px;
    overflow: visible;
}

.hr-ai-chat__suggestions-slider {
}

.hr-ai-chat__suggestions-slider .slick-slide {
    padding-right: 8px;
}

.hr-ai-chat__suggestion {
    display: flex;
    align-items: flex-start;
    width: 100%;
    min-height: 68px;
    max-height: 68px;
    padding: 10px 12px;
    border: none;
    border-radius: 12px;
    background: #7C3EFF;
    color: #ffffff;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    cursor: pointer;
    text-align: left;
    overflow: hidden;
    transition: background-color 0.15s ease;
}

.hr-ai-chat__suggestion:hover:not(:disabled),
.hr-ai-chat__suggestion:focus:not(:disabled) {
    background: #d4cafe;
}

.hr-ai-chat__suggestion:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hr-ai-chat__suggestion-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.slick-slide:not(.slick-active) {
    opacity: 0.5;
}

@media (max-width: 991px) {
.hr-ai-chat__placeholder p {
font-size: 32px;
}
    .hr-ai-chat {
        font-size: 14px;
    }

    .hr-ai-chat__window {
        padding: 12px;
        min-height: 180px;
        height: 320px;
    }

    .hr-ai-chat__message {
        max-width: calc(100% - 42px - 8px);
    }

    .hr-ai-chat__message-row--user .hr-ai-chat__message {
        max-width: 100%;
    }

    .hr-ai-chat__limit-cta {
        padding: 12px;
        background-image: none;
    }
    .hr-ai-chat__limit-cta-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .hr-ai-chat__limit-cta-text {
        padding-left: 0;
    }
    .hr-ai-chat__input {
        padding-right: 56px !important;
        font-size: 16px !important;
    }
}