:root {
    --mmw-primary: #111111;
    --mmw-accent: #25D366;
    --mmw-surface: #ffffff;
}

.mmw-float {
    position: fixed;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    z-index: 9998;
    max-width: min(360px, calc(100vw - 32px));
    font-family: inherit;
}

.mmw-pos-right { right: 22px; }
.mmw-pos-left { left: 22px; }

.mmw-float-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    padding: 10px 16px 10px 10px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    background: var(--mmw-surface);
    color: var(--mmw-primary);
    box-shadow: 0 12px 36px rgba(0,0,0,.16);
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease;
}

.mmw-float-link:hover,
.mmw-float-link:focus {
    color: var(--mmw-primary);
    transform: translateY(-2px);
    box-shadow: 0 16px 42px rgba(0,0,0,.20);
    outline: none;
}

.mmw-icon,
.mmw-product-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--mmw-accent);
    color: #fff;
}

.mmw-icon { width: 42px; height: 42px; }
.mmw-icon svg { width: 23px; height: 23px; }

.mmw-copy { display: flex; flex-direction: column; line-height: 1.25; }
.mmw-copy strong { font-size: 14px; font-weight: 750; letter-spacing: -.01em; }
.mmw-copy small { display: flex; align-items: center; gap: 6px; margin-top: 4px; max-width: 245px; color: #666; font-size: 11px; font-weight: 500; }

.mmw-status-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #aaa; }
.mmw-status-dot.is-open { background: var(--mmw-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mmw-accent) 15%, transparent); }
.mmw-status-dot.is-closed { background: #9b9b9b; }

.mmw-product-contact {
    margin: 15px 0 5px;
    clear: both;
}

.mmw-product-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid #e6e6e6;
    border-left: 4px solid var(--mmw-accent);
    border-radius: 10px;
    background: #fff;
    color: var(--mmw-primary) !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.05);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.mmw-product-link:hover,
.mmw-product-link:focus {
    border-color: #d7d7d7;
    color: var(--mmw-primary) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.09);
    transform: translateY(-1px);
    outline: none;
}

.mmw-product-icon { width: 38px; height: 38px; }
.mmw-product-icon svg { width: 21px; height: 21px; }
.mmw-product-link > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.mmw-product-link strong { font-size: 14px; font-weight: 750; line-height: 1.25; }
.mmw-product-link small { margin-top: 3px; color: #707070; font-size: 12px; line-height: 1.35; }

@media (max-width: 767px) {
    .mmw-float {
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        max-width: calc(100vw - 24px);
    }
    .mmw-pos-right { right: 12px; }
    .mmw-pos-left { left: 12px; }

    .mmw-float-link {
        min-height: 52px;
        padding: 8px 12px 8px 8px;
        border-radius: 16px;
    }

    .mmw-icon { width: 38px; height: 38px; }
    .mmw-icon svg { width: 21px; height: 21px; }
    .mmw-copy strong { font-size: 13px; }
    .mmw-copy small { display: none; }

    .mmw-product-link { padding: 12px; }
    .mmw-product-link small { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
    .mmw-float-link,
    .mmw-product-link { transition: none; }
}
