#wlac,
#wlac * {
    box-sizing: border-box;
}

#wlac {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999999;
    font-family: Arial, sans-serif;
}

#wlac button,
#wlac input {
    font-family: inherit;
}

/* Floating Chat Toggle Button Circle Setup */
#wlac-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 0;
    overflow: hidden;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: #0a3824;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Inner Icon Container */
.wlac-toggle-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
}

/* Doctor Image Styling Inside Toggle */
.wlac-toggle-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 50%;
    display: block;
}

#wlac-window {
    display: none;
    position: absolute;
    right: 0;
    bottom: 70px;
    width: 400px;
    height: 750px;
    max-width: calc(100vw - 20px);
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(0,0,0,.20);
}

#wlac-window.is-open {
    display: flex;
    flex-direction: column;
}

.wlac-header {
    flex: 0 0 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: #0a3824;
    color: #fff;
}

.wlac-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wlac-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: #fff;
}

.wlac-brand-text strong {
    display: block;
    font-size: 15px;
}

.wlac-brand-text span {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
    font-size: 11px;
    opacity: .9;
}

.wlac-brand-text i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8ff0a4;
}

#wlac-close {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 27px;
}

.wlac-quick-actions {
    display: flex;
    gap: 7px;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
    background: #fff;
}
.wlac-quick {
    flex: 0 0 auto;
    padding: 7px 11px;
    border: 1px solid #ead9dc;
    border-radius: 20px;
    background: #fff;
    color: #008000;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.wlac-quick:hover {
    background: #fff5f6;
}

#wlac-messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 16px 14px;
    background: #f8f8f9;
    -webkit-overflow-scrolling: touch;
}

.wlac-message {
    max-width: 86%;
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: pre-wrap;
}

.wlac-message.ai {
    background: #fff;
    color: #252525;
    border: 1px solid #ededed;
    border-bottom-left-radius: 5px;
}

.wlac-message.user {
    margin-left: auto;
    background: #0a3824;
    color: #fff;
    border-bottom-right-radius: 5px;
}

.wlac-typing {
    opacity: .65;
}

.wlac-products {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 96%;
    margin-bottom: 12px;
}

.wlac-product-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e9e9e9;
    border-radius: 13px;
    background: #fff;
}

.wlac-product-image {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    object-fit: contain;
    border-radius: 8px;
    background: #f7f7f7;
}

.wlac-product-content {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wlac-product-name {
    color: #222;
    font-size: 13px;
    line-height: 1.35;
}

.wlac-product-price {
    margin-top: 4px;
    color: #008000;
    font-size: 13px;
    font-weight: 700;
}

.wlac-stock {
    margin-top: 3px;
    font-size: 11px;
    font-weight: 600;
}

.wlac-stock.in {
    color: #278448;
}

.wlac-stock.out {
    color: #b33a3a;
}

.wlac-product-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    margin-top: 7px;
    padding: 0 10px;
    border-radius: 7px;
    background: #008000;
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
}

.wlac-product-link:hover {
    background: #2e7d32;
    color: #fff;
}

#wlac-form {
    flex: 0 0 auto;
    margin: 0;
    padding: 10px;
    border-top: 1px solid #eee;
    background: #fff;
}

.wlac-input-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 44px;
    padding: 4px 4px 4px 11px;
    border: 1px solid #ddd;
    border-radius: 24px;
    background: #fff;
}

#wlac-input {
    flex: 1;
    min-width: 0;
    width: auto;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #222;
    font-size: 13px;
}

#wlac-input::placeholder {
    color: #888;
}

#wlac-mic,
#wlac-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

#wlac-mic {
    background: #f3f3f3;
    color: #008000;
}

#wlac-mic:hover {
    background: #f9e8eb;
}

#wlac-mic.is-recording {
    background: #008000;
    color: #fff;
}

#wlac-send {
    background: #0b3a25;
    color: #fff;
}

#wlac-send:hover {
    background: #065b35;
}

#wlac-mic:disabled,
#wlac-send:disabled,
.wlac-quick:disabled {
    opacity: .5;
    cursor: not-allowed;
}

@media (max-width: 480px) {

    #wlac {
        right: 12px;
        bottom: 12px;
    }

    #wlac-window {
        position: fixed;
        right: 8px;
        bottom: 72px;
        left: 8px;
        width: auto;
        height: min(600px, calc(100dvh - 88px));
        max-width: none;
        border-radius: 16px;
    }

    .wlac-message {
        max-width: 90%;
    }

    .wlac-product-image {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }
	.wlac-quick {
		padding: 5px 6px;}
}
/* Stock Status Badge Styles */
.wlac-product-stock {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin: 3px 0;
    width: fit-content;
}

.wlac-product-stock.in-stock {
    background-color: #e6f4ea;
    color: #137333;
    border: 1px solid #ceead6;
}

.wlac-product-stock.out-of-stock {
    background-color: #fce8e6;
    color: #c5221f;
    border: 1px solid #fad2cf;
}

.wlac-product-price {
    display: block;
    color: #008000;
    font-weight: 700;
    font-size: 13px;
    margin-top: 2px;
}
a.wlac-product-link {
    color: white !important;
}