.mklc-widget {
    position: fixed;
    bottom: 20px;
    --mklc-mobile-toolbar-offset: 0px;
    z-index: 99999;
    font-family: "Segoe UI", Tahoma, sans-serif;
    width: min(380px, calc(100vw - 24px));
    pointer-events: none;
}

.mklc-widget.mklc-right {
    right: 20px;
}

.mklc-widget.mklc-left {
    left: 20px;
}

.mklc-launcher {
    appearance: none;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--mklc-primary, #c96f4a), #f0a56b);
    color: #fff;
    padding: 14px 18px;
    box-shadow: 0 18px 40px rgba(82, 43, 26, 0.22);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    pointer-events: auto;
}

.mklc-header-trigger {
    appearance: none;
    border: 1px solid rgba(201, 111, 74, 0.18);
    border-radius: 999px;
    background: rgba(255, 250, 246, 0.96);
    color: #5b4134;
    padding: 8px 14px 8px 8px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(82, 43, 26, 0.08);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.mklc-header-trigger:hover {
    transform: translateY(-1px);
    border-color: rgba(201, 111, 74, 0.35);
    box-shadow: 0 14px 28px rgba(82, 43, 26, 0.12);
    background: #fff;
}

.mklc-header-trigger:focus-visible {
    outline: 2px solid rgba(201, 111, 74, 0.28);
    outline-offset: 2px;
}

.mklc-header-trigger-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--mklc-primary, #c96f4a), #f0a56b);
    color: #fff;
    flex: 0 0 auto;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.mklc-header-trigger-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.mklc-header-trigger-label {
    display: inline-block;
}

.mklc-header-trigger-status {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #6fbe8d;
    box-shadow: 0 0 0 4px rgba(111, 190, 141, 0.16);
    flex: 0 0 auto;
}

.mklc-header-trigger-icon-only {
    padding-right: 8px;
}

.mklc-header-trigger-icon-only .mklc-header-trigger-label {
    display: none;
}

.mklc-header-trigger-header-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    justify-content: center;
    gap: 0;
}

.mklc-header-trigger-header-icon:hover {
    transform: none;
    background: transparent;
    box-shadow: none;
    border-color: transparent;
}

.mklc-header-trigger-header-icon .mklc-header-trigger-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.96);
    color: #cf7c52;
    box-shadow: inset 0 0 0 1px rgba(201, 111, 74, 0.12);
}

.mklc-header-trigger-header-icon .mklc-header-trigger-label {
    display: none;
}

.mklc-header-trigger-header-icon .mklc-header-trigger-status {
    position: absolute;
    right: 3px;
    top: 5px;
    width: 8px;
    height: 8px;
    box-shadow: 0 0 0 3px rgba(111, 190, 141, 0.14);
}

@media (max-width: 767px) {
    .mklc-header-trigger {
        padding-right: 10px;
        gap: 8px;
    }

    .mklc-header-trigger-label {
        font-size: 12px;
    }
}

.wd-toolbar.mklc-has-woodmart-chat > a,
.wd-toolbar.mklc-has-woodmart-chat > div {
    flex: 1 0 calc(100% / var(--mklc-toolbar-item-count, 6));
}

.wd-toolbar-mklc-chat .wd-toolbar-icon {
    color: inherit;
}

.wd-toolbar-mklc-chat .wd-toolbar-icon:before,
.wd-toolbar-mklc-chat .wd-toolbar-icon:after {
    content: none;
    display: none;
}

.wd-toolbar-mklc-chat .wd-toolbar-icon svg {
    width: 27px;
    height: 27px;
    display: block;
    margin: 0 auto;
}

.wd-toolbar-mklc-chat .wd-toolbar-icon {
    line-height: 1;
}

.mklc-widget.mklc-right .mklc-launcher {
    margin-left: auto;
}

.mklc-widget.mklc-open .mklc-launcher {
    display: none;
}

.mklc-panel {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: min(620px, calc(100vh - 110px));
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: linear-gradient(180deg, #fffaf5 0%, #ffffff 100%);
    border: 1px solid rgba(201, 111, 74, 0.18);
    box-shadow: 0 28px 70px rgba(68, 36, 21, 0.18);
    pointer-events: auto;
}

.mklc-panel[hidden] {
    display: none !important;
}

.mklc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 14px;
    background:
        radial-gradient(circle at top left, rgba(255, 222, 198, 0.8), transparent 55%),
        linear-gradient(135deg, rgba(201, 111, 74, 0.12), rgba(255, 255, 255, 0.95));
    border-bottom: 1px solid rgba(201, 111, 74, 0.15);
}

