/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* Import Inter font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

 :root {
    --swec-primary-color: #000;
    --swec-avatar-image: url('');
    --swec-user-avatar-image: url('');
    --swec-background-color: #F7F7F7;
    --swec-header-font-size: '16px';
    --swec-body-font-size:  '15px';
    --swec-footer-font-size: '16px';
    --swec-user-background-image: url('');
}

.sw-ec-chatbot {
    position: fixed;
    bottom: 0px;
    right: 20px;
    z-index: 999999;
    font-family: 'Inter';
}

.sw-ec-chat-header {
    position: relative;
    display: flex;
    padding: 10px;
    background: var(--swec-primary-color);
    color: #fff;
    border-radius: 10px 10px 0 0;
    font-family: 'Inter';
}

.sw-ec-chat-header .sw-ec-name {
    font-weight: 500;
    margin-bottom: 0.125rem;
    flex-grow: 1;
    word-break: break-all;
    font-size:var(--swec-header-font-size);
}

.sw-ec-chat-header a {
    text-decoration: none;
    color: white !important;
}


.sw-ec-chat-header .dashicons {
    margin-left: 5px;
}

#sw-ec-chat-download {
    transition: opacity 0.3s ease;
}

#sw-ec-chat-download:hover {
    opacity: 0.7;
}

#sw-ec-chat-download:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#sw-ec-chat-download .dashicons-update,
#sw-ec-chat-download .dashicons.dashicons-update {
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sw-ec-chat-box {
    position: relative;
    display: none;
    flex-direction: column;
    max-width: 400px;
    width: 80vw;
    max-height: 75vh;
    height: 75vh;
    bottom: 20px;
    z-index: 2;
    box-sizing: border-box;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 0 8rem 0 rgba(0, 0, 0, 0.1), 0rem 2rem 4rem -3rem rgba(0, 0, 0, 0.5);
    font-family: 'Inter';
}

.sw-ec-chat-box .sw-ec-chat-header {
    flex-shrink: 0;
    box-sizing: border-box;
}

