@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap");

.wschat-btn,
.wschat-btn:hover {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background-color 0.25s ease-out, color 0.25s ease-out;
    vertical-align: middle;
    border: 1px solid transparent;
    border-radius: 0;
    /* padding: 0.85em 1em; */
    font-size: 1em;
    background-color: #000;
    color: #ffffff;
    width: 320px;
    height: 55px;
}
.wschat-btn[disabled] {
    cursor: default;
    opacity: 0.5;
}
.wschat-btn.ghost {
    border: 1px solid #000000;
    color: #000000;
    background-color: #ffffff;
}
.wschat-btn.ghost:hover {
    background-color: #000000;
    color: #ffffff;
}
.wschat-btn.block {
    display: block;
    width: 100%;
}

.wschat-form-control {
    display: block;
    width: 100%;
    border: 1px solid #cacaca;
    background-color: #fff;
    color: #333;

    /* height: 2.4375em; */
    padding: 15px;
    margin: 0 0 10px;
}
textarea.wschat-form-control {
    height: auto;
    resize: none;
}

.wschat-chat-container {
    height: 100%;
}

.wschat-container .wschat-powered-by {
    font-size: 12px;
    line-height: 30px;
    padding-right: 2px;
    padding-left: 2px;
}
.wschat-container .wschat-powered-by > a {
    color: #777;
    text-decoration: none;
}
.wschat-container .wschat-powered-by > a:hover {
    color: #555;
    text-decoration: none;
}

.wschat-container .wschat-top-bar {
    height: 40px;

    line-height: 40px;
    padding-left: 12px;

    background-color: #1c1c1c;
    color: #fff;

    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif !important;
}

.wschat-container .wschat-top-bar .wschat-close-button {
    background-size: cover;
    cursor: pointer;
    float: right;

    border: none;
    outline: none;
    background-color: transparent;
    -webkit-appearance: none;
    appearance: none;

    margin-top: 8px;
    margin-right: 8px;
    width: 24px;
    height: 24px;
    padding: 0;
}

.wschat-container .wschat-conversation-container {
    position: relative;
    height: calc(100% - 122px);
    background-color: #fff;
}

.wschat-container .wschat-footer-form-container {
    height: 70px;
}

.wschat-container textarea:focus,
.wschat-container input:focus {
    outline: none;
}

.wschat-contaner textarea {
    appearance: textarea;
    background: #fff;
    padding: 2px;
    margin-left: 4px;
    word-wrap: break-word;
    white-space: pre-wrap;
    font-size: 11px;
    font-family: arial,helvetica,sans-serif;
    line-height: 13px;
    resize: both;
    overflow: auto;
    vertical-align: top;
}

.wschat-container .wschat-chat-input {
    background: #f2f3f4;
    color: #333;
    min-height: 52px;
    height: 52px;
    width: 100%;
    padding: 15px 65px 15px 20px;
    font-size: 1em;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
    box-sizing: border-box;
    border: 0;
    border-radius: 2px;
    overflow-x: hidden;
    margin: 0;
    line-height: 1.2em;
    resize: none;
    max-height: 70px;
    display: block;
    transition: .6s ease-in-out;
}

.wschat-container .wschat-send-chat-form {
    position: relative;
}

.wschat-container .wschat-chat-send-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    border: 0;
    background: none;
    box-shadow: none;
    display: block;
    padding: 0 15px;
    height: 46px;
    width: 50px;
}

.wschat-container .wschat-send-chat-form .wschat-chat-send-button svg {
    fill: #fff;
}
.wschat-container .wschat-send-chat-form.has-text .wschat-chat-send-button svg {
    fill: #333;
}

/**** Message Block *****/
.wschat-container .wschat-message-block-container {
    position: absolute;
    bottom: 0;
    max-height: 100%;
    overflow-y: auto;
    right: 0;
    left: 0;
    padding: 0 10px 2px 10px;
    display: block;
}
.wschat-container .wschat-message-block {
    position: relative;
    margin: 0 0 10px;
    display: inline-block;
    width: 100%;
}
.wschat-container .wschat-message-day-divider-label {
    padding: 3px 10px;
    border-radius: 999px;
    background: #f1f3f5;
    line-height: 1.4;
}
.wschat-container .wschat-message-container {
    width: auto;
    clear: both;
}

.wschat-container .wschat-message {
    position: relative;
    float: left;
    box-sizing: border-box;
    padding: 10px 15px 10px 15px;
    background: #eee;
    border-radius: 8px;
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    color: #000;
    white-space: pre-line; /* Allows \n to display new line */
    /* max-width: 75%; */
    word-break: normal;
    overflow-wrap: break-word;
}
.wschat-container .wschat-message a,
.wschat-container .wschat-message a:hover {
    color: #000;
    text-decoration: underline;
    word-break: normal;
    overflow-wrap: anywhere;
}