.mklc-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.mklc-header-actions > button {
    box-sizing: border-box;
    flex: 0 0 auto;
}

.mklc-action-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.mklc-action-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.mklc-action-text {
    display: inline-block;
}

.mklc-header p {
    margin: 4px 0 0;
    color: #6d5649;
    font-size: 12px;
    line-height: 1.45;
}

.mklc-quick-strip {
    padding: 12px 16px 10px;
    border-bottom: 1px solid rgba(201, 111, 74, 0.12);
    background: rgba(255, 250, 245, 0.96);
    flex: 0 0 auto;
}

.mklc-quick-strip-title {
    margin-bottom: 8px;
    color: #8c6b5a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mklc-widget .mklc-close {
    appearance: none;
    border: 1px solid rgba(201, 111, 74, 0.14);
    background: rgba(255, 255, 255, 0.72);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: #705646;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.mklc-widget .mklc-expand {
    appearance: none;
    border: 1px solid rgba(201, 111, 74, 0.14);
    background: rgba(255, 255, 255, 0.72);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: #705646;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.mklc-widget .mklc-reset {
    appearance: none;
    border: 1px solid rgba(201, 111, 74, 0.14);
    background: rgba(255, 255, 255, 0.72);
    color: #7a5c49;
    border-radius: 10px;
    padding: 0 12px;
    height: 36px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.01em;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.mklc-widget .mklc-close:hover,
.mklc-widget .mklc-expand:hover,
.mklc-widget .mklc-reset:hover {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(201, 111, 74, 0.22);
    color: #4f392e;
    transform: translateY(-1px);
}

.mklc-widget .mklc-close:focus-visible,
.mklc-widget .mklc-expand:focus-visible,
.mklc-widget .mklc-reset:focus-visible {
    outline: 2px solid rgba(201, 111, 74, 0.2);
    outline-offset: 2px;
}

.mklc-close .mklc-action-icon,
.mklc-expand .mklc-action-icon {
    width: 16px;
    height: 16px;
}

.mklc-close .mklc-action-icon svg,
.mklc-expand .mklc-action-icon svg {
    width: 16px;
    height: 16px;
}

.mklc-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background:
        linear-gradient(180deg, rgba(255, 247, 240, 0.65), rgba(255, 255, 255, 0.95)),
        linear-gradient(90deg, rgba(201, 111, 74, 0.03), transparent 40%);
}

.mklc-message {
    max-width: 85%;
    padding: 12px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.mklc-assistant {
    align-self: flex-start;
    background: #fff;
    color: #2f241d;
    border: 1px solid rgba(201, 111, 74, 0.14);
}

.mklc-assistant a {
    color: #9c5535;
    text-decoration: underline;
    word-break: break-word;
}

.mklc-user {
    align-self: flex-end;
    background: var(--mklc-primary, #c96f4a);
    color: #fff;
}

.mklc-quick-questions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.mklc-context-links {
    padding: 0 16px 12px;
    flex: 0 0 auto;
}

.mklc-context-links:empty {
    display: none;
}

.mklc-ticket-page {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: linear-gradient(180deg, rgba(255, 250, 245, 0.92), rgba(255, 255, 255, 0.98));
    border-top: 1px solid rgba(201, 111, 74, 0.12);
}

.mklc-ticket-page[hidden] {
    display: none !important;
}

.mklc-ticket-dock {
    padding: 14px 16px 16px;
    border-top: 1px solid rgba(201, 111, 74, 0.12);
    background: rgba(255, 253, 250, 0.98);
    flex: 0 0 auto;
    max-height: min(52vh, 430px);
    overflow-y: auto;
}

.mklc-ticket-dock[hidden] {
    display: none !important;
}

.mklc-ticket-composer {
    align-self: stretch;
    max-width: none;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 248, 242, 0.98), rgba(255, 255, 255, 0.98));
    box-shadow: inset 0 0 0 1px rgba(201, 111, 74, 0.12);
}

.mklc-ticket-composer-form {
    display: grid;
    gap: 10px;
    margin: 0;
}

.mklc-ticket-field {
    display: grid;
    gap: 6px;
    color: #5d473b;
    font-size: 12px;
    font-weight: 700;
}

