.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: flex;
    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;
    max-height: 700px;
    overflow-y: scroll;
}

.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;
    }

  
    
}

/* Lenders Table Styles */
.lenders-container {
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.lenders-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.lenders-header h3 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 18px;
}

.lenders-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.lenders-table-wrapper {
    overflow-x: auto;
}

.lenders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.lenders-table th {
    background: #f8f9fa;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
}

.lenders-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.lender-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lender-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
}

.lender-name {
    font-weight: 600;
    color: #333;
}

.lender-rating {
    text-align: center;
}

.rating-stars {
    margin-bottom: 4px;
}

.star {
    color: #ffc107;
    font-size: 16px;
}

.star.empty {
    color: #e9ecef;
}

.rating-title {
    font-size: 12px;
    color: #666;
}

.apr-info, .repayment-info {
    font-weight: 500;
    color: #495057;
}

.lender-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-view-details, .btn-apply-now {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-view-details {
    background: #007bff;
    color: white;
}

.btn-view-details:hover {
    background: #0056b3;
}

.btn-apply-now {
    background: #28a745;
    color: white;
}

.btn-apply-now:hover {
    background: #1e7e34;
}

/* Modal Styles */
.lender-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.lender-modal {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.lender-header-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.modal-header h2 {
    margin: 0 0 5px 0;
    color: #333;
}

.modal-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-text {
    font-size: 14px;
    color: #666;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

.modal-content {
    padding: 20px;
}

.lender-highlights, .lender-bullets, .lender-disclosure {
    margin-bottom: 20px;
}

.lender-highlights h3, .lender-bullets h3, .lender-disclosure h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

.lender-highlights ul, .lender-bullets ul {
    margin: 0;
    padding-left: 20px;
}

.lender-highlights li, .lender-bullets li {
    margin-bottom: 8px;
    color: #495057;
    line-height: 1.5;
}

.disclosure-text {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    max-height: 200px;
    overflow-y: auto;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-apply-now-large, .btn-read-review {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.btn-apply-now-large {
    background: #28a745;
    color: white;
}

.btn-apply-now-large:hover {
    background: #1e7e34;
}

.btn-read-review {
    background: #6c757d;
    color: white;
}

.btn-read-review:hover {
    background: #545b62;
}

/* Responsive Design for Lenders Table */
@media (max-width: 768px) {
    .lenders-table {
        font-size: 12px;
    }
    
    .lenders-table th,
    .lenders-table td {
        padding: 8px 4px;
    }
    
    .lender-logo img {
        width: 30px;
        height: 30px;
    }
    
    .lender-actions {
        flex-direction: column;
    }
    
    .btn-view-details, .btn-apply-now {
        width: 100%;
        margin-bottom: 4px;
    }
    
    .lender-modal {
        width: 95%;
        margin: 10px;
    }
    
    .modal-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .lender-header-info {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}