.wschat-container .wschat-message-me {
    background: var(--brand-info, #00bcd4);
    color: #fff;
    float: right;
}

.wschat-container .wschat-message-me a,
.wschat-container .wschat-message-me a:hover {
    color: #fff;
    text-decoration: underline;
}

.wschat-container .wschat-message-info {
    background-color: transparent;
    padding: 5px;
}
.wschat-container .wschat-message-info-me {
    text-align: right;
}

.wschat-container .wschat-message-pending {
    opacity: .5;
}
/**** End Message Block ****/

.wschat-floating-action {
    position: fixed;
    width: auto;
    bottom: 20px;
    right: 20px;
    padding: 0;

    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 0 1px 0 rgba(0,0,0,0.4);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    outline: none;
}

.wschat-floating-action,
.wschat-visitor-container {
    transition: all .6s ease-in-out, top .4s ease-in-out;
    opacity: 1;

    z-index: 9921;
}
.wschat-floating-action.wschat-hidden,
.wschat-visitor-container.wschat-hidden,
.wschat-visitor-container.wschat-showing-contact-form.wschat-hidden {
    bottom: -100%;
    opacity: 0;
}

.wschat-visitor-container {
    position: fixed;
    width: 350px;
    height: 450px;
    bottom: 20px;
    right: 20px;

    background-color: #fff;
    box-shadow: 0 0 1px 0 rgba(0,0,0,0.4);

    border-radius: 2px;
    overflow: hidden;

    font-family: sans-serif;
}
.wschat-visitor-container.wschat-showing-contact-form {
    height: 400px;
}
.wschat-contact-form-container {
    margin: 15px;
}
.wschat-contact-form-container .wschat-form-confirmation-icon {
    width: 48px;
    margin: 30px auto 0;
}
.wschat-contact-form-container .wschat-form-confirmation-icon svg {
    fill: #4caf50;
}
.wschat-contact-form-container .wschat-form-confirmation-text {
    text-align: center;
    line-height: 1.4em;
    color: #757575;
    font-weight: 500;
    line-height: 1.4em;
    margin: .7em 0 1em;
    padding: 0 20px;
}

.wschat-contact-form-container .wschat-info-block {
    padding: 10px;
    margin-bottom: 20px;
    background: #eee;
    color: #666;
    text-align: center;
    line-height: 1.4;
}
.wschat-contact-form-container .wschat-info-block.context-success {
    background-color: #c8e6c9;
    color: #1b5e20;
}
.wschat-contact-form-container .wschat-info-block.context-error {
    background-color: #ffcdd2;
    color: #b71c1c;
}

/* Loader */
body.hide-other-loaders .wschat-loader {
    display: none!important;
}
.wschat-loader {
    position: relative;
    margin: 0px auto;
    width: 100px;
}
.wschat-loader.center {
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%,-50%);
    -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
}
.wschat-loader:before {
    content: '';
    display: block;
    padding-top: 100%;
}