.sw-ec-chat-box .sw-ec-messages {
    padding: 2rem;
    background-color: var(--swec-background-color);
    flex-shrink: 2;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: inset 0 2rem 2rem -2rem rgba(0, 0, 0, 0.05), inset 0 -2rem 2rem -2rem rgba(0, 0, 0, 0.05);
    height: calc(50vh - 200px);
    flex-grow: 1;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    /* Ensure smooth scrolling and proper touch support */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.sw-ec-chat-box .sw-ec-messages .time {
    font-size: 0.8rem;
    background: #EEE;
    padding: 0.25rem 1rem;
    border-radius: 2rem;
    color: #999;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    margin: 0 auto;
}

.sw-ec-chat-box .sw-ec-messages .sw-ec-message {
    box-sizing: border-box;
    padding: 0.5rem 1rem;
    margin: 1rem;
    background: #FFF;
    border-radius: 1.125rem 1.125rem 1.125rem 0;
    min-height: 2.25rem;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    /* max-width: 80%; */
    box-shadow: 0 0 2rem rgba(0, 0, 0, 0.075), 0rem 1rem 1rem -1rem rgba(0, 0, 0, 0.1);
    font-size: 15px;
    word-break: break-word;
    font-family: 'Inter';
    z-index: 999;
}

span.sw-ec-chatbot-btn {
    margin-bottom: 20px;
    max-width: 280px;
    word-break: break-word;
}

.sw-ec-chat-box .sw-ec-messages .sw-ec-message.self {
    margin: 1rem 1rem 1rem auto;
    border-radius: 1.125rem 1.125rem 0 1.125rem;
    /* background: #333; */
    background: var(--swec-primary-color);
    color: white;
    position: relative;
    max-width: 80%;
    font-size: var(--swec-body-font-size);
}

.sw-ec-chat-box .sw-ec-messages .sw-ec-message.self:after {
    background-color: var(--swec-primary-color);
    mask-image: var(--swec-user-avatar-image);
    position: absolute;
    top: 5px;
    border-radius: 100%;
    width: 24px;
    height: 24px;
    border-radius: 24px;
    content: '';
    background-size: cover;
    right: -28px;
}

.sw-ec-chat-box .sw-ec-messages .sw-ec-message.other {
    position: relative;
    font-size: var(--swec-body-font-size);
}

.sw-ec-chat-box .sw-ec-messages .sw-ec-message.other:before {
    background-image: var(--swec-avatar-image);
    position: absolute;
    top: 5px;
    border-radius: 100%;
    width: 24px;
    height: 24px;
    border-radius: 24px;
    content: '';
    background-size: cover;
    left: -28px;
}

/* Typing animation dots - simplified approach */
.sw-ec-chatbot .sw-ec-chat-box .sw-ec-messages .sw-ec-message .typing,
.sw-ec-chat-box .sw-ec-messages .sw-ec-message .typing {
    display: inline-block !important;
    width: 0.8rem !important;
    height: 0.8rem !important;
    min-width: 0.8rem !important;
    min-height: 0.8rem !important;
    max-width: 0.8rem !important;
    max-height: 0.8rem !important;
    margin-right: 0rem !important;
    box-sizing: border-box !important;
    background: #ccc !important;
    border-radius: 50% !important;
}

/* Typing animation - using original name for maximum compatibility */
.sw-ec-chatbot .sw-ec-chat-box .sw-ec-messages .sw-ec-message .typing.typing-1,
.sw-ec-chat-box .sw-ec-messages .sw-ec-message .typing.typing-1 {
    -webkit-animation: typingAlt 3s infinite !important;
    animation: typingAlt 3s infinite !important;
}

.sw-ec-chatbot .sw-ec-chat-box .sw-ec-messages .sw-ec-message .typing.typing-2,
.sw-ec-chat-box .sw-ec-messages .sw-ec-message .typing.typing-2 {
    -webkit-animation: typingAlt 3s 250ms infinite !important;
    animation: typingAlt 3s 250ms infinite !important;
}

.sw-ec-chatbot .sw-ec-chat-box .sw-ec-messages .sw-ec-message .typing.typing-3,
.sw-ec-chat-box .sw-ec-messages .sw-ec-message .typing.typing-3 {
    -webkit-animation: typingAlt 3s 500ms infinite !important;
    animation: typingAlt 3s 500ms infinite !important;
}

.sw-ec-chat-box .sw-ec-chat-input-section {
    box-sizing: border-box;
    flex-basis: 4rem;
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1), 0rem 1rem 1rem -1rem rgba(0, 0, 0, 0.2);
    /* margin: 0.50rem; */
    gap: 8px;
    padding: 8px;
}

.sw-ec-chat-box .sw-ec-chat-input-section i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #666;
    cursor: pointer;
    transition: color 200ms;

}

.sw-ec-chat-box .sw-ec-chat-input-section i:hover {
    color: #333;
}

.sw-ec-chat-box .sw-ec-chat-input-section input,
.sw-ec-chat-box .sw-ec-chat-input-section textarea {
    border: none;
    background-image: none;
    background-color: white;
    padding: 12px 16px;
    margin: 0;
    border-radius: 10px;
    flex-grow: 1;
    font-family: 'Inter';
    font-weight: 400;
    letter-spacing: 0.025em;
    resize: none;
    font-size: 16px;
    min-height: 44px;
    max-height: 120px;
    line-height: 1.4;
    box-sizing: border-box;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    color: #000;
}

/* Input focus state */
.sw-ec-chat-box .sw-ec-chat-input-section input:focus,
.sw-ec-chat-box .sw-ec-chat-input-section textarea:focus {
    outline: none;
    /* box-shadow: 0 0 0 2px var(--swec-primary-color); */
    border: none;
}

.sw-ec-chat-box .sw-ec-chat-input-section .sw-ec-chat-input-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 0;
    gap: 4px;
    min-width: 0;
    flex-shrink: 0;
}

.sw-ec-chat-box .sw-ec-chat-input-section input:placeholder,
.sw-ec-chat-box .sw-ec-chat-input-section textarea:placeholder {
    color: #999;
}

