/* Color variables (will be overwritten by plugin options) */
:root {
    --gpt-searcher-primary-color: #0073aa;
    --gpt-searcher-button-color: #0073aa;
    --gpt-searcher-button-hover-color: #005177;
    --gpt-searcher-icon-bg-color: #0073aa;
    --gpt-searcher-icon-color: #ffffff;
    --gpt-searcher-icon-hover-color: #5a8f44;
    --gpt-searcher-icon-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    --gpt-searcher-overlay-opacity: 0.5;
    --gpt-searcher-modal-width: 100%;
}

.summarizer-chat-widget {
    max-width: 350px;
    margin-bottom: 20px;
}

.summarizer-chat-widget .chat-loader {
    opacity: 0;
    animation: opacity ease-in-out 0.5s;
    padding-top: 10px;
}

.summarizer-chat-widget.loading .chat-loader {
    opacity: 1;
}

.summarizer-chat-widget.loading #chat-form button[type="submit"] {
    pointer-events: none;
    opacity: 0.75;
}

.chat-bubble button {
    flex-shrink: 0;
    width: 14px;
}

.chat-history {
    display: flex;
    flex-direction: column;
    padding-bottom: 10px;
    min-height: 340px;
    max-height: 350px;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

.chat-message {
    display: flex;
    margin-top: 10px;
}

.chat-message .chat-bubble {
    max-width: 90%;
    padding: 6px 10px;
    line-height: 1.5;
}

.chat-message.user {
    justify-content: flex-end;
    align-items: flex-end;
}

.chat-message.user .chat-bubble {
    background-color: var(--gpt-searcher-primary-color);
    color: white;
    border-radius: 5px 0 5px 5px;
}

.chat-message.bot {
    justify-content: flex-start;
    align-items: flex-start;
}

.chat-message.bot .chat-bubble {
    background-color: white;
    border-radius: 0 5px 5px 5px;
}

.chat-fast-actions {
    position: relative;
    overflow-y: hidden;
    display: block;
    overflow-x: auto;
    margin-top: auto;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.chat-fast-actions::-webkit-scrollbar {
    display: none;
}

.chat-fast-actions .chat-question {
    border: 1px solid #2a353d;
    cursor: pointer;
    padding: 10px;
    border-radius: 20px;
    min-width: 200px;
}

.chat-fast-actions .chat-question:hover {
    background-color: white;
}

#chat-form {
    display: flex;
}

#chat-form input[type="text"] {
    flex: 1;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

#chat-form button[type="submit"] {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    background-color: var(--gpt-searcher-button-color);
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#chat-form button[type="submit"]:hover {
    background-color: var(--gpt-searcher-button-hover-color);
}

/* Styles for the main container */
.gpt-search-container {
    position: relative;
    display: inline-block;
}

/* Styles for the search icon */
.gpt-search-icon {
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--gpt-searcher-icon-bg-color);
    color: var(--gpt-searcher-icon-color);
    transition: all 0.3s ease;
    box-shadow: var(--gpt-searcher-icon-shadow);
}

.gpt-search-icon:hover {
    background-color: var(--gpt-searcher-icon-hover-color);
    transform: scale(1.05);
}

/* Styles for when the modal is open */
body.gpt-modal-open {
    overflow: hidden;
}

/* Modal styles */
.gpt-search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    justify-content: center;
    align-items: flex-start;
    padding-top: 50px;
}

.gpt-search-modal.active {
    display: flex;
}

.gpt-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, var(--gpt-searcher-overlay-opacity, 0.7));
    z-index: 10000;
}

.gpt-modal-content {
    position: relative;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    width: var(--gpt-searcher-modal-width, 100%);
    max-width: 1160px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    scrollbar-width: thin;
    z-index: 10001;
}

.gpt-modal-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.gpt-modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--gpt-searcher-primary-color, #0073aa);
    line-height: 1.3;
}

.gpt-modal-content::-webkit-scrollbar {
    width: 8px;
}

.gpt-modal-content::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.gpt-modal-content::-webkit-scrollbar-thumb {
    background-color: var(--gpt-searcher-primary-color, #0073aa);
    border-radius: 4px;
}

/* Ensure the modal maintains its width when showing results */
.gpt-modal-content.showing-results {
    max-width: var(--gpt-searcher-modal-width, 600px) !important;
}

/* Results container */
.gpt-search-results-container {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    overflow-y: visible;
    z-index: 10001;
    width: 100%;
    box-sizing: border-box;
    max-height: none;
}

/* Loading container */
.gpt-search-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

/* Loading spinner with pulse effect */
.gpt-search-loading-spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--gpt-searcher-primary-color, #0073aa);
    margin-bottom: 15px;
    position: relative;
    animation: gpt-pulse 1.5s infinite ease-in-out;
    color: white;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.gpt-search-loading-spinner::before,
.gpt-search-loading-spinner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background-color: var(--gpt-searcher-primary-color, #0073aa);
    opacity: 0.7;
    animation: gpt-pulse 1.5s infinite ease-in-out;
}

.gpt-search-loading-spinner::before {
    animation-delay: 0.5s;
}

.gpt-search-loading-spinner::after {
    animation-delay: 1s;
}

@keyframes gpt-pulse {
    0% {
        transform: scale(0.6);
        opacity: 0.8;
    }
    50% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(0.6);
        opacity: 0.8;
    }
}