.mklc-ticket-field input,
.mklc-ticket-field textarea {
    border: 1px solid rgba(145, 102, 76, 0.22);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.mklc-ticket-submit {
    appearance: none;
    border: 0;
    border-radius: 14px;
    background: #2f241d;
    color: #fff;
    padding: 13px 16px;
    font-weight: 700;
    cursor: pointer;
}

.mklc-ticket-submit:disabled {
    opacity: 0.65;
    cursor: default;
}

.mklc-ticket-composer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.mklc-ticket-link-button {
    appearance: none;
    border: 0;
    background: transparent;
    color: #8a5c45;
    padding: 12px 6px;
    font-weight: 700;
    cursor: pointer;
}

.mklc-ticket-error {
    margin: 0;
    color: #b23b2f;
    font-size: 12px;
    font-weight: 700;
}

.mklc-loading-message {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.mklc-loading-label {
    color: #6d5649;
    font-size: 13px;
}

.mklc-loading-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mklc-loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(201, 111, 74, 0.7);
    animation: mklc-loading-bounce 1.2s infinite ease-in-out;
}

.mklc-loading-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.mklc-loading-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

.mklc-order-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mklc-order-option {
    appearance: none;
    border: 1px solid rgba(201, 111, 74, 0.18);
    border-radius: 14px;
    background: #fff;
    color: #6d5649;
    padding: 12px 14px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.mklc-order-option:hover {
    border-color: rgba(201, 111, 74, 0.35);
    background: rgba(255, 248, 242, 0.98);
}

@keyframes mklc-loading-bounce {
    0%,
    80%,
    100% {
        transform: scale(0.7);
        opacity: 0.45;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.mklc-ticket-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.mklc-ticket-page-copy {
    margin: 0 0 16px;
    color: #6d5649;
    font-size: 13px;
    line-height: 1.5;
}

.mklc-ticket-back {
    appearance: none;
    border: 1px solid rgba(201, 111, 74, 0.18);
    background: rgba(255, 255, 255, 0.85);
    color: #8a5c45;
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 700;
}

.mklc-ticket-form {
    display: grid;
    gap: 14px;
}

.mklc-ticket-form label {
    display: grid;
    gap: 6px;
    color: #5d473b;
    font-size: 12px;
    font-weight: 700;
}

.mklc-ticket-form input,
.mklc-ticket-form textarea {
    border: 1px solid rgba(145, 102, 76, 0.22);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
}

.mklc-ticket-submit {
    appearance: none;
    border: 0;
    border-radius: 14px;
    background: #2f241d;
    color: #fff;
    padding: 13px 16px;
    cursor: pointer;
    font-weight: 700;
}

.mklc-context-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    background: rgba(201, 111, 74, 0.1);
    color: #7d4b33;
    text-decoration: none;
    padding: 10px 12px;
    font-weight: 700;
}

.mklc-product-card {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #7d4b33;
    background: linear-gradient(135deg, rgba(255, 244, 236, 0.98), rgba(255, 250, 245, 0.98));
}

.mklc-product-card strong {
    flex: 1;
}

.mklc-product-card-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #b16a47;
}

.mklc-product-card-arrow {
    font-weight: 700;
}

.mklc-widget .mklc-chip {
    appearance: none;
    border: 1px solid rgba(201, 111, 74, 0.24);
    border-radius: 12px;
    background: rgba(255, 248, 242, 0.96);
    color: #7d4b33;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
    flex: 0 0 auto;
}

.mklc-widget .mklc-whatsapp {
    display: block;
    margin: 0 16px 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, #25d366, #1faa59);
    border: 1px solid rgba(22, 138, 74, 0.2);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.28);
    color: #fff;
    text-align: center;
    text-decoration: none;
    padding: 12px 14px;
    font-weight: 700;
}

.mklc-whatsapp[hidden] {
    display: none !important;
}

.mklc-whatsapp:hover {
    filter: brightness(1.03);
}

.mklc-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 14px 16px 16px;
    border-top: 1px solid rgba(201, 111, 74, 0.12);
    background: rgba(255, 253, 250, 0.96);
}

.mklc-form[hidden] {
    display: none !important;
}

.mklc-input-wrap {
    min-width: 0;
}

.mklc-char-counter {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(140, 107, 90, 0.72);
    font-size: 10px;
    line-height: 1;
    pointer-events: none;
    white-space: nowrap;
}

.mklc-char-counter.is-limit-near {
    color: #9c5535;
}

.mklc-char-counter.is-limit-reached {
    color: #b23b2f;
}