.sw-ec-chat-box .sw-ec-chat-input-section input:focus-visible,
.sw-ec-chat-box .sw-ec-chat-input-section textarea:focus-visible {
    outline: none;
}

/* Enhanced Send Button Styling */
#sw-ec-chat-send-message {
    background: var(--swec-primary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 8px 12px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Send button icon styling */
#sw-ec-chat-send-message svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
    transition: all 0.2s ease;
    pointer-events: none;
}

/* Hover state */
#sw-ec-chat-send-message:hover {
    background: var(--swec-primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#sw-ec-chat-send-message:hover svg {
    fill: #ffffff;
    transform: scale(1.05);
}

/* Active state */
#sw-ec-chat-send-message:active {
    background: var(--swec-primary-color);
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#sw-ec-chat-send-message:active svg {
    fill: #ffffff;
    transform: scale(0.95);
}

/* Disabled state */
#sw-ec-chat-send-message:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#sw-ec-chat-send-message:disabled svg {
    fill: #999999;
    transform: none;
}

/* Focus state for accessibility */
#sw-ec-chat-send-message:focus {
    outline: 2px solid var(--swec-primary-color);
    outline-offset: 2px;
}

/* Loading state animation */
#sw-ec-chat-send-message.loading {
    pointer-events: none;
}

#sw-ec-chat-send-message.loading svg {
    animation: spin 1s linear infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #sw-ec-chat-send-message {
        min-width: 40px;
        min-height: 40px;
        padding: 6px 10px;
    }
    
    #sw-ec-chat-send-message svg {
        width: 18px;
        height: 18px;
    }
}

/* High DPI display adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    #sw-ec-chat-send-message {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Cross-browser compatibility fixes */
#sw-ec-chat-send-message {
    /* Ensure consistent rendering across browsers */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* Prevent text selection on button */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Ensure proper touch targets on mobile */
    touch-action: manipulation;
}

/* Ensure proper alignment across different screen sizes */
@media (max-width: 480px) {
    .sw-ec-chat-box .sw-ec-chat-input-section {
        padding: 6px;
        gap: 6px;
    }
    
    #sw-ec-chat-send-message {
        min-width: 36px;
        min-height: 36px;
        padding: 6px 8px;
    }
    
    #sw-ec-chat-send-message svg {
        width: 16px;
        height: 16px;
    }
    
    .sw-ec-chat-box .sw-ec-chat-input-section input,
    .sw-ec-chat-box .sw-ec-chat-input-section textarea {
        min-height: 36px;
        padding: 10px 12px;
    }
}

/* Fix for older browsers */
@supports not (display: flex) {
    .sw-ec-chat-box .sw-ec-chat-input-section {
        display: -webkit-box;
        display: -ms-flexbox;
    }
    
    #sw-ec-chat-send-message {
        display: -webkit-inline-box;
        display: -ms-inline-flexbox;
        display: inline-flex;
    }
}

/* Ensure button stays aligned with input on all screen sizes */
.sw-ec-chat-box .sw-ec-chat-input-section {
    align-items: flex-end;
    flex-wrap: nowrap;
}

/* Prevent button from shrinking */
#sw-ec-chat-send-message {
    flex-shrink: 0;
    flex-grow: 0;
}

/* Smooth transitions during maximize operations */
.sw-ec-chat-box {
    transition: all 0.3s ease;
}

.sw-ec-chat-box.sw-ec-fullscreen {
    transition: all 0.3s ease;
}

/* Ensure messages area remains responsive during maximize */
.sw-ec-messages {
    transition: all 0.2s ease;
}

/* Prevent UI freezing during maximize */
.sw-ec-chat-box.swec-maximizing {
    pointer-events: auto;
}

.sw-ec-chat-box.swec-maximizing .sw-ec-messages {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Ensure input remains functional during maximize */
.sw-ec-chat-box.swec-maximizing .sw-ec-input {
    pointer-events: auto;
    opacity: 1;
}

.sw-ec-chat-box.swec-maximizing #sw-ec-chat-send-message {
    pointer-events: auto;
    opacity: 1;
}