/* Styles for the AI response container */
.gpt-ai-response {
    width: 100%;
    box-sizing: border-box;
    line-height: 1.6;
    color: #2a353d;
}

/* Styles for related articles */
.gpt-related-articles {
    width: 100%;
    box-sizing: border-box;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.gpt-related-articles h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

/* Related articles grid */
.gpt-related-articles-grid {
    display: grid;
    gap: 15px;
    margin-top: 15px;
}

/* Dynamic grid columns based on number of posts */
.gpt-related-articles-grid.posts-1 {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 15px auto 0;
}

.gpt-related-articles-grid.posts-2 {
    grid-template-columns: repeat(2, 1fr);
}

.gpt-related-articles-grid.posts-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Article card */
.gpt-article-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.gpt-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Image container */
.gpt-article-image {
    width: 100%;
    height: 180px;
    background-color: #f0f0f0;
    overflow: hidden;
    position: relative;
}

.gpt-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    opacity: 0.9;
}

.gpt-article-image img.loaded {
    opacity: 1;
}

.gpt-article-card:hover .gpt-article-image img {
    transform: scale(1.05);
}

/* Title container */
.gpt-article-title {
    padding: 12px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    color: #333;
}

/* Responsive for tablets */
@media (max-width: 768px) {
    .gpt-related-articles-grid.posts-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gpt-related-articles-grid.posts-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gpt-related-articles-grid.posts-1 {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

/* Responsive for mobile devices */
@media (max-width: 480px) {
    .gpt-related-articles-grid.posts-1,
    .gpt-related-articles-grid.posts-2,
    .gpt-related-articles-grid.posts-3 {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

/* Styles for the search input */
.gpt-search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
    background-color: #f5f7f9;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #e0e5eb;
    padding: 0 !important;
}

.gpt-search-input-container:focus-within {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: var(--gpt-searcher-primary-color, #0073aa);
    background-color: #ffffff;
}

.gpt-search-input {
    flex: 1;
    padding: 16px 20px;
    font-size: 16px;
    border: none;
    outline: none;
    background: transparent;
    color: #333;
    width: 100%;
    font-family: inherit;
}

.gpt-search-again-input {
    flex: 1;
    padding: 16px 20px !important;
    font-size: 16px;
    border: none;
    outline: none;
    background: transparent;
    color: #333;
    width: 100%;
    font-family: inherit;
}

.gpt-search-input::placeholder {
    color: #8a94a6;
    opacity: 0.8;
}

.gpt-search-submit {
    position: relative;
    min-width: 50px;
    min-height: 50px;
    background-color: var(--gpt-searcher-primary-color, #0073aa) !important;
    color: white;
    border: none;
    padding: 14px 20px !important;
    margin-right: 2px;
    border-radius: 8px !important;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gpt-search-submit.submitting svg {
    opacity: 0;
    visibility: hidden;
}

.gpt-search-submit.submitting::before {
    content: 'AI';
    position: absolute;
    width: 16px;
    height: 16px;
    top: calc(50% - 8px);
    left: calc(50% - 8px);
    border-radius: 50%;
    background: var(--gpt-searcher-primary-color, #0073aa);
    z-index: 1;
    animation: ai-breathe 1.5s infinite ease-in-out;
    color: white;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.gpt-search-submit.submitting::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    top: calc(50% - 12px);
    left: calc(50% - 12px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 1);
    animation: ai-pulse 1.5s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes ai-pulse {
    0% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@keyframes ai-breathe {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.gpt-search-submit:hover {
    background-color: var(--gpt-searcher-button-hover-color, #005d87) !important;
}

.gpt-search-submit svg {
    width: 20px;
    height: 20px;
    stroke: white;
    stroke-width: 2px;
    margin: 0 !important;
}

/* Styles for example questions */
.gpt-search-examples {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(0, 115, 170, 0.05);
    border-radius: 10px;
}

.gpt-search-examples h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    color: #555;
}

.gpt-search-examples ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gpt-search-examples li {
    margin-bottom: 0;
    display: inline-block;
}

.gpt-example-question {
    display: inline-block;
    padding: 8px 15px;
    background-color: #f0f5f9;
    border-radius: 20px;
    color: var(--gpt-searcher-primary-color, #0073aa);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid #e0e5eb;
    margin-right: 5px;
    margin-bottom: 5px;
}

.gpt-example-question:hover {
    background-color: #e0f0ff;
    color: var(--gpt-searcher-primary-hover-color, #005d87);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Styles for the search results page */
.gpt-search-results-container {
    margin: 40px auto;
    padding: 0 20px;
}

.gpt-search-results-header {
    margin-bottom: 30px;
    text-align: center;
}

.gpt-search-results-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333;
}

.gpt-search-query {
    background-color: #f5f5f5;
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-block;
}

.gpt-search-query span {
    color: #666;
    margin-right: 5px;
}

.gpt-search-results-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.gpt-search-error {
    padding: 30px;
    text-align: center;
}

.gpt-back-button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: var(--gpt-searcher-button-color);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.gpt-back-button:hover {
    background-color: var(--gpt-searcher-button-hover-color);
}

.gpt-search-answer {
    padding: 0;
}

.gpt-answer-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #eee;
}

.gpt-ai-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--gpt-searcher-primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 15px;
}

.gpt-ai-info h3 {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

.gpt-ai-info span {
    font-size: 0.8rem;
    color: #666;
}

.gpt-answer-content {
    padding: 20px;
    line-height: 1.6;
    color: #333;
}

.gpt-answer-content p {
    margin-bottom: 15px;
}

.gpt-answer-content a {
    color: var(--gpt-searcher-primary-color);
    text-decoration: none;
}

.gpt-answer-content a:hover {
    text-decoration: underline;
}

.gpt-related-articles {
    padding: 20px;
    border-top: 1px solid #eee;
}

.gpt-related-articles h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--gpt-searcher-primary-color);
}

.gpt-related-articles ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gpt-related-articles li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.gpt-related-articles li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--gpt-searcher-primary-color);
    font-size: 1.2rem;
}

.gpt-related-articles a {
    color: var(--gpt-searcher-primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.gpt-related-articles a:hover {
    color: #5a8f44;
    text-decoration: underline;
}

.gpt-search-again {
    padding: 20px;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
}

.gpt-search-again h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #333;
}

#gpt-search-again-form .gpt-search-input-container {
    margin-bottom: 0;
}

/* Responsive styles for search results */
@media (max-width: 768px) {
    .gpt-search-results-container {
        padding: 0 15px;
        margin: 20px auto;
    }
    
    .gpt-search-results-title {
        font-size: 1.5rem;
    }
    
    .gpt-answer-header {
        padding: 12px 15px;
    }
    
    .gpt-answer-content,
    .gpt-related-articles,
    .gpt-search-again {
        padding: 15px;
    }
}

/* Styles for the Gutenberg block */
.gpt-searcher-block-editor {
    padding: 20px;
    border: 1px dashed #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.gpt-search-icon-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--gpt-searcher-icon-bg-color);
    border-radius: 50%;
    color: var(--gpt-searcher-icon-color);
    margin: 0 auto 15px;
}

.gpt-block-description {
    text-align: center;
    margin-bottom: 15px;
    font-style: italic;
    color: #666;
}

.gpt-block-example-questions {
    background-color: white;
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid #eee;
}

.gpt-block-example-questions p {
    margin: 0 0 8px;
    font-weight: bold;
    color: #555;
}

.gpt-block-example-questions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gpt-block-example-questions li {
    margin-bottom: 5px;
    color: var(--gpt-searcher-primary-color);
    padding: 3px 8px;
    background-color: rgba(0, 115, 170, 0.1);
    border-radius: 15px;
    display: inline-block;
    margin-right: 5px;
}

/* Responsive media queries */
@media (max-width: 768px) {
    .gpt-modal-content {
        width: 95%;
        top: 10%;
    }
}

@media (max-width: 480px) {
    .gpt-modal-content {
        padding: 0;
    }
    
    .gpt-modal-body {
        padding: 15px;
    }
}

/* Styles for results inside the modal */
.gpt-search-modal .gpt-search-results-container {
    padding: 20px;
    background-color: var(--gpt-searcher-bg-color, #ffffff);
    width: 100%; /* Ensure it takes up the full available width */
    box-sizing: border-box; /* To prevent padding from increasing the width */
    position: relative; /* To ensure it stays above the overlay */
    z-index: 11; /* Greater than the overlay's z-index */
}

.gpt-search-modal .gpt-search-results-header {
    margin-bottom: 20px;
}

.gpt-search-modal .gpt-search-query {
    margin-bottom: 15px;
}

.gpt-search-modal .gpt-search-query span {
    display: block;
    font-size: 14px;
    color: var(--gpt-searcher-text-color, #333333);
    margin-bottom: 5px;
}

.gpt-search-modal .gpt-search-query strong {
    font-size: 18px;
    color: var(--gpt-searcher-primary-color, #0073aa);
}

.gpt-search-modal .gpt-search-results-content {
    margin-top: 20px;
}

.gpt-search-modal .gpt-search-answer {
    background-color: var(--gpt-searcher-answer-bg, #f9f9f9);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.gpt-search-modal .gpt-answer-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.gpt-search-modal .gpt-ai-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--gpt-searcher-primary-color, #0073aa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.gpt-search-modal .gpt-ai-avatar svg {
    color: #ffffff;
}

.gpt-search-modal .gpt-ai-info h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: var(--gpt-searcher-text-color, #333333);
}

.gpt-search-modal .gpt-ai-info span {
    font-size: 12px;
    color: var(--gpt-searcher-text-muted, #666666);
}

.gpt-search-modal .gpt-answer-content {
    font-size: 16px;
    line-height: 1.6;
    color: var(--gpt-searcher-text-color, #333333);
}

.gpt-search-modal .gpt-related-articles {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--gpt-searcher-related-bg, #f0f7fb);
    border-radius: 10px;
}

.gpt-search-modal .gpt-related-articles h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--gpt-searcher-primary-color, #0073aa);
}

.gpt-search-modal .gpt-related-articles ul {
    margin: 0;
    padding: 0 0 0 20px;
}

.gpt-search-modal .gpt-related-articles li {
    margin-bottom: 10px;
}

.gpt-search-modal .gpt-related-articles a {
    color: var(--gpt-searcher-link-color, #0073aa);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.gpt-search-modal .gpt-related-articles a:hover {
    color: var(--gpt-searcher-link-hover, #005177);
    text-decoration: underline;
}

/* Call-to-Action Section Styles */
.gpt-cta-section {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gpt-cta-text {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
}

.gpt-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.gpt-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: inherit;
    font-size: 15px;
    transition: all 0.2s ease;
    min-width: 160px;
    border: 1px solid #d1d5db;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.gpt-cta-button-primary {
    background-color: #ffffff;
    color: #374151;
    border-color: #3dc2e5;
}

.gpt-cta-button-primary:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.gpt-cta-button-secondary {
    background-color: #67a958;
    color: #ffffff;
    border-color: #22c55e;
}

.gpt-cta-button-secondary:hover {
    background-color: #16a34a;
    border-color: #16a34a;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(34, 197, 94, 0.3);
}

/* Phone icon for phone button */
.gpt-cta-button-secondary:before {
    content: "📞";
    margin-right: 6px;
    font-size: 14px;
    filter: brightness(0) invert(1);
}

/* Responsive for mobile */
@media (max-width: 480px) {
    .gpt-cta-section {
        margin-top: 20px;
        padding: 20px 15px;
    }
    
    .gpt-cta-text {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .gpt-cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .gpt-cta-button {
        width: 100%;
        min-width: auto;
    }
}

.gpt-search-modal .gpt-search-again {
    margin-top: 30px;
    text-align: center;
}

.gpt-search-modal .gpt-search-again-button {
    background-color: var(--gpt-searcher-primary-color, #0073aa);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.gpt-search-modal .gpt-search-again-button:hover {
    background-color: var(--gpt-searcher-primary-hover, #005177);
}

.gpt-search-modal .gpt-search-loading {
    text-align: center;
    padding: 30px;
}

.gpt-search-modal .gpt-search-loading p {
    margin: 0;
    font-size: 16px;
    color: var(--gpt-searcher-text-color, #333333);
}

.gpt-search-modal .gpt-search-error {
    background-color: #fff1f0;
    border-left: 4px solid #dc3232;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.gpt-search-modal .gpt-search-error h3 {
    margin-top: 0;
    color: #dc3232;
}

.gpt-search-modal .gpt-search-error p {
    margin-bottom: 10px;
}

.gpt-search-modal .gpt-search-error code {
    background-color: #f5f5f5;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 14px;
}

/* Close button of the modal */
.gpt-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    z-index: 10002;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    padding: 0;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s;
}

.gpt-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Media queries for mobile devices */
@media (max-width: 768px) {
    .gpt-search-modal {
        padding-top: 0;
        align-items: center;
    }
    
    .gpt-modal-content {
        max-width: 100%;
        width: 100%;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        padding: 20px;
    }
    
    /* Improve visibility of the close button on mobile */
    .gpt-modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 32px;
        background-color: rgba(0, 0, 0, 0.5);
        color: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    }
}
