.click-counter-settings {
    font-family: Arial, sans-serif;
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
}

.click-counter-settings h1,
.click-counter-settings h2 {
    color: #333;
    margin-bottom: 10px;
}

.click-counter-list {
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
}

.click-counter-list li {
    padding: 10px;
    margin: 5px 0;
    background-color: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.click-counter-list li:hover {
    background-color: #f0f0f0;
}

.element-name {
    font-weight: bold;
    color: #007cba;
    flex: 1;
    max-width: 20%;
}

.click-count {
    margin-left: 10px;
    color: #555;
}

.button-group {
    display: flex;
    gap: 5px;
}

.delete-button {
    background-color: #007cba;
    color: #fff;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s;
    font-size: 14px;
}

.delete-button:hover {
    background-color: #005a8c;
}

.add-element-form {
    display: flex;
    margin: 20px 0;
    gap: 10px;
}

.add-element-form input[type="text"],
.add-element-form select {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.add-element-form input[type="submit"] {
    flex: 0;
}


/* Cait Block Styles */

.cait-block {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 926px;
    margin: auto;
    display: none;
    margin-bottom: 50px;
}

.cait-block .header p {
    font-size: 12px;
    font-family: Metropolis;
    font-weight: 600;
    line-height: 18.2px;
    color: #000000;
}

.cait-block .header p.title {
    font-family: Metropolis;
    font-size: 26px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    /* 31.2px */
    background: linear-gradient(90deg, #37B2F7 0%, #7FC144 88.37%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
}

.cait-block .header p.subtitle {
    display: flex;
    width: 666px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    color: #000;
    font-family: Metropolis;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    /* 24px */
}

.cait-block .chat {
    display: inline-flex;
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 12px;
    background-image: url(../images/background-chat.svg);

  

    width: 883px;
    position: relative;
    display: inline-block;
    padding: 20px;
    margin-top: 10px;



}

.cait-block .chat::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0px;
    padding: 1px;
    border-radius: 12px;
    background: linear-gradient(274.23deg, #34B1F7 -0.94%, rgba(127, 193, 68, 0.3) 102.66%);
    mask: linear-gradient(rgb(255, 255, 255) 0px, rgb(255, 255, 255) 0px) content-box exclude, linear-gradient(rgb(255, 255, 255) 0px, rgb(255, 255, 255) 0px);
}





.cait-block .chat .header {
    display: flex;
    align-items: flex-start;
}

.cait-block .chat .header .icon {
    width: 40px;
}

.cait-block .chat .header .content {
    padding-top: 8px;
}

.cait-block .chat .title {
    font-family: Metropolis;
    font-size: 18px;
    line-height: 19px;
    vertical-align: middle;
    font-weight: 700;
    margin-bottom: 10px;
}

.cait-block .chat .subtitle {
    font-family: Metropolis;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
    margin-bottom: 60px;
}

.cait-block .chat .suggestions {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    gap: 12px;
    margin-bottom: 15px;
}

.cait-block .chat .suggestions .item {
    border: solid 1px #7EDCFE;
    border-radius: 32px;
    padding: 12px;
    font-family: Metropolis;
    font-size: 14px;
    line-height: 20px;
    color: #130261;
    cursor: pointer;
    background-color: #FFFFFF;
}

.cait-block .chat .question {
    display: flex;
    width: 100%;
    align-items: center;
}

.cait-block .chat .question input {
    width: 100%;
    height: 60px;
    padding: 20px;
    border-radius: 60px;
    font-family: Metropolis;
    font-size: 16px;
    line-height: 24px;
    color: #130261;
    border: none;
}

.cait-block .chat .question button {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    position: absolute;
    border: none;
    right: 30px;
    background-image: url(../images/button.svg);
    cursor: pointer;
}

.cait-block .chat .question button.disabled {
    background-image: url(../images/button-disabled.svg);
    cursor: auto;
}

.cait-block .chat .chat-history {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 20px;
    margin-bottom: 40px;
    visibility: hidden;
}

.cait-block .chat .chat-history .message {
    display: flex;
    width: 100%;
    align-items: center;
    background-color: #FFFFFF;
    border-radius: 20px;
    padding: 20px;
    font-family: Metropolis;
    font-size: 16px;
    line-height: 150%;
    max-width: fit-content;

}

.cait-block .chat .chat-history .message.question {
    align-self: flex-end;
}

.cait-block .chat .chat-history .message.answer {
    min-width: 30px;
    max-width: 80%;
    align-items: flex-start;
}

.cait-block .chat .chat-history .message.answer:before {
    content: url(../images/answer_check.svg);
    margin-right: 10px;
}


@media screen and (max-width: 768px) {
    .cait-block {
        width: 100%;
        padding: 15px;
    }

    .cait-block .header{
        max-width: -webkit-fill-available;
    }

    .cait-block .header p{
        margin-bottom: 5px;
    }

    .cait-block .header p.title{
        margin-block-start: 0.2em;
        margin-block-end: 0.2em;
    }

    .cait-block .header p.subtitle{
        max-width: fit-content;
        margin-bottom: 35px;
        margin-top: 35px;
    }

    .cait-block .chat {
        width: 100%;
    }

    .cait-block .chat .subtitle {
        margin-bottom: 0px;
    }

    .cait-block .chat .suggestions {
        flex-direction: column;
        align-items: baseline;
    }

    .cait-block .chat-history{
        margin-top: 20px;
    }

  
    
}