/* Enhanced scrollbar for fullscreen mode */
.sw-ec-chat-box.sw-ec-fullscreen .sw-ec-messages {
    scrollbar-width: thin;
    scrollbar-color: var(--swec-primary-color) transparent;
}

.sw-ec-chat-box.sw-ec-fullscreen .sw-ec-messages::-webkit-scrollbar {
    width: 12px;
}

.sw-ec-chat-box.sw-ec-fullscreen .sw-ec-messages::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 6px;
}

.sw-ec-chat-box.sw-ec-fullscreen .sw-ec-messages::-webkit-scrollbar-thumb {
    background: var(--swec-primary-color);
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.sw-ec-chat-box.sw-ec-fullscreen .sw-ec-messages::-webkit-scrollbar-thumb:hover {
    background: var(--swec-primary-color);
    opacity: 0.8;
}

.sw-ec-chatbot-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    bottom: 20px;
    right: 20px;
    font-size: 16px;
    border-radius: 10px;
    padding: 5px 8px;
    background: var(--swec-primary-color);
    width: max-content;
    font-family: 'Inter';
}

.sw-ec-chatbot-btn svg {
    fill: #fff;
    width: 35px;
    min-width: 35px;
}

.sw-ec-chat-box .sw-ec-chat-footer {
    flex-shrink: 0;
    display: flex;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--swec-primary-color);
    border-radius: 0 0 10px 10px;
    padding-bottom: 6px;
    padding-top: 6px;
    margin-top: 0px;
    color: #f8f9fa;
    font-size: var(--swec-footer-font-size);
    border-top: 3px solid var(--swec-primary-color);
    padding: 15px 0px;
    font-family: 'Inter';
}

.sw-ec-chat-box .sw-ec-chat-footer a {
    margin-left: 0.25rem;
    line-height: 0;
}

/* Original typingAlt animation for compatibility */
@-webkit-keyframes typingAlt {
    0%,
    75%,
    100% {
        transform: translate(0, 0.25rem) scale(0.9);
        opacity: 0.5;
    }

    25% {
        transform: translate(0, -0.25rem) scale(1);
        opacity: 1;
    }
}

@keyframes typingAlt {
    0%,
    75%,
    100% {
        transform: translate(0, 0.25rem) scale(0.9);
        opacity: 0.5;
    }

    25% {
        transform: translate(0, -0.25rem) scale(1);
        opacity: 1;
    }
}


svg.cwv.replaced-svg {
    fill: var(--swec-primary-color);
}

small#sw-ec-chat-textbox-status {
    color: var(--swec-primary-color)
}

.swec-modal.swec-modal-clear-history {
    position: absolute;
    background: #ffffffe8;
    height: calc(100% - 85px);
    width: 100%;
    top: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.sw-ec-chat-container {
    position: relative;
    flex-grow: 1;
    display: flex;
}

.sw-ec-chat-section {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.swec-modal-body {
    text-align: center;
}

.swec-action input[type="button"] {
    background: transparent;
    padding: 10px 20px;
    margin: 10px 5px;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid var(--swec-primary-color);
}

input#swec-btn-clear-history-yes {
    background-color: var(--swec-primary-color);
    color: #fff;
}

input#swec-btn-clear-history-no {
    color: var(--swec-primary-color);
}

small.swec-input-error {
    color: #e74c3c;
    background-color: #fdf2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    position: absolute;
    bottom: 45px;
    left: 24px;
    right: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
    z-index: 10;
    display: none;
}

/* Error message in messages area */
.sw-ec-error-message {
    background-color: #fdf2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 8px 16px;
    color: #e74c3c;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
    position: relative;
}

.sw-ec-error-message::before {
    content: "⚠️";
    margin-right: 8px;
    font-size: 16px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* width */
/* Enhanced scrollbar styling for better usability */
.sw-ec-chatbot ::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

/* Track */
.sw-ec-chatbot ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    margin: 4px;
}

/* Handle */
.sw-ec-chatbot ::-webkit-scrollbar-thumb {
    background: var(--swec-primary-color);
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: content-box;
    min-height: 40px;
    transition: all 0.2s ease;
}

