#mabc-widget-wrapper {
    position: fixed;
    bottom: 25px;
    z-index: 999999;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
#mabc-launcher {
    background: var(--mabc-primary);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    transition: transform .25s ease, background-color .2s ease;
    padding: 0;
    z-index: 2;
}
#mabc-launcher:hover { background: var(--mabc-secondary); transform: scale(1.05); }
#mabc-open-icon { width: 28px; height: 28px; }
#mabc-text-card {
    background: #fff;
    color: var(--mabc-text);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    margin-left: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    border: 1px solid rgba(0,0,0,.08);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity .45s ease, transform .45s ease;
    pointer-events: none;
}
#mabc-widget-wrapper.card-visible #mabc-text-card { opacity: 1; transform: translateX(0); }
#mabc-box {
    display: none;
    position: absolute;
    bottom: 75px;
    width: 390px;
    height: 560px;
    max-height: 75vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 38px rgba(0,0,0,.18);
    overflow: hidden;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,.08);
}
.mabc-header {
    background: linear-gradient(135deg, var(--mabc-primary), var(--mabc-secondary));
    color: #fff;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.mabc-header img { width: 38px; max-height: 38px; object-fit: contain; filter: brightness(0) invert(1); }
.mabc-title { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: .3px; line-height: 1.2; }
.mabc-subtitle { margin: 4px 0 0; font-size: 11px; color: rgba(255,255,255,.86); line-height: 1; }
#mabc-log {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: var(--mabc-bg);
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}
.mabc-bubble {
    max-width: 88%;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.55;
    word-break: break-word;
}
.mabc-bubble.client {
    background: var(--mabc-primary);
    color: #fff;
    align-self: flex-end;
    border-radius: 12px 12px 0 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.mabc-bubble.concierge {
    background: #fff;
    color: var(--mabc-text);
    border: 1px solid rgba(0,0,0,.08);
    align-self: flex-start;
    border-radius: 12px 12px 12px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,.035);
}
.mabc-bubble table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 12px;
    background: #fff;
}
.mabc-bubble th,
.mabc-bubble td {
    border: 1px solid #f0e0db;
    padding: 7px 8px;
    text-align: left;
    vertical-align: top;
}
.mabc-bubble th { background: #fff5f3; color: var(--mabc-secondary); font-weight: 800; }
.mabc-bubble p { margin: 0 0 8px; }
.mabc-bubble p:last-child { margin-bottom: 0; }
.mabc-bubble ul { margin: 8px 0 0 18px; padding: 0; }
.mabc-rich-response { width: 100%; }
.mabc-response-title { font-size: 15px; font-weight: 900; color: var(--mabc-secondary); margin-bottom: 8px; }
.mabc-response-intro { font-size: 13px; line-height: 1.55; margin-bottom: 12px; }
.mabc-services-grid { display: grid; gap: 8px; }
.mabc-service-card { border: 1px solid #f0e0db; border-radius: 10px; padding: 10px; background: #fffdfa; }
.mabc-service-name { font-weight: 800; color: var(--mabc-text); margin-bottom: 6px; }
.mabc-price-line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-top: 1px dashed #f0e0db; font-size: 12px; }
.mabc-price-line:first-of-type { border-top: 0; }
.mabc-price-line strong { color: var(--mabc-primary); }
.mabc-sale-price { display: inline-flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 6px; text-align: right; }
.mabc-regular-price { color: #9b7a72; text-decoration: line-through; font-weight: 700; }
.mabc-discount-line { margin: -1px 0 4px; color: var(--mabc-secondary); font-size: 11px; font-weight: 800; text-align: right; }
.mabc-note-box { background: #fff5f3; border-left: 3px solid var(--mabc-primary); padding: 10px; border-radius: 8px; margin-top: 12px; font-size: 12px; line-height: 1.55; }
.mabc-confirm-card { border: 1px solid #f0e0db; border-radius: 10px; overflow: hidden; margin-top: 10px; }
.mabc-confirm-card div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 10px; border-top: 1px solid #f0e0db; }
.mabc-confirm-card div:first-child { border-top: 0; }
.mabc-confirm-card span { color: #8d6b62; font-size: 12px; }
.mabc-confirm-card strong { color: var(--mabc-text); text-align: right; }
.mabc-payment-button {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, var(--mabc-primary), var(--mabc-secondary));
    color: #fff !important;
    text-decoration: none !important;
    padding: 12px;
    margin-top: 4px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0,0,0,.16);
}
.mabc-busy-card .mabc-response-title {
    color: var(--mabc-secondary);
}
.mabc-action-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
}
.mabc-action-buttons a {
    display: block;
    text-align: center;
    text-decoration: none !important;
    padding: 11px 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 13px;
    line-height: 1.25;
}
.mabc-whatsapp-button {
    background: #25D366;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(37,211,102,.22);
}
.mabc-form-button {
    background: #fff;
    color: var(--mabc-secondary) !important;
    border: 1px solid #f0e0db;
}
.mabc-input-bar {
    display: flex;
    border-top: 1px solid rgba(0,0,0,.08);
    padding: 12px;
    background: #fff;
    gap: 8px;
    align-items: center;
}
#mabc-input {
    flex: 1;
    padding: 11px 16px;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 22px;
    font-size: 13px;
    outline: none;
    background: var(--mabc-bg);
    color: var(--mabc-text);
    transition: border-color .2s, background .2s;
}
#mabc-input:focus { border-color: var(--mabc-primary); background: #fff; }
#mabc-submit {
    background: var(--mabc-primary);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .1s;
    flex-shrink: 0;
}
#mabc-submit:hover { background: var(--mabc-secondary); }
#mabc-submit:active { transform: scale(.95); }
.mabc-loader {
    align-self: flex-start;
    color: #9b7a72;
    font-size: 12px;
    font-style: italic;
    padding-left: 4px;
}
@media (max-width: 480px) {
    #mabc-widget-wrapper { bottom: 15px; width: calc(100% - 30px); flex-direction: row-reverse; }
    #mabc-launcher { width: 54px; height: 54px; }
    #mabc-open-icon { width: 24px; height: 24px; }
    #mabc-text-card { padding: 6px 12px; font-size: 12px; margin-left: 8px; }
    #mabc-box { bottom: 65px; width: 100%; height: 80vh; max-height: 560px; }
    .mabc-bubble { max-width: 92%; }
}