.wschat-loader .circular {
    -webkit-animation: rotate 2s linear infinite;
    animation: rotate 2s linear infinite;
    height: 100%;
    -webkit-transform-origin: center center;
    transform-origin: center center;
    width: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.wschat-loader .path {
    stroke-dasharray: 1,200;
    stroke-dashoffset: 0;
    -webkit-animation: dash 1.5s ease-in-out infinite, color 6s ease-in-out infinite;
    animation: dash 1.5s ease-in-out infinite, color 6s ease-in-out infinite;
    stroke-linecap: round;
}
@-webkit-keyframes rotate {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes rotate {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@-webkit-keyframes dash {
    0% {
        stroke-dasharray: 1,200;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 89,200;
        stroke-dashoffset: -35px;
    }
    100% {
        stroke-dasharray: 89,200;
        stroke-dashoffset: -124px;
    }
}
@keyframes dash {
    0% {
        stroke-dasharray: 1,200;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 89,200;
        stroke-dashoffset: -35px;
    }
    100% {
        stroke-dasharray: 89,200;
        stroke-dashoffset: -124px;
    }
}
@-webkit-keyframes color {
    100%, 0% {
        stroke: var(--loader-progress-color, /*#d62d20*/ #1c1c1c);
    }
    40% {
        stroke: var(--loader-progress-color, /*#0057e7*/ #1c1c1c);
    }
    66% {
        stroke: var(--loader-progress-color, /*#008744*/ #1c1c1c);
    }
    80%, 90% {
        stroke: var(--loader-progress-color, /*#ffa700*/ #1c1c1c);
    }
}
@keyframes color {
    100%, 0% {
        stroke: var(--loader-progress-color, /*#d62d20*/ #1c1c1c);
    }
    40% {
        stroke: var(--loader-progress-color, /*#0057e7*/ #1c1c1c);
    }
    66% {
        stroke: var(--loader-progress-color, /*#008744*/ #1c1c1c);
    }
    80%, 90% {
        stroke: var(--loader-progress-color, /*#ffa700*/ #1c1c1c);
    }
}

/* Skeleton Loader */
.wschat-skeleton {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
}
.wschat-skeleton-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}
.wschat-skeleton-bone {
    position: relative;
    overflow: hidden;
    background-color: #e5e7eb;
    border-radius: 4px;
}
.wschat-skeleton-bone::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 30%,
        rgba(255, 255, 255, 0.6) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: wschat-shimmer 2.2s infinite ease-in-out;
}
@keyframes wschat-shimmer {
    100% {
        transform: translateX(100%);
    }
}
.wschat-skeleton-circle {
    border-radius: 50%;
    flex-shrink: 0;
}
.wschat-skeleton-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}
.wschat-skeleton-line {
    height: 12px;
    width: 100%;
}
.wschat-skeleton-line.w-25 { width: 25%; }
.wschat-skeleton-line.w-50 { width: 50%; }
.wschat-skeleton-line.w-75 { width: 75%; }
.wschat-skeleton-line.w-100 { width: 100%; }

.wschat-typing-indicator {
  display: table;
  padding: 6px 0;
}
.wschat-typing-indicator span {
    height: 8px;
    width: 8px;
    float: left;
    margin: 0 1px;
    background-color: #9E9EA1;
    display: block;
    border-radius: 50%;
    opacity: 0.4;
}
.wschat-typing-indicator span:nth-child(1) {
    animation: 1s blink infinite .3333s;
}
.wschat-typing-indicator span:nth-child(2) {
    animation: 1s blink infinite .6666s;
}
.wschat-typing-indicator span:nth-child(3) {
    animation: 1s blink infinite .9999s;
}

@keyframes blink {
  50% {
    opacity: 1;
  }
}

.wschat-internal-ai-widget {
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --wschat-widget-primary: var(--wschat-primary-color, #1c1c1c);
    --wschat-widget-surface: #ffffff;
    --wschat-widget-bot-bg: #ffffff;
    --wschat-widget-bot-text: #111827;
    --wschat-widget-operator-bg: #999999;
    --wschat-widget-operator-text: #ffffff;
    --wschat-widget-meta-time: #9ca3af;
    --wschat-widget-visitor-text: #ffffff;
    --wschat-widget-message-radius: 16px;
    --wschat-widget-message-radius-sharp: 4px;
}

.wschat-internal-ai-widget,
.wschat-internal-ai-widget * {
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-weight: 400;
    overflow-wrap: break-word;
}

.wschat-internal-ai-widget .wschat-container.wschat-visitor-container .wschat-top-bar {
    background-color: var(--wschat-widget-primary);
}

.wschat-internal-ai-launcher {
    width: 56px;
    height: 56px;
    border-radius: 28px;
    background: var(--wschat-widget-primary);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wschat-internal-ai-launcher .wschat-internal-ai-launcher-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wschat-internal-ai-launcher .wschat-internal-ai-launcher-icon svg {
    fill: #ffffff;
}

.wschat-internal-ai-container {
    width: 380px;
    height: 600px;
    border-radius: 18px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.wschat-internal-ai-container .wschat-chat-container {
    background: var(--wschat-widget-surface);
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
}

.wschat-internal-ai-top-bar {
    min-height: 66px;
    line-height: normal;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--wschat-widget-primary);
}

.wschat-internal-ai-title-wrap {
    display: flex;
    align-items: center;
    min-width: 0;
}

.wschat-internal-ai-avatar {
    width: 38px;
    height: 38px;
    border-radius: 19px;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex: 0 0 auto;
}

.wschat-internal-ai-name,
.wschat-internal-ai-status {
    display: block;
}

.wschat-internal-ai-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.wschat-internal-ai-status {
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    line-height: 1.2;
    margin-top: 2px;
}

.wschat-internal-ai-container .wschat-close-button {
    margin: 0;
    flex: 0 0 auto;
    border-radius: 8px;
    padding: 6px;
}

.wschat-internal-ai-container .wschat-conversation-container {
    height: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.wschat-internal-ai-container .wschat-message-block-container {
    position: static;
    inset: auto;
    height: 100%;
    padding: 14px;
    overflow-y: auto;
    background: var(--wschat-widget-surface);
}

.wschat-internal-ai-container .wschat-message {
    border-radius: var(--wschat-widget-message-radius) var(--wschat-widget-message-radius) var(--wschat-widget-message-radius) var(--wschat-widget-message-radius-sharp);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    max-width: 80%;
    padding: 9px 13px;
    font-size: 14px;
    line-height: 1.5;
}

.wschat-internal-ai-container .wschat-message-block {
    margin-bottom: 10px;
}

.wschat-internal-ai-container .wschat-message-group {
    display: flow-root;
}

.wschat-internal-ai-container .wschat-message-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    line-height: 1.2;
    color: #6b7280;
    margin: 0 0 3px 2px;
}

.wschat-internal-ai-container .wschat-message-meta-me {
    justify-content: flex-end;
    margin: 0 2px 3px 0;
}

.wschat-internal-ai-container .wschat-message-meta-label {
    font-weight: 500;
}

.wschat-internal-ai-container .wschat-message-meta-time {
    color: var(--wschat-widget-meta-time);
}

.wschat-internal-ai-container .wschat-message-you {
    background: var(--wschat-widget-bot-bg);
    color: var(--wschat-widget-bot-text);
    border: 0;
}

.wschat-internal-ai-container .wschat-message-me {
    background-color: var(--wschat-widget-primary);
    color: var(--wschat-widget-visitor-text);
    border-radius: var(--wschat-widget-message-radius) var(--wschat-widget-message-radius) var(--wschat-widget-message-radius-sharp) var(--wschat-widget-message-radius);
    box-shadow: none;
}

.wschat-internal-ai-container .wschat-message-assistant {
    background: var(--wschat-widget-bot-bg);
    color: var(--wschat-widget-bot-text);
}

.wschat-internal-ai-container .wschat-message-visitor {
    background-color: var(--wschat-widget-primary);
    color: var(--wschat-widget-visitor-text);
}

.wschat-internal-ai-container .wschat-message-operator {
    background: var(--wschat-widget-operator-bg);
    color: var(--wschat-widget-operator-text);
    border-radius: var(--wschat-widget-message-radius) var(--wschat-widget-message-radius) var(--wschat-widget-message-radius) var(--wschat-widget-message-radius-sharp);
    box-shadow: none;
}

.wschat-internal-ai-container .wschat-message-assistant a,
.wschat-internal-ai-container .wschat-message-assistant a:visited {
    display: inline-block;
    box-sizing: border-box;
    max-width: 100%;
    margin: 2px 1px;
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f3f4f6;
    color: #374151;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
    line-height: 1.35;
    text-decoration: none;
    word-break: normal;
    overflow-wrap: anywhere;
    vertical-align: middle;
}

.wschat-internal-ai-container .wschat-message-assistant a:hover,
.wschat-internal-ai-container .wschat-message-assistant a:focus {
    border-color: #9ca3af;
    background: #e5e7eb;
    color: #111827;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.wschat-internal-ai-container .wschat-message-assistant a:focus-visible {
    outline: 2px solid var(--wschat-widget-primary);
    outline-offset: 2px;
}

.wschat-internal-ai-container .wschat-message-visitor a,
.wschat-internal-ai-container .wschat-message-visitor a:hover,
.wschat-internal-ai-container .wschat-message-operator a,
.wschat-internal-ai-container .wschat-message-operator a:hover {
    color: var(--wschat-widget-operator-text);
}

.wschat-internal-ai-container .wschat-message-me a,
.wschat-internal-ai-container .wschat-message-me a:hover {
    color: var(--wschat-widget-visitor-text);
}

.wschat-internal-ai-container .wschat-footer-form-container {
    height: auto;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    flex: 0 0 auto;
}

.wschat-internal-ai-container .wschat-send-chat-form {
    min-height: 60px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wschat-internal-ai-container .wschat-chat-input {
    min-height: 60px;
    height: 60px;
    border-radius: 18px;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    padding: 18px 50px 18px 18px;
    box-shadow: none;
    line-height: 20px;
    font-size: 14px;
    resize: none;
    overflow-y: hidden;
}

.wschat-internal-ai-container .wschat-chat-send-button {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    padding: 0;
    border-radius: 20px;
    background: #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wschat-internal-ai-container .wschat-chat-send-button[disabled] {
    cursor: not-allowed;
}

.wschat-internal-ai-container .wschat-send-chat-form.has-text .wschat-chat-send-button {
    background-color: var(--wschat-widget-primary);
}

.wschat-internal-ai-container .wschat-chat-send-button svg,
.wschat-internal-ai-container .wschat-send-chat-form.has-text .wschat-chat-send-button svg {
    fill: #ffffff;
}

.wschat-internal-ai-container .wschat-chat-send-button .wschat-send-icon {
    width: 18px;
    height: 18px;
    display: block;
}

/* Operator send button: vertically center within the input row.
   The base shared.css uses position:absolute; bottom:20px which
   sits the button at the bottom of the form rather than centered.
   Only override for .wschat-operator-container so the visitor widget
   is unaffected. */
.wschat-operator-container .wschat-send-chat-form {
    display: flex;
    align-items: center;
    position: relative;
}

.wschat-operator-container .wschat-chat-send-button {
    position: static;
    flex: 0 0 46px;
    height: 46px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    bottom: auto;
    right: auto;
}

.wschat-operator-container .wschat-chat-send-button svg {
    fill: #fff;
}

.wschat-operator-container .wschat-send-chat-form.has-text .wschat-chat-send-button svg {
    fill: #333;
}

.wschat-internal-ai-container .wschat-typing-indicator {
    min-width: 44px;
}

.wschat-internal-ai-container .wschat-chat-container {
    position: relative;
}

.wschat-internal-ai-contact-panel {
    flex: 0 0 auto;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 12px 14px 8px;
    animation: wschat-contact-sheet-enter 220ms ease-out;
}

.wschat-internal-ai-contact-sheet {
    margin: 0;
    padding: 14px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1.5px solid #e5e7eb;
}

.wschat-internal-ai-contact-handle {
    display: none;
}

.wschat-internal-ai-contact-title {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.wschat-internal-ai-contact-copy {
    font-size: 13px;
    line-height: 1.45;
    color: #374151;
    margin-bottom: 10px;
}

.wschat-internal-ai-contact-form .wschat-form-control {
    width: 100%;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    background: #ffffff;
    padding: 8px 11px;
    margin: 0 0 8px;
    font-size: 13px;
    box-sizing: border-box;
}

.wschat-internal-ai-contact-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.wschat-internal-ai-contact-actions .wschat-btn {
    width: auto;
    min-width: 0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
}

.wschat-internal-ai-contact-actions .wschat-btn.ghost {
    background: transparent;
    color: #6b7280;
    border: 1.5px solid #e5e7eb;
}

.wschat-internal-ai-contact-actions .wschat-btn:not(.ghost) {
    flex: 1 1 auto;
    background-color: var(--wschat-widget-primary);
    color: #ffffff;
    border: none;
}

.wschat-internal-ai-contact-toggle-row {
    padding: 6px 14px 0;
    display: flex;
    align-items: center;
    background: #ffffff;
}

.wschat-internal-ai-contact-toggle {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #000000;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
}

.wschat-internal-ai-contact-toggle-caret {
    text-decoration: none;
}

.wschat-internal-ai-contact-confirmation {
    margin-top: 8px;
}

@keyframes wschat-contact-sheet-enter {
    from {
        transform: translateY(16px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media only screen and (max-width: 768px) {
    /* Higher specificity than the legacy .wschat-visitor-container mobile rule
       (which comes later in the bundle and would force 100% x 100%). With the
       10px inline offsets from getPositionStyle(), width/height here give a
       10px inset on all sides of the VISIBLE mobile screen. */
    .wschat-visitor-container.wschat-internal-ai-container {
        width: calc(100vw - 20px);     /* fallback for browsers without dvw */
        width: calc(100dvw - 20px);
        height: calc(100vh - 20px);    /* fallback for browsers without dvh */
        height: calc(100dvh - 20px);
        height: calc(var(--wschat-viewport-height, 100dvh) - 20px);
        border-radius: 20px;
        border: none;
    }

    .wschat-visitor-container.wschat-internal-ai-container:not(.wschat-hidden) {
        top: auto !important;
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
    }

    .wschat-internal-ai-launcher {
        right: 10px;
        bottom: 10px;
    }

    .wschat-internal-ai-container .wschat-chat-input,
    .wschat-internal-ai-contact-form .wschat-form-control {
        font-size: 16px !important;
    }
}

@media (max-width: 767px) {
    .wschat-visitor-container,
    .wschat-visitor-container.wschat-showing-contact-form {
        bottom: 0;
        right: 0;
        width: 100%;
        width: 100dvw;      /* dynamic viewport width (mobile URL-bar aware) */
        height: 100%;
        height: 100dvh;     /* dynamic viewport height: fits the VISIBLE mobile screen */
        z-index: 999999;

        transition: all .3s ease-in-out;

        border-radius: 0;
    }
}