/* Handle on hover */
.sw-ec-chatbot ::-webkit-scrollbar-thumb:hover {
    background: var(--swec-primary-color);
    background-clip: content-box;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Handle when active/dragging */
.sw-ec-chatbot ::-webkit-scrollbar-thumb:active {
    background: var(--swec-primary-color);
    background-clip: content-box;
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Corner where scrollbars meet */
.sw-ec-chatbot ::-webkit-scrollbar-corner {
    background: transparent;
}

/* Scrollbar buttons (arrows) - hide them for cleaner look */
.sw-ec-chatbot ::-webkit-scrollbar-button {
    display: none;
}

/* Firefox scrollbar styling */
.sw-ec-chatbot {
    scrollbar-width: thin;
    scrollbar-color: var(--swec-primary-color) rgba(0, 0, 0, 0.05);
}

/* Smooth scrolling behavior */
.sw-ec-chat-box .sw-ec-messages {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

/* Scrollbar interaction states */
.sw-ec-messages.swec-scrolling {
    scrollbar-width: auto;
}

.sw-ec-messages.swec-scrolling::-webkit-scrollbar {
    width: 14px;
}

.sw-ec-messages.swec-scrollbar-active::-webkit-scrollbar-thumb {
    background: var(--swec-primary-color);
    background-clip: content-box;
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Focus styles for keyboard navigation */
.sw-ec-messages:focus {
    outline: none;
    outline-offset: 2px;
}

/* Improved scrollbar visibility on hover */
.sw-ec-messages:hover::-webkit-scrollbar {
    width: 14px;
}

.sw-ec-messages:hover::-webkit-scrollbar-thumb {
    background: var(--swec-primary-color);
    background-clip: content-box;
    opacity: 0.8;
}
 
.sw-ec-messages-bg-image{
  position: relative;
  background-color:#F7F7F7 !important ;
}    
.sw-ec-messages-bg-image::after{
    transition: all 2s ease-out;
    background-image: var(--swec-background-image);
    content: "";
    opacity: 0.5 !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 90%;
    
}
.sw-ec-messages-bg-image.sw-ec-messages-box-open::after{
    opacity: 1;
    transition: all 3s ease-out;
}

.sw-ec-messages-remove-bg-image::after{
    transition: all 1s ease-out;
    opacity: 0;
}
.sw-ec-messages-remove-bg-image{
    background-color: var(--swec-background-color) !important;
}

/* Markdown styling for chatbot messages */
.sw-ec-message h1,
.sw-ec-message h2,
.sw-ec-message h3 {
    margin: 0.5rem 0;
    font-weight: bold;
    line-height: 1.2;
}

.sw-ec-message h1 {
    font-size: 1.4em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.3rem;
}

.sw-ec-message h2 {
    font-size: 1.2em;
}

.sw-ec-message h3 {
    font-size: 1.1em;
}

.sw-ec-message strong {
    font-weight: bold;
}

.sw-ec-message em {
    font-style: italic;
}

.sw-ec-message code {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Inter', 'Courier New', monospace;
    font-size: 0.9em;
}

.sw-ec-message pre {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 0.8rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 0.5rem 0;
}

.sw-ec-message pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

.sw-ec-message ul,
.sw-ec-message ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.sw-ec-message li {
    margin: 0.2rem 0;
}

.sw-ec-message a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
}

.sw-ec-message a:hover {
    text-decoration-color: rgba(255, 255, 255, 0.8);
}

/* Special styling for user messages (self) */
.sw-ec-message.self h1,
.sw-ec-message.self h2,
.sw-ec-message.self h3 {
    color: white;
}

.sw-ec-message.self code {
    background-color: rgba(255, 255, 255, 0.2);
}

.sw-ec-message.self pre {
    background-color: rgba(255, 255, 255, 0.1);
}

.sw-ec-message.self a {
    color: white;
    text-decoration-color: rgba(255, 255, 255, 0.7);
}

.sw-ec-message.self a:hover {
    text-decoration-color: white;
}

.sw-ec-limit-action-buttons .dashicons{
    font-size: 16px;
}

.sw-ec-limit-action-buttons {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

#sw-ec-limit-download-pdf,#sw-ec-limit-clear-history {
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
}