.mmd-box {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 9999;
    display: block;
}

.mmd-toggle {
    width: 64px;
    height: 64px;
    border: 0 !important;
    border-radius: 9999px !important;
    background-color: #3450ff !important;
    background-image: none !important;
    color: #ffffff;
    box-shadow:
        0 0 0 10px rgba(255, 255, 255, 0.6),
        0 10px 18px rgba(15, 23, 42, 0.18);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.mmd-toggle:hover {
    background-color: #2a44ef !important;
}

.mmd-toggle-icon {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mmd-panel {
    position: absolute;
    left: 0;
    bottom: 78px;
    transform: none;
    width: min(360px, calc(100vw - 24px));
    background: rgba(255, 255, 255, 0.98);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
}

.mmd-box.is-collapsed .mmd-panel {
    display: none;
}

.mmd-box:not(.is-collapsed) .mmd-toggle {
    opacity: 0.9;
}

.mmd-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.mmd-head h4 {
    margin: 0;
    font-size: 15px;
}

.mmd-collapse {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #334155;
    cursor: pointer;
    line-height: 1;
    font-size: 16px;
}

.mmd-content p {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.6;
}

.mmd-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.mmd-btn {
    background: #0e7490;
    color: #fff;
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 13px;
    line-height: 1.3;
}

.mmd-btn:hover {
    background: #155e75;
}

.mmd-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.mmd-btn-secondary {
    background: #334155;
}

.mmd-btn-secondary:hover {
    background: #1f2937;
}

.mmd-select {
    width: 100%;
    margin: 0 0 10px;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
}

@media (max-width: 767px) {
    .mmd-box {
        left: 20px;
        bottom: 20px;
    }

    .mmd-panel {
        left: 0;
        bottom: 78px;
        width: min(320px, calc(100vw - 24px));
    }
}
