.mg-share {
    position: relative;
    display: inline-flex;
}

.mg-share__trigger {
    font: inherit;
    letter-spacing: inherit;
}

.mg-share__menu {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    z-index: 30;
    min-width: 15.5rem;
    max-width: min(18rem, calc(100vw - 2rem));
    padding: 0.45rem;
    border-radius: 16px;
    border: 1px solid rgba(28, 25, 23, 0.1);
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.mg-share__option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.72rem 0.8rem;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #1c1917;
    font-size: 0.98rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.mg-share__option:hover,
.mg-share__option:focus-visible {
    background: rgba(13, 110, 253, 0.08);
    outline: none;
}

.mg-share__option-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
    flex-shrink: 0;
}

.mg-share__option-icon i {
    font-size: 1.05rem;
}

.mg-share__svg-icon {
    width: 1.05rem;
    height: 1.05rem;
}

.mg-share__option--whatsapp .mg-share__option-icon {
    background: rgba(37, 211, 102, 0.14);
    color: #128c7e;
}

.mg-share__option--messenger .mg-share__option-icon {
    background: rgba(0, 132, 255, 0.14);
    color: #0084ff;
}

.mg-share__option--facebook .mg-share__option-icon {
    background: rgba(24, 119, 242, 0.14);
    color: #1877f2;
}

.mg-share__option--instagram .mg-share__option-icon {
    background: rgba(228, 64, 95, 0.14);
    color: #e4405f;
}

.mg-share__option--tiktok .mg-share__option-icon {
    background: rgba(15, 23, 42, 0.1);
    color: #111827;
}

.mg-share__option--snapchat .mg-share__option-icon {
    background: rgba(255, 252, 0, 0.35);
    color: #111827;
}

.mg-share__option--discord .mg-share__option-icon {
    background: rgba(88, 101, 242, 0.14);
    color: #5865f2;
}

.mg-share__option--x .mg-share__option-icon {
    background: rgba(15, 23, 42, 0.1);
    color: #111827;
}

.mg-share__option--reddit .mg-share__option-icon {
    background: rgba(255, 69, 0, 0.14);
    color: #ff4500;
}

.mg-share__option--pinterest .mg-share__option-icon {
    background: rgba(230, 0, 35, 0.14);
    color: #e60023;
}

.mg-share__toast {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    z-index: 31;
    max-width: 18rem;
    padding: 0.7rem 0.95rem;
    border-radius: 12px;
    background: #14213d;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
}

.mg-lesson .lesson-hero-toolbar-share {
    justify-content: flex-end;
}