.mklc-input {
    --wd-form-brd-width: 0;
    --wd-form-brd-color: transparent;
    --wd-form-brd-radius: 12px;
    --wd-form-bg: #fcf8f4;
    border: 1px solid rgba(201, 111, 74, 0.16);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    min-width: 0;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    background: #fcf8f4;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
    color: #4f392e;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.mklc-input:focus {
    outline: none;
    border-color: rgba(201, 111, 74, 0.24);
    background: #fffdfb;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 0 0 3px rgba(201, 111, 74, 0.08);
}

.mklc-widget .mklc-send {
    appearance: none;
    position: relative;
    border: 1px solid rgba(201, 111, 74, 0.16);
    border-radius: 12px;
    background: #fcf8f4;
    color: #4f392e;
    letter-spacing: 0.02em;
    font-size: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
    padding: 0 16px;
    cursor: pointer;
    font-weight: 700;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    min-height: 42px;
}

.mklc-send-label {
    display: block;
    text-align: center;
}

.mklc-widget .mklc-send:hover {
    background: #fffdfb;
    border-color: rgba(201, 111, 74, 0.22);
}

.mklc-widget .mklc-ticket-submit {
    appearance: none;
    border: 1px solid rgba(47, 36, 29, 0.12);
    border-radius: 12px;
    background: #2f241d;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.mklc-widget .mklc-ticket-link-button,
.mklc-widget .mklc-ticket-back {
    border: 1px solid rgba(201, 111, 74, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.mklc-widget .mklc-ticket-link-button:hover,
.mklc-widget .mklc-ticket-back:hover,
.mklc-widget .mklc-ticket-submit:hover {
    border-color: rgba(201, 111, 74, 0.22);
    transform: translateY(-1px);
}

.mklc-widget .mklc-ticket-submit:hover {
    background: #3a2d24;
}

.mklc-order-option,
.mklc-ticket-link-button,
.mklc-ticket-back,
.mklc-context-link,
.mklc-product-card {
    border-radius: 12px;
}

.mklc-form.is-loading {
    opacity: 0.7;
}

.mklc-widget.mklc-expanded {
    bottom: 20px;
    width: min(560px, calc(100vw - 32px));
}

.mklc-widget.mklc-expanded.mklc-right {
    right: 20px;
    left: auto;
}

.mklc-widget.mklc-expanded.mklc-left {
    left: 20px;
    right: auto;
}

.mklc-widget.mklc-expanded .mklc-panel {
    position: absolute;
    inset: auto 0 0 0;
    width: 100%;
    height: min(760px, calc(100vh - 48px));
    max-height: min(760px, calc(100vh - 48px));
    border-radius: 28px;
}

@media (max-width: 640px) {
    body.mklc-chat-mobile-toolbar-suppressed.sticky-toolbar-on {
        padding-bottom: 0;
    }

    body.mklc-chat-mobile-toolbar-suppressed .wd-toolbar {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate3d(0, 100%, 0);
    }

    body.mklc-chat-mobile-toolbar-suppressed .wd-sticky-btn {
        bottom: 0;
    }

    body.mklc-chat-mobile-toolbar-suppressed .scrollToTop {
        bottom: 12px;
    }

    body.mklc-chat-mobile-toolbar-suppressed .wd-sticky-btn-shown.scrollToTop {
        bottom: calc(12px + var(--wd-sticky-btn-height));
    }

    .mklc-widget.mklc-left,
    .mklc-widget.mklc-right {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .mklc-widget.mklc-with-mobile-toolbar.mklc-left,
    .mklc-widget.mklc-with-mobile-toolbar.mklc-right {
        bottom: calc(var(--mklc-mobile-toolbar-offset, 0px) + 8px);
    }

    .mklc-panel {
        width: 100%;
        height: min(72vh, 560px);
        left: 0;
        right: 0;
    }

    .mklc-widget.mklc-expanded {
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        top: 0;
    }

    .mklc-widget.mklc-expanded.mklc-with-mobile-toolbar {
        bottom: var(--mklc-mobile-toolbar-offset, 0px);
    }

    .mklc-widget.mklc-expanded .mklc-panel {
        position: fixed;
        inset: 0 0 0 0;
        border-radius: 0;
        height: auto;
        max-height: none;
    }

    .mklc-widget.mklc-expanded.mklc-with-mobile-toolbar .mklc-panel {
        inset: 0 0 var(--mklc-mobile-toolbar-offset, 0px) 0;
    }

    .mklc-header-actions {
        gap: 6px;
    }

    .mklc-reset {
        padding: 0 8px;
    }

    .mklc-form {
        grid-template-columns: 1fr;
    }

    .mklc-ticket-dock {
        max-height: min(56vh, 480px);
    }

    .mklc-send {
        min-height: 44px;
    }